Hi all
In a step7 SCL FB (NOT TIA portal) , I have declared many variables as IEC timers (SFB4). Now I need to iterate this variables (hundreds of) in a loop cycle ( bits .IN, .Q etc.). How can I do it? I think that one possibility is to iterate bits of instance DB but I don't know how to do it in SCL. I know that, for example, this instruction
points to DB100.DBX2.4 , but what if i don't want to point at DB100 but at the instance DB?
any suggestion?
thank you
In a step7 SCL FB (NOT TIA portal) , I have declared many variables as IEC timers (SFB4). Now I need to iterate this variables (hundreds of) in a loop cycle ( bits .IN, .Q etc.). How can I do it? I think that one possibility is to iterate bits of instance DB but I don't know how to do it in SCL. I know that, for example, this instruction
Code:
idx1:=4;
idx2:=2;
TEST:=db100.dx[idx2,idx1];
points to DB100.DBX2.4 , but what if i don't want to point at DB100 but at the instance DB?
any suggestion?
thank you