vishal-s Member V Join Date May 2003 Location Mumbai. Posts 32 Aug 18, 2003 #1 I have an S7-200 PLC. In my program I want to use the zeroth bit of my Timer/Counter accumulator say, to decide if the current count is even or odd. How can I do this?
I have an S7-200 PLC. In my program I want to use the zeroth bit of my Timer/Counter accumulator say, to decide if the current count is even or odd. How can I do this?
paraffin power Member Join Date Aug 2002 Location Manchester Posts 527 Aug 19, 2003 #2 NETWORK 1 LD SM0.0 //always on MOVW C0, VW10 //move counter value to V memory NETWORK 2 LD V11.0 //query bit 0 of counter accumulator = V13.0 //odd number Hope this helps Paul
NETWORK 1 LD SM0.0 //always on MOVW C0, VW10 //move counter value to V memory NETWORK 2 LD V11.0 //query bit 0 of counter accumulator = V13.0 //odd number Hope this helps Paul