Does INC_W in S7-200 one-shot itself or inc. every scan?

uptown47

Lifetime Supporting Member
Join Date
Feb 2008
Location
Over there, next to those boxes
Posts
1,146
Hi all

I'm converting an S7-200 program into S7-300.

There is a Word Increment command INC_W which takes in a VW address and puts it back into the same VW address.

I want to replicate the logic in S7-300 so was going to just use an ADD_I and have it add '1' to the DB address.

However, I wondered if the INC_W increments the count every scan or does it one-shot itself so that if the power remains on it only increments once until the power goes off again?

Thanks for any light you can shed on this. :)
 
Thanks for the info Garry.

There isn't one-shots on the instructions at the moment.

So am I right in thinking if the instruction is TRUE then every scan it will continue to add 1 to the address?
 
My memory was that it only happens once for each transition of EN, and that is born out by the manual that shows an Input being used to trigger the INC. But looking at my previous programs I always have a Rising or Falling edge before each INC. I have an S7-200 on the bench, so I will try it later. It is always the simple questions that make you go ????.
 
That would be great if you could try it for me Bryan. And you're right... it's always these simple things!

I don't have access to a 200 to try it. And when I do cut the wires to start the upgrade it could be quite serious if I get the functionality wrong as this value is controlling the speed of the machine. I don't want it suddenly screwing itself into the ground!!

Cheers :)
 
It is important to understand how it is used. With use by an interrupt you would not need a rising or falling edge.

Regards,
 

Similar Topics

Hey guys, Part of the project I'm working on currently is a remote RTU system that is made by Data-Linc; the remote RTU is a CIX-6430 and the...
Replies
12
Views
3,031
I am trying to connect with a Schneider plc which has a firmware version only available in Somachine v4.2. In Machine expert After taking upload...
Replies
0
Views
112
They are installed in a control panel that was made in France and are intended for the termination of analog inputs. Each of the red capped...
Replies
4
Views
420
So, I'm really just trying to get some experience by practicing with arrays. I'm using studio 5000 v33. I have one rung with an XIC bit that's...
Replies
5
Views
229
Back
Top Bottom