19
Serial Data Setting Examples
Sending data to an addressed display
Let us assume the display has address 45 and you want to send the value 123.4 to it at
19200 baud. Your data will be sent as <STX>45123.4<CR>.
For 4 digits, set:
Ad.45
Ad.45
Ad.45
Ad.45
Ad.45
,
S.C.02
S.C.02
S.C.02
S.C.02
S.C.02
,
E.C.0d
E.C.0d
E.C.0d
E.C.0d
E.C.0d
,
baud 19200
baud 19200
baud 19200
baud 19200
baud 19200
,
8n1
8n1
8n1
8n1
8n1
,
t.r.05
t.r.05
t.r.05
t.r.05
t.r.05
,
t.c.00
t.c.00
t.c.00
t.c.00
t.c.00
,
to. 03
to. 03
to. 03
to. 03
to. 03
,
S.P.00
S.P.00
S.P.00
S.P.00
S.P.00
,
d.L.06
d.L.06
d.L.06
d.L.06
d.L.06
,
ddd.d
ddd.d
ddd.d
ddd.d
ddd.d
For 6 digits, set:
AAAAAddr.45
ddr.45
ddr.45
ddr.45
ddr.45
,
S.Chr.02
S.Chr.02
S.Chr.02
S.Chr.02
S.Chr.02
,
E.Chr.0d
E.Chr.0d
E.Chr.0d
E.Chr.0d
E.Chr.0d
,
baud 19200
baud 19200
baud 19200
baud 19200
baud 19200
,
dF. 8n1
dF. 8n1
dF. 8n1
dF. 8n1
dF. 8n1
,
t.reP.05
t.reP.05
t.reP.05
t.reP.05
t.reP.05
,
t.chr.00
t.chr.00
t.chr.00
t.chr.00
t.chr.00
,
to. 03
to. 03
to. 03
to. 03
to. 03
,
S.Pos.00
S.Pos.00
S.Pos.00
S.Pos.00
S.Pos.00
,
d.LEn.06
d.LEn.06
d.LEn.06
d.LEn.06
d.LEn.06
,
ddddd.d
ddddd.d
ddddd.d
ddddd.d
ddddd.d
Extracting data from a complex string (data editing)
Let us assume the data is sent as a complex string at 1200 baud such as ...
<Start Char><Address Characters><Data: ligo6ho987hmw1234.56kg abcd><End Char.>
and you want to display only the numeric weight value...
For 4 digits, set:
Ad
Ad
Ad
Ad
Ad.78
.78
.78
.78
.78
,
S.C.02
S.C.02
S.C.02
S.C.02
S.C.02
,
E.C.03
E.C.03
E.C.03
E.C.03
E.C.03
,
baud 1200
baud 1200
baud 1200
baud 1200
baud 1200
,
8n1
8n1
8n1
8n1
8n1
,
t.r.05
t.r.05
t.r.05
t.r.05
t.r.05
,
t.c.00
t.c.00
t.c.00
t.c.00
t.c.00
,
to. 03
to. 03
to. 03
to. 03
to. 03
,
S.P.15
S.P.15
S.P.15
S.P.15
S.P.15
,
d.L.06
d.L.06
d.L.06
d.L.06
d.L.06
,
dd.dd
dd.dd
dd.dd
dd.dd
dd.dd
For 6 digits, set:
Addr.78
Addr.78
Addr.78
Addr.78
Addr.78
,
S.Chr.02
S.Chr.02
S.Chr.02
S.Chr.02
S.Chr.02
,
E.Chr.03
E.Chr.03
E.Chr.03
E.Chr.03
E.Chr.03
,
baud 1200
baud 1200
baud 1200
baud 1200
baud 1200
,
dF. 8n1
dF. 8n1
dF. 8n1
dF. 8n1
dF. 8n1
,
t.reP.05
t.reP.05
t.reP.05
t.reP.05
t.reP.05
,
t.chr.00
t.chr.00
t.chr.00
t.chr.00
t.chr.00
,
to. 03
to. 03
to. 03
to. 03
to. 03
,
S.Pos.15
S.Pos.15
S.Pos.15
S.Pos.15
S.Pos.15
,
d.LEn.06
d.LEn.06
d.LEn.06
d.LEn.06
d.LEn.06
,
dddd.dd
dddd.dd
dddd.dd
dddd.dd
dddd.dd
d.Len.xx
s.Pos.xx -1 to -19
s.Pos.xx 0 to 99
Value to
display
Start Character
Address Characters ligo6ho987hmw1234.56kg abcd end
character
STX 78 ETX
9122-0670 P4
Solder Switch closed
9122-0670 P4
Bias +5V on Sig B
Bias 0V on Sig A
120 Ohm termination resistor
Solder Switch closed
IC4
IC3
IC4
IC3
RS232 Version (IC3 missing)
RS485 Version (IC4 missing)
C
B
A
C
B
A