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 103
ER - Error Code HSC:0.ER word (INT) 0…9 status read only 103
UIX - User Interrupt Executing HSC:0/UIX bit 0…9 status read only 106
UIE - User Interrupt Enable HSC:0/UIE bit 0…9 control read/write 106
UIL - User Interrupt Lost HSC:0/UIL bit 0…9 status read/write 107
UIP - User Interrupt Pending HSC:0/UIP bit 0…9 status read only 107
FE - Function Enabled HSC:0/FE bit 0…9 control read/write 104
AS - Auto Start HSC:0/AS bit 0…9 control read only 104
ED - Error Detected HSC:0/ED bit 0…9 status read only 104
CE - Counting Enabled HSC:0/CE bit 0…9 control read/write 105
SP - Set Parameters HSC:0/SP bit 0…9 control read/write 105
LPM - Low Preset Mask HSC:0/LPM bit 2…9 control read/write 108
HPM - High Preset Mask HSC:0/HPM bit 0…9 control read/write 110
UFM - Underflow Mask HSC:0/UFM bit 2…9 control read/write 111
OFM - Overflow Mask HSC:0/OFM bit 0…9 control read/write 114
LPI - Low Preset Interrupt HSC:0/LPI bit 2…9 status read/write 108
HPI - High Preset Interrupt HSC:0/HPI bit 0…9 status read/write 110
UFI - Underflow Interrupt HSC:0/UFI bit 2…9 status read/write 112
OFI - Overflow Interrupt HSC:0/OFI bit 0…9 status read/write 114
LPR - Low Preset Reached HSC:0/LPR bit 2…9 status read only 109
HPR - High Preset Reached HSC:0/HPR bit 2…9 status read only 111
DIR - Count Direction HSC:0/DIR bit 0…9 status read only 115
UF - Underflow HSC:0/UF bit 0…9 status read/write 111
OF - Overflow HSC:0/OF bit 0…9 status read/write 112
MD - Mode Done HSC:0/MD bit 0 or 1 status read/write 115
CD - Count Down HSC:0/CD bit 2…9 status read only 115
CU - Count Up HSC:0/CU bit 0…9 status read only 116
MOD - HSC Mode HSC:0.MOD word (INT) 0…9 control read only 116
ACC - Accumulator HSC:0.ACC long word (32-bit INT) 0…9 control read/write 125
HIP - High Preset HSC:0.HIP long word (32-bit INT) 0…9 control read/write 125
LOP - Low Preset HSC:0.LOP long word (32-bit INT) 2…9 control read/write 125
OVF - Overflow HSC:0.OVF long word (32-bit INT) 0…9 control read/write 126
UNF - Underflow HSC:0.UNF long word (32-bit INT) 2…9 control read/write 126
OMB - Output Mask Bits HSC:0.OMB word (16-bit binary) 0…9 control read only 127
HPO - High Preset Output HSC:0.HPO word (16-bit binary) 0…9 control read/write 129
LPO - Low Preset Output HSC:0.LPO word (16-bit binary) 2…9 control read/write 129
(1) For Mode descriptions, see HSC Mode (MOD) on page 116.
n/a = not applicable
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive