Dividing 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Dividing 16-bit binary data

/(P)(_U)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions perform division between the two sets of 16-bit binary data specified.
Ladder
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
( is to be replaced by any of the following: DIVISION, DIVISIONP, DIVISION_U, DIVISIONP_U.)
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
Instruction
/
/_U
/P
/P_U
Setting data
■Description, range, data type
Operand
Description
(s1)
/(P)
Dividend data or the device where dividend
data is stored
/(P)_U
(s2)
/(P)
Divisor data or the device where divisor data is
stored
/(P)_U
(d)
/(P)
Start device for storing the operation result
/(P)_U
EN
Execution condition
ENO
Execution result
• In safety programs executed by the Safety CPU, only safety devices and safety labels of data types described in the table
can be used.
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
*1
ST
ENO:=DIVISION(EN,s1,s2,d);
ENO:=DIVISIONP(EN,s1,s2,d);
Range
Data type
-32768 to 32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
-32768 to 32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
Bit
Bit
6.2 Arithmetic Operation Instructions
ENO:=DIVISION_U(EN,s1,s2,d);
ENO:=DIVISIONP_U(EN,s1,s2,d);
Data type (label)
ANY16_S
ANY16_U
ANY16_S
ANY16_U
ANY16_S_ARRAY
(Number of elements: 2)
ANY16_U_ARRAY
(Number of elements: 2)
BOOL
BOOL
6 BASIC INSTRUCTIONS
6
253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents