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.