LX3V-ETH-BD
LX3V-ETH-BD
LX3V-ETH-BD
User manual
Website: http://www.we-con.com.cn/en
Technical Support: liux@we-con.com.cn
Skype: “fcwkkj” or “Jason.chen842”
Phone: 86-591-87868869
QQ Group: 465230233
Technical forum: http://wecon.freeforums.net/
LX3V-ETH-BD
2. Key Features
1) Maximum number of connections 8, regardless of master and slave.
2) The current protocol only supports: MODBUS-TCP.
3) Light
POW: power light, normal state is always bright when
connected.
COM: the flicker frequency corresponds to communication with
plc.
DATA: data light blinks if the communication with network is ok
LINK: when connect to the network then the light is lit, if the
connect is not ok, there will be exterminated or chaotic situation.
Note:
When the power light and the com light blink simultaneously (1 Hz), that means the PLC does not
support Ethernet BD.
Table 4- 2
Bit device Word device
Operand
X Y M S K H KnY KnM KnS T C D V Z
S √
m √ √ √
D √
n √ √ √
n1 √ √ √
1) S is the address of slave (high byte) and communication command (low byte, defined by MODBUS
protocol);
2) m is the starting address number of the slave;
D is the length of the data (read or write), the unit is word. (The specific setting is shown in the
following table 4-2);
Table 4- 2
Function code Length Length (HEX)
Write coils 1968 0x7B0
Read coils 2000 0x7D0
Write registers 123 0x7B
Read registers 125 0x7D
3) n is the starting address of the storage unit for reading or writing data, occupying the subsequent
address unit, and the length is determined by the “D”;
4) n1 is the connection number corresponding to the Ethernet port connection number (specific
settings is shown as the following table 4-3).
Table 4- 3
Ethernet port 1 Connection number Ethernet port 2 Connection number
Connection 1 1000 Connection 1 1100
Connection 2 1001 Connection 2 1101
RS2 instruction
RS2 instruction
Instruction format:
00 03(numbers of transmission), means has sent 3 times;
00 06(the length of Modbus instruction, like 01 03 00 64 00 04;
01 03(station number and function code); 00 64(starting address0; 00 04(the length of address)
Table 4- 5
Bit device Word device
Operand
X Y M S K H KnY KnM KnS T C D V Z
S √
D √
M √ √
1) S is the starting address of the D device parameter table ranges from D0 to D7999. ( try to store in
the latched area in case of data loss).
2) D is the starting address of the M device parameter table ranges from M0 to M3071. ((try to store
in the latched area in case of data loss).
3) M is the connection number, set the number according to the Ethernet port. ( See the table
below for specific settings).
Table 4- 6
Connection number description
port Connection number
CPAVL
Ethernet port 1 1000
instruction
Ethernet port 2 1100
Note:
Only need one CPAVL instruction to configure multiple connections. The RS instruction needs to be
used for the corresponding connection
5.1 D Device
Table 5- 1
Word Read or
D device Description Others
address write
S+0 Version R
S+1 IP Section 1 R/W
S+2 IP Section 2 R/W
IP for BD module
S+3 IP Section 3 R/W
S+4 IP Section 4 R/W
S+5 Port Default value is K502 R/W
S+6 Gateway section 1 R/W
S+7 Gateway section 2 Parameters R/W
Gateway
S+8 Gateway section 3 for BD R/W
S+9 Gateway section 4 module R/W
S+10 Subnet mask section 1 R/W
S+11 Subnet mask section 2 R/W
Subnet mask
S+12 Subnet mask section 3 R/W
S+13 Subnet mask section 4 R/W
S+14 MAC section 1 R
S+15 MAC MAC section 2 R
S+16 MAC section 3 R
4 FUZHOU FU CHANG WECON ELECTRONICS TECHNOLOGY CO., LTD.
LX3V-ETH-BD
S+47 …… …… …… ……
*1. Disconnect time : only LX3VP(25105,16003)and LX3VE(25203,16003)or higher version can
support this function.
Disconnect time : When plc serves as slave, and there is no communication within specific time(it can
be configured in the program), then the communication will be disconnected.
When the disconnect time of each slave device is non-zero, then the "disconnect time" of each slave
device is used.
When the disconnect time of each slave device is non-zero, and the "total disconnect time" is not zero,
then the "total disconnect time" is used.
2) Number of connections
The maximum number of connections is 8
The setting of connection number: The number of settings should be the same as the number of
connections.
If the connection number is exceeded, user will get error code in D8067 (means the value is exceeded)
3) Protocol setting
Table 5- 2
Protocol Value
MODBUS-RTU Slaves 02H
MODBUS-RTU Main site 20H
When LX3V-ETH-BD serves as a slave, user could switch the master equipment.
The specific situation is: when the Ethernet BD serves as a slave, and reach the number of of
connection, one of the master equipment is disconnected, user could connect another master device.
Note:
No need to configure IP address when LX3V-ETH-BD serves as a slave.
5.2 M Device
Bit address Description
D+0 Reserved
D+1 Instruction execution
D+2 Instruction execution state
D+3 Communication error flag
D+4 Reserved connection 1
D+5 Reserved Configuration
D+6 Reserved
D+7 Reserved
D+8 Reserved
D+9 Timeout flag
D+10 Reserved
D+11 Instruction execution
D+12 Instruction execution state
D+13 Communication error flag
D+14 Reserved connection 2
D+15 Reserved Configuration
D+16 Reserved
D+17 Reserved
D+18 Reserved
D+19 Timeout flag
D+20 … …
Note:
The special device could display all BD board model. As the picture shown above, the Ethernet BD
model is HFF20(K -224)according to the position.
6.Examples
6.1 MODBUS Master
1) Ethernet parameter setting
Connection number is 2
Device 2
IP is 192.168.24.155
Port is 502
Gateway is 192.168.24.1