Dividing 32-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 32-bit binary data

D/(P)(_U)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions perform division between the two sets of 32-bit binary data specified.
Ladder
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
( is to be replaced by any of the following: DDIVISION, DDIVISIONP, DDIVISION_U, DDIVISIONP_U.)
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
Instruction
D/
D/_U
D/P
D/P_U
Setting data
■Description, range, data type
Operand
Description
(s1)
D/(P)
Dividend data or the start device where
dividend data is stored
D/(P)_U
(s2)
D/(P)
Divisor data or the start device where divisor
data is stored
D/(P)_U
(d)
D/(P)
Start device for storing the operation result
D/(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:=DDIVISION(EN,s1,s2,d);
ENO:=DDIVISIONP(EN,s1,s2,d);
Range
Data type
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
64-bit signed binary
64-bit unsigned binary
Bit
Bit
6.2 Arithmetic Operation Instructions
ENO:=DDIVISION_U(EN,s1,s2,d);
ENO:=DDIVISIONP_U(EN,s1,s2,d);
Data type (label)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S_ARRAY
(Number of elements: 2)
ANY32_U_ARRAY
(Number of elements: 2)
BOOL
BOOL
6 BASIC INSTRUCTIONS
6
257

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents