Siemens Simatic S7-300 Service Manual Page 43

  • Download
  • Add to my manuals
  • Print
  • Page
    / 272
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 42
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
3-1
3 Conversion Instructions
3.1 Overview of Conversion Instructions
Description
You can use the following instructions to convert binary coded decimal numbers and
integers to other types of numbers:
BTI BCD to Integer (16-Bit)
ITB Integer (16-Bit) to BCD
BTD BCD to Integer (32-Bit)
ITD Integer (16-Bit) to Double Integer (32-Bit)
DTB Double Integer (32-Bit) to BCD
DTR Double Integer (32-Bit) to Floating-Point (32-Bit IEEE-FP)
You can use one of the following instructions to form the complement of an integer or
to invert the sign of a floating-point number:
INVI Ones Complement Integer (16-Bit)
INVD Ones Complement Double Integer (32-Bit)
NEGI Twos Complement Integer (16-Bit)
NEGD Twos Complement Double Integer (32-Bit)
NEGR Negate Floating-Point Number (32-Bit, IEEE-FP)
You can use the following Change Bit Sequence in Accumulator 1 instructions to
reverse the order of bytes in the low word of accumulator 1 or in the entire
accumulator:
CAW Change Byte Sequence in ACCU 1-L (16-Bit)
CAD Change Byte Sequence in ACCU 1 (32-Bit)
You can use any of the following instructions to convert a 32-bit IEEE floating-point
number in accumulator 1 to a 32-bit integer (double integer). The individual
instructions differ in their method of rounding:
RND Round
TRUNC Truncate
RND+ Round to Upper Double Integer
RND- Round to Lower Double Integer
Page view 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 271 272

Comments to this Manuals

No comments