Publication 1762-RM001C-EN-P
Table of Contents ii
Chapter 5
Using the High-Speed
Counter
High-Speed Counter (HSC) Function File . . . . . . . . . . . . . . . 5-2
High-Speed Counter Function File Sub-Elements Summary . . 5-4
HSC Function File Sub-Elements. . . . . . . . . . . . . . . . . . . . . . 5-5
HSL - High-Speed Counter Load . . . . . . . . . . . . . . . . . . . . . 5-26
RAC - Reset Accumulated Value . . . . . . . . . . . . . . . . . . . . . 5-27
Chapter 6
Using High-Speed Outputs PTO - Pulse Train Output. . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Pulse Train Output Function. . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Pulse Train Outputs (PTO) Function File. . . . . . . . . . . . . . . . 6-6
Pulse Train Output Function File Sub-Elements Summary . . . 6-7
PWM - Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . 6-18
PWM Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-18
Pulse Width Modulation (PWM) Function File . . . . . . . . . . . 6-19
Pulse Width Modulated Function File Elements Summary . . 6-20
Chapter 7
Relay-Type (Bit) Instructions XIC - Examine if Closed
XIO - Examine if Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
OTE - Output Energize. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
OTL - Output Latch, OTU - Output Unlatch . . . . . . . . . . . . . 7-4
ONS - One Shot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
OSR - One Shot Rising, OSF - One Shot Falling. . . . . . . . . . . 7-6
Chapter 8
Timer and Counter
Instructions
Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . 8-1
TON - Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
TOF - Timer, Off-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5
RTO - Retentive Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . 8-6
How Counters Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7
CTU - Count Up, CTD - Count Down . . . . . . . . . . . . . . . . . . 8-9
RES - Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-10
Chapter 9
Compare Instructions Using the Compare Instructions . . . . . . . . . . . . . . . . . . . . . . 9-2
EQU - Equal, NEQ - Not Equal . . . . . . . . . . . . . . . . . . . . . . . 9-3
GRT - Greater Than, LES - Less Than . . . . . . . . . . . . . . . . . . 9-4
GEQ - Greater Than or Equal To, LEQ - Less Than or Equal To 9-5
MEQ - Mask Compare for Equal . . . . . . . . . . . . . . . . . . . . . . 9-6
LIM - Limit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7