Maintenabce
and
Tr
oubleshooting
Maintenance
and
Tr
oubleshooting
8--12
Maintenance and Troubleshooting
DL105 PLC User Manual, 3rd Edition
There are several instructions that can be used to help you debug your program
during machine startup operations.
S
END
S
PAUSE
S
STOP
END Instruction:
If you need a way to quickly disable part of the program, just insert
an 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 example.
New END disables X10 and Y1
Y0
X0
END
X2
X3
X1
X4
Y1
X10
Normal Program
Y0
X0
END
X2
X3
X1
X4
Y1
X10
END
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 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 could just add the instruction without any conditions
so the selected outputs would be disabled at all times.
PAUSE disables Y0 and Y1
Y0
X0
END
X2
X3
X1
X4
Y1
X10
Normal Program
Y0
X0
END
X2
X3
X1
X4
Y1
X10
PAUSE
Y0 -- Y1
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 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.
Special
Instructions
Summary of Contents for DL105
Page 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Page 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Page 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Page 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Page 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...