6F3B0250
130
T1/T1S User’s Manual
7. Instructions
Program control instructions
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
128 Subroutine call
-
[ CALL N.
n ]
-
Calls the subroutine number
n.
2
21.0
Ö
Ö
221
129 Subroutine
return
ú--
[ RET ]
-ê
Indicates the end of a
subroutine.
1
(in a
pair)
Ö
Ö
222
132 FOR
-
[ FOR
n ]
-
When the input of FOR is ON,
executes the segment from
2
22.0
(in a
Ö
Ö
223
133 NEXT
-
[ NEXT ]
-
FOR to NEXT the number of
times specified by
n.
1
pair)
Ö
Ö
224
137 Subroutine
entry
ú-
[ SUBR (
n) ]
--ê
Indicates the start of the
subroutine number
n.
2
included
in CALL
Ö
Ö
225
140 Enable interrupt
-
[ EI ]
-
Enables execution of interrupt
program.
1
27.6
(in a
Ö
Ö
226
141 Disable
interrupt
-
[ DI ]
-
Disables execution of interrupt
program.
1
pair)
Ö
Ö
227
142 Interrupt return
ú--
[ IRET ]
-ê
Indicates the end of an interrupt
program.
1
1.4
Ö
Ö
228
143 Watchdog timer
reset
-
[ WDT
n ]
-
Extends the scan time over
detection time.
2
16.1
Ö
Ö
229
144 Step sequence
initialize
-
[ STIZ (
n) A ]
-
Resets OFF the
n
devices stating with
A, and sets ON A.
These
configure
a series
3
59.9 -
65.0
Ö
Ö
230
145 Step sequence
input
-
[ STIN
A ]
-
Turns ON output if
input is ON and
A is
ON.
of step
sequence
2
27.0
Ö
Ö
231
146 Step sequence
output
-
[ STOT
A ]
-ê
When input is ON,
resets OFF the
devices of STIN on
the same rung, and
sets ON
A.
2
27.0 -
119.0
Ö
Ö
232
RAS
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
154 Set calendar
-
[
A CLND ]
-
Sets 6 registers data starting
with
A into clock/calendar.
2
Ö
235
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
Ö
236
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: [email protected]