Wecon Rtu
Wecon Rtu
Board (V3)
Website: http://www.we-con.com.cn/en
Technical Support: [email protected]
Skype: fcwkkj
Phone: 86-591-87868869
QQ Group: 465230233
Technical forum: http://wecon.freeforums.net/
LX3V-2RS245-BD
1. Mounting instruction
Before the installation must be ensure that the PLC and BD associated equipment power off. Please
install the BD module in the corresponding position of the PLC, and lock the four standard screws. If
environmental dust is bigger, please cover BD right part by PLC’s cover. Please do not power
operation.
Caution
1) This BD module only support the following firmware versions or later. Users can check the PLC
firmware version in D8001.
LX3V-A2: 25010;
When mounting module to PLC, all the lights are blinking after power ON PLC please
upgrade the firmware of PLC.
2) Please fixed BD module on the PLC, poor contact may lead to failure.
3) BD module and top cover of PLC’s tightening torque is 0.3 ~ 0.6 N.m.
Warring
Make sure to power off the PLC before mounting or removing the BD module and put the cover in
right place.
2. Features
LX3V-RS485-BD is used for communication via RS485, it can be installed on PLC, it has the following
purposes.
3. Terminal
Figure 3-1
Figure 3-2
Figure 3-3
Table 4-1
Port No. Protocol
COM 1 It supports download and HMI monitoring protocols, supports RS422 and RS485.
It supports HMI monitoring protocol, MODBUS RTU protocol, RS instruction, only
COM 2
supports RS485.
COM 3 It supports MODBUS RTU protocol, RS instruction, N: N protocol only supports RS485.
COM 4 It supports MODBUS RTU protocol, RS instruction, N: N protocol only supports RS485.
COM 5 It supports MODBUS RTU protocol, RS instruction, N: N protocol only supports RS485.
COM 6 It supports MODBUS RTU protocol, RS instruction, N: N protocol only supports RS485.
5. New instructions
5.1 RS instruction
Table 5-1
Name Function 16 bit Pulsed Instruction format Steps
Table 5-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) User-defined protocol
S: Starting address of transmitted data.
m: Length of transmitted data.
D: Starting address for storage data.
n: Length of received data.
n1: Serial port Number, 0 means using COM0, 1 means using COM1
2) Modbus protocol
S: Slave station address (high byte), communicational command (low byte, define by MODBUS
protocol);
M: Register original address of call on slave station;
D: Data length will be read or write, units is word;
N: Memory units original address for read or write data, engross continuous address units,
length decided by D;
n1: Serial port Number, 0 means using COM0, 1 means using COM1;
Table 5-4
Bit device Word device
Operand
X Y M S K H KnY KnM KnS T C D V Z
S √
D √
M √ √
Setting the parameters of COM4 are in 20 consecutive addresses beginning of D0 and M0.
Table 5-5
Bit Content Word Content
Communication format, defined
M0 Retention D0
is 0
M1 Sending(RS2) D1 Station number, defined is 0
Remaining amount of data
Sending flag (RS2)
M2 D2 transmission(RS2)
Instruction state (MODBUS)
Interval of sending(MODBUS)
Receiving flag(RS2)
The number of receiving data
M3 Communication error flag D3
(RS2)
(MODBUS)
M4 Receiving (RS2) D4 Starting code STX(RS2)
M5 Retention D5 Ending code ETX(RS2)
M6 Retention D6 Communication protocol
M7 Retention D7 Retention
M8 Retention D8 Retention
M9 Timeout flag D9 Timeout, defined is 10
M10-M19 Retention D10-D19 Retention
8 bit 0 - - - - - - - -
Bit mode
16 bit 1 - - - - - - - -
115200 - 1 1 0 0 - - - -
57600 - 1 0 1 1 - - - -
Baud rate 38400 - 1 0 1 0 - - - -
(Bps) 19200 - 1 0 0 1 - - - -
9600 - 1 0 0 0 - - - -
4800 - Retention 0 1 1 1 - - - -
1 bit - - - - - 0 - - -
Stop bit
2 bit - - - - - 1 - - -
None - - - - - - 0 0 -
Parity Odd - - - - - - 0 1 -
Even - - - - - - 1 1 -
7 bit - - - - - - - - 0
Data bit
8 bit - - - - - - - - 1
6. Communications protocol
Table 6-1
Protocol Value
Modbus RTU slave 02H
Modbus ASCII slave 03H
RS instruction 10H
Modbus RTU master 20H
Modbus ASCII master 30H
Table 6-2
Bit Content Word Content
Communication format,
D+0 Retention S+0
defined is 0
D+1 Sending(RS2) S+1 Station number, defined is 0
Remaining amount of data
Sending flag (RS2)
D+2 S+2 transmission(RS2)
Instruction state (MODBUS)
Interval of sending(MODBUS)
Receiving flag(RS2)
The number of receiving
D+3 Communication error flag S+3
data(RS2)
(MODBUS)
D+4 Receiving (RS2) S+4 Starting code STX(RS2)
D+5 Retention S+5 Ending code ETX(RS2)
D+6 Retention S+6 Communication protocol
D+7 Retention S+7 Retention
D+8 Retention S+8 Retention
D+9 Timeout flag S+9 Timeout, defined is 10
D+10-D+
Retention S+10-S+19 Retention
19
2) Setting serial communications parameters;
3) Setting the station number of MODBUS slave;
4) Setting Modbus protocol (H03 means Modbus ASCII slave, H02 means Modbus RTU slave);
Example
Example
Table 6-4
Bit Content Word Content
Communication format,
D+0 Retention S+0
defined is 0
D+1 Sending(RS2) S+1 Station number, defined is 0
Remaining amount of data
Sending flag (RS2)
D+2 S+2 transmission(RS2)
Instruction state (MODBUS)
Interval of sending(MODBUS)
Receiving flag(RS2)
The number of receiving
D+3 Communication error S+3
data(RS2)
flag(MODBUS)
D+4 Receiving(RS2) S+4 Starting code STX(RS2)
D+5 Retention S+5 Ending code ETX(RS2)
D+6 Retention S+6 Communication protocol
D+7 Retention S+7 Retention
D+8 Retention S+8 Retention
D+9 Timeout flag S+9 Timeout, defined is 10
D+10-D+19 Retention S+10-S+19 Retention
2) Setting serial communications parameters: bit mode
Example:
H81 means 9600, 1, 8, none, 16 bit
H8081 means 9600, 1, 8, none 8 bit
3) RS protocol setting (H20);
4) Timeout setting;
5) Start and end setting;
6) RS2 instruction
In the program, there is a need to set up the serial communications, such as setting data starting
mode, baud rate, digits, and inspection, etc.
Example
7. N: N network
In N: N network protocol, the only one for the master, the other for the salve. Please view the
following content for detailed information.
Example
Note
1) Setting master in N: N protocol, the D8176 must be 0, otherwise communication will be fail,
and M8063 turn on, D8063 shows 7348 or 7448.
2) If there was anything fault in parameters setting, M8063 turn on, D8063 shows 7348 or 7448.
Example
Note
1) When setting slave in N: N protocol, D8176 must be non-zero. No other parameters.
2) If there was anything wrong in parameters, M8063 turn on, D8063 shows 7348 or 7448.
1) PLC as master
2) PLC as slave
8. Error codes
If there was anything wrong in communication, M8063 will turn on, and D8063 will display detailed
information about error.
Table 8-1
Device address Instructions of showed value
D8063 COM3 73+Error Code
Table 8-2
Explai Valu
Value Error information Value Explain
n e
Error in Modbus slave
0 10 40
address.
Error in length of the Error
1 11 41
data frame. in data Error in data
2 Error in address 12 trans 42 transmission
3 Error in CRC check. 13 missio 43 between PLC and BD
ERROR 4 Error in instruction code. 14 n 44 board
CODE 5 Error when receiving. 15 betwe 45
6 Error in data 16 en PLC 46
7 Error in buffer overflow 17 and 47
BD Error in N:N network
8 Error in frame 18 48
board parameters
Error in N:N network
9 Timeout 19 49
parameters-BD board
Version: V3.0.1
Date: Dec 2019