LX3V-2RS485-BD 1
LX3V-2RS485-BD 1
LX3V-2RS485-BD 1
LX3V-RS458-BD
Board
Make sure to power off the PLC before mounting the 2PT2DA module and remove the top
cover of PLC, screwed to the PLC.
Caution: when output current, make sure that the load resistance should be less than 500Ω,
otherwise the output will be lower.
Warring: make sure to power off the PLC before mounting or removing the BD module.
LX3V-RS485-BD is used for communication via RS485, it can be installed on PLC, it has the
following purposes.
1. Data transmission by no-protocol
Data transmit to designation register’s address by RS command.
2. Data transmission by proprietary protocol
Data transimission is in based on 1: N via RS485.
COM 2 It supports HMI monitoring protocol, MODBUS RTU protocol, RS command, only
supports RS485.
WECON Technology Co., Ltd.
COM 3 It supports MODBUS RTU protocol, RS command, N:N protocol, only supports
RS485.
COM 4 It supports MODBUS RTU protocol, RS command, N:N protocol, only supports
RS485.
COM 5 It supports MODBUS RTU protocol, RS command, N:N protocol, only supports
RS485.
COM 6 It supports MODBUS RTU protocol, RS command, N:N protocol, only supports
RS485.
V. New commands
2. CPAVL command
Setting the parameters of COM4 are in 40 consecutive addresses beginning of D0 and M0.
Bit Content Word Content
D0 Retention M0 Communication format, defined is 0
D1 Sending(RS2) M1 Station number, defined is 0
D2 Sending flag (RS2) M2 Remaining amount of data
Instruction state (MODBUS) transmission(RS2)
Interval of sending(MODBUS)
D3 Receving flag(RS2) M3 The number of receiving data(RS2)
Communcation error flag(MODBUS)
D4 Receving(RS2) M4 Starting code STX(RS2)
D5 Retention M5 Ending code ETX(RS2)
D6 Retention M6 Communication protocol
D7 Retention M7 Retention
D8 Retention M8 Retention
D9 Timeout flag M9 Timeout, defined is 10
D10-D19 Retention M10-M19 Retention
2. Communication Settings
2.1 Communication setting of MODBUS slave
1) CPAVL is a command for communication,
“S” means starting address of “D” registers, “D” means starting address of “M” registers.
Bit Content Word Content
S+0 Retention D+0 Communication format, defined
is 0
S+1 Sending(RS2) D+1 Station number, defined is 0
S+2 Sending flag (RS2) D+2 Remaining amount of data
Instruction state (MODBUS) transmission(RS2)
Interval of sending(MODBUS)
S+3 Receving flag(RS2) D+3 The number of receiving
Communcation error flag(MODBUS) data(RS2)
S+4 Receving(RS2) D+4 Starting code STX(RS2)
S+5 Retention D+5 Ending code ETX(RS2)
S+6 Retention D+6 Communication protocol
S+7 Retention D+7 Retention
S+8 Retention D+8 Retention
S+9 Timeout flag D+9 Timeout, defined is 10
S+10-S+19 Retention D+10-D+19 Retention
2)Setting serial communications parameters;
3)Set the station number of MODBUS slave;
4)Set Modbus protocol (H03 means Modbus ASCII slave, H02 means Modbus RTU slave)
Example
“S” means starting address of “D” registers, “D” means starting address of “M” registers.
Bit Content Word Content
S+0 Retention D+0 Communication format, defined
is 0
S+1 Sending(RS2) D+1 Station number, defined is 0
S+2 Sending flag (RS2) D+2 Remaining amount of data
Instruction state (MODBUS) transmission(RS2)
Interval of sending(MODBUS)
S+3 Receving flag(RS2) D+3 The number of receiving
Communcation error flag(MODBUS) data(RS2)
S+4 Receving(RS2) D+4 Starting code STX(RS2)
S+5 Retention D+5 Ending code ETX(RS2)
S+6 Retention D+6 Communication protocol
S+7 Retention D+7 Retention
S+8 Retention D+8 Retention
S+9 Timeout flag D+9 Timeout, defined is 10
S+10-S+19 Retention D+10-D+19 Retention
2)Setting serial communications parameters;
3)Set the station number of MODBUS slave;
4)Set Modbus protocol (H03 means Modbus ASCII slave, H02 means Modbus RTU slave)
Example
“S” means starting address of “D” registers, “D” means starting address of “M” registers.
Bit Content Word Content
S+0 Retention D+0 Communication format, defined
is 0
S+1 Sending(RS2) D+1 Station number, defined is 0
WECON Technology Co., Ltd.
S+2 Sending flag (RS2) D+2 Remaining amount of data
Instruction state (MODBUS) transmission(RS2)
Interval of sending(MODBUS)
S+3 Receving flag(RS2) D+3 The number of receiving
Communcation error flag(MODBUS) data(RS2)
S+4 Receving(RS2) D+4 Starting code STX(RS2)
S+5 Retention D+5 Ending code ETX(RS2)
S+6 Retention D+6 Communication protocol
S+7 Retention D+7 Retention
S+8 Retention D+8 Retention
S+9 Timeout flag D+9 Timeout, defined is 10
S+10-S+19 Retention D+10-D+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 command
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: