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

5. Programming Language
230
PROSEC T2N
(A) +1·(A) D
✳
·(B) +1· (B)
→
(C)+1·(C)
(A) +1·(A) D/·(B) +1· (B)
→
(C)+1·(C)
(A) +C (B)
→
(C)
(A) –C (B)
→
(C)
(A) +1·(A) D+C (B) +1·(B)
→
(C)+1·(C)
(A) +1·(A) D-C (B) +1·(B)
→
(C)+1·(C)
(A) U
✳
(B)
→
(C) +1·(C)
(A) U/ (B)
→
(C)
(A)+1·(A) DIV (B)
→
(C)
+ 1 (A)
D + 1 (A) + 1·(A)
–1 (A)
D – 1 (A) +1·(A)
Ladder Diagram Instructions (Function Instructions)
Group
FUN
No.
Name
Representation
Summary
Number of
steps
required
Execution
time
required
(
µ
s)
Remarks
Arithmetic
operations
33
Double-length
multiplication
Multiplies the contents of (A)+1•(A) by the contents
of (B)+1•(B), and stores the result in (C)+1, (C)+2,
(C)+1•(C).
4~8
184
34
Double-length division
Divides the contents of (A)+1 and (A) by the contents
of (B)+1•(B), and stores the quotient in (C)+1•(C)
and the remainder in (C)+4•(C)+3.
4~8
170
35
Addition with carry
Adds the contents of the carry flag and the contents
of (B) to the contents of (A), and stores the result in
(C). The carry flag changes according to the
operation result.
4~6
87
36
Subtraction with carry
Subtracts the contents of (B) and the contents of the
carry flag from the contents of (A), and stores the
result in (C). The carry flag changes according to the
operation result.
4~6
87
37
Double-length addition with
carry
Adds the contents of the carry flag to the contents of
(A)+1•(A) and the contents of (B)+1•(B), and
stores the result in (C)+1•C). The carry flag
changes according to the operation result.
4~8
125
38
Double-length subtraction
with carry
Subtracts the contents of (B)+1•(B) plus the
contents of the carry flag from the contents of (A)+1
and (A), and stores the result in (C)+1•(C). The
carry flag changes according to the operation result.
4~8
124
39
Unsigned multiplication
Multiplies the contents of (A) by the contents of (B),
and stores the result in (C)+1 (unsigned integer
calculation).
4~6
82
40
Unsigned division
Divides the contents of (A) by the contents of (B),
and stores the quotient in (C), and the remainder in
(C)+1 (unsigned integer operation).
4~6
85
41
Unsigned double/single
division
Divides the contents of (A)+1•(A) by the contents of
(B), stores the quotient in (C), and the remainder in
(C)+1 (unsigned integer operation).
4~7
111
43
Increment
Increments the contents of (A) by 1.
2
52
44
Double-length increment
Increments the contents of (A)+1 and (A) by1.
2
81
45
Decrement
Decrements the contents of (A) by 1.
2
52
46
Double-length decrement
Decrements the contents of (A)+1•(A) by just 1.
2
81