Professional Documents
Culture Documents
1. Connections
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
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.
Register access
Output Registers are accessed by function code 16: write multiple registers
input Registers are accessed by function code 3: read multiple registers.
4. Data transfer
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.
Bit
Byte No 7 6 5 4 3 2 1 0
1 ON – – – TB3 TB2 TB1 TB0 Control byte CB
www.visual-electronic.de 2
Protocol Description – MODBUS
LED Display LX, VTP
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.
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
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 <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
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)
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%
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).
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
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