Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 758

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

C: Control Data
C
0000 hex
Starts comparison.
0001 hex
Stops comparison.
0002 hex
Changes the PV.
0003 hex
Stops pulse output.
NV: First Word with New PV
If C is 0002 hex (i.e., when changing a PV),
NV and NV+1 contain the new PV. Any
values in NV and NV+1 are ignored when C
is not 0002 hex.
Operand Specifications
Word addresses
Area
CIO
WR
HR
P, C
---
---
---
NV
OK
OK
OK
Flags
Name
Label
Error Flag
ER
Function
INI(880) performs the operation specified in C for the port specified in P. The possible combinations of
operations and ports are shown in the following table.
P: Port specifier
0000 or 0001 hex: Pulse output
0010 or 0011 hex: High-speed counter input
0100, 0101, 0102, or 0103 hex:
Interrupt input in counter mode
1000 or 1001 hex: PWM (891) output
Starting Comparison (C = 0000 hex)
If C is 0000 hex, INI(880) starts comparison of a high-speed counter's PV to the comparison table
registered with CTBL(882).
Note A target value comparison table must be registered in advance with CTBL(882). If INI(880) is executed with-
out registering a table, the Error Flag will turn ON.
Stopping Comparison (C = 0001 hex)
If C is 0001 hex, INI(880) stops comparison of a high-speed counter's PV to the comparison table
registered with CTBL(882).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
• ON if the specified range for P, C, or NV is exceeded.
• ON if the combination of P and C is not allowed.
• ON if a comparison table has not been registered but starting comparison is specified.
• ON if a new PV is specified for a port that is currently outputting pulses.
• ON if changing the PV of a high-speed counter is specified for a port that is not specified for a high-speed counter.
• ON if a value that is out of range is specified as the PV for an interrupt input in counter mode.
• ON if INI(880) is executed in an interrupt task for a high-speed counter and an interrupt occurs when CTBL(882) is
executed.
• ON if executed for a port not set for an interrupt input in counter mode.
• OFF in all other cases.
INI(880) function
15
Lower word of new PV
NV
Upper word of new PV
NV+1
For Pulse Output or High-speed Counter Input:
0000 0000 to FFFF FFFF hex
For Interrupt Input in Counter Mode:
0000 0000 to 0000 FFFF hex
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
OK
OK
---
Operation
C: Control data
0000 hex: Start
0001 hex: Stop
comparison
comparison
Not allowed.
Not allowed.
OK
OK
Not allowed.
Not allowed.
Not allowed.
Not allowed.
3. Instructions
0
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
0002 hex:
0003 hex: Stop
Change PV
pulse output
OK
OK
Not allowed.
OK
Not allowed.
Not allowed.
3
TR
bits
---
---
OK
OK
721

Advertisement

Table of Contents
loading

Table of Contents