128
Built-in Inputs
Section 6-1
Procedure
Note
Use the MSKS(690) instruction to select the interrupt mode (direct mode or
counter mode.)
Restrictions on Interrupt
Inputs (Counter Mode)
• Interrupt inputs 0 to 3 cannot be used when built-in inputs IN0 to IN3 are
being used as general-purpose inputs or quick-response inputs.
• Interrupt input 3 cannot be used when high-speed counter input 0 is being
used and the high-speed counter 0 reset method is set to Phase-Z signal
+ Software reset.
Interrupt input 2 cannot be used when high-speed counter input 1 is being
used and the high-speed counter 1 reset method is set to Phase-Z signal
+ Software reset.
• Interrupt inputs 0 and 1 cannot be used when the origin search function is
enabled for pulse output 0 (enabled in the PLC Setup).
Interrupt inputs 2 and 3 cannot be used when the origin search function is
enabled for pulse output 1 (enabled in the PLC Setup).
Select interrupt inputs.
Wire inputs.
PLC Setup settings
Auxiliary Area settings
Ladder program
•
IN0 to IN3 (CIO 2960 bits 00 to 03)
•
Connect to the selected terminals between IN0 and IN3.
•
When IN0 to IN3 are used as interrupt inputs in counter
mode, make the necessary "input operation settings"
for IN0 to IN3 in Programming Console address 60.
IN0: Set the rightmost digit (bits 00 to 03) to 1 hex.
IN1: Set the second digit (bits 04 to 07) to 1 hex.
IN2: Set the third digit (bits 08 to 11) to 1 hex.
IN3: Set the leftmost digit (bits 12 to 15) to 1 hex.
•
Set the desired counter SVs in A532 to A535.
•
Program the corresponding interrupt tasks. Interrupt
tasks 140 to 143 correspond to inputs IN0 to IN3).
Use the MSKS(690) instruction to specify whether up or
down differentiated pulses will be counted.
Use control data (N) settings 10 to 13 to set up/down
differentiation for inputs IN0 to IN3. Set S=0 to specify
up differentiation or S=1 to specify down differentiation.
•
Use the MSKS(690) instruction to enable the interrupt
inputs in counter mode.
Use control data (N) settings 6 to 9 to specify interrupt
inputs IN0 to IN3. Set S=2 to start a decrementing
counter and enable the interrupts. Set S=3 to start an
incrementing counter and enable the interrupts.
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...