Instruction list for S7-300 - DCE FEL ČVUT v Praze
Instruction list for S7-300 - DCE FEL ČVUT v Praze
Instruction list for S7-300 - DCE FEL ČVUT v Praze
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
List of <strong>Instruction</strong>s List of <strong>Instruction</strong>s<br />
Integer Math (32 Bits)<br />
Math instructions on two 32-bit words. The result is in ACCU1.<br />
<strong>Instruction</strong><br />
Address<br />
Identifier<br />
Description<br />
+D – Add 2 integers (32 bits)<br />
(ACCU1)=(ACCU2)+<br />
(ACCU1)<br />
–D – Subtract 1 integer from another<br />
(32 bits)<br />
(ACCU1)=(ACCU2)–<br />
(ACCU1)<br />
*D – Multiply 1 integer by another<br />
(32 bits)<br />
(ACCU1)=(ACCU2)*<br />
(ACCU1)<br />
/D – Divide 1 integer by another<br />
(32 bits)<br />
(ACCU1)=(ACCU2):<br />
(ACCU1)<br />
MOD – Divide 1 integer by another<br />
(32 bits) and load the remainder<br />
into ACCU1:<br />
(ACCU1)=remainder of<br />
[(ACCU2):(ACCU1)]<br />
Length<br />
in<br />
Words<br />
CPU 318–2: ACCU3 and ACCU4 are then transferred to ACCU2<br />
and ACCU3.<br />
312*/313 314/314*<br />
Typical Execution Time in s<br />
315/315-2/<br />
316-2<br />
318-2<br />
1 3.1 1.8 2.0 0.1<br />
1 4.0 2.3 2.7 0.1<br />
1 13.5 8.2 9.9 1.3<br />
1 14.8 6.5 10.8 1.3<br />
1 15.5 6.4 11.3 1.3<br />
Status word <strong>for</strong>: +D, –D,*D, /D, MOD BR CC 1 CC 0 OV OS OR STA RLO FC<br />
<strong>Instruction</strong> depends on: – – – – – – – – –<br />
<strong>Instruction</strong> affects: – Yes Yes Yes Yes – – – –<br />
108<br />
<strong>S7</strong>-<strong>300</strong> <strong>Instruction</strong> List <strong>S7</strong>-<strong>300</strong> <strong>Instruction</strong> List<br />
EWA 4NEB 710 6087-02 EWA 4NEB 710 6087-02<br />
109