22.07.2013 Views

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

SHOW MORE
SHOW LESS

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 />

Floating-Point Math (32 Bits)<br />

The result of the math instruction is in ACCU1. The execution time<br />

of the instruction depends on the value to be calculated.<br />

<strong>Instruction</strong><br />

Address<br />

Identifier<br />

Description<br />

+R – Add 2 real numbers (32 bits)<br />

(ACCU1)= (ACCU2)+(ACCU1)<br />

–R – Subtract 1 real number from<br />

another (32 bits)<br />

(ACCU1)= (ACCU2)–(ACCU1)<br />

*R – Multiply 1 real number by another<br />

(32 bits)<br />

(ACCU1)=(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 < 60 < 50 < 35 0.6<br />

1 < 60 < 50 < 35 0.6<br />

1 < 60 < 50 < 35 1.4<br />

/R – Divide 1 real number by another<br />

(32 bits)<br />

(ACCU1)=(ACCU2):(ACCU1)<br />

1 < 60 < 50 < 40 2.1<br />

Status word <strong>for</strong>: +R, –R, *R, /R 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 />

NEGR – Negate the real number in ACCU1 1 0.7 1.0 0.3 0.1<br />

ABS – Form the absolute value of the real<br />

number in ACCU1<br />

1 0.7 0.4 0.3 0.1<br />

Status word <strong>for</strong>: NEGR, ABS BR CC 1 CC 0 OV OS OR STA RLO FC<br />

<strong>Instruction</strong> depends on: – – – – – – – – –<br />

<strong>Instruction</strong> affects: – – – – – – – – –<br />

110<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 />

111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!