6F3B0250
Basic Hardware and Function
129
7. Instructions
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
108 Unsigned
greater than
-
[
A U> B ]
-
Turns ON output if
A
>
B.
(Unsigned integer compare)
3
Ö
208
109 Unsigned
greater than or
equal
-
[
A U>= B ]
-
Turns ON output if
A
³
B.
(Unsigned integer compare)
3
Ö
209
110 Unsigned
equal
-
[
A U= B ]
-
Turns ON output if
A
=
B.
(Unsigned integer compare)
3
Ö
210
111 Unsigned
not equal
-
[
A U<> B ]
-
Turns ON output if
A
¹
B.
(Unsigned integer compare)
3
Ö
211
112 Unsigned
less than
-
[
A U< B ]
-
Turns ON output if
A
<
B.
(Unsigned integer compare)
3
Ö
212
113 Unsigned
less than or
equal
-
[
A U<= B ]
-
Turns ON output if
A
£
B.
(Unsigned integer compare)
3
Ö
213
Special data processing
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
114 Device/register
set
-
[ SET
A ]
-
If
A is a device:
Sets device
A to ON.
2
4.2
Ö
Ö
214
If
A is a register:
Stores HFFFF in register
A.
115 Device/register
reset
-
[ RST
A ]
-
If
A is a device:
Resets device
A to OFF.
2
4.2
Ö
Ö
215
If
A is a register:
Stores 0 in register
A.
118 Set carry
-
[ SETC ]
-
Sets the carry flag to ON.
1
4.2
Ö
Ö
216
119 Reset carry
-
[ RSTC ]
-
Resets the carry flag to OFF.
1
4.2
Ö
Ö
217
120 Encode
-
[
A ENC (n) B ]
-
Finds the uppermost ON bit
position in the bit file of size 2
n
bits starting with register
A, and
stores it in
B.
4
57.0 -
141.4
Ö
Ö
218
121 Decode
-
[
A DEC (n) B ]
-
In the bit file of size 2
n
bits
starting with register
B, sets ON
the bit position indicated by lower
n bits of A, and resets OFF all
other bits.
4
69.5 -
99.1
Ö
Ö
219
122 Bit count
-
[
A BC B ]
-
Counts the number of ON bits of
A and stores it in B.
3
Ö
220
147 Flip-flop
S F/F Q
R
A
Sets ON device
A when set input
(S) is ON, and resets OFF device
A when reset input (R) is ON.
(Reset takes priority)
2
26.7
Ö
Ö
233
149 Up-down
counter
U U/D Q
C
E
A
While enable input (E) is ON,
counts up or down the number of
cycles the count input (C) comes
ON, depending on the up/down
select input (U).
Up when U is ON, down when U
is OFF.
2
30.1
Ö
Ö
234
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: [email protected]