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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
List of <strong>Instruction</strong>s List of <strong>Instruction</strong>s<br />
Integer Math (16 Bits)<br />
Math instructions on two 16-bit words. The result is in ACCU1 and<br />
ACCU1-L, resp.<br />
<strong>Instruction</strong><br />
Address<br />
Identifier<br />
Description<br />
+I – Add 2 integers (16 bits)<br />
(ACCU1-L)=(ACCU1-L)+<br />
(ACCU2-L)<br />
–I – Subtract 1 integer from another<br />
(16 bits)<br />
(ACCU1-L)=(ACCU2-L)–<br />
(ACCU1-L)<br />
*I – Multiply 1 integer by another<br />
(16 bits)<br />
(ACCU1)=(ACCU2-L)*<br />
(ACCU1-L)<br />
/I – Divide 1 integer by another<br />
(16 bits)<br />
(ACCU1-L)=<br />
(ACCU2-L):(ACCU1-L)<br />
The remainder is in ACCU1-H<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 2.4 1.5 1.5 0.1<br />
1 2.6 1.8 1.6 0.1<br />
1 3.6 2.1 2.4 0.8<br />
1 5.0 3.2 3.4 0.8<br />
Status word <strong>for</strong>: +I, –I,*I, /I 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 />
106<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 />
107