OC-G-5646-2-ET OLED Lighting Controllers - User Manual
10
Command configuration
The OC-G-5646-2-ET can be configur ed thr ough the Ether net
connection using UDP or TCP/IP. You can download sam ple C++, C#,
VB.NET code fr om
to allow configur ation.
10.1
Ethernet configuration
For TCP, com m ands fr om a host should be sent to destination por t
30313 with r eplies sent to destination por t 30312. For UDP, com m ands
fr om a host should be sent fr om sour ce por t 30312 to destination por t
30313. Replies ar e sent fr om sour ce por t 30313 to destination por t
30312.
A car r iage r etur n (ASCII 13) char acter should be sent to ter m inate the
com m and line, in case m ultiple packets get joined together .
10.2
Command structure
Com m unication consists of com m ands sent by the host (contr olling
PC). All output gener ated by the com m and is r etur ned in r eply UDP or
TCP/IP packets. The last char acter sent is
>
(‘gr eater than’ sym bol).
Once this is r eceived, the host knows that the com m and has been
com pleted.
We r ecom m end that the host waits for the > sym bol befor e sending
the next com m and. UDP com m unications ar e not guar anteed to ar r ive,
so the host softwar e m ust be able to cope with lost m essages.
Using the
GT
com m and, a host can r equest that a m essage is sent to it
whenever an er r or occur s.
Sever al com m ands can be put into one com m and line by separ ating
them by a sem i-colon (
;
).The OC-G-5646-2-ET sends any r eplies to the
com m ands followed by a
>
char acter to show that the com m and line
has com pleted.
All com m ands com pr ise a code of two letter s followed by any optional
par am eter s. All spaces in the com m ands ar e ignor ed.
Num er ic par am eter s ar e separ ated by a com m a (
,
). For a par am eter
which is a tim e per iod, the default units ar e m illiseconds. ‘s’, ‘m s’ or ‘us’
can be added to the end of the num ber to indicate seconds,
m illiseconds or m icr oseconds. For cur r ents, ‘A’ or ‘m a’ can be added to
indicate am ps or m illiam ps. The default unit is am ps.
Not e:
par am eter s ar e in ‘USA/UK’ for m at so that a half is wr itten ‘0.5’
not ‘0,5’. For exam ple:
—
29
—