4.2 MECHATROLINK-
II
Commands
4-5
4
Op
er
at
io
n
4.2
MECHATROLINK-
II
Commands
4.2.1
Main Commands
The following table lists the main commands for MECHATROLINK-II communications.
Command
Code
Command
Function
00 hex
NOP
Nothing is performed.
01 hex
PRM_RD
Reads parameters.
02 hex
PRM_WR
Saves parameters.
03 hex
ID_RD
Reads the device ID.
04 hex
CONFIG
Enables the current parameter settings.
05 hex
ALM_RD
Reads the current alarm or warning status, and the alarm history.
06 hex
ALM_CLR
Clears the current alarm or warning status, and the alarm history.
0D hex
SYNC_SET
Starts synchronous communications.
0E hex
CONNECT
Requests connection.
0F hex
DISCONNECT
Requests disconnection.
1C hex
PPRM_WR
Saves parameters to non-volatile memory.
20 hex
POS_SET
Sets the coordinate system.
21 hex
BRK_ON
Turns the brake signal (/BK) OFF to apply the holding brake.
22 hex
BRK_OFF
Turns the brake signal (/BK) ON to release the holding brake.
23 hex
SENS_ON
Turns the encoder power supply ON, and gets the position data.
24 hex
SENS_OFF
Turns the encoder power supply OFF.
25 hex
HOLD
Decelerates an axis at the deceleration rate set in a parameter and performs
positioning.
28 hex
LTMOD_ON
Enables position data latching with an external signal input.
29 hex
LTMOD_OFF
Disables position data latching with an external signal input.
30 hex
SMON
Monitors the status of the multi-winding drive unit.
31 hex
SV_ON
Turns the servo of the motor ON.
32 hex
SV_OFF
Turns the servo of the motor OFF.
34 hex
INTERPOLATE
Starts interpolation feeding.
35 hex
POSING
Starts positioning to the target position (TPOS) at the target speed (TSPD).
36 hex
FEED
Starts constant speed feeding at the target speed (TSPD).
38 hex
LATCH
Performs interpolation and latches the position during execution with the
specified latch signal.
39 hex
EX_POSING
Starts positioning to the target position (TPOS) at the target speed (TSPD).
When the latch signal is input during execution, performs positioning from the
latch signal input position to that latch signal input position with the external
positioning final travel distance specified in a parameter added to it.
3A hex
ZRET
Performs zero point return.
3C hex
VELCTRL
Controls speed.
3D hex
TRQCTRL
Controls torque.
3E hex
ADJ
A maintenance command used to monitor data or perform adjustment operations.
3F hex
SVCTRL
Performs general-purpose servo control. This command is compatible with
MECHATROLINK version 1.0 or earlier.