Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 418

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Timer and Counter Instructions
Start or Stop Comparison
(C=000 or C=001)
Change PV
(C=002)
Stop Pulse Output
(C=003)
Change PV
(C=004)
Stop Synchronized Pulse
Control Output (C=003)
400
The port specifier (P) specifies the high-speed counter or pulse output that will
be controlled.
P
000
Specifies high-speed counter input (inputs 00000, 00001, and 00002),
single-phase pulse output 0 with no acceleration/deceleration (output
01000 or 01001), single-phase pulse output 0 with trapezoidal accelera-
tion/deceleration (output 01000).
010*
Specifies single-phase pulse output 1 with no acceleration/deceleration
(output 01001).
100*
Specifies interrupt input 0 in counter mode (input 00003).
101*
Specifies interrupt input 1 in counter mode (input 00004).
102*
Specifies interrupt input 2 in counter mode (input 00005).
103*
Specifies interrupt input 3 in counter mode (input 00006).
Note *These settings can be used in CPM2A/CPM2C PCs only.
The function of INI(61) is determined by the control data, C.
C
P1
000
000
001
000
002
New PV
003
000
004*
New PV
005*
000
Note *These settings can be used in CPM2A/CPM2C PCs only.
If C is 000 or 001, INI(61) starts or stops comparison of the high-speed counter's
PV to the comparison table registered with CTBL(63). An error will occur if this
function is executed without first registering a comparison table with CTBL(63).
In general, @INI(61) should be used when C=000 because the instruction
needs to be executed only one time to start table comparison.
If C is 002, INI(61) changes the PV of the specified high-speed counter or inter-
rupt input (counter mode).
High-speed Counter PV (P=000)
INI(61) changes the PV of the specified high-speed counter to the 8-digit BCD
value in P1 and P1+1.
The new PV can be F838 8608 to 0838 8607 in differential phase mode, pulse +
direction input mode, or up/down input mode. (The hexadecimal "F" in the first
digit acts as a minus sign.)
The new PV can be 0000 0000 to 1677 7215 in increment mode.
Interrupt Input PV (P=100 to 103)
INI(61) changes the PV of the specified interrupt input (counter mode) to the
4-digit hexadecimal value (0000 to FFFF) in P1.
If C is 003, INI(61) stops the pulse output.
INI(61) changes the PV of the pulse output to the 8-digit BCD value in P1 and
P1+1. The PV cannot be changed while the pulse output is in progress.
The new PV can be –16,777,215 to 16,777,215. Bit 15 of P1+1 acts as a sign bit;
the number is negative if bit 15 is ON, positive if it is OFF.
If C is 003, INI(61) stops the synchronized pulse control output.
Function
INI(61) function
Starts CTBL(63) table comparison.
Stops CTBL(63) table comparison.
Changes PV of the high-speed counter or an interrupt input in
counter mode.
Stops pulse output.
Changes PV of the pulse output.
Stops synchronized pulse control output.
Section
7-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents