8 Pulse Outputs
8-56
CJ2M CPU Unit Pulse I/O Module User’s Manual
8-6 Reading the Pulse Output Present
Value
The present value of a pulse output can be read in the following three ways.
The PV that is stored in the following words can be read using the MOVL(498) instruction or other
instructions.
z Reading the Pulse Output PV with a PRV(881) Instruction
LPV(893) reads the pulse output PV each time an interrupt input occurs and stores the value in the
Auxiliary Area. It reads the PV immediately before the interrupt input task is started. LPV(893) reads
the PV more in realtime than starting an interrupt task and using the PRV(881) instruction to read
the PV.
Refer to Using Software Latches on page 6-8.
• Reading the PV Refreshed at the I/O Refresh Timing Æ Read from the Auxiliary Area.
• Reading the PV during Program Execution Æ Read by executing the PRV(881) instruc-
tion.
• Reading the PV When an Interrupt Input Occurs Æ Use the software latch and read the value
from the Auxiliary Area.
Reading the PV Refreshed at the I/O Refresh Timing
Pulse I/O Mod-
ule No.
Read PV Auxiliary Area word
0 (on the right) Pulse output 0 A277 (upper digits) and A276 (lower digits)
Pulse output 1 A279 (upper digits) and A278 (lower digits)
1 (on the left) Pulse output 2 A323 (upper digits) and A322 (lower digits)
Pulse output 3 A325 (upper digits) and A324 (lower digits)
Reading the PV during Program Execution
Reading the PV When an Interrupt Input Occurs
#0000
#0000
D100
D100
D101
@PRV
15
0
Pulse output PV that was read
P: Port specifier, Example: Pulse output 0
C: Control Data (to read PV)
D: First destination word
PV (lower word)
PV (upper word)
Execution condition