C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
API
Instruction code
Operand
Function
203
D
SCLP
P
S
1
, S
2
, D
Parameter scale
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
1
S
2
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (9 steps)
E xp la nat io n
16-bit instruction: The setting of
S
2
is described below.
S
1
: Source device;
S
2
: Parameter (Unit: 0.001);
D
: Destination device
Device
number
Parameter
Setting range
S
2
Maximum source value
-32768~32767
S
2
+1
Minimum source value
-32768~32767
S
2
+2
Maximum destination value
-32768~32767
S
2
+3
Minimum destination value
-32768~32767
If the 16-bit instruction is used,
S
2
will occupy four consecutive devices.
32-bit instruction: The setting of
S
2
is decribed below.
Setting range
Device
number
Parameter
Integer
Floating-point
value
S
2
,
S
2
+1
Maximum
source value
S
2
+2,
S
2
+3
Minimum source
value
S
2
+4,
S
2
+5
Maximum
destination value
S
2
+6,
S
2
+7
Minimum
destination value
-2,147,483,648~
2,147,483,647
32-bit
floating-point
values available
If the 32-bit instruction is used,
S
2
will occupy eight consecutive devices.
Flag: M1162 is a decimal integer/binary floating-point value flag. (ON:
Binary floating-point value)
Equation:
D
=[(
S
1
–Minimum source value)×(Maximum destination
value–Minimum destination value)]÷(Maximum source value–Minimum
source value)+Minimum destination value
Relation between the source value in
S
1
and the destination value in
D
:
y=kx+b
y=Destination value (
D
)
k=Slope=(Maximum destination value–Minimum destination
value)÷(Maximum source value–Minimum source value)
x=Source value (
S
1
)
b=Offset =Minimum destination value–Minimum source value×Slope
After the parameters above are substituted for y, k, x, and b in the
equation y=kx+b, the equation below will be obtained.
y=kx+b=
D
=k
S
1
+b=Slope×
S
1
+
Offset
=
Slope×
S
1
+
Minimum destination
value–Minimum source value×Slope=Slope×(
S
1
–Minimum source value)
+
Minimum destination value =(
S
1
–Minimum source value)×(Maximum
5 - 11 7
Содержание AH500
Страница 9: ...viii...
Страница 52: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Panasonic CN5 series servo drive 2 31...
Страница 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Страница 54: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Mitsubishi MJR2 series servo drive 2 33...
Страница 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Страница 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Страница 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Страница 376: ...Chapter 6 Data Transmission Table of Contents 6 1 Functions 6 2 6 2 Parameters 6 2 6 3 Usage 6 5 6 1...
Страница 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Страница 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Страница 436: ...Chapter 8 Electronic Cam 8 17...
Страница 482: ...Chapter 10 High speed Counters and High speed Timers 3 The cyclic mode is used to measure a frequency 10 7...
Страница 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Страница 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Страница 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Страница 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...
Страница 547: ...AH500 Motion Control Module Manual A 4 MEMO...