Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

y no array of bool to bool

sarathbabu
2013-02-22
2013-02-22
  • sarathbabu - 2013-02-22

    Am trying to array of bool to one of the boolean
    eg:

    test:array [1..10] of bool;
    turnon:bool;
    turnon:=test[1];

    Am getting error , bool to array of bool is a pbm but y array of bool to bool is also a pbm

     
  • shooter - 2013-02-22

    VAR
    test:array [1..10] of BOOL;
    turnon:BOOL;
    END_VAR

    Program
    turnon:=test[1];

    i only get a warning on the type bool as it should be written in capital.
    the rest works fine

     

    Related

    Talk.ru: 1


Log in to post a comment.