
319
Part 4 Commands
1.24 Extended Commands
ECMD1 (Get motor current value (% of rated current))
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional ECMD 1
Axis
number
CC
[Function] Store in variable 99 the motor current value (% of the rated current) corresponding to the
“axis number” specified in operand 1.
(Note)
The motor current value (% of the rated current) to be obtained represents feedback-
current filtered data containing analog error.
Accordingly, provide a margin of 5% or more when comparing against the “steady-state
(non-push) torque limit (upper limit)” set by extended command code 250.
[Example] ECMD
1
2
Extended command 1
Store the motor current value (% of the rated current) of
axis 2 in variable 99.
ECMD2 (Get home sensor status)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional ECMD 2
Axis
number
CC
[Function] Reflect in the output field the home sensor status corresponding to the “axis number”
specified in operand 2.
(Note)
The home sensor status to be obtained is not an electrical level of H or L, but a
differential/non-operating status that takes into consideration the setting of Axis-specific
parameter No. 14, “Home-sensor input polarity.”
If “0” (Not used) is set in Axis-specific parameter No. 14, “Home-sensor input polarity,”
the sensor status (output field) is deemed indeterminable and its use will be prohibited.
The output port/flag specified in the output field will be operated only when this command
is executed.
Accordingly, this command must be executed repeatedly if you want to constantly reflect
the sensor status in the output port/flag.
[Example] ECMD
2
3
315 Output the home status of axis 3 to output port No. 315.
320
Part 4 Commands
ECMD3 (Get overrun sensor status)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional ECMD 3
Axis
number
CC
[Function] Reflect in the output field the overrun sensor status corresponding to the “axis number”
specified in operand 2.
(Note)
The overrun sensor status to be obtained is not an electrical level of H or L, but a
differential/non-operating status that takes into consideration the setting of Axis-specific
parameter No. 15, “Overrun-sensor input polarity.”
If “0” (Not used) is set in Axis-specific parameter No. 15, “Overrun-sensor input polarity,”
the sensor status (output field) is deemed indeterminable and its use will be prohibited.
The output port/flag specified in the output field will be operated only when this command
is executed.
Accordingly, this command must be executed repeatedly if you want to constantly reflect
the sensor status in the output port/flag.
[Example] ECMD
3
1
890 Output the overrun status of axis 1 to output port No.
890.
ECMD4 (Get creep sensor status)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional ECMD 4
Axis
number
CC
[Function] Reflect in the output field the creep sensor status corresponding to the “axis number”
specified in operand 2.
(Note)
The creep sensor status to be obtained is not an electrical level of H or L, but a
differential/non-operating status that takes into consideration the setting of Axis-specific
parameter No. 16, “Creep-sensor input polarity.”
If “0” (Not used) is set in Axis-specific parameter No. 16, “Creep-sensor input polarity,”
the sensor status (output field) is deemed indeterminable and its use will be prohibited.
The output port/flag specified in the output field will be operated only when this command
is executed.
Accordingly, this command must be executed repeatedly if you want to constantly reflect
the sensor status in the output port/flag.
[Example] ECMD
4
2
315 Output the creep status of axis 2 to output port No. 315.
323
Summary of Contents for X-SEL PX
Page 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Page 2: ......
Page 8: ......
Page 14: ......
Page 410: ...383 Appendix 386 ...
Page 452: ...425 Appendix 5 428 ...
Page 559: ......