Detailed instructions for use are in the User's Guide.
[. . . ] Power OFF interrupts: Interrupt executed when CPU Unit's power is turned OFF. External interrupts: Interrupts from Special I/O Units and CPU Bus Units. Specification
Calling subroutines from multiple Supported using global subroutines. tasks CIO (Core I/O) Area I/O Area 640 (40 words): CIO 000000 to CIO 003915 (words CIO 0000 to CIO 039) Setting of first rack words can be changed from default (CIO 0000) to CIO 0000 to CIO 0999. [. . . ] Words in the DM Area maintain their status when the PLC is turned OFF or the operating mode is changed.
Auxiliary Area
Temporary Area Timer Area Counter Area DM Area
Index Registers
Task Flag Area
32 (TK0000 to TK0031) Task Flags are read-only flags that are ON when the corresponding cyclic task is being executed and OFF when the corresponding task is not being executed or is in standby status. 4, 000 words (trace data: 31 bits, 6 words) Memory Cards: OMRON Memory Cards with 8-MB, 15-MB, 30-MB, or 48-MB capacities can be used. (MSDOS format).
Trace Memory File Memory
Function Specifications
Item Constant cycle time Cycle time monitoring I/O refreshing Possible: 1 to 32, 000 ms (unit: 1 ms) Possible (Unit stops operating if cycle is too long): 10 to 40, 000 ms (unit: 10 ms) Cyclic refreshing, immediate refreshing, refreshing by IORF(097). The CPU BUS UNIT I/O REFRESH (DLNK) instruction can be used to refresh CPU Bus Units (including allocated CIO and DM Area words) when required in the program. Data links for Control Link Units, remote I/O communications for DeviceNet Units, and other special data for CPU Bus Units are refreshed at the following times. During I/O refresh period or when CPU BUS UNIT I/O REFRESH (DLNK) instruction is executed. Specification
Special refreshing for CPU Bus Units
Possible (using the IOM Hold Bit in the Auxiliary Area) I/O memory holding when changing operating modes Load OFF Input time constant setting Operating mode setting at power-up Built-in flash memory All outputs from Output Units can be turned OFF when the CPU Unit is in RUN, MONITOR, or PROGRAM mode. The time constant can be increased to reduce influence of noise and chattering or it can be decreased to detect shorter pulses on inputs. Possible (By default, the CPU Unit will start in RUN mode if a Programming Console is not connected. ) User program and parameter areas (e. g. , PC Setup) are automatically backed up and restored.
14
Item Memory Card functions Automatically reading programs (autoboot) from the Memory Card when the power is turned ON. Program replacement during PLC operation Memory Card storage data Possible
Specification
Possible User program: Program file format PC Setup and other parameters: Data file format I/O memory: Data file format (binary), text format, CSV format CPU Bus Unit data: Special format User program instructions, Programming Devices (including CX-Programmer and Programming Console), Host Link computers, AR Area control bits, easy backup operation
Memory Card read/write method
Filing Debugging Online editing
Memory Card data can be handled as files. Force-set/reset, differential monitoring, data tracing (scheduled, each cycle, or when instruction is executed) One or more program blocks in user programs can be overwritten when CPU Unit is in PROGRAM or MONITOR mode. With the CX-Programmer, more than one program circuit can be edited at the same time. Program checks are performed for items such as no END instruction and instruction errors. RUN output: The internal contacts will turn ON (close) while the CPU Unit is operating. (Possible only with CJ1WPA205R Power Supply Unit. ) 5 years at 25°C (The battery life depends on the ambient operating temperature; 0. 75 year min. ) (Battery Set: CJ1W-BAT01) Note: Use a replacement battery for which no more than 2 years have expired since the date of manufacture. Self-diagnostics Other functions CPU errors (watchdog timer), I/O bus errors, memory errors, and battery errors Storage of the number of times power has been interrupted. (Stored in A514. )
15
CJ1M-CPU22/23 Specifications Built-in I/O Allocation Areas
I/O point Word Bit Input General-purpose input Interrupt input Quickresponse input 0 IN0 2960 1 2 3 4 5 6 7 8 9 IN1 IN2 IN3 IN4 IN5 IN6 IN7 IN8 IN9 0 OUT1 2961 1 2 3 4 5 OUT2 OUT3 OUT4 OUT5 OUT6 General- General- General- General- General- General- General- General- General- General- purpose purpose purpose purpose purpose purpose purpose purpose purpose purpose input 0 input 1 input 2 input 3 input 4 input 5 input 6 input 7 input 8 input 9 Interrupt Interrupt Interrupt Interrupt input 0 input 1 input 2 input 3 Quickresponse input 0 Quickresponse input 1 Quickresponse input 2 Highspeed counter input 1 (phase Z or reset) Quickresponse input 3 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Highspeed counter input
Highspeed counter input 0 (phase Z or reset)
-
Highspeed counter input 1 (phase A incremental, or count input) -
Highspeed counter input 1 (phase B decremental, or direction input) -
Highspeed counter input 0 (phase A incremental, or count input) -
Highspeed counter input 0 (phase B decremental, or direction input) -
-
-
-
-
-
Out- General-purput pose output Pulse CW/ output CCW
-
-
-
-
-
-
General- General- General- General- General- Generalpurpose purpose purpose purpose purpose purpose output 0 output 1 output 2 output 3 output 4 output 5 Pulse output 0 (CW) Pulse output 0 (pulse) Pulse output 0 (CCW) Pulse output 1 (pulse) Pulse output 1 (CW) Pulse output 0 (direction) Pulse output 1 (CCW) Pulse output 1 (direction) -
-
-
-
-
-
-
-
-
-
-
Pulse + direction Pulse with variable duty factor (PWM) output Origin search -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
PWM output 0
PWM output 1
Origin search 0 (origin input signal)
Origin search 0 (origin proximity input signal)
Origin search 1 (origin input signal)
Origin search 1 (origin proximity input signal)
Origin search 0 (positioning completion signal)
Origin search 1 (positioning completion signal)
-
-
-
-
-
-
-
Origin search 0 (error counter reset output)
Origin search 1 (error counter reset output)
Built-in Input Specifications
Interrupt Inputs and Quick-response Inputs
Item Number of interrupt and quick-re- 4 total sponse input points Interrupt inputs Interrupt input mode Counter mode Quick-response input At the rising or falling edge of the input signal, the CPU Unit's cyclic program is interrupted and the corresponding I/O interrupt task (task number 140 to 143) is executed. The response time (i. e. , the time from the input condition being satisfied until execution of the interrupt task) is 93 µs min. The number of rising or falling edges of the input signal are counted incrementally or decrementally, and when the count has been reached, the corresponding interrupt task (task number 140 to 143) is executed. Signals less than the cycle time (30 µs min. ) can be treated as ON signals for one cycle. [. . . ] SPED (SPEED OUTPUT): Used to output pulses without acceleration or deceleration. (The number of pulses must be set beforehand using the PULS instruction to perform positioning. ) ACC (ACCELERATION CONTROL): Used to control the acceleration/deceleration rate. AR Area Words Pulse output 0: A276 (lower 4 digits) and A277 (upper 4 digits) Pulse output 1: A278 (lower 4 digits) and A279 (upper 4 digits) The present values are updated each cycle as part of overhead processing. The pulse output present value can be read to specified words using PRV (HIGH-SPEED COUNTER PV READ).
Pulse output present value storage area
17
Pulse with Variable Duty Factor (PWM) Output Function
Item Duty ratio Frequency Instruction for PWM 0% to 100%, set in 1% units 0. 1 to 999. 9 Hz, set in 0. 1-Hz units PWM (PULSE WITH VARIABLE DUTY FACTOR): Used to output pulses with the specified duty factor. [. . . ]