Publication 1763-RM001C-EN-P - October 2009
6 Table of Contents
Programming Instructions
Overview
Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Using the Instruction Descriptions . . . . . . . . . . . . . . . . . . . . . 82
Chapter 4
Using the High-Speed
Counter and Programmable
Limit Switch
High-Speed Counter Overview . . . . . . . . . . . . . . . . . . . . . . . . 89
Programmable Limit Switch Overview. . . . . . . . . . . . . . . . . . . 89
High-Speed Counter (HSC) Function File . . . . . . . . . . . . . . . . 90
High-Speed Counter Function File Sub-Elements Summary . . . 92
HSC Function File Sub-Elements. . . . . . . . . . . . . . . . . . . . . . . 93
HSL - High-Speed Counter Load . . . . . . . . . . . . . . . . . . . . . . 118
RAC - Reset Accumulated Value . . . . . . . . . . . . . . . . . . . . . . 119
Programmable Limit Switch (PLS) File. . . . . . . . . . . . . . . . . . 120
Chapter 5
Using High-Speed Outputs PTO - Pulse Train Output. . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Pulse Train Output Function. . . . . . . . . . . . . . . . . . . . . . . . . 128
Pulse Train Outputs (PTO) Function File. . . . . . . . . . . . . . . . 133
Pulse Train Output Function File Sub-Elements Summary . . . 134
PWM - Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . . 149
PWM Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Pulse Width Modulation (PWM) Function File . . . . . . . . . . . . 150
Pulse Width Modulated Function File Elements Summary . . . 152
Chapter 6
Relay-Type (Bit) Instructions XIC - Examine if Closed
XIO - Examine if Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
OTE - Output Energize. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
OTL - Output Latch
OTU - Output Unlatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
ONS - One Shot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
OSR - One Shot Rising
OSF - One Shot Falling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Chapter 7
Timer and Counter
Instructions
Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . 167
TON - Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
TOF - Timer, Off-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
RTO - Retentive Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . 173
How Counters Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
CTU - Count Up
CTD - Count Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
RES - Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Chapter 8
Compare Instructions Using the Compare Instructions . . . . . . . . . . . . . . . . . . . . . . 180
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive