You are on page 1of 6

Protocol Description – MODBUS TCP

LED Displays LX, VTP

1. Connections

Power supply 230 VAC 50 Hz

Pin Pinout Description Sketch


1 L Insulation displacement 1
2 N connection,
Phoenix Quickon IP65, 3 2
3
3 pins, wires 0.75 - 1.5 mm2

Power supply 24 VDC

Pin Pinout Description Sketch


1 +24 V DC Insulation displacement 1
2 GND connection, 4
Phoenix Quickon IP65, 2
3 nc
4 poles, wires 0.34 – 0.75 mm2 3
4

MODBUS TCP

Description Sketch
Phoenix PLUSCON RJ45
Mounting frame VS-8-A-RJ45/MOD-1-IP67,
Order No. 1689080.
Female insert VS-8-BU-RJ45-6-MOD/BU,
Order No. 165315555

Connector Position

Mounting sets Plug position

BS L100/200 Plugs, right, at the bottom Project specific plug positions on request
AOE L100/200 Plugs, right, at the top without any further costs:
WM L100/200 Plugs, right, at the bottom For example: right, left, top, bottom, rear
EM L100 Plug, back

www.visual-electronic.de 1
Protocol Description – MODBUS
LED Display LX, VTP

2. MODBUS configuration

IP address

IP address is factory adjusted. The Display device is connected as Remote Modbus TCP Server with service
port 502. The coding of the used data is adjustable by membrane keys at the display.

Changing the IP address

The IP address may be changed by updating the system initialisation file.


The included CD contains the system initialisation file *.gwc and the Software WINGATE to edit this file.
After editing, the file has to be saved as “system.gwc” and uploaded via FTP to the device. After the next
startup, the device then will use the new address.
Username and password to FTP login is both “deutschmann”.

3. Modbus control for display LX

Register access
Output Registers are accessed by function code 16: write multiple registers
input Registers are accessed by function code 3: read multiple registers.

Output register area starts at address 0x0000.


Input register area starts at address 0x0040 (= word address).

4. Data transfer

4.1 Output bytes

4 bytes are used for control data. One data byte is added per display figure.The data field may be larger than
the display length. Excess bytes are then cut according to the indicated formatting.

Ex.: 20 output bytes are required for a 16-digit display.

Bit
Byte No 7 6 5 4 3 2 1 0
1 ON – – – TB3 TB2 TB1 TB0 Control byte CB

2 Control telegram No Type of data

3 Row number of parameter data

4 Formatting or parameter data

5 Display data ASCII character

... ... ASCII character

... ... ASCII character

20 Display data ASCII character

www.visual-electronic.de 2
Protocol Description – MODBUS
LED Display LX, VTP

Byte 1: Control byte:

ON This bit must always be 1 in order that the display accepts data.
TB0-3: Toggle bits. The information stored in the output bits are only evaluated
when at least one of these 4 bits is being modified.
Bits 4-6 Not used, must always be zero.

Byte 2: Type of Data

30HEX data is interpreted as standard text.

Byte 3: Line number


The displays are controlled oriented in lines, i.e. for the multiline indicator panel LX always only one line is
described for each data block
Example: For the display LX 16128, 3 lines may be selected:
Line 1 31HEX 16x128 pixel, large characters
Line 2 32HEX 8x128 pixel, upper line small characters
Line 3 33HEX 8x128 pixel, bottom line small characters

Byte 4: Data attribute, formating

Attribute / effect: It is possible to influence the appearance with this control character. The single bits have
the meaning displayed in the table. In order to combine the effects with one another, it is
necessary to set the single bits accordingly.
Alternatively, In-line-formating may be used to change font or color.
In-line-formating is described below.

7 6 5 4 3 2 1 0
Y G 1 B I F A A Description
1 X X X 0 0 Orientation: left
1 X X X 0 1 Orientation: centered
1 X X X 1 0 Orientation: right
1 X X X 1 1 Illegal
1 X X 0 X X (*) Effect bolt: Off
1 X X 1 X X (*) Effect bolt: On
1 X 0 X X X (*) Effect inverse: Off
1 X 1 X X X (*) Effect inverse: On
1 0 X X X X Effect flashing: Off
1 1 X X X X Effect flashing: On
Color control
0 0 X X X X X X Red
0 1 X X X X X X Green
1 0 X X X X X X Yellow

www.visual-electronic.de 3
Protocol Description – MODBUS
LED Display LX, VTP

4.2 In-Line Formatting

In addition to the settings in the formatting byte different formatting with special control commands within the
line of text can be transferred.
The control commands are structured according to the following scheme: right angle bracket (<), optional
forward slash (/), letter of the command, optional decimal number (0.100) as a parameter to the command,
and finally the closing angle bracket (>).

Font <f_>

With <f0>until <f15>, a font can be selected. The command changes the font for the following character.
Multiple changes within a line are possible. A matching font is preset for each row will be chosen
automatically, if no control command to the font is specified.</f15> </f0>.
If this command is not used, a suitable default font is used for each line.

The following font types are possible:

Value Font Height total Height above the baseline Remark


0 Lx8x16 16 12
1 Lx8x16 hoch 16 14
2 lx12x16 16 14
3 Lx6x8 8 7
4 Arial10px 16 13 Proportional Font
5 Arial12px 19 15 Proportional Font
6 Arial16px 24 19 Proportional Font

Bold font <b> </b>

The <b> control command selects bold letters starting from the next character.
The </ b> command returns to normal.

www.visual-electronic.de 4
Protocol Description – MODBUS
LED Display LX, VTP

Font color <c _>

A font color can be selected with <c0> to <c15>. The command changes the font color starting from the next
character. Multiple changes within a row are possible.
If no control command for the font color is specified, the color is selected according to the format byte. (Red /
green / yellow)

The following colors are possible:

Value 0 1 2 3 4 5 6 7
Color Black Red Green Yellow Blue Magenta Turquoise White
Value 8 9 10 11 12 13 14 15
Color Orange Red 16% Green Yellow Blue 16% Magenta Turquoise Grey
16% 16% 16% 16%

Background color <g _>

A background color can be selected with <g0> to <g15>. The command changes the background color
starting from the next character. Multiple changes within a row are possible.
If no control command for the background color is specified, the background color will be black.
Color code is the same as for font color.

Brightness <i_>
With <i0> to <i100>, the brightness of the entire display can be set to a value between 0 and 100%.
When switching on, 100% is always set (full brightness).

4.3 Input Bytes

Via 2 IN bytes the status information are returned from the display.

Bit
Byte No 7 6 5 4 3 2 1 0
1 ST – – – TB3 TB2 TB1 TB0 SB1

2 – – – – – – E1 E2 SB2

ST The ST bit is set by the display indicating readiness for service, normally after having set the
output bit ON.
TB0-3: Repetition of toggle bits. These bits are set analogous to the bits TB0...TB3 in the output byte
CB1, as soon as a new data telegram was processed by the device.
I.e. if TB0—TB3 are different in CB1 and SB1, the device cannot accept any further data.
E1, E2: Reserved for error display.

www.visual-electronic.de 5
Protocol Description – MODBUS
LED Display LX, VTP

5. ASCII character set

Standard characters 0-127

Dec Hex Char Dec Hex Char Dec Hex Char Dec Hex Char

0 0 NUL 32 20 64 40 @ 96 60 `
1 1 SOH 33 21 ! 65 41 A 97 61 a
2 2 STX 34 22 ” 66 42 B 98 62 b
3 3 ETX 35 23 # 67 43 C 99 63 c
4 4 EOT 36 24 $ 68 44 D 100 64 d
5 5 ENQ 37 25 % 69 45 E 101 65 e
6 6 ACK 38 26 & 70 46 F 102 66 f
7 7 BEL 39 27 ' 71 47 G 103 67 g
8 8 BS 40 28 ( 72 48 H 104 68 h
9 9 HT 41 29 ) 73 49 I 105 69 i
10 A LF 42 2A * 74 4A J 106 6A j
11 B VT 43 2B + 75 4B K 107 6B k
12 C FF 44 2C ´ 76 4C L 108 6C l
13 D CR 45 2D - 77 4D M 109 6D m
14 E SO 46 2E . 78 4E N 110 6E n
15 F SI 47 2F / 79 4F 0 111 6F o
16 10 DLE 48 30 0 80 50 P 112 70 p
17 11 Dcl 49 31 1 81 51 Q 113 71 q
18 12 DC2 50 32 2 82 52 R 114 72 r
19 13 DC3 51 33 3 83 53 S 115 73 s
20 14 DC4 52 34 4 84 54 T 116 74 t
21 15 NAK 53 35 5 85 55 U 117 75 u
22 16 SYN 54 36 6 86 56 V 118 76 v
23 17 ETB 55 37 7 87 57 W 119 77 w
24 18 CAN 56 38 8 88 58 X 120 78 x
25 19 EM 57 39 9 89 59 Y 121 79 y
26 1A SUB 58 3A : 90 5A Z 122 7A Z
27 1B ESC 59 3B ; 91 5B [ 123 7B {
28 1C FS 60 3C < 92 5C \ 124 7C |
29 1D GS 61 3D = 93 5D ] 125 7D }
30 lE RS 62 3E > 94 5E ^ 126 7E ~
31 1F US 63 3F ? 95 5F _ 127 7F DEL

www.visual-electronic.de 6

You might also like