6. LW2 Programmers' Reference
6.3. General LW2 Commands
6.3.1. Querying the Supported Commands
The LW2 commands supported by the device can be queried by this command.
Command and Response
#producttype
{LCMD}
(LCMD# <command>: <description>)CrLf
...
(LCMD END)CrLf
Example
{lcmd}
(LCMD# LCMD: List all commands)
(LCMD# PING: Always response PONG)
(LCMD# CT: Compile time)
...
(LCMD END)
INFO:
The response is longer, not all the lines can be seen in the example.
6.3.2. Querying the Product Type
The device responds its name.
Command and Response
#producttype
{i}
(I:<PRODUCT_TYPE>)CrLf
Example
{i}
(I:MMX4x2-HT200)
6.3.3. Querying the Device Label
The response shows the device label, which is a read-only parameter in LW2, but it can be changed by an
LW3 command, see the
Setting the Device Label
Command and Response
{LABEL}
(LABEL=<DEVICE_LABEL>)CrLf
Example
{label}
(LABEL=MMX_OFFICE)
section.
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
MMX4x2 series – User's Manual
6.3.4. Querying the Control Protocol
The device can be controlled with different control protocols. This command queries the active protocol of
the currently used control interface.
Command and Response
#protocol
{P_?}
(CURRENT·PROTOCOL·=·#<protocol>)CrLf
Example
{p_?}
(CURRENT PROTOCOL = #1)
'#1' means the device communicates with LW2 protocol.
6.3.5. Querying the Firmware Version of the CPU
View the CPU firmware version.
Command and
Response #firmwareversion
{F}
(FW:<FW_VER><s>)CrLf
Example
{f}
(FW:1.6.0b13 r99)
<FW_VER>
is the firmware version. It is followed by
6.3.6. Viewing Firmware for All Controllers
Shows the firmware versions of all installed controllers.
Command and Response
{FC}
(CF·<DESC>)CrLf
(CF·<DESC>)CrLf
...
(CF END)CrLf
Example
{fc}
(CF MMX4x2-HT200 1.3.4b3)
(CF END)
The device has one control panel.
<s>
string, which may indicate special versions.
72
Need help?
Do you have a question about the MMX4x2 Series and is the answer not in the manual?