Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation
Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation
Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
7. Instructions<br />
Arithmetic operations<br />
FUN<br />
No.<br />
Name Expression Function Steps Speed<br />
(µs)<br />
Page<br />
027 Addition −[ A + B → C ]− Adds data of A and B, and<br />
stores the result in C.<br />
4 6.5 143<br />
028 Subtraction −[ A - B → C ]− Subtracts data of B from A,<br />
and stores the result in C.<br />
4 6.5 144<br />
029 Multiplication −[ A ∗ B → C+1⋅C ]− Multiplies data of A and B,<br />
and stores the result in<br />
double-length register C+1⋅C.<br />
4 8.8 145<br />
030 Division −[ A / B → C ]− Divides data of A by B, and<br />
stores the quotient in C and<br />
the reminder in C+1.<br />
4 9.7 146<br />
031 Double-word −[ A+1⋅A D+ B+1⋅B → C+1⋅C ]− Adds data of A+1⋅A and<br />
addition<br />
B+1⋅B, and stores the result<br />
in C+1⋅C.<br />
4 11.6 147<br />
032 Double-word −[ A+1⋅A D- B+1⋅B → C+1⋅C ]− Subtracts data of B+1⋅B from<br />
subtraction<br />
A+1⋅A, and stores the result<br />
in C+1⋅C.<br />
4 11.7 148<br />
035 Addition with −[ A +C B → C ]− Adds data of A, B and the<br />
carry<br />
carry, and stores the result in<br />
C. The carry flag changes<br />
according to the result.<br />
4 9.7 149<br />
036 Subtraction −[ A -C B → C ]− Subtracts data of B and the<br />
with carry<br />
carry from A, and stores the<br />
result in C. The carry flag<br />
changes according to the<br />
result.<br />
4 9.7 150<br />
039 Unsigned −[ A U∗ B → C+1⋅C ]− Multiplies data of A and B,<br />
multiplication<br />
and stores the result in<br />
double-length register C+1⋅C.<br />
(Unsigned integer operation)<br />
4 151<br />
040 Unsigned −[ A U/ B → C ]− Divides data of A by B, and<br />
division<br />
stores the quotient in C and<br />
the reminder in C+1.<br />
(Unsigned integer operation)<br />
4 152<br />
041 Unsigned −[ A+1⋅A DIV B → C ]− Divides data of A+1⋅A by B,<br />
double/single<br />
division<br />
and stores the quotient in C<br />
and the reminder in C+1.<br />
(Unsigned integer operation)<br />
4 15.3 153<br />
043 Increment −[ +1 A ]− Increments data of A by 1. 2 4.6 154<br />
044 Decrement −[ -1 A ]− Decrements data of A by 1. 2 4.6 155<br />
108 <strong>T1</strong>-<strong>16S</strong> User’s <strong>Manual</strong><br />
6F3B0253<br />
<strong>CTi</strong> <strong>Automation</strong> - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net