DIV
Divide one input by another
Libraries:
Description
The DIV block implements the DIV
ladder logic
instruction. When the rung conditions are true, the block divides the dividend at source A
(srcA
) by the divisor at source B (srcB
) and outputs
the result to the destination (dest
).
Note
If you perform a divide by zero operation a "Divide by zero detected"
diagnostic message is generated during code generation.
Ports
Input
Output
Version History
Introduced in R2019a