Roland M-5000C, M-5000 User Manual

RS-232C/Telnet Reference
Model : M-5000/M-5000C
Date : Nov. 19th, 2015
Version : 1.20
* In this document, the M-5000 and the M-5000C are both referred to as “M-5000.”

Contents

RS-232C Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Connection with the Control Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Settings on the Control Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Settings on the M-5000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Telnet Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Setting the M-5000’s Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Setting the Computer Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Overview of Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Converting the RS-232C Commands to the Telnet Commands . . . . . . . . . . . . . . . . 6
Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Input Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Output Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Special Purpose Commands (Telnet) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Command Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Commands Sent from the Control Computer to the M-5000 . . . . . . . . . . . . . . . . . 9
Details of Commands Sent from the Control Computer to the M-5000 . . . . . . . . 9
Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Request Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Details of Reply Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Commands Transmitted from the Control Computer to the M-5000 . . . . . 20
Commands Transmitted from the M-5000 to the Control Computer . . . . . 20
1

RS-232C Setup

About the RS-232C Interface

RS-232C is a standard serial interface. An explanation of the connections used by the M-5000 is given below.
Connector No. Signal name Pin connections
1 NC 2 RXD 3 TXD 4 DTR 5 GND 6 DSR 7 RTS 8 C TS 9 NC
1 5
6 9
M-5000
1 : NC 2 : RXD 3 : TXD 4 : NC 5 : GND 6 : NC 7 : RTS 8 : CTS 9 : NC
* Pins 7 and 8 are connected inside the M-5000.
* For the M-5000 to function, the three pins RXD, TXD, and GND must be connected as shown in the gure.
Computer
1 : 2 : RXD 3 : TXD 4 : 5 : GND 6 : 7 : 8 : 9 :

Setup Procedure

1. Connect the control computer.
Use a RS-232C cable to connect your computer and the M-5000.
0
“Connection with the Control Computer” (p. 2)
2. Power up the computer that will be controlling the M-5000.
3. Make settings for the control computer
Perform the communication settings.
0
“Settings on the Control Computer” (p. 3)
4. Make settings on the M-5000.
Perform the communication settings.
0
“Settings on the M-5000” (p. 3)
5. Start operating the M-5000.
The data transmission between the control computer and the M-5000 will begin.

Connection with the Control Computer

1. Power o the M-5000 and the computer.
2. Use an RS-232C cable to connect the RS-232C connector of your computer to the RS-232C connector located on the back of the
M-5000.
2

Settings on the Control Computer

Communication settings on the computer
+----------------------+------------------------------------------------+
| Communication method | Synchronous (asynchronous), full-duplex |
+----------------------+------------------------------------------------+
| Communication speed | 4800bps |
| | 9600bps |
| | 14400bps |
| | 31250bps |
| | 38400bps |
| | 57600bps |
| | 115200bps |
| | You can select this as desired, but it must be |
| | the same as the setting on the M-5000. |
+----------------------+------------------------------------------------+
| Parity | none |
+----------------------+------------------------------------------------+
| Data length | 8bit |
+----------------------+------------------------------------------------+
| Stop bit | 1bit |
+----------------------+------------------------------------------------+
| Code set | ASCII |
+----------------------+------------------------------------------------+
| XonXoff | on |
+----------------------+------------------------------------------------+

Settings on the M-5000

In the default settings, the communication speed is set to 115,200 bps. If you’re using the M-5000 via RS-232C, you’ll need to set its communication speed to match the setting of the computer.
3

Telnet Setup

The M-5000 supports Telnet server functions.
Logging in from a computer that features Telnet client functionality permits remote operation of M-5000 units.
Telnet Server Specications
+-----------------+--------------------------------------+
| Connector | LAN connector |
+-----------------+--------------------------------------+
| TCP port | 8023 |
+-----------------+--------------------------------------+
| Control Mode | Character mode |
| | (character-at-a-time mode) |
+-----------------+--------------------------------------+
| Echo Control | Remote echo |
+-----------------+--------------------------------------+
| Termination Key | Processing reception CR, LF or CR-LF |
| | Processing transmission CR-LF |
+-----------------+--------------------------------------+

Network Settings

The computer and the M-5000 must be connected on same network.
NOTE
The network trac where the M-5000 is connected is too busy, the unit cannot operate properly. Take counter measures as follows when necessary.
5 Separate the network for the M-5000 control from the others.
5 Decrease the trafc amount of broadcast packet.
5 Decrease the trafc amount addressed to the M-5000 unit like PING.

Setting the M-5000’s Network

You can set the IP address for the M-5000 unit using one of following methods.
5 Use xed IP address
5 Use DHCP
You can check the current IP address of the M-5000 unit on the NETWORK window.
Using the Fixed IP Address
Set the M-5000’s LAN as follows.
+-------------+----------------------------------------------+
| CONFIGURE | MANUALLY |
+-------------+----------------------------------------------+
| IP ADDRESS | As necessary |
| | (follow the network to connect) |
+-------------+----------------------------------------------+
| SUBNET MASK | As necessary |
| | (follow the network to connect) |
+-------------+----------------------------------------------+
4
Using DHCP
Set the M-5000’s LAN as follows.
+-------------+----------------------------------------------+
| CONFIGURE | USING DHCP |
+-------------+----------------------------------------------+

Setting the Computer Network

Under surveillance of your network administrator, set IP address, subnet mask and gateway.
If the network cannot be connected properly, check followings.
5 Check that the IP address is not overlapped by another device.
5 Check that the subnet mask and gateway setting are properly set.
5 Check that rewall or other securities are properly set on the computer.
5

Overview of Commands

The M-5000 and the control computer communicate via commands. There are several types of commands, and you can control the M-5000 by using the command that’s appropriate for your purpose.

Converting the RS-232C Commands to the Telnet Commands

The commands for Telnet remote controls are common with RS-232C commands except for the control codes (stx, ack).
The control codes of the RS-232C commands should be converted as follows.
+-------+------------------------+----------------------------+
| Codes | Hexadecimal Expression | Processing |
+-------+------------------------+----------------------------+
+-------+------------------------+----------------------------+
| stx | 0x02 | Delete |
+-------+------------------------+----------------------------+
| ack | 0x06 | Convert to the text “OK” |
+-------+------------------------+----------------------------+

Overview of Commands

Single-byte alphanumeric characters are used for commands. In general, the command syntax is an ASCII string consisting of “stx” and “three uppercase letters” followed by a “;” (semicolon). The three
letters indicate the type of command. However, there are other types depending on the command.
0
“Command Syntax” (p. 7)
* “stx” : This is the name of the signal in ASCII code (code number 02H in hexadecimal); it is a control code that indicates the beginning of a
command.
* “;” : This code lets the M-5000 detect the end of the command.
<Ex.> To transmit the *** command, transmit the ASCII string “stx***;”

Protocol

Depending on the command, there are two types of communication protocols between the control computer and the M-5000.
When specifying an operation or setting for the M-5000
This type corresponds to the “Control Commands” (p. 9). These commands use the procedure shown in the following diagram.
a. stx + command
COMPUTER ---------------------------> M-5000
b. ack or stxERR command
COMPUTER <--------------------------- M-5000
a. Transmit the command from the computer to the M-5000.
b. The M-5000 will output “ack” if the command was received correctly, or an ERR command in case of invalid reception.
* “ack” : This is the ASCII code name of the control code (06H in hexadecimal) acknowledging successful reception.
* Invalid reception corresponds to cases in which the syntax of the received command was incorrect.
* stxERR is the command used to transmit or receive an error indication.
6
To learn the settings of the M-5000
This type corresponds to the “Request Commands” (p. 14). Commands used to check the status of a setting in the M-5000 use the following procedure.
a. stx + command
COMPUTER ---------------------------> M-5000
b. ack or stxERR command
COMPUTER <--------------------------- M-5000
c. ack or stxERR command
COMPUTER ---------------------------> M-5000
a. Transmit the command from the computer to the M-5000.
b. If the M-5000 receives the command correctly, it will send back a command containing the information that was requested.
If the command was not received correctly, an ERR command will be sent back.
c. If the output of the M-5000 was received correctly, an “ack” will be sent back. (* This “ack” can be omitted.)
* If the ERR command is sent to the M-5000, the M-5000 will re-transmit the command it sent in step “b.” This command can also be omitted; instead
of returning anything, you can repeat the procedure from step “a.”
* The M-5000 will not transmit anything when a setting is changed by a controller operation on the M-5000 itself.

Command Syntax

There are several possible types of syntax for commands (control signals).
Type 0: Commands consisting only of a control code
“;” is not added to these. They consist only of the control code.
<Ex.> ack
Type 1: Commands that have no parameters
These commands end with “;”.
<Ex.> stxVRQ;
Type 2: Commands that have parameters
Command: parameter, parameter...;
* No spaces or tabs are allowed between commands or parameters.
5
The command is separated from the parameters by a ":" (colon).
5
Parameters are separated by a "," (comma).
5
The end of the parameters is indicated by a ";" (semicolon).

Input Parameters

In general, parameters are given as decimal numbers or letters, and are of variable length.
<Ex.> stxFDC:l1,-25; / stxFDC:l24,0; / stxFDC:AX16,0; / stxFDC:MA1,-10;

Output Parameters

Parameters are generally given in decimal or alphabetic form, and their length may vary.
<Ex.> stxFDS:l5,-12; / stxFDS:l24,0; / stxFDS:AX8,-6; / stxFDS:MA1,-12;
7
Loading...
+ 14 hidden pages