12 Pulse Outputs
12-44
CP2E CPU Unit Software User’s Manual(W614)
12-7 Reading the Pulse Output Present
Value
The present value of a pulse output can be read in the following two ways.
The PV that is stored in the following words can be read using the MOVL instruction or other instruc-
tions.
z Reading the Pulse Output PV with a PRV Instruction
• Value refreshed at the I/O refresh timing Æ Read PV from Auxiliary Area.
• Value updated when a program is executed Æ Read PV by executing a PRV instruction.
Reading the PV Refreshed at the I/O Refresh Timing
Read PV Auxiliary Area words
Pulse output 0 A277 (upper digits) and A276 (lower digits)
Pulse output 1 A279 (upper digits) and A278 (lower digits)
Pulse output 2 A53 (upper digits) and A52 (lower digits)
Pulse output 3 A55 (upper digits) and A54 (lower digits)
Reading the Value When a Program is Executed
#0000
#0000
D100
D100
D101
@PRV
15
0
Pulse output PV that was read
C1: Port specifier (example for pulse output 0)
C2: Control data (example for reading PV)
D: First destination word
Present value data lower bytes
Present value data upper bytes
Execution condition