hefekranz
How can I enter a new view of a variable using the AT Keyword?

in Step7 SCL:

Lock_W : Word
Lock AT Lock_W : Array[0..15] of Bool
   Lock[0] : Bool;
   Lock[1] : Bool;
   Lock[2] : Bool;
   Lock[3] : Bool;
   Lock[4] : Bool;
   Lock[5] : Bool;
   Lock[6] : Bool;
   Lock[7] : Bool;
   Lock[8] : Bool;
   Lock[9] : Bool;
   Lock[10] : Bool;
   Lock[11] : Bool;
   Lock[12] : Bool;
   Lock[13] : Bool;
   Lock[14] : Bool;
   Lock[15] : Bool;
Reply 0 0
EngineerDog
Some examples of proper AT usage. 
sName AT %M*: STRING;
iInput AT %I* : LINT;
iOutput AT %Q* : LINT;
aIOArray AT %M* : ARRAY[0..1] OF REAL;
Reply 0 0
hefekranz
I understand that. But the question was how can this be defined in the variable section.
Reply 0 0
EngineerDog
Been wondering that myself actually! Im not sure that its possible
Reply 0 0
thiagoralves
You can’t… variables are defined on the top panel only. You can hijack the generated structured text and insert your own variable definitions there. But you can’t do it from the editor itself
Reply 0 0
Reply