6. LW2 Programmer's 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:RAP-B511-US-W)
6.3.3. Querying the Device Label
The respond shows the device label which is a read-only parameter in LW2, but it can be changed by an LW3
command, see the
Set the Device Label
Command and Response
{LABEL}
(LABEL=<device_label>)CrLf
Example
{label}
(LABEL=RAP-B511_ENG-6517)
section.
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
RAP-B511 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 Current Firmware Package Version
Command and Response
{F}
(FW:<FW_VER>)CrLf
Example
{f}
(FW:1.0.3b2)
<FW_VER>
is the firmware package version.
6.3.6. View Firmware for All Controllers
Shows the firmware versions of all installed controllers.
Command and Response
#firmwareversion
{FC}
(CF·<DESC>)CrLf
(CF·<DESC>)CrLf
...
(CF END)CrLf
Example
{fc}
(CF RAP-B511-US-W v1.0.3b2)
(CF END)
The device has one control panel.
60