E L C P r o g r a m m i n g M a n u a l
F o r m o r e i n f o r m a t i o n v i s i t : w w w. e a t o n . c o m M N 0 5 0 0 3 0 0 3 E
3 - 4 9 4
API Mnemonic
Operands
Function
203
D
SCLP P
S
1
, S
2
, D
Calculation of Parameter Proportional Value
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K
H KnX
KnY
KnM KnS T
C
D
E
F
S
1
*
*
*
S
2
*
D
*
SCLP, SCLPP: 9 steps
DSCLP, DSCLPP: 13
steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32
16
P
32 16
P
Operands:
S
1
: Source value
S
2
: Parameters
D
:
Destination address
Description:
1.
S
2
Parameter settings for the 16-bit SCLP instruction are as follows
Device No.
Parameter
Range
S
2
Max. source value
-32768~32767
S
2
+1
Min. source value
-32768~32767
S
2
+2
Max. destination value -32768~32767
S
2
+3
Min. destination value -32768~32767
2.
For the 16-bit instruction, operand
S
2
will use 4 continuous registers.
3.
S
2
Parameter settings for the 32-bit SCLP instruction are as follows
Range
Device No.
Parameter
Integer
Floating point number
S
2
、
S
2
+1 Max. source value
S
2
+2
、
3
Min. source value
S
2
+4
、
5
Max. destination value
S
2
+6
、
7
Min. destination value
-2,147,483,648~2,147,483,647
Range of 32-bit floating
point number
4.
For the 32-bit instruction, operand
S
2
will use 8 continuous registers.
5.
Equation used for scaling by this instruction is
D
= [(
S
1
– Min. source value)
×
(Max.
destination value – Min. destination value)]
÷
(Max. source value – Min. source value) + Min.
destination value
6.
Equation of source value and destination value:
y=kx+b, y=Destination value (
D
) , k=slope=(Max. destination value – Min. destination value)
÷
(Max. source value – Min. source value) , x=Source value (
S
1
) , b=offset=Min. destination
value – Min. source value
×
slope
7. If
S
1
> Max. source value,
S
1
= Max. source value. If
S
1
< Min. source value,
S
1
= Min. source
value. When the input value and parameters are set, the output curve is shown below:
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...