Addressing counter accumulator

vishal-s

Member
Join Date
May 2003
Location
Mumbai.
Posts
32
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?
 
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
 

Similar Topics

Hello all. I have a Simatic SM374 (374-sxh01-0aa0) sim module. I am using TIA portal v.18. I can't find this module in my list of hardware devices...
Replies
12
Views
658
Hello, I have a device with 68 words input. But one block on the Devicenet Scanner is only 61 words. I am trying to map this device to 2...
Replies
3
Views
464
We had an AC 800M stand alone controller fail. We have a spare, and we are trying to set it up on the bench. We can connect with the serial cable...
Replies
0
Views
257
Hello everyone. Using the designer software for the HC900 had me thinking. How can I assign 1 variable so 1 single bit. Like how can I say that...
Replies
1
Views
400
In Studio 5000, I'm wanting to be more economical in my addressing to conserve memory. I read somewhere that DINTS are the most efficient data...
Replies
2
Views
583
Back
Top Bottom