![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/6d/36dd580f-a169-498b-8bdb-2c7ef252abe4/36dd580f-a169-498b-8bdb-2c7ef252abe4-bg72.png)
6F3B0253
112 T1-16S User’s Manual
7. Instructions
Program control instructions
FUN
No.
Name Expression Function Steps
Speed
(µs)
Page
128 Subroutine call
−[ CALL N. n ]−
Calls the subroutine number n.
2 203
129 Subroutine
return
−−[ RET ]−
Indicates the end of a
subroutine.
1
21.0
(in a
pair)
204
132 FOR
−[ FOR n ]−
When the input of FOR is ON,
executes the segment from
2 205
133 NEXT
−[ NEXT ]−
FOR to NEXT the number of
times specified by n.
1
22.0
(in a
pair)
206
137 Subroutine
entry
−[ SUBR (n) ]−−
Indicates the start of the
subroutine number n.
2
included
in CALL
207
140 Enable
interrupt
−[ EI ]−
Enables execution of interrupt
program.
1 208
141 Disable
interrupt
−[ DI ]−
Disables execution of interrupt
program.
1
27.6
(in a
pair)
209
142 Interrupt return
−−[ IRET ]−
Indicates the end of an interrupt
program.
1 1.4 210
143 Watchdog
timer reset
−[ WDT n ]−
Extends the scan time over
detection time.
2 16.1 211
144 Step sequence
initialize
−[ STIZ (n) A ]−
Resets OFF the n
devices stating with
A, and sets ON A.
3
59.9 -
65.0
212
145 Step sequence
input
−[ STIN A ]−
Turns ON output if
input is ON and A is
ON.
2 27.0 213
146 Step sequence
output
−[ STOT A ]−
When input is ON,
resets OFF the
devices of STIN on
the same rung, and
sets ON A.
These
configure
a series
of step
sequence
2
27.0 -
119.0
214
RAS
FUN
No.
Name Expression Function Steps
Speed
(µs)
Page
154 Set calendar
−[ A CLND ]−
Sets 6 registers data starting
with A into clock/calendar.
2 217
155 Calendar
operation
−[ A CLDS B ]−
Calculates difference between
present date & time and past
date & time stored in 6 registers
starting with A, and stores the
result in 6 registers starting with
B.
3 218