Installation manual
1 Publication 1747-RM001G-EN-P - November 2008
Appendix
G
Application Example Programs
This appendix is designed to illustrate various instructions described
previously in this manual. Application example programs include:
• paper drilling machine using most of the instructions.
• time driven sequencer using TON and SQO instructions.
• event driven sequencer using SQC and SQO instructions.
• on/off circuit using basic, program flow, and application specific
instructions.
• interfacing with enhanced bar code decoders over DH-485.
Because of the variety of uses for this information, the user of and those
responsible for applying this information must satisfy themselves as to the
acceptability of each application and use of the program. In no event will
Rockwell Automation be responsible or liable for indirect or consequential
damages resulting from the use of application of this information.
The illustrations, chart, and examples shown in this appendix are intended
solely to illustrate the principles of the controller and some of the methods
used to apply them. Particularly because of the many requirements associated
with any particular installation, Rockwell Automation cannot assume
responsibility or liability for actual use based upon the illustrative uses and
applications.
Paper Drilling Machine
Application Example
For a detailed explanation of:
• XIC, XIO, OTE, RES, OTU, OTL, and OSR instructions, see Chapter
2.
• EQU and GEQ instructions, see Chapter 3.
• CLR, ADD, and SUB instructions, see Chapter 4.
• MOV and FRD instructions, see Chapter 5.
• JSR and RET instructions, see Chapter 6.
• INT instruction, see Chapter 11.
• SQO instruction, see Chapter 7.
This machine can drill 3 different hole patterns into bound manuals. The
program tracks drill wear and signals the operator that the bit needs
replacement. The machine shuts down if the signal is ignored by the operator.