Command Structure - Omron NL-200 User Manual

Led lighting controller
Table of Contents

Advertisement

11 Command
Configuration
(NL-220, NL-220F)
The NL-2XX can be configured via the Ethernet connection using UDP or TCP/IP. A Configuration
Program with source code can be downloaded from www.gardasoft.com.
11.1 Ethernet Communication
(NL-220, NL-220F)
For TCP, commands from a host should be sent to destination port 30313. Replies will be to destina-
tion port 30312. For UDP, commands from a host should be sent from source port 30312 to destina-
tion port 30313. Replies will be sent from source port 30313 to destination port 30312.
A TCP/IP connection will timeout and close if it is idle for more than 10 seconds. The host must send
regular "heartbeat" commands (eg "VR") to keep the link open.

11.2 Command Structure

Communication consists of commands sent by the host (controlling PC). All output generated by the
command is returned in reply UDP or TCP/IP packets. The last character sent is ">" ("greater than"
symbol). Once this is received, the host knows that the command has been completed.
It is recommended that the host waits for the ">" symbol before sending the next command. UDP
communications are not guaranteed to arrive, so the host software must be able to cope with lost
messages.
Using the GT command, a host can request that a message is sent to it whenever an error occurs.
Several commands can be put into one command line by separating them by a semi-colon (";"). A car-
riage return character should be sent to terminate the command line. The NL-220 will send any replies to
the commands and then send a '>' character to indicate that the command line has been completed.
Commands comprise a code of two letters followed by the parameters (if any) needed for the com-
mand. Spaces in the commands are ignored.
Numeric parameters are separated by a comma (","). For a parameter which is a time period the
default units are milliseconds. "s", "ms" or "us" can be added to the end of the number to indicate
seconds, milliseconds or microseconds. For currents, "a" or "ma" can be added to indicate "amps" or
milliamps". The default is amps.
Note that parameters are in "USA/UK" format so that a half is written "0.5" not "0,5"
11-1
NL-200 Series Controller User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nl-220Nl-220f

Table of Contents