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.
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.
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.