484
7 APPLICATION INSTRUCTION
7.10 Data control instruction
Scaling 16-bit binary data (point coordinates)
SCL(P)(_U)
These instructions process the scaling conversion data (in 16-bit data units) specified by (s2) by scaling it based on the input
value specified by (s1), and store the operation result in the device specified by (d).
■Descriptions, ranges, and data types
*1 The number of coordinate points of (s2) is 16-bit unsigned binary data.
■Applicable devices
• These instructions process the scaling conversion data (in 16-bit data units) specified by (s2) by scaling it based on the
input value specified by (s1), and store the operation result in the device number specified by (d). The scaling conversion is
performed based on the scaling conversion data stored in the device specified by (s2) and later.
Ladder diagram Structured text
ENO:=SCL(EN,s1,s2,d);
ENO:=SCLP(EN,s1,s2,d);
ENO:=SCL_U(EN,s1,s2,d);
ENO:=SCLP_U(EN,s1,s2,d);
Operand Description Range Data type Data type (label)
(s1) SCL(P) Input value used in scaling or head device number storing
the input value
-32768 to +32767 16-bit signed binary ANY16
SCL(P)_U 0 to 65535 16-bit unsigned binary
(s2) SCL(P) Head device number where the scaling conversion data is
stored
16-bit signed binary
*1
ANY16
SCL(P)_U 16-bit unsigned binary
*1
(d) SCL(P) Head device number storing the output value controlled by
scaling
16-bit signed binary ANY16
SCL(P)_U 16-bit unsigned binary
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
(s2)
(d)
Setting item ("n" indicates the number of coordinate points
specified by (s2).)
Device assignment
Number of coordinate points (s2)
Point 1 X coordinate (s2)+1
Y coordinate (s2)+2
Point 2 X coordinate (s2)+3
Y coordinate (s2)+4
Point n X coordinate (s2)+2n-1
Y coordinate (s2)+2n