![Allen-Bradley MicroLogix 1400 Скачать руководство пользователя страница 315](http://html1.mh-extra.com/html/allen-bradley/micrologix-1400/micrologix-1400_instruction-manual_2900205315.webp)
Publication 1766-RM001A-EN-P - October 2008
Using Interrupts
313
STS - Selectable Timed
Start
Instruction Type: output
The STS instruction can be used to start and stop the STI function or to
change the time interval between STI user interrupts. The STI instruction
has one operand:
•
Time -
This is the amount of time (in milliseconds) which must
expire prior to executing the selectable timed user interrupt. A value
of zero disables the STI function. The time range is from 0…65,535
milliseconds.
The STS instruction applies the specified set point to the STI function as
follows:
•
If a zero set point is specified, the STI is disabled and STI:0/TIE is
cleared (0).
•
If the STI is disabled (not timing) and a value greater than 0 is
entered into the set point, the STI starts timing to the new set point
and STI:0/TIE is set (1).
•
If the STI is currently timing and the set point is changed, the new
setting takes effect immediately and the STI continues to time until it
reaches the new set point.
Note that if the new setting is less than the current accumulated
time, the STI times-out immediately. For example, if the STI has
been timing for 15 microseconds, and the STI set point is changed
from 20 microseconds to 10 microseconds, an STI user interrupt
occurs at the next start-of-rung.
Addressing Modes and File Types can be used as shown below:
STS
Selectable Timed Start
Time
1
STS
Execution Time for the STS Instruction
Controller
When Rung Is:
True
False
MicroLogix 1400
20.8470 µs
0.2125 µs
STS 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 - Comms
IO
S -
I/O
DL
S
-
D
a
ta
L
o
g
Address
(1)
Mode
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG,
PD
RI/R
IX
PL
S
RTC
HS
C
PTOX
, PWMX
STI
EII
BH
I
MMI
LC
D
Imme
diate
Di
re
c
t
Indir
e
c
t
Eleme
n
t
Bi
t
Wo
rd
Long
W
o
rd
Time
•
•
•
•
•
•
•
•
•
•
(1) See Important note about indirect addressing.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive