Statement List (STL) - DCE FEL ČVUT v Praze
Statement List (STL) - DCE FEL ČVUT v Praze
Statement List (STL) - 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.
Contents<br />
8 Floating-Point Math Instructions 8-1<br />
8.1 Overview of Floating-Point Math Instructions................................................... 8-1<br />
8.2 Evaluating the Bits of the Status Word with Floating-Point Math Instructions.. 8-2<br />
8.3 Floating-Point Math Instructions: Basic ............................................................ 8-3<br />
8.3.1 +R Add ACCU 1 and ACCU 2 as a Floating-Point Number<br />
(32-Bit IEEE-FP) ...............................................................................................8-3<br />
8.3.2 -R Subtract ACCU 1 from ACCU 2 as a Floating-Point Number<br />
(32-Bit IEEE-FP) ...............................................................................................8-5<br />
8.3.3 *R Multiply ACCU 1 and ACCU 2 as Floating-Point Numbers<br />
(32-Bit IEEE-FP) ...............................................................................................8-7<br />
8.3.4 /R Divide ACCU 2 by ACCU 1 as a Floating-Point Number<br />
(32-Bit IEEE-FP) ...............................................................................................8-8<br />
8.3.5 ABS Absolute Value of a Floating-Point Number (32-Bit IEEE-FP) ..............8-9<br />
8.4 Floating-Point Math Instructions: Extended.................................................... 8-10<br />
8.4.1 SQR Generate the Square of a Floating-Point Number (32-Bit) .................8-10<br />
8.4.2 SQRT Generate the Square Root of a Floating-Point Number (32-Bit) ......8-11<br />
8.4.3 EXP Generate the Exponential Value of a Floating-Point Number (32-Bit) 8-12<br />
8.4.4 LN Generate the Natural Logarithm of a Floating-Point Number (32-Bit) ...8-13<br />
8.4.5 SIN Generate the Sine of Angles as Floating-Point Numbers (32-Bit)........8-14<br />
8.4.6 COS Generate the Cosine of Angles as Floating-Point Numbers (32-Bit)..8-15<br />
8.4.7 TAN Generate the Tangent of Angles as Floating-Point Numbers (32-Bit) 8-16<br />
8.4.8 ASIN Generate the Arc Sine of a Floating-Point Number (32-Bit) ..............8-17<br />
8.4.9 ACOS Generate the Arc Cosine of a Floating-Point Number (32-Bit).........8-18<br />
8.4.10 ATAN Generate the Arc Tangent of a Floating-Point Number (32-Bit) .......8-19<br />
9 Load and Transfer Instructions 9-1<br />
9.1 Overview of Load and Transfer Instructions..................................................... 9-1<br />
9.2 L Load............................................................................................................ 9-2<br />
9.3 L STW Load Status Word into ACCU 1......................................................... 9-4<br />
9.4 LAR1 Load Address Register 1 from ACCU 1 .............................................. 9-5<br />
9.5 LAR1 Load Address Register 1 with Double Integer (32-Bit Pointer).... 9-6<br />
9.6 LAR1 AR2 Load Address Register 1 from Address Register 2..................... 9-7<br />
9.7 LAR2 Load Address Register 2 from ACCU 1 .............................................. 9-7<br />
9.8 LAR2 Load Address Register 2 with Double Integer (32-Bit Pointer).... 9-8<br />
9.9 T Transfer ...................................................................................................... 9-9<br />
9.10 T STW Transfer ACCU 1 into Status Word ................................................. 9-10<br />
9.11 CAR Exchange Address Register 1 with Address Register 2 ..................... 9-11<br />
9.12 TAR1 Transfer Address Register 1 to ACCU 1 ........................................... 9-11<br />
9.13 TAR1 Transfer Address Register 1 to Destination (32-Bit Pointer)..... 9-12<br />
9.14 TAR1 AR2 Transfer Address Register 1 to Address Register 2 ................. 9-13<br />
9.15 TAR2 Transfer Address Register 2 to ACCU 1 ........................................... 9-13<br />
9.16 TAR2 Transfer Address Register 2 to Destination (32-Bit Pointer)..... 9-14<br />
10 Program Control Instructions 10-1<br />
10.1 Overview of Program Control Instructions...................................................... 10-1<br />
10.2 BE Block End............................................................................................... 10-2<br />
10.3 BEC Block End Conditional ......................................................................... 10-3<br />
10.4 BEU Block End Unconditional ..................................................................... 10-4<br />
10.5 CALL Block Call........................................................................................... 10-5<br />
10.6 Call FB ............................................................................................................ 10-7<br />
10.7 Call FC............................................................................................................ 10-9<br />
10.8 Call SFB........................................................................................................ 10-11<br />
10.9 Call SFC ....................................................................................................... 10-13<br />
<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />
A5E00706960-01 ix