288
Pulse Outputs
Section 5-3
Procedure
Restrictions on the PWM(891) Outputs
• In the Y CPU Units, PWM outputs 0 and 1 cannot be used for pulse out-
puts 2 and 3 if the origin search function is enabled for pulse outputs 2
and 3.
Specifications
Note
The frequency can be set up to 6553.5 Hz in the PWM(891) instruction, but
the duty factor accuracy declines significantly at high frequencies because of
limitations in the output circuit at high frequencies.
5-3-10 Example Pulse Output Applications
Outputting Pulses after a Preset Delay
This example program waits for a preset time (0.5 ms) after the interrupt input
(CIO 0.00) goes ON and then outputs 100,000 pulses at 100 kHz from pulse
output 0.
Input interrupt task 0 (interrupt task number 140) starts a scheduled interrupt
with a scheduled time of 0.5 ms. The scheduled interrupt task executes the
pulse output instructions and stops the scheduled interrupt.
•
PWM output 0 or PWM output 1
•
Disable the origin search function for pulse
outputs 2 and 3.
Note:
Disable the origin search function because the PWM output
shares the output with the origin search function's Error
Counter Reset Output and both cannot be used
simultaneously.
Execute PWM(891).
Determine the pulse output port.
Wire the outputs.
PLC Setup settings
(Y models only)
Ladder program
Item
Specifications
Duty factor
0.0% to 100.0% in 0.1% increments
(Duty factor accuracy is ±5% at 1 kHz.)
Frequency
0.1 Hz to 6,553.5 Hz
Set in 0.1 Hz units. (See note.)
Output mode
Continuous mode
Instruction
PWM(891)
MSKS
PULS SPED
Pulse output 0
(CIO 100.00)
Interrupt input 0
(CIO 0.00)
I/O interrupt
response time
Scheduled interrupt
time 500
µ
s
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...