Programming instructions
iii
LESSON 12 – Timers and Counters
12.1 Timers...................................................................................................... 75
12.2 Counters .................................................................................................. 76
12.3 Program Examples .................................................................................. 79
12.4 Additional Timer Commands.................................................................... 81
12.5 Exercise – Timers and Counters.............................................................. 82
12.6 Exercise – Conveyor Control ................................................................... 82
LESSON 13 – Applied Instructions
13.1 General Format........................................................................................ 83
13.2 Data Transfer Instructions........................................................................ 84
13.3 Comparison Instructions .......................................................................... 85
13.4 Exercise – Parking Lot............................................................................. 88
13.5 Exercise – Conveyor Control Part 2......................................................... 88
13.6 Conversion Instructions ........................................................................... 88
13.7 Increment and Decrement Instructions .................................................... 89
13.8 Exercise – INC and DEC ......................................................................... 89
13.9 Arithmetic Instructions.............................................................................. 89
13.10 Exercise – Binary Math............................................................................ 90
13.11 Exercise – Parking Lot Part 2 .................................................................. 90
13.12 Exercise – Conveyor Control Part 3......................................................... 90
13.13 High-Speed Processing ........................................................................... 90
13.14 TO/FROM Instructions............................................................................. 92
13.15 Exercise – FX2N-5A Module Access ....................................................... 93
13.16 Shift Registers ......................................................................................... 93
13.17 Exercise – Bit Shift Register .................................................................... 94
13.18 Program Flow Control.............................................................................. 95
LESSON 14 – Diagnostic Devices
14.1 Special M Relays ..................................................................................... 97
14.2 Special D Registers ................................................................................. 98
14.3 Handy Troubleshooting Circuits............................................................... 98
14.4 Real Time Clock Usage ........................................................................... 99
14.5 Exercise – Daylight Savings Time ......................................................... 100
14.6 GX-Developer Diagnostics..................................................................... 101
14.7 Find/Replace Menu................................................................................ 102
14.8 Data Trace............................................................................................. 107