285
Pulse Outputs
Section 5-3
PULSE WITH VARIABLE
DUTY FACTOR: PWM(891)
PWM(891) is used to output pulses with the specified duty factor.
D
First
desti-
nation
word
Reading PV
(D and D+1)
After the pulse output PV is read, the 8-digit hexadecimal
data is stored in D and D+1. (D contains the rightmost 4
digits and D+1 contains the leftmost 4 digits.)
Reading
pulse output
status
(D)
Bit 0
Pulse Output Status Flag
0: Constant speed
1: Accelerating/decelerating
Bit 1
PV Underflow/Overflow Flag
0: Normal
1: Error
Bit 2
Pulse Output Amount Set Flag
0: Not set
1: Set
Bit 3
Pulse Output Completed Flag
0: Output not completed
1: Output completed
Bit 4
Pulse Output Flag
0: Stopped
1: Outputting pulses
Bit 5
No-origin Flag
0: Origin established
1: Origin not established
Bit 6
At Origin Flag
0: Not stopped at origin
1: Stopped at origin
Bit 7
Pulse Output Stopped Error Flag
0: No error
1: Pulse output stopped due to error
Bits 8 to 15 Not used.
Reading
PWM output
status (D)
Bit 0
PWM Output Flag
0: Stopped
1: Outputting pulses
Bits 1 to 15 Not used.
Operand
Contents
Operand
Contents
P
Port specifier
#0000: Pulse output 0 (duty factor set in 1% units)
#0001: Pulse output 1 (duty factor set in 1% units)
#1000: Pulse output 0 (duty factor set in 0.1% units)
#1001: Pulse output 1 (duty factor set in 0.1% units)
T
Frequency
0001 to FFFF hex (0.1 to 6553.5 Hz, in 0.1 Hz units)
S
Duty factor
Specify the duty factor of the pulse output, i.e., the percent-
age of time that the output is ON.
0000 to 03E8 hex (0.0% to 100.0%)
PWM
P
F
D
P:
Port specifier
F:
Frequency
D:
Duty factor
Summary of Contents for CP1H CPU UNITS - PROGRAMMING 05-2007
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Page 370: ...336 Analog I O XA CPU Units Section 5 5...
Page 552: ...518 Trouble Shooting Section 8 7...
Page 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 598: ...564 Sample Application Section 9 12...
Page 642: ...608 Standard Models Appendix A...
Page 652: ...618 Dimensions Diagrams Appendix B...
Page 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Page 776: ...742 PLC Setup Appendix G...
Page 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Page 786: ...752 Revision History...