Hello All,
I'm struggling with programming and using Step 7 counter instructions.
Basically I want a simple counter that increases by 1 at a certain event up to a maximum of 11 before resetting.
Whilst the counter is performing it's duty I wish to compare the current value of the counter and set different memory bits depending on the counter value.
The counter for arguments sake is C1 called MASTER_COUNTER.
What I'm having trouble with is comparing the counter value.
When using a compare instruction, what address should I enter that represents the current counter value? ( i.e. Where is C1 counter value stored and how is this addressed?)
I'm mainly a Allen Bradley guy that's use to pointing everything to T4:1.ACC etc. Therefore are S7 counters and also timers similar to how Bradley use them?
Can someone please help?
Thanks.
Qee.
I'm struggling with programming and using Step 7 counter instructions.
Basically I want a simple counter that increases by 1 at a certain event up to a maximum of 11 before resetting.
Whilst the counter is performing it's duty I wish to compare the current value of the counter and set different memory bits depending on the counter value.
The counter for arguments sake is C1 called MASTER_COUNTER.
What I'm having trouble with is comparing the counter value.
When using a compare instruction, what address should I enter that represents the current counter value? ( i.e. Where is C1 counter value stored and how is this addressed?)
I'm mainly a Allen Bradley guy that's use to pointing everything to T4:1.ACC etc. Therefore are S7 counters and also timers similar to how Bradley use them?
Can someone please help?
Thanks.
Qee.