708
High-speed Counter/Pulse Output Instructions Section 3-20
■ Changing a PV (C = 0002 hex)
If C is 0002 hex, INI(880) changes a PV as shown in the following table.
■ Stopping Pulse Output (P = 0000 to 0003, 1000, or 1001 hex and C = 0003
hex)
If C is 0003 hex, INI(880) immediately stops pulse output for the specified
port. If this instruction is executed when pulse output is already stopped, then
the pulse amount setting will be cleared.
Flags
Port and mode Operation Setting range
Pulse output (P = 0000 to 0003
hex)
The present value of the
pulse output is changed.
The new value is speci-
fied in NV and NV+1.
Note This instruction
can be executed
only when pulse
output is stopped.
An error will occur
if it is executed dur-
ing pulse output.
8000 0000 to 7FFF
FFFF hex
(-2,147,483,648 to
2,147,483,647)
High-
speed
counter
input (P =
0010 to
0013
hex)
Linear
Mode
Differential
inputs,
increment/
decrement
pulses, or
pulse +
direction
inputs
The present value of the
high-speed counter is
changed. The new value
is specified in NV and
NV+1.
Note An error will occur
for the instruction if
the specified port
is not set for a
high-speed
counter.
8000 0000 to 7FFF
FFFF hex
(-2,147,483,648 to
2,147,483,647)
Increment
pulse input
0000 0000 to FFFF
FFFF hex
(0 to 4,294,967,295)
Ring Mode 0000 0000 to FFFF
FFFF hex
(0 to 4,294,967,295)
Interrupt inputs in counter
mode (P = 0100 to 0107 hex)
The present value of the
interrupt input is
changed. The new value
is specified in NV and
NV+1.
0000 0000 to 0000
FFFF hex
(0 to 65,535)
Note An error will occur
if a value outside
this range is speci-
fied.
Name Label Operation
Error Flag ER 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 out-
putting pulses.
ON if changing the PV of a high-speed counter is speci-
fied 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.