10-1
CJ2 CPU Unit Software User’s Manual
10
This section describes the functions that are built into the CPU Unit.
Refer to the CJ2M CPU Unit Pulse I/O Module User's Manual (Cat. No. W486) for
details on the functions that can be used when CJ2M-MD21@ Pulse I/O Modules are
connected to a CJ2M CPU Unit (such as high-speed counters and pulse outputs).
10-1 Clock Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3
10-1-1 Clock Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3
10-1-2 Times Stored in Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-4
10-1-3 Free-running Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6
10-2 Cycle Time/High-speed Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-7
10-2-1 Minimum Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-7
10-2-2 Maximum Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-8
10-2-3 Monitoring the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-9
10-2-4 High-speed Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-9
10-2-5 Background Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-10
10-2-6 High-speed Interrupt Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-19
10-3 Startup Settings and Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-22
10-3-1 Holding Settings for Operating Mode Changes and at Startup . . . . . . . . . . 10-22
10-3-2 Power OFF Detection Delay Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-24
10-3-3 Disabling Power OFF Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-25
10-3-4 RUN Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-26
10-3-5 Automatic Transfer at Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-27
10-4 Unit Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-35
10-4-1 Basic I/O Unit Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-35
10-4-2 CPU Bus Unit Flags/Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-37
10-4-3 Special I/O Unit Flags/Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-38
10-5 Memory Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-39
10-5-1 Automatic Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-39
10-5-2 EM File Memory Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-41
10-5-3 Comment Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-42
10-5-4 Replacing the Entire Program during Operation . . . . . . . . . . . . . . . . . . . . . 10-43
CPU Unit Functions