The IEC operator is used to divide variables.
Permitted data types: BYTE
, WORD
, DWORD
, LWORD
, SINT
, USINT
, INT
, UINT
, DINT
, UDINT
, LINT
, ULINT
, REAL
, LREAL
, TIME




NOTICE

Division by zero may have different results depending on the target system.
Examples
ST
var1 := 8/2;
FBD
1. Series of DIV blocks, 2. Single DIV block, 3. DIV POU with EN/ENO parameters

Note that it is possible to monitor division by zero at runtime by using the implicit
monitoring functions CheckDivInt
, CheckDivLint
, CheckDivReal
, and CheckDivLReal
.
-
See also: ⮫ CheckDivInt, ⮫ CheckDivInt
-
See also: ⮫ CheckDivLint
-
See also: ⮫ CheckDivReal
-
See also: ⮫ CheckDivLReal