2-5
Section
CPM2A/CPM2C Pulse Output Functions
106
Using an Instruction
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.
Rightmost 4 digits
Leftmost 4 digits
(@)PRV(62)
P
003
D
D
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
Pulse Output 1
Word 228
Word 229
Word 230
Word 231
PV (Rightmost)
PV (Rightmost)
PV (Leftmost)
PV (Leftmost)
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
Port specifier (000: Pulse output 0; 010: Pulse output 1)
Control designation (001: Read pulse output status)
Word for storing pulse output status
Pulse output in progress
0: Stopped
1: Output in progress
Pulse output PV overflow/underflow
0: Normal; 1: Overflow or underflow occurred
Number of pulses
0: Not set
1: Set
Pulse output completion
0: Not completed
1: Completed
(@)PRV(62)
P
001
D
Pulse output status
0: Constant speed; 1: Accelerating/decelerating
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 completion
0: Not completed
1: Completed
Pulse output in progress
0: Stopped
1: Output in progress
Pulse output PV overflow/underflow
0: Normal
1: Overflow or underflow occurred
Number of pulses
0: Not set
1: Set
Pulse output status:
0: Constant speed;
1: Accelerating/decelerating
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...