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,959
Hello, I still do not have equipment in to test. But the RTAC ladder does not have a timer reset coil. I wonder if a reset coil on Timer.IN is...
Replies
1
Views
65
Hi, i am using DVP-14SS2 PLC, after program written to plc, when power is reset, plc doesn't run. always need to connect to pc for the run mode.
Replies
0
Views
39
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
351
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
91
Back
Top Bottom