Siemens SIMATIC S5-115U User Manual page 378

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

Integral Blocks
Divider: 16
-FB243-
Use function block FB243 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.
Call and Parameter Assignment
Parameter
Type
Type
Z1
I
Z2
I
OV
Q
FEH
Q
Z3=0
Q
Z4=0
Q
Z3
Q
Z4
Q
11-4
Data
Contents
W
- 32768 to+32767
W
- 32768 to+32767
Bi
"1", if
overflow
Bi
"1" for division
by zero
Bi
"1": quotient
is zero
Bi
"1": remainder
is zero
W
16 bits
W
16 bits
Meaning
Dividend
Divisor
Name : DIV : 16
Z1
Overflow
indicator
Z2
OV
FEH
Z3=0
Scan
for zero
Z4=0
Z3
Scan
for zero
Z4
Quotient
Remainder
EWA 4NEB 811 6130-02b
S5-115U Manual
STL
: JU FB 243
:
:
:
:
:
:
:
:

Advertisement

Table of Contents
loading

Table of Contents