
3.FP FUNCTIONS B-66284EN/01
- 310 -
[Arguments]
number P code macro variable number
(#10000 to #16000, #20000 and up)
data Always 0
decimal Always 0
(b) For specification of a control other than in (a)
[Function name]
wrpmacro
[Data type]
2 : 2 bytes(Signed)
[Format/with arguments]
wrpmacro[number_data_decimal]
[Arguments]
number P code macro variable number
(#10000 to #16000, #20000 and up)
data Output data
decimal The number of decimal positions of output data
1.38 Reading abnormal torque (estimated torque) data
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○
- - - - -
○:available
-:unavailable
[Function name]
loadtorq
For a servo motor, returns the abnormal torque of a specified axis, as
well as the load current value [Apeak].
For a spindle motor, returns the ratio (as percentage) of the torque to
the maximum torque of a specified spindle. The value to be returned is
rounded up at the digit after the specified decimal places and then
converted into a whole number.
Example) For 98.12%, 9812 is returned.
[Data type]
5 : 4 bytes (unsigned)
[Format/with arguments]
loadtorq[motor_axis_coefficient_deccnt]
[Arguments]
motor : Motor type
0 : Servo motor
1 : Spindle motor
axis: Axis number(=1 to maximum number of controlled
axes)
For a spindle, specify the spindle number such as the
first or second spindle.
coefficient :
(1) For a servo motor
Specify the constant N used to calculate the load
current value.
The value of the parameter No. 2162 is filled in.
(2) For a spindle motor, specify 0.