Omron SYSMAC CJ Series User Manual page 141

Sysmac cj series cpu unit pulse i/o module
Hide thumbs Also See for SYSMAC CJ Series:
Table of Contents

Advertisement

MODE CONTROL Instruction: INI(880)
The INI(880) instruction is used for the following items.
• Starting and Stopping Comparison for a High-speed Counter Comparison Table
Use the CTBL(882) instruction to register the target value or range comparison table before using
INI(880) to start or stop comparison.
If the comparison is started simultaneously with registering the comparison table and the high-
speed counter interrupts are always enabled, the INI(880) instruction is not required.
• Changing the PV of a High-speed Counter
Execution condition
Operand
P
Port specifier
C
Control data
NV
First word of
new PV
Example 1: Target Value Comparison
In this example, high-speed counter 0 operates in linear mode and starts interrupt task 10 when the PV
reaches 30,000 (0000 7530 hex) and starts interrupt task 11 when the PV reaches 20,000 (0000 4E20
hex).
1
Set high-speed counter 0 on the I/O Module Tab Page in the PLC Setup.
Counter setting
Counting Mode
Ring Counter Max. Value
Reset Method
Comparing After Counter Reset Stop
Pulse Input Mode
CJ2M CPU Unit Pulse I/O Module User's Manual
@INI
P: Port Specifier
P
C: Control Data
C
NV: First word with new PV
NV
#0010
High-speed counter 0
#0011
High-speed counter 1
#0012
High-speed counter 2
#0013
High-speed counter 3
#0000
Starts comparison.
#0001
Stops comparison.
#0002
Changes the PV.
#0006
Changes the maximum ring count.
Stores the new value when changing the PV (C = #0002)
or when changing the ring counter maximum value (C =
#0006)
Item
Input pulse frequency (60 kHz max.)
Linear mode
---
Software reset
Up/Down pulses
7 High-speed Counters
Setting
Setting
7
7-31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj2m-cpu seriesSysmac cj2m-md21 series

Table of Contents