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

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

Advertisement

Scaling 16-bit binary data (XY coordinates)

SCL2(P)(_U)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions scale the scaling conversion data (16-bit data) on the basis of the specified input value (XY coordinates).
Ladder
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
■Execution condition
Instruction
SCL2
SCL2_U
SCL2P
SCL2P_U
Setting data
■Description, range, data type
Operand
Description
(s1)
SCL2(P)
Input value to be scaled or the device containing
the input value
SCL2(P)_U
(s2)
SCL2(P)
Start device containing scaling conversion data
SCL2(P)_U
(d)
SCL2(P)
Device for storing the output value controlled by
scaling
SCL2(P)_U
EN
Execution condition
ENO
Execution result
*1 The number of coordinate points in (s2) is represented in 16-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,
J\
SM, F, B, SB,
FX, FY
(s1)
(s2)
(d)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=SCL2(EN,s1,s2,d);
ENO:=SCL2P(EN,s1,s2,d);
Range
Data type
-32768 to 32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
ENO:=SCL2_U(EN,s1,s2,d);
ENO:=SCL2P_U(EN,s1,s2,d);
Data type (label)
ANY16_S
ANY16_U
*1
*2
ANY16_S
*1
*2
ANY16_U
ANY16_S
ANY16_U
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.12 Data Control Instructions
7
875

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents