MR210AU / MR220AU: Serial Communication Commands
MR210AU / MR220AU: Serial Communication Commands
MR210AU / MR220AU
Serial Communication Commands
NOVA electronics
NOVA electronics Inc. MR210A/220A Communication Commands
1. Outline
These communication commands are prepared for control by the user program in VC or VB when MR210AU/220AU and PC or
PLC are connected with the cable.
USB
24VDC
P I/F
MR220AU
Before control by communication commands, driving parameters and modes of MR210AU/220AU must be configured by the
operating program in the accessory CD-ROM in advance. When the user executes or stops a program by communication
commands, the program should also be registered in advance.
Communication commands are listed below. See chapter 3 for more details on each command.
(3) Before writing drive command at first power-on, SPD command must be written to determine a drive speed.
(4) In MR210AU (1-axis), the axis is “X”. Make sure to select “X” for axis assignment.
※ When Communication Error happens between MR210AU/220AU and Personal Computer(or Programmable Logic
Controller), choose the lower baud date.
(6) Concerning the command with no response, wait the time shown as below according to the communication speed, then write
the next command. Concerning the command with a response, write the next command after confirmation of receiving
response data.
- 2 -
NOVA electronics Inc. MR210A/220A Communication Commands
3. Command Details
PRG
[Contents] Executes the driving program of MR210AU/220AU from the specified address.
[Format]
Command △ [Axis] [REG number] [CR]
PRG △ X ○○ [CR]
Y REG number (decimal number)
REG number must be specified by a decimal number 2-digits, which is from 00 to 63.
Multiple axes can be designated at a time.
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Example]
When X and Y axes are executed from 0 of the REG number.
PRG△XY00[CR]
[Response] No response
JOG
[Contents] Continuous drive command. Starts to drive the specified axis.
To stop driving, write STO command.
[Format]
Command △ [Driving direction] [Axis] [CR]
JOG △ + X [CR]
- Y
[Example]
When driving of X axis is performed in the + direction and driving of Y axis is performed in the - direction.
JOG△X-Y[CR]
[Response] No response
- 3 -
NOVA electronics Inc. MR210A/220A Communication Commands
PAB
[Contents] Absolute position move driving. Starts to drive the specified axis to absolute position.
[Format]
Command △ [X-axis absolute position] [Y-axis absolute position] [CR]
[Example]
・In 2-axes, when the user wants to move Y-axis absolute position to 1500 pulse.
PAB△,1500[CR]
・In 1-axis, the user wants to move absolute position to 2000 pulse.
PAB△2000[CR]
[Response] No response
PIC
[Contents] Relative position move driving. Starts to drive the specified axis to relative position.
[Format]
Command △ [X-axis relative position] [Y-axis relative position] [CR]
[Example]
・In 2-axes, when the user wants to move only Y-axis from the current position to 1500 pulse in the – direction.
PIC△,-1500[CR]
・In 1-axis, when the user wants to move from the current position to 3000 pulse in the – direction.
PIC△-3000[CR]
[Response] No response
- 4 -
NOVA electronics Inc. MR210A/220A Communication Commands
CLL
[Contents] Position counter is cleared. Clears the position counter value of the specified axis to 0.
[Format]
Command △ [Axis] [CR]
CLL △ X [CR]
Y
[Examples]
・In 2-axes, when the user wants to clear both X and Y axes.
CLL△XY[CR]
・In 1-axis, when the user wants to clear.
CLL△X[CR]
[Response] No response
SPD
[Contents] Drive speed setting and current speed reading.
X-axis speed
Actual drive speed is the value which multiplies the above setting value by speed multiplier.
Drive speed (PPS) = Speed setting value × Speed multiplier
If the user wants to set the speed individually, input only comma as to the unnecessary axis.
[Example]
・In 2-axes, the user wants to change the speed of only Y axis to 1500PPS when speed multiplier = 1.
SPD△,1500[CR]
・In 1-axis, the user wants to change the speed to 2000PPS when speed multiplier = 1.
SPD△2000[CR]
[Response] No response
- 5 -
NOVA electronics Inc. MR210A/220A Communication Commands
[Response]
Actual drive speed is the value which multiplies the above acquired value by speed multiplier.
Drive speed (PPS) = Speed read value × Speed multiplier
※ In 1-axis, the current speed data of Y-axis is also returned as a response but ignore it.
POS
[Contents] Current position reading. Returns the position value.
[Format]
Command [CR]
POS [CR]
[Response]
The current position pulses of the response of each axis are given in hexadecimal.
※ In 1-axis, the current position data of Y-axis is also returned as a response but ignore it.
- 6 -
NOVA electronics Inc. MR210A/220A Communication Commands
HOM
[Contents] Executes the home search of the specified axis.
[Format]
Command △ [Axis] [CR]
HOM △ X [CR]
Y
[Example]
・In 2-axes, when the user wants to execute a home search for both X and Y axes.
HOM△XY[CR]
・In 1-axis, when the user wants to execute a home search.
HOM△X[CR]
[Response] No response
STO
[Contents] Stops driving of the specified axis by decelerating.
However, if drive speed is lower than start speed, it stops instantly.
[Format]
Command △ [Axis] [CR]
STO △ X [CR]
Y
[Examples]
・In 2-axes, when the user wants to stop both X and Y axes by decelerating.
STO△XY[CR]
・In 1-axis, when the user wants to stop by decelerating.
STO△X[CR]
[Response] No response
VER
[Contents] Reads the version information of MR210AU/220AU.
[Format]
Command [CR]
VER [CR]
[Response]
- 7 -
NOVA electronics Inc. MR210A/220A Communication Commands
IDC
[Contents] Returns the program number currently executed (0~63) during program execution.
[Format]
Command △ [Axis] [CR]
IDC △ X [CR]
Y
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Response]
IDC △ X ○○ [CR]
Y Program number (decimal number)
SSM
[Contents] Selects drive speed 1~4.
[Format]
Command △ [Axis] [Drive speed select] [CR]
SSM △ X ○ [CR]
Y 1~4
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Response] No response
- 8 -
NOVA electronics Inc. MR210A/220A Communication Commands
INR
[Contents] Returns I/O signal status and driving state in hexadecimal in bit configuration.
[Format]
Command △ [Axis] [CR]
INR △ X [CR]
Y
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Response]
- 9 -
NOVA electronics Inc. MR210A/220A Communication Commands
OUT
[Contents] Controls output signal ON/OFF. Specify bit data in hexadecimal.
[Format]
Command △ [Data] [CR]
OUT △ ○○○○ [CR]
0: OFF…“H”Level
1: ON …“L”Level
Bit Configuration
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
XOUT0 (CN4)
XDRIVE (CN3)
XERROR (CN3)
YOUT0 (CN5)
YDRIVE (CN3)
YERROR (CN3)
RST
[Contents] Resets MR210AU/220AU.
[Format]
Command [CR]
RST [CR]
[Response] No response
- 10 -
NOVA electronics Inc. MR210A/220A Communication Commands
SCI
[Contents] Rewrites and reads communication port condition. When rewriting, the motor control unit needs to be reset.
[Format]
(1) When reading is performed.
Command [CR]
SCI [CR]
(2) When writing is performed.
Command △ [Baud rate],[Data bit],[Stop bit],[Parity bit] [CR]
SCI△19200,8,1,0[CR]
OGE
[Contents] Terminates a home search forcedly.
[Format]
Command △ [Axis] [CR]
OGE △ X [CR]
Y
[Example]
・In 2-axes, when the user wants to forcedly terminate a home search for both X and Y axes.
OGE△XY[CR]
・In 1-axis, when the user wants to forcedly terminate a home search.
OGE△X[CR]
- 11 -
NOVA electronics Inc. MR210A/220A Communication Commands
PSP
[Contents] Executing program is paused.
[Format]
Command △ [Axis] [CR]
PSP △ X [CR]
Y
After the current executing command finishes, it pauses. To restart the program, write PRS command. If the user wants
to terminate the program from pause state, write EDP command.
Multiple axes can be designated at a time.
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Example]
・In 2-axes, when the user wants to pause the program for both X and Y axes.
PSP△XY[CR]
・In 1-axis, when the user wants to pause the program.
PSP△X[CR]
EDP
[Contents] Terminates a program forcedly.
[Format]
Command △ [Axis] [CR]
EDP △ X [CR]
Y
[Example]
・In 2-axes, when the user wants to forcedly terminate the program for both X and Y axes.
EDP△XY[CR]
・In 1-axis, when the user wants to forcedly terminate the program.
EDP△X[CR]
PRS
[Contents] Restarts a program.
[Format]
Command △ [Axis] [CR]
PRS △ X [CR]
Y
When the user wants to restart the program from pause state, write this command.
Multiple axes can be designated at a time.
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Example]
・In 2-axes, when the user wants to restart both X and Y axes.
PRS△XY[CR]
・In 1-axis, when the user wants to restart an axis.
PRS△X[CR]
- 12 -
NOVA electronics Inc. MR210A/220A Communication Commands
PST
[Contents] Performs stepwise execution.
[Format]
Command △ [Axis] [Specified REG number] [CR]
PST △ X ○○ [CR]
Y Specified REG number
[Example]
・In 2-axes, when the user wants to perform stepwise execution for both X and Y axes.
PST△XY○○[CR]
・In 1-axis, when the user wants to perform stepwise execution.
PST△X○○[CR]
ERD
[Contents] Reads error information.
[Format]
Command △ [Axis] [CR]
ERD △ X [CR]
Y
Even though it is for 1-axis (MR210AU), be sure to input “X” for axis assignment.
[Response]
Note3: When Bit 7 (Register number value enable) is 1, the register number, which occurs an error, is displayed in Bit 5~0.
- 13 -