Division - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Division

Parameter
EN
i1
i2
o1
ENO
Division divides the first Integer or Real input value by the second Integer or Real
input value.
Arguments
Data Type
Parameter
Type
Input
BOOL
Input
SINT - USINT - BYTE -
INT - UINT - WORD -
DINT - UDINT - DWORD
- LINT - ULINT - LWORD
- REAL - LREAL
Input
SINT - USINT - BYTE -
INT - UINT - WORD -
DINT - UDINT - DWORD
- LINT - ULINT - LWORD
- REAL - LREAL
Output
SINT - USINT - BYTE -
INT - UINT - WORD -
DINT - UDINT - DWORD
- LINT - ULINT - LWORD
- REAL - LREAL
Output
BOOL
Example
(* ST Equivalence: *)
ao10 := ai101 / ai102;
ao5 := (ai5 / 2) / ai53;
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When Enable = TRUE, execute current division computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
Dividend in non-zero Integer or Real data type.
All inputs must be the same data type.
Divisor in non-zero Integer or Real data type.
All inputs must be the same data type.
Quotient of the inputs in non-zero Integer or Real data type.
Input and output must use the same data type.
Enable out.
Applies only to LD programs.
Chapter 5
Arithmetic instructions
81

Advertisement

Table of Contents
loading

Table of Contents