Reading The Pulse Output Present Value - Omron SYSMAC CJ Series User Manual

Sysmac cj series cpu unit pulse i/o module
Hide thumbs Also See for SYSMAC CJ Series:
Table of Contents

Advertisement

8 Pulse Outputs
8-6
Reading the Pulse Output Present
Value
The present value of a pulse output can be read in the following three ways.
• Reading the PV Refreshed at the I/O Refresh Timing
• Reading the PV during Program Execution
• Reading the PV When an Interrupt Input Occurs
Reading the PV Refreshed at the I/O Refresh Timing
The PV that is stored in the following words can be read using the MOVL(498) instruction or other
instructions.
Pulse I/O Mod-
ule No.
0 (on the right)
1 (on the left)
Reading the PV during Program Execution
Reading the Pulse Output PV with a PRV(881) Instruction
Execution condition
Reading the PV When an Interrupt Input Occurs
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.
8-56
Read PV
Pulse output 0
A277 (upper digits) and A276 (lower digits)
Pulse output 1
A279 (upper digits) and A278 (lower digits)
Pulse output 2
A323 (upper digits) and A322 (lower digits)
Pulse output 3
A325 (upper digits) and A324 (lower digits)
@PRV
P: Port specifier, Example: Pulse output 0
#0000
C: Control Data (to read PV)
#0000
D: First destination word
D100
Read from the Auxiliary Area.
Read by executing the PRV(881) instruc-
tion.
Use the software latch and read the value
from the Auxiliary Area.
Auxiliary Area word
0
15
D100
PV (lower word)
Pulse output PV that was read
D101
PV (upper word)
CJ2M CPU Unit Pulse I/O Module User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj2m-cpu seriesSysmac cj2m-md21 series

Table of Contents