Special Instructions - Automation Direct DL05 User Manual

Micro plc
Hide thumbs Also See for DL05:
Table of Contents

Advertisement

Chapter 9: Maintenance and Troubleshooting

Special Instructions

1
There are several instructions that can be used to help you debug your program during
machine startup operations.
2
• END
• PAUSE
3
• STOP
END Instruction: If you need a way to quickly disable part of the program, just insert an
4
END statement prior to the portion that should be disabled. When the CPU encounters the
END statement, it assumes that is the end of the program. The following diagram shows an
5
example.
6
7
8
9
0
PAUSE Instruction: This instruction provides a quick way to allow the inputs (or other logic)
to operate while disabling selected outputs. The output image register is still updated, but the
1
output circuits are not. For example, you could make this conditional by adding an input
contact or CR to control the instruction with a switch or a programming device. Or, you
2
could just add the instruction without any conditions so the selected outputs would be
disabled at all times.
3
4
B
C
STOP Instruction: Sometimes during machine startup you need a way to quickly turn off all
the outputs and return to Program Mode. You can use the STOP instruction. When this
D
instruction is executed the CPU automatically exits Run Mode and enters Program Mode.
Remember, all outputs are turned off during Program Mode. The following diagram shows an
example of a condition that returns the CPU to Program Mode.
9–12
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Normal Program
X0
X2
X1
X3
X4
X10
Normal Program
X0
X2
X1
X3
X4
X10
New END disables X10 and Y1
Y0
X0
X1
Y1
X10
END
PAUSE disables Y0 and Y1
Y0
X0
Y1
X1
X10
END
X2
Y0
X3
X4
END
Y1
END
Y0 – Y1
PAUSE
X2
Y0
X3
X4
Y1
END

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DL05 and is the answer not in the manual?

Table of Contents