Scaling 32-Bit Binary Data (Point Coordinates) - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Scaling 32-bit binary data (point coordinates)

DSCL(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions scale the scaling conversion data (32-bit data) on the basis of the specified input value (point coordinates).
Ladder
(s1)
FBD/LD
EN
ENO
s1
d
s2
■Execution condition
Instruction
DSCL
DSCL_U
DSCLP
DSCLP_U
Setting data
■Description, range, data type
Operand
(s1)
DSCL(P)
DSCL(P)_U
(s2)
DSCL(P)
DSCL(P)_U
(d)
DSCL(P)
DSCL(P)_U
EN
ENO
*1 The number of coordinate points in (s2)+0 and (s2)+1 is represented in 32-bit unsigned binary.
*2 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(s2)
(d)
7 APPLICATION INSTRUCTIONS
872
7.12 Data Control Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(d)
Execution condition
Description
Input value to be scaled or the start device
containing the input value
Start device containing scaling conversion data
Start device for storing the output value
controlled by scaling
Execution condition
Execution result
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=DSCL(EN,s1,s2,d);
ENO:=DSCLP(EN,s1,s2,d);
Range
-2147483648 to
2147483647
0 to 4294967295
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
ENO:=DSCL_U(EN,s1,s2,d);
ENO:=DSCLP_U(EN,s1,s2,d);
Data type
Data type (label)
32-bit signed binary
ANY32_S
32-bit unsigned binary
ANY32_U
*1
32-bit signed binary
ANY32_S
*1
32-bit unsigned binary
ANY32_U
32-bit signed binary
ANY32_S
32-bit unsigned binary
ANY32_U
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*2
*2
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents