Omron CP1H CPU Operation Manual page 228

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Interrupt Functions
Procedure
Note
PLC Setup
Writing the Ladder
Program
MSKS(690) Settings
194
Select the input interrupts (counter
mode).
Wire the inputs.
Set the PLC Setup.
Set the counter SVs.
Write the ladder program.
The input interrupt (counter mode) function is one of the input interrupt func-
tions and executes an interrupt based on the pulse count. If the input pulse
frequency is too high, interrupts will occur too frequently and prevent normal
cyclic task processing. In this case, cycle time too long errors may occur or
the pulse input may not be read.
The maximum total frequency of the counter-mode interrupt inputs is 5 kHz.
Even in this case, the high frequencies may adversely affect other devices'
operation or the system load, so check the system's operation thoroughly
before using the counters at high frequencies.
The procedures for using the CX-Programmer to set the PLC Setup are the
same as the procedures for input interrupts (direct mode). Refer to 5-1-2 Input
Interrupts (Direct Mode) for details.
The MSKS(690) instruction must be executed in order to use input interrupts.
The settings made with MSKS(690) are enabled with just one execution, so in
general execute MSKS(690) in just one cycle using an up-differentiated condi-
tion.
MSKS(690) has the following two functions and three of the instructions are
used in combination. If up-differentiated input pulses are being used, the first
MSKS(690) instruction can be omitted since the input is set for up-differentia-
tion by default.
Execution condition
@MSKS(690)
@ MSKS(690)
• Determine the inputs to be used for input
interrupts and corresponding task numbers.
• Wire the inputs.
• Use the CX-Programmer to select the inter-
rupt inputs in the PLC Setup.
• Set the interrupt counter SVs in the corre-
sponding AR Area words.
• Write the programs for the corresponding
interrupt task numbers.
• Use MSKS(690) to specify up-differentiation
or down-differentiation.
• Use MSKS(690) to enable input interrupts (in
counter mode).
1. Specifies up-differentiated or
N
down-differentiated inputs.
S
2. Enables or disables the input interrupt.
N
S
Section 5-1

Advertisement

Table of Contents
loading

Table of Contents