Publication 1766-RM001A-EN-P - October 2008
102
Using the High-Speed Counter and Programmable Limit Switch
High-Speed Counter
Function File
Sub-Elements Summary
The HSC is comprised of 36 sub-elements. These sub-elements are either
bit, word, or long word structures that are used to provide control over
the HSC function, or provide HSC status information for use within the
control program. Each of the sub-elements and their respective functions
are described in this chapter. A summary of the sub-elements is provided
in the following table. All examples illustrate HSC0.
High-Speed Counter Function File (HSC:0, HSC:1, HSC:2, HSC3, HSC4 or HSC5)
Sub-Element Description
Address
Data Format
HSC
Modes
(1)
Functio
n
User Program
Access
For More
Information
PFN - Program File Number
HSC:0.PFN
word (INT)
0…9
control
read only
ER - Error Code
HSC:0.ER
word (INT)
0…9
status
read only
UIX - User Interrupt Executing
HSC:0/UIX
bit
0…9
status
read only
UIE - User Interrupt Enable
HSC:0/UIE
bit
0…9
control
read/write
UIL - User Interrupt Lost
HSC:0/UIL
bit
0…9
status
read/write
UIP - User Interrupt Pending
HSC:0/UIP
bit
0…9
status
read only
FE - Function Enabled
HSC:0/FE
bit
0…9
control
read/write
AS - Auto Start
HSC:0/AS
bit
0…9
control
read only
ED - Error Detected
HSC:0/ED
bit
0…9
status
read only
CE - Counting Enabled
HSC:0/CE
bit
0…9
control
read/write
SP - Set Parameters
HSC:0/SP
bit
0…9
control
read/write
LPM - Low Preset Mask
HSC:0/LPM
bit
2…9
control
read/write
HPM - High Preset Mask
HSC:0/HPM
bit
0…9
control
read/write
UFM - Underflow Mask
HSC:0/UFM
bit
2…9
control
read/write
OFM - Overflow Mask
HSC:0/OFM
bit
0…9
control
read/write
LPI - Low Preset Interrupt
HSC:0/LPI
bit
2…9
status
read/write
HPI - High Preset Interrupt
HSC:0/HPI
bit
0…9
status
read/write
UFI - Underflow Interrupt
HSC:0/UFI
bit
2…9
status
read/write
OFI - Overflow Interrupt
HSC:0/OFI
bit
0…9
status
read/write
LPR - Low Preset Reached
HSC:0/LPR
bit
2…9
status
read only
HPR - High Preset Reached
HSC:0/HPR
bit
2…9
status
read only
DIR - Count Direction
HSC:0/DIR
bit
0…9
status
read only
UF - Underflow
HSC:0/UF
bit
0…9
status
read/write
OF - Overflow
HSC:0/OF
bit
0…9
status
read/write
MD - Mode Done
HSC:0/MD
bit
0 or 1
status
read/write
CD - Count Down
HSC:0/CD
bit
2…9
status
read only
CU - Count Up
HSC:0/CU
bit
0…9
status
read only
MOD - HSC Mode
HSC:0.MOD
word (INT)
0…9
control
read only
ACC - Accumulator
HSC:0.ACC
long word (32-bit INT)
0…9
control
read/write
HIP - High Preset
HSC:0.HIP
long word (32-bit INT)
0…9
control
read/write
LOP - Low Preset
HSC:0.LOP
long word (32-bit INT)
2…9
control
read/write
OVF - Overflow
HSC:0.OVF
long word (32-bit INT)
0…9
control
read/write
UNF - Underflow
HSC:0.UNF
long word (32-bit INT)
2…9
control
read/write
OMB - Output Mask Bits
HSC:0.OMB
word (16-bit binary)
0…9
control
read only
HPO - High Preset Output
HSC:0.HPO
word (16-bit binary)
0…9
control
read/write
LPO - Low Preset Output
HSC:0.LPO
word (16-bit binary)
2…9
control
read/write
(1) For Mode descriptions, see HSC Mode (MOD) on page 116.
n/a = not applicable
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive