S5-100U
Integrated Blocks and Their Functions
9.2.3
Multiplier : 16 - FB242 -
Use function block FB 242 to multiply one fixed-point binary number (16 bits) by another
.
The pro-
duct is represented by two fixed-point binary numbers (16 bits each)
.
The result is also scanned for
zero. An eight-bit number must be transferred to a 16-bit word prior to multiplication.
Table 9-4. Call and Parameter Assignments of FB242
Parameter
Meaning
Type
Assignment
STL
Z1
Z2
Z3=0
Z32
Z31
Multiplier
Multiplicand
Scan for zero
Product high-word
Product low-word
I
W
I
W
Q BI
Q W
Q W
-32768 to+32767
-32768 to+32767
“0” : product is zero
16 Bits
16 Bits
: JU FB242
NAME
: MUL:16
Z1
:
Z2
:
Z3=0
:
Z32
:
Z31
:
9.2.4
Divider : 16
- FB243 -
Use function block FB 243 to divide one fixed-point binary number (16 bits) by another
.
The result
(quotient and remainder) is represented by two fixed-point binary numbers (16 bits each).
The divisor and the result are also scanned for zero
.
An eight-bit number must be transferred to a
16-bit word prior to division.
Table 9-5. Call and Parameter Assignments of FB243
Parameter
Explanation
Type
Assignment
STL
Z1
Z2
Z4=0
FEH
Z3=0
OV
Z3
Z4
Dividend
Divisor
Scan for zero
Scan for zero
Overflow bit
Quotient
Remainder
I W
I W
Q BI
Q BI
Q BI
Q BI
Q W
Q W
-32768 to+32767
-32768 to+32767
“1” : overflow
“1” : division by zero
“0”: quotient is zero
“0”: remainder is zero
16 bits
16 bits
: JU FB243
NAME
: DIV:16
Z1
:
Z2
:
OV
:
FEH
:
Z3=0
:
Z4=0
:
Z3
:
Z4
:
EWA 4NEB 812 6120-02b
9-13
Содержание SIMATIC S5-100U
Страница 6: ...EWA 4NEB 812 6120 02b ...
Страница 16: ...EWA 4NEB 812 6120 02b ...
Страница 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Страница 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Страница 23: ......
Страница 27: ......
Страница 36: ...EWA 4NEB 812 6120 02b ...
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 102: ...EWA 4NEB 812 6120 02b ...
Страница 156: ...EWA 4NEB 812 6120 02b ...
Страница 232: ...EWA 4NEB 812 6120 02b ...
Страница 268: ...EWA 4NEB 812 6120 02b ...
Страница 272: ...EWA 4NEB 812 6120 02b ...
Страница 336: ...EWA 4NEB 812 6120 02b ...
Страница 352: ...EWA 4NEB 812 6120 02b ...
Страница 412: ...EWA 4NEB 812 6120 02b ...
Страница 482: ...EWA 4NEB 812 6120 02b ...
Страница 484: ...EWA 4NEB 812 6120 02b ...
Страница 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Страница 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Страница 516: ...EWA 4NEB 812 6120 02b ...
Страница 522: ...EWA 4NEB 812 6120 02b ...
Страница 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Страница 524: ...EWA 4NEB 812 6120 02b ...
Страница 530: ...EWA 4NEB 812 6120 02b ...
Страница 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Страница 532: ...EWA 4NEB 812 6120 02b ...
Страница 534: ...EWA 4NEB 812 6120 02b ...
Страница 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Страница 536: ...EWA 4NEB 812 6120 02b ...
Страница 542: ...EWA 4NEB 812 6120 02b ...
Страница 543: ...Index EWA 4NEB 812 6120 02b ...
Страница 544: ...EWA 4NEB 812 6120 02b ...
Страница 550: ...EWA 4NEB 812 6120 02b ...