Hi all!
In my Step7 i can set an outputbit indexed by an integer more or less like this:
(range of 64 limiting omitted).
L P#xS0 // the first output bit
LAR1
L 0
T DW[AR1,P#0.0] // reset all outputs
T DW[AR1,P#4.0]
L iStep // output bit to be set
+AR1
SET
= [AR1,p#0.0]
I like the outputs to be boolean pins on the function block, because of the convenience when used in CFC.
So my question is; how can this be done in CoDeSys (V2)?
Do I need to make 64 comparisation rungs?
MfG
Kaputt
In my Step7 i can set an outputbit indexed by an integer more or less like this:
(range of 64 limiting omitted).
L P#xS0 // the first output bit
LAR1
L 0
T DW[AR1,P#0.0] // reset all outputs
T DW[AR1,P#4.0]
L iStep // output bit to be set
+AR1
SET
= [AR1,p#0.0]
I like the outputs to be boolean pins on the function block, because of the convenience when used in CFC.
So my question is; how can this be done in CoDeSys (V2)?
Do I need to make 64 comparisation rungs?
MfG
Kaputt