CPM2A/CPM2C Pulse Output Functions
124
SR 228 to SR 231 cannot be used as work words even when pulse outputs are
not being used.
When the PV is read by executing PRV(62), SR 228 to SR 231 are refreshed with
the same timing.
Read Pulse Output Status
This function reads the pulse output status.
Using an Instruction
(@)PRV(62)
000
001
Pulse output status
0: Constant rate
1: Accelerating or decelerating
Pulse output PV overflow/underflow
0: Normal; 1: Overflow or underflow occurred
Using Data Areas
As shown in the following illustration, the pulse output status for pulse output 0 is
stored in AR 1111 to AR 1115.
AR 11: Pulse output 0
Pulse output in progress
0: Stopped
1: Output in progress
Pulse output completion
0: Not completed
1: Completed
Note AR 1111 through AR 1115 are refreshed once each cycle, so the values of these
flags may not reflect the actual status, but these flags are refreshed immediately
when their status is read with PRV(62).
Fixed at 000: Pulse output 0
Control designation (001: Read pulse output status)
Word for storing pulse output status
D
Pulse output in progress
0: Stopped
1: Output in progress
Section
Number of pulses
0: Not set
1: Set
Pulse output completion
0: Not completed
1: Completed
Pulse output status
0: Constant rate
1: Accelerating or decelerating
Pulse output PV overflow/underflow
0: Normal
1: Overflow or underflow occurred
Number of pulses
0: Not set
1: Set
2-5