Publication 1766-RM001A-EN-P - October 2008
130
Using the High-Speed Counter and Programmable Limit Switch
HSL - High-Speed
Counter Load
Instruction Type: output
The HSL (High-Speed Load) instruction allows the high and low presets,
and high and low output source to be applied to a high-speed counter.
These parameters are described below:
•
Counter Number - Specifies which high-speed counter is being
used; 0 = HSC0, 1 = HSC1, 2 = HSC2, 3 = HSC3, 4 = HSC4 and 5 =
HSC5
•
High Preset - Specifies the value in the high preset register. The data
ranges for the high preset are -32768…32767 (word) and
-2,147,483,648…2,147,483,647 (long word).
•
Low Preset - Specifies the value in the low preset register. The data
ranges for the low preset are -32768…32767 (word) and
-2,147,483,648…2,147,483,647 (long word).
•
Output High Source - Specifies the value in the HPO - high preset
output register. The data range for the output high source is from
0…65,535.
•
Output Low Source - Specifies the value in the LPO - low preset
output register. The data range for the output low source is from
0…65,535.
Valid Addressing Modes and File Types are shown below:
HSL
High Speed Counter Load
HSC Number
HSC0
High Preset
N7:0
Low Preset
N7:1
Output High Source
N7:2
Output Low Source
N7:3
HSL
Controller
Data Size
Execution Time When Rung Is:
True
False
MicroLogix 1400
word
18.8260 µs
0.2910 µs
long word
18.6510 µs
0.4690 µs
HSL Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 92.
Parameter
Data Files
Function Files
CS - Comm
s
IOS - I/O
DLS - Da
ta
Lo
g
Address
Mode
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO
X
, PW
MX
STI
EII
BHI
MMI
LCD
Immediate
D
ir
ect
In
dir
ect
Bit
Wo
rd
Lo
ng W
o
rd
E
lemen
t
Counter Number
•
•
High Preset
•
•
•
•
•
•
•
•
•
•
•
•
Low Preset
•
•
•
•
•
•
•
•
•
•
•
•
Output High Source
•
•
•
•
•
•
•
•
•
•
•
•
Output Low Source
•
•
•
•
•
•
•
•
•
•
•
•
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive