Reset variables

fpaezp

Member
Join Date
Apr 2011
Location
mexico
Posts
24
Hi everybody..

I have this to clean variables:

rst.jpg


as I can be simplified by using a single function??

Thanks in advance..:)
 
You can use the CLR instruction. If you have a whole bunch of consecutive addresses to initialize you can use the FLL instruction.

Also, do not nest your branches. Extend them (click on branch corner to select it. Then right click and pick extend up or extend down from the context menu)

See this thread for more information: http://www.plctalk.net/qanda/showthread.php?t=43027
 

Similar Topics

We have 5 machines each using a 418-2 CPU. 4 of the lines have automatic bleed off valves to purge gases which might accumulate during production...
Replies
8
Views
4,925
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
272
I was loading a program onto an XE1e2 PLC and it got stuck on these two windows and won't progress. It won't let me connect from the PC to reload...
Replies
0
Views
73
Hi all, i have recieved some 4RF Aprisa SR+ ethernet radios from a customer to configure. Issue is that they are used and have non-default...
Replies
0
Views
77
Hi Guys, I have a 1769-L24-QBFCB1 that has the OK light flashing on the embedded counter module. The manual states it is a resettable fault, but...
Replies
0
Views
104
Back
Top Bottom