Quantcast
Channel: SPS-Forum - Automatisierung und Elektrotechnik
Viewing all articles
Browse latest Browse all 47324

Simaticer meets CoDeSys

$
0
0
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
Angehängte Grafiken

Viewing all articles
Browse latest Browse all 47324


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>