[DIV_R] Division real values

Function block DIV_R divides two real values.

DIV_R divides two real values.

Out = In1 / In2

Pins

Input

Description

Data type

Default value
Value range

In1

Input 1

Dividend

Real

0.0

In2

Input 2

Divisor

Real

1.0

 

Output

Description

Data type

Default value
Value range

Out

Output

Real

0.0

Troubleshooting

When the value range of [Out] is violated, the data-type specific maximum or minimum value is provided at output [Out].

There are three cases when dividing by zero ([In2] = 0):

  • When input [In1] is positive, output [Out] is set to its data-type specific maximum value.
  • When input [In1] is negative, output [Out] is set to its data-type specific minimum value.
  • When input [In1] is zero, output [Out] is set to value 0.