Siemens SIMATIC S5-115U User Manual page 377

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

S5-115U Manual
11.1.2 Arithmetic Blocks
Use function blocks FB242 and FB243 to multiply and divide.
Multiplier : 16
-FB242-
Use function block FB242 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.
Call and Parameter Assignments
Parameter
Type
Type
Z1
I
Z2
I
Z3=0
Q
Z32
Q
Z31
Q
EWA 4NEB 811 6130-02b
Data
Assignment
W
- 32768 to+32767
W
- 32768 to+32767
Bi
"1", if the
product is zero
W
16 bits
W
16 bits
Meaning
Multiplier
Multiplicand
Name : MUL : 16
Z1
Scan for zero
Z2
Z3=0
Product,
high-order word
Z32
Z31
Product,
low-order word
Integral Blocks
STL
: JU FB 242
:
:
:
:
:
11-3

Advertisement

Table of Contents
loading

Table of Contents