Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 127

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

CPM2A/CPM2C Pulse Output Functions
106
Using an Instruction
(@)PRV(62)
P
003
D
D
Rightmost 4 digits
Leftmost 4 digits
D+1
Using Data Areas
As shown in the following illustration, the pulse output PV for pulse output 0 is
stored in words 228 and 229, and the pulse output PV for pulse output 1 is stored
in words 230 and 231.
Pulse Output 0
Word 228
Word 229
Words 228 to 231 are refreshed with every scan, so there may be a discrepancy
from the exact PV at any given time.
Words 228 to 231 cannot be used as work words even when pulse outputs are
not being used.
When the PV is read by executing PRV(62), words 228 to 231 are refreshed with
the same timing.
Read Pulse Output Status
This function reads the pulse output status.
Using an Instruction
(@)PRV(62)
Port specifier (000: Pulse output 0; 010: Pulse output 1)
P
001
Control designation (001: Read pulse output status)
Word for storing pulse output status
D
Pulse output status
0: Constant speed; 1: Accelerating/decelerating
Pulse output PV overflow/underflow
0: Normal; 1: Overflow or underflow occurred
Pulse output in progress
0: Stopped
1: Output in progress
Using Data Areas
As shown in the following illustration, the pulse output status for pulse output 0 is
stored in AR 11, and the pulse output status for pulse output 1 is stored in AR 12.
AR 11: Pulse output 0
AR 12: Pulse output 1
Pulse output in progress
0: Stopped
1: Output in progress
Pulse output completion
0: Not completed
1: Completed
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Control designation (003: Read pulse output PV)
Beginning word for storing pulse output PV
Pulse output PV (rightmost, leftmost digits)
The PV data that is read is stored here.
96,777,215 to 16,777,215
Negative numbers are expressed by turning
ON the leftmost bit.
Pulse Output 1
PV (Rightmost)
Word 230
PV (Leftmost)
Word 231
Pulse output PV overflow/underflow
0: Normal
1: Overflow or underflow occurred
Number of pulses
0: Not set
1: Set
Section
PV (Rightmost)
PV (Leftmost)
Number of pulses
0: Not set
1: Set
Pulse output completion
0: Not completed
1: Completed
Pulse output status:
0: Constant speed;
1: Accelerating/decelerating
2-5

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents