Programming language, Prosec t2n – Toshiba T2N User Manual
Page 253

5. Programming Language
240
PROSEC T2N
(A) SCH (n) (B)
→
(C)
(A) PUSH (n) (B)
→
(C)
(A) POPL (n) (B)
→
(C)
(A) POPF (n) (B)
→
(C)
S F/F Q
R (A)
U U/D Q
C
E (A)
Ladder Diagram Instructions (Function Instructions)
Group
FUN
No.
Name
Representation
Summary
Number of
steps
required
Execution
time
required
(
µ
s)
Remarks
Special data
processing
124
Data search
Searches through data table of n words headed by
(B) for data matching the contents of (A). Stores the
number of matches in (C), and stores the lowest
register address of the matching registers in (C)+1.
5~6
176
125
Push
Pushes the data in (A) into the table of n words
headed by (C), and increments the value of (B) by 1.
5~6
147
126
Pop last
Takes out the data pushed in last to the table of n
words headed by (A) and stores it in (C). Also
decrements the value of (B) by 1.
5
143
127
Pop first
Takes out from the table of n words headed by (A)
the data which was pushed in first, and stores it in
(C). Also decrements the value of (B) by 1.
5
133
147
Flip-flop
When the set input (S) is ON, the instruction sets the
device (A) to ON; when the reset input (R) is ON, it
resets the device (A) to OFF. (Reset takes priority)
2
73
149
Up-down counter
If the enable input (E) is ON, the instruction counts
the number of times the count input (C) has come
ON and stores it in the counter register (A). The
selection of the count direction
(increment/decrement) is made according to the state
of the up/down selection input (U) (see below).
ON: UP count (increment)
OFF: DOWN count (decrement)
2
59