3 commands, 1 summary – IDK MSD-54 Series Command Guide User Manual

Page 13

Advertising
background image

MSD-54 Series Users Guide (Command Guide)

13

3 Commands

3.1 Summary

A command consists of “@” (“40” in hexadecimal), 3 one-byte alphabetical characters (upper and lower
cases), and parameters (one-byte numbers

*

). For some commands, several parameters can be specified or

no parameter is required. Processing is executed by sending a delimiter at the end of the command.

Example: @SSW,1,1

“,”( a comma, “2C” in hexadecimal) is indicated between a command and parameter and between two
parameters.

: A “delimiter” is CR+LF, ”0D+0A” in hexadecimal.

* Some commands contain parameters specifying ASCII codes.

1. Commands for changing settings of the MSD

Commands and parameters with a comma are sent. (For some commands, several parameters can be
specified or no parameter is required.) When a command is processed correctly, the received command
is sent back without any change.

Example: @SSW,1,1

←Sent command

@SSW,1,1

←Reply from the MSD


2. Commands for receiving settings of the MSD

Commands are sent.( For some commands, parameters are required.) When a command is executed
correctly, the current settings are sent back following the received command. (For some commands,
several parameters are sent back.)

Example: @GSW

←Sent command

@GSW,1,1,1,1,1,1

←Reply from the MSD


3. Error

commands

If there is an undefined command or wrong parameter, the error command and the error details (one-byte
number) are sent back.

Example: @SSW,1,4

←Sent command (This example contains wrong parameter)

@ERR,1

←Error command from the MSD


4. Help

If only delimiter is sent without specifying any command, the command list is sent back. (If you want to
receive the whole list of the all commands, send a delimiter for 14 times, since the list is divided into 14
parts.)

Example:

←Sent delimiter

Advertising