欢迎图片

1 Communication

Last modified by Hunter on 2024/07/01 10:54

WECON

LX3V Serial 

Supported series: Wecon LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM

1)V-BOX setting

ItemSettingsNote
ProtocolWECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM 
ConnectionRS422/RS485 
Baud rate9600 
Data bit7 
ParityEVEN 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~99999 
SSS d0~99999 
WordXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~199 
DDD d0~7999 
SSS d0~99999 
SDSDSD d8000~9999 

3)Configure the communication protocol

图片-20220824152217-1.png

4)Cable Wiring

  • RS422

                                                                         image-20220824120614-5.png

  • RS485

                                                                   image-20220824120524-3.png

LX5V Serial 

This example introduces the establishment of serial port communication between V-BOX and LX5V. It is introduced through three parts: PLC software configuration, V-BOX software configuration, and hardware wiring.

Software configuration of PLC

1)PLC programming software

image-20220824142722-1.png

2)New PLC project

Click New Project and select the PLC model.

image-20220822172623-2.png

3)Set Serial port parameters

Follow the steps below to configure Serial port parameters

Baud rate:115200

Data bit:8

Stop bit:1

Parity:No verification

image-20220822172657-3.png

4)Registers list

image-20220822172730-4.png

V-BOX software configuration

1)V-BOX programming software

 image-20220824104124-1.png

2)V-NET add device

Open V-NET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the access key, password and remark, to add the device.

image-20220824104909-2.png

3)Set communication port parameters

Click the communication configuration button on the left to find the communication protocol with LX5V. After selecting the protocol, configure the communication parameters of the COM port.

Baud rate:115200

Data bit:8

Stop bit:1

Parity:No verification

image-20220824142130-1.png

hardware connection

1)Hardware wiring diagram

image-20220824142546-2.png

image-20220824142643-3.png

The above are all the steps for establishing serial port communication between V-BOX with LX5V PLC.

LX5V-N Ethernet 

This example introduces the establishment of Ethernet communication between V-BOX and LX5V-N. It is introduced through three parts: PLC software configuration, V-BOX software configuration, and hardware wiring.

Software configuration of PLC

1)PLC programming software

image-20220824142722-1.png

2)New PLC project

Click New Project and select the PLC model.

image-20220824143613-1.png

3)Set Ethernet port parameters

Follow the steps below to configure Ethernet parameters

PLC IP address:192.168.39.200

default gateway:192.168.39.1

subnet mask:255.255.255.0

image-20220824143744-2.png

4)Registers list

image-20220822172730-4.png

V-BOX software configuration

1)V-BOX programming software

 image-20220824104124-1.png

2)V-NET add device

Open V-NET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the access key, password and remark, to add the device.

image-20220824104909-2.png

3)Set communication Protocol

Click Communication to configure the LX5V plc protocol and IP address.

image-20220824144619-1.png

hardware connection

1)Hardware wiring diagram

image-20220824151127-2.png

The above are all the steps for establishing ethernet communication between V-BOX with LX5V PLC.

Allen-Bradley(Rockwell)

DF1 Advanced  Serial

MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5

1) V-Box Settings

ItemRecommended Note
ProtocolAllen Bradley DF1 Advanced 
ConnectionRS232 
Baud rate19200 
Stop bits1 
Data bits8 
ParityNone 
PLC Station No.1 
HMI Station No.0 

2) Address List

TypeDevice registersFormatRangeNote
BitI1I1ddd.dd0.0~255.15Only able to communicate with file number I1
O0O0ddd.dd0.0~255.15Only able to communicate with file number O0
S2S2ddd.dd0.0~255.15Only able to communicate with file number S2
B3B3ddd.dd0.0~255.15Only able to communicate with file number B3
BNBNddddd.dd0.0~99255.15

Bit data file B0~B99

First two digits is for file number

For example, BN13001.00 represents file number B13, address 001, the 0th bit. 

N7N7ddd.dd0.0~255.15Only able to communicate with file number N7
NNNNddddd.dd0.0~99255.15

Integer data file bit format N0~N99

First two digits is for file number

For example, NN13001.00 represents file number N13, address 001, the 0th bit. 

WordS2S2ddd0~255Only able to communicate with file number S2
T4ST4Sddd0~255Only able to communicate with file number T4 (Timer Preset Value)
T4PT4Pddd0~255Only able to communicate with file number T4 (Timer Accumulator Value)
TNSTNSddddd0~99255

Timer Preset Value

First two digits is for file number

For example, TNS99255 represents file number T99, address 255. 

TNPTNPddddd0~99255

Timer Accumulator Value

First two digits is for file number

For example, TNP99255 represents file number T99, address 255. 

C5SC5Sddd0~255Only able to communicate with file number C5 (Counter Preset Value)
C5PC5Pddd0~255Only able to communicate with file number C5 (Counter Accumulator Value)
CNSCNSddddd0~99255

Counter Preset Value

First two digits is for file number

For example, CNS99255 represents file number C99, address 255. 

CNPCNPddddd0~99255

Counter Accumulator Value

First two digits is for file number

For example, CNP99255 represents file number C99, address 255. 

N7N7ddd0~255Only able to communicate with file number N7
NNNNddd0~99255

Integer data file

First two digits is for file number

For example, NN99255 represents file number N99, address 255. 

Double WordF8F8ddd0~255

Only able to communicate with file number N7

FNFNddddd0~99255

Floating point data file

First two digits is for file number

For example, FN99255 represents file number F99, address 255. 

LNLNddddd0~99255Long

3) Cable Wiring

ABRS232.gif

MicroLogix Serial

MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5

1)V-BOX setting

ItemSettingsNote
ProtocolAllen-Bradley DF1 Advanced 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityNone 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersFormatRangeNote
BitII d.d0.0~255.15 
OO d.d0.0~255.15 
BB nnhh.dd0.0~ffff.15nn: block number (hex)
SS d.d0.0~255.15 
NN nnhh.dd0.0~ffff.15nn: block number (hex)
WordSS d0~255 
TSTS nnhh0~ffffnn: block number (hex)
TPTP nnhh0~ffff
CSCS nnhh0~ffff
CPCP nnhh0~ffff
NN nnhh0~ffff
CC nnhh0~ffff
TT nnhh0~ffff
RR nnhh0~ffff

3)Configure the communication protocolimage-20220824152928-1.png

4)Configure the communication protocol

image-20220824110724-1.png

Micro850_FreeTag Ethernet

This example introduces the establishment of Ethernet communication between Wecon V-box and CompactLogix L1769. It is introduced through three parts: PLC software configuration, V-box software configuration, and hardware wiring.

Software configuration of PLC

1)PLC programming software

image-20220714162600-1.png

2)New PLC project

Click New Project and select the PLC model.

image-20220714162617-2.png

 

image-20220714162652-4.png

3)Set Ethernet parameters

Follow the steps below to configure Ethernet parameters

PLC IP address:192.168.40.101

default gateway:192.168.40.1

subnet mask:255.255.255.0

image-20220714162713-5.png

 

V-box software configuration

1)V-box programming software

 image-20220714162725-6.png

2)Configure device network

Click the Configuration Download buttonimage-20220714115308-8.png, It is used to configure the device network, update the device time, obtain the device machine code, check the device network, etc.

In the example below, the IP address of V-Box is configured as 192.168.40.66, and the networking method is 4G connection 

image-20220714162737-7.png

 

3)V-net add device

Open VNET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the device machine code/product code, device password, and device alias to add the device.   image-20220714162752-8.png

 

4)Set communication port parameters

In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol. 

image-20220714162805-9.png

The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818.

image-20220824164346-1.png

After adding the protocol Allen-BradleyMicro850_FreeTag, clickimage-20220714143838-2.pngicon add label.image-20220714162827-11.png

5)Engineering production

According to your own needs, use the V-NET client software to edit the required data monitoring points.

image-20220714162841-12.png

hardware connection

1)Hardware wiring diagram

This example introduces Wecon V-box with Allen-Bradley L1769 PLC to establish communication through Ethernet. The connection diagram is as follows:

image-20220714162856-13.png

The above are all the steps for establishing Ethernet communication between Wecon V-box with CompactLogix L1769 PLC.

Micro850_FreeTag Ethernet(new)

This example introduces the establishment of Ethernet communication between Wecon V-box and 2080-LC50-48QWB,Micro850. It is introduced through three parts: PLC software configuration, V-box software configuration.

Software configuration of PLC

1)PLC programming software:Connected Components Workbench™

software.png

2)New PLC project

Click New Project and select the PLC model.

project create.png

3)Set Ethernet parameters

Follow the steps below to configure Ethernet parameters

PLC IP address:192.168.39.56

default gateway:192.168.39.1

subnet mask:255.255.255.0

Ethernet.png

4)connect PLC

When downloading the setting, need to change the status of the PLC to PRG

conne ab plc.png

V-box software configuration

1)V-box programming software

v-net client vers.png

2)Set communication port parameters

In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol. 

V-NET_Client_t2Rg2wpSoY.png

The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818.

V-NET_Client_communication.png

Export variables from PLC, select CSV file, comma delimited.

export1.png

CCW.Shell_E5Cwj4tUL3.png

After adding the protocol Allen-BradleyMicro850_FreeTag, clickimage-20220714143838-2.pngicon add label.

V-NET_Client_TNBuqy7T5r.png

3)Engineering production

According to your own needs, use the V-NET client software to edit the required data monitoring points.

V-NET_Client_KOR0AHEA4M.png

 

Ethernet DF1

download link

Crouzet PLC

CROUZET M3 (FBD) Serial

Support Series: Crouzet Millenium 3 CD12/CB12

1)V-BOX setting

ItemRecommended Note
ProtocolCROUZET M3 (FBD) 
ConnectionRS232 
Baud rate115200 
Stop bits1 
Data bits7 
ParityEVEN 

2)Address List

TypeDevice registersFormatRangeNote
BitII DD1~99Input
SLIBitSLIBit DD.dd1.0~24.15Serial Link Input 
SLOBitSLOBit DD.dd25.0~48.15Serial Link Output(Read only)
StateState D1~1PLC state(Read only)
WordAIAI DD1~99Analog Input
SLInSLIn DD1~24Serial Link Input 
SLOutSLOut DD25~48Serial Link Output(Read only)
TimeTime D1~6

Time1: Second

Time2: Minute

Time3: Hour

Time4: Day

Time5: Month

Time6: Year

OrderOrder D1~1

Running command(Write only)

=2: Run mode; =1: Stop mode;

3)Cable Wiring

CrouzetRS232 VBox.png

Information

✎Note: As the wiring diagram indicated, this protocol requires the DB9 serial port pin 4. But pin 4 is undefined for all V-Box, so it need the user to solder a Pull-up resistor to make the pin 4 working. As for how to solder the resistor on the motherboard, please contact with Wecon technical support for the details.

EMERSON

RTU Slave 

Supported series: EC10 series

1)V-BOX setting

ItemsSettingsNote
ProtocolEmerson 984 RTU Slave MODBUS 
ConnectionRS485 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
Device station No.1Need to be same as the PLC setting

2)PLC Setting

Remember to use the Control Star to enable the Modbus RTU communication for port 1 in system block before dowload into PLC.

ControlStarSystemBlock.png

ControlStarCommunicate.png

ControlStarModbus.png

3)Address List

TypeDevice registersFormatRangeNote
BitYYOOO0~377 
XXOOO0~377 
M0M0DDDD0~2047 
M1M1DDDDD2048~10239 
SM0SM0DDD0~255 
SM1SM1DDD256~511 
S0S0DDDD0~1023 
S1S1DDDD1024~4095 
T0T0DDD0~255 
T1T1DDD256~511 
C0C0DDD0~255 
C1C1DDD256~306 
WordDDDDDD0~7999 
ZZDD0~15 
TW0TW0DDD0~255 
TW1TW1DDD256~511 
SD0SD0DDD0~255 
SD1SD1DDD256~511 
CWCWDDD0~306 
Double WordCW0CW0DDD200~255 
CW1CW1DDDDD256~99999 

4) Cable Wiring

Emerson.png

HollySys PLC

LK Modbus RTU 

Supported Series: HollySys LK series PLC

1)V-BOX setting

ItemsSettingsNote
ProtocolHollySys LK Modbus RTU 
ConnectionRS485 
Baud rate38400 
Data bit8 
ParityNone 
Stop bit1 
Device station No.1 

2)Address List

TypeDevice registersFormatRangeNote
BitQXQXDDDDD.dd0~65535.15 
BitIXIXDDDDD.dd0~65535.15 
BitMXMXDDDDD.dd0~65535.15 
WordQWQWDDDDD0~99999 
WordIWIWDDDDD0~99999 
WordMWMWDDDDD0~99999 
WordMDMDDDDDD0~99999 

3)Cable Wiring

Hollysys485-2.png

LM Modbus RTU

Supported Series: HollySys LM3109/LM3107 PLC

1)V-BOX setting

ItemsSettingsOptionalNote
ProtocolHollySys LM Modbus RTUHollySys LM Modbus RTU 
ConnectionRS232RS485 
Baud rate3840038400 
Data bit88 
ParityNoneNone 
Stop bit11 
Device station No.11 

2)Address List

TypeDevice registersFormatRangeNote
BitQXQXDDDDD.o0~99999.7 
BitIXIXDDDDD.o0~99999.7 
BitMXMXDDDDD.o0~99999.7 
WordQWQWDDDDD0~99999 
WordIWIWDDDDD0~99999 
WordMWMWDDDDD0~99999 
WordMDMDDDDDD0~99999 

Cable Wiring

RS232

HollySysRS232.png

RS485

Hollysys LM Modbus RTU.gif

Siemens 

S7-200 Smart Ethernet 

download link

S7-300 Ethernet 

Supported Series: Siemens S7-300 series PLC

1)V-BOX setting

ItemsSettingsNote
ProtocolSimens S7-300 Ethernet 
ConnectionEthernet 
Port No.102 
PLC station No.2Need to be same as the PLC setting

2)Address List

TypeDevice registerHMI registerFormatRangeNote
BitIII ddddd.o0.0~99999.7 
QQQ ddddd.o0.0~99999.7 
MMM ddddd.o0.0~99999.7 
DB0.DB~DB99.DBDBxDBDDBxDB nndddd.o0.0~99999999.7

nn: block number;

dddd: address;

WordIIWIW ddddd0~99999 
QQWQW ddddd0~99999 
MMBMB ddddd0~99999 
MWMW ddddd0~99999

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MDMD ddddd0~99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

DB0.DB~DB99.DBDBxDBBDBxDBB nndddd0~99999999

nn: block number;

dddd: address

DBxDBWDBxDBW nndddd0~99999999
DBxDBDDBxDBD nndddd0~99999999

3)Configure the communication protocol

image-20220824161345-1.png

4)Cable Wiring

image-20220824161450-2.png

S7-1200 Ethernet 

download link

S7-XXX Ethernet l

Supported Series: Siemens S7-400, S7-1200 and S7-1500

1)V-BOX setting

ItemsSettingsNote
ProtocolSiemens S7-XXX 
ConnectionEthernet 
Port No.102 
Device No.Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400) 
HMI No.Rack (Default as 0) 

Slot from TIA Portal is equal to Device No. of V-net

Rack from TIA Portal is equal to HMI No. of V-net

image-20220824162459-3.png

image-20220824163305-2.png

2)Address List

TypeDevice registerHMI registerFormatRangeNote
BitIIM d.o

d:0--9999

o:0-7

 
QQQ d.o

d:0--9999

o:0-7

 
MMM d.o

d:0--9999

o:0-7

 
DB0.DB-DB99.DBDBxDBDBxDBnndddd.o

nn:0-9999,

dddd:0-9999,

o:0-7

nn:DB No.

dddd:address value

o: digit address

WordMMBMB dd:0-99999 
MMWMW dd:0-99999

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MMDMD dd:0-99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

IIWIW dd:0-99999 
QQWQW dd:0-99999 
DB0.DB-DB99.DBDBxDBBDBxDBBnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

DB0.DB-DB99.DBDBxDBWDBxDBWnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

Address value is a multiple of 2

DB0.DB-DB99.DBDBxDBDDBxDBDnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

Address value is a multiple of 4

3)Configure the communication protocol

image-20220824163448-3.png

✎Note:

  • The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three V-BOX.
  • V-BOX access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.

4)Cable Wiring

image-20220824162342-2.png

LOGO Ethernet 

Supported Series: Siemens Logo 0BA0, 0BA1 series

V-BOX Settings

ItemsSettingsNote
ProtocolSiemens LOGO 
ConnectionEthernet 
Port No.102 
PLC station No.2 

Address List

NumberAddress TypeData TypeRangeDB AddressPLC Address
1RTCWord1-7DB1.DBX984.00x001ec0
2VBByte0-1469DB1.DBX0.00x000000
3VDDouble Word0-1466DB1.DBX0.00x000000
4VWWord0-1468DB1.DBX0.00x000000
5NAQWord1-32DB1.DBX1406.00x002bf0
6NAIWord1-64DB1.DBX1262.00x002770
7AMWord1-64DB1.DBX1118.00x0022f0
8AQWord1-16DB1.DBX1072.00x002180
9AIWord1-16DB1.DBX1032.00x002040
10IBit1-64DB1.DBX1024.00x002000
11QBit1-64DB1.DBX1064.00x002140
12MBit1-112DB1.DBX1104.00x002280
13NIBit1-128DB1.DBX1246.00x0026f0
14NQBit1-128DB1.DBX1390.00x002b70
15VBit0-14697DB1.DBX0.00x000000

PLC Settings in LOGO Software:

Click [Tools]--[Ethernet Connections],shown as below.

12.PLC Protocol_html_8b9d2322edf89519.png

Set Ethernet connection parameter. IP, Subnet Mask, shown as below.

image-20221228142937-4.png

TSAP set:The value set by local TSAP is the remote TSAP set in HMI. PLC's remote TSAP is the opposite,shown as below.

image-20221228143047-5.png

 Download Project: Click "Address book" to add the IP address to be downloaded (fi."Detect" to check whether the IP address can be detected. Then click “ok”, and the system will prompt that PLC will be "STOP" mode. Click “YES” to start download.

image-20221228143246-6.png

V-BOX Communication Settings

Set PLC IP in [IP Address] settings;

LldwDGntf4.png

Enable V-BOX Ethernet in [Network];

WgvjfWbQif.png

TSAP setting

  • The initialization script needs to set the source TSAP address and the target TSAP address, otherwise the communication will not be successful.
function init.main()
addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address
addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address
end

Note: The name of the test script is init, 8192 and 4096 are the data used for the test, there is no HSW address in the register option, but you can directly set the value of the corresponding address through the code.

✎Note:

  • Communication port configuration: 
    • Continuous length needs to be set to 0.
    • Integration interval needs to be set to 1. (no change may result in data errors)
    • Set Port and Device Station NO.
    • Other set as defaulted.
  • Notes on the use of registers:
    • Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc.
    • Register VW: Use only registers thay are multiples of 2, such as 0, 2, 4 etc. (Using an odd-length register may result in data errors, such as 2 3 4 )

Mitsubishi 

FX1S,1N,2N Serial 

Supported Series: Mitsubishi FX1S, FX1N, FX2N series

1)V-BOX Settings

ItemSettingsNote
ProtocolMitsubishi FX1S/FX1N/FX2N 
ConnectionRS422/RS485/RS232 
Baud rate9600~115200 
Data bit7/8 
ParityEVEN/Odd/None 
Stop bit1/2 
PLC station No.1~255 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~99999 
SSS d0~99999 
SMSMSM d8000~9999 
WordXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~199 
DDD d0~7999 
SSS d0~99999 
SDSDSD d8000~9999 

3)Configure the communication protocol

image-20220825102844-3.png

4)Cable Wiring

  • RS422

image-20220825103350-4.png

image-20220825100845-4.png

FX3U,3G,3GA Serial 

Supported Series: Mitsubishi FX3U, FX3G, FX3GA series

1)V-BOX Settings

ItemSettingsNote
ProtocolMitsubishi FX3U/3G/3GA 
ConnectionRS422/RS485/RS232 
Baud rate9600~115200 
Data bit7/8 
ParityEVEN/Odd/None 
Stop bit1/2 
PLC station No.1~255 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~99999 
SSS d0~99999 
SMSMSM d8000~9999 
WordXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~199 
DDD d0~7999 
SSS d0~99999 
SDSDSD d8000~9999 

3)Configure the communication protocol

image-20220825102649-2.png

4)Cable Wiring

  • RS422

image-20220825103421-5.png

image-20220825100845-4.png

FX3U Ethernet 

Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L

1)V-BOX Settings

ItemsSettingsNote
ProtocolMitsubishi FX3U 
ConnectionEthernet 
Port No.5009Must be the same as the PLC setting
PLC station No.0 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX OOO0~377 
YYY OOO0~377 
MMM DDDD0~7679 
SMSMSM DDDD8000~8511 
SSS DDDD0~4095 
TSTSTS DDD0~511 
CSCSCS DDD0~255 
WordCNCNCN DDD0~199 
TNTNTN DDD0~511 
DDD DDDD0~7999 
SDSDSD DDDD8000~8511 
RRR DDDDD0~32767 

3)Ethernet Module Settings

FX3U-ENET-L module configuration
Set up the FX3U-ENET-L Ethernet module settings as follows.
Select the module location, which in this document is Module 0.

image-20221116105850-1.png

Select "Operational setting" to enter the following screen.

The Ethernet module IP is set to 192.168.39.254 in this document, and other options are default.

image-20221116105947-1.png

Select "Open setting" to enter the setting interface, the settings are as follows.

The third item "Protocol" selects TCP, and "Open system" selects MELSOFT connection, which allows the

Mitsubishi programming software GX works2 to communicate with the FX3U via the Ethernet module.

image-20221116110802-1.png

Click on "transter setup" - "PC side I/F setting", see the following figure.

After setting, the first download must use the programming cable, as shown in the figure; after that, can

use the IP set in the "Ethernet board" to communicate directly with the network cable.

image-20221116110832-2.png

Read and write data from the Ethernet module

image-20221116110907-3.png

Set "Transter setup" to COM communication, and read or write operation as shown below

image-20221116110917-4.png

4)PLC Settings (GX Works 2)

Create a blank FX5U project

Find Current Connection in the navigation

image-20221116111427-1.png

Select Connection Channel List

Select Ethernet board communication

image-20221116111451-2.png

Select Ethernet Module
Set the IP address of the PLC

image-20221116111509-3.png

Read or write PLC data, in this document is read

image-20221116111651-4.png

image-20221116111727-5.png

4)Configure the communication protocol

image-20221119101946-2.png

FX5U Serial 

Mitsubishi FX5U series PLC

1)V-BOX Settings

ItemSettingsNote
ProtocolMitsubishi FX5U 
ConnectionRS422/RS485 
Baud rate9600 
Data bit7 
ParityOdd 
Stop bit1 
PLC station No.1~255Need to be the same as PLC settings

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~303237 
YYY o0~303237 
MMM d0~99999 
BBB h0~7FFF 
FFF d0~32767 
SBSBSB h0~7FFF 
TSTSTS d0~1023 
TCTCTC d0~1023 
STSSTSSTS d0~1023 
STCSTCSTS d0~1023 
CSCSCS d0~1023 
CCCCCC d0~1023 
SMSMSM d0~9999 
LLL d0~32767 
SSS d0~4095 
WordWWW h0~3FF 
TNTNTN d0~1023 
STNSTNSTN d0~1023 
CNCNCN d0~1023 
RRR d0~32767 
SWSWSW h0~7FFF 
ZZZ d0~23 
DDD d0~7999 
SDSDSD d0~11999 

3)PLC Settings (GX Works 3)

Create a blank FX5U project

Find the 485 serial port module in the system navigation bar and double click to enter the settings.

12.PLC Protocol_html_5c9cb13fac1e6c93.png

Select protocol in the setting item, and set parameters.

12.PLC Protocol_html_de942589ca070228.png

Set station number, and [Message Pattern] (Pattern 1 or Pattern 4)

12.PLC Protocol_html_387ec7d00b5feb59.png

Click the [Apply] button to finish the setting.

Click download and select the items as below, then click [execute] to download the configuration to PLC.

12.PLC Protocol_html_cdef1c5ec8cc2105.png

 As soon as download is completed, connect PLC with serial port, then configure it in the [Specify Connection Destination Connection].

Done.

4)Configure the communication protocol

image-20220825104904-1.png

5)Cable Wiring

  • RS422

image-20220825105105-2.png

image-20220825105533-3.png

FX5U Ethernet 

Mitsubishi FX5U series PLC

1)V-BOX Settings

ItemsSettingsNote
ProtocolMitsubishi FX5U 
ConnectionEthernet 
Port No.5002Must be the same as the PLC setting
PLC station No.0 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~303237 
YYY o0~303237 
MMM d0~99999 
BBB h0~7FFF 
FFF d0~32767 
SBSBSB h0~7FFF 
TSTSTS d0~1023 
TCTCTC d0~1023 
STSSTSSTS d0~1023 
STCSTCSTS d0~1023 
CSCSCS d0~1023 
CCCCCC d0~1023 
SMSMSM d0~9999 
LLL d0~32767 
SSS d0~4095 
WordWWW h0~3FF 
TNTNTN d0~1023 
STNSTNSTN d0~1023 
CNCNCN d0~1023 
RRR d0~32767 
SWSWSW h0~7FFF 
ZZZ d0~23 
DDD d0~7999 
SDSDSD d0~11999 

3)PLC Settings (GX Works 3)

Find the [Ethernet port] in the navigation area.

12.PLC Protocol_html_8e8f85ace087346c.png

Select [Own Node Settings] in the [Setting Item List];

Set [IP Address], [Subnet Mask], [Default Gateway];

Click [Detailed Settings] into [Ethernet Configuration (Built-in Ethernet Port)] windows;

12.PLC Protocol_html_5d98495052c8c10e.png

Select [SLMP Connection Module] and add into host station as below picture shows;

Set Port number as 5002 (this is necessary settings);

Click [Close with Reflecting the Setting] to save and close window;

12.PLC Protocol_html_14b489fdc6c6589d.png

Click [Apply] to completed Etherenet settings;

Switch to the [On line data operation] interface as below, check the item and click [Execute] to download.

12.PLC Protocol_html_c93025a968a8a9e7.png

4)Configure the communication protocol

图片-20220825112403-1.png

5)Cable Wiring

12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png

L02 Serial 

Mitsubishi L02 series CPU built-in serial port.

1)V-BOX Settings

ItemSettingsNote
ProtocolMitsubishi L02 
ConnectionRS422 
Baud rate115200 
Data bit8 
ParityOdd 
Stop bit1 
PLC station No.1~255Need to be the same as PLC settings

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX h0~FFFF 
BitYYY h0~FFFF 
BitMMM d0~9999 
BitLLL d0~9999 
BitFFF d0~9999 
BitBBB h0~FFFF 
BitVVV d0~2047 
BitTCTCTC d0~9999 
BitSSSSSS d0~9999 
BitSCSCSC d0~9999 
BitCSCSCS d0~9999 
BitCCCCCC d0~9999 
BitSBSBSB h0~FFFF 
BitSMSMSM d0~2047 
BitSTSSTSSTS d0~1023 
BitSSS d0~9999 
BitDXDXDX h0~FFFF 
BitDYDYDY h0~FFFF 
BitTSTSTS d0~9999 
BitDbitDbitDbit d.d0~99999.0~15 
WordWWW h0~FFFF 
WordTNTNTN d0~99999 
WordSNSNSN d0~99999 
WordCNCNCN d0~99999 
WordRRR d0~99999 
WordSWSWSW h0~FFFF 
WordZZZ d0~99999 
WordZRZRZR h0~FFFF 
WordDDD d0~99999 

3)Communication Settings

image-20220825160648-3.png

4)Cable Wiring

  • RS422

image-20220825161612-8.png

image-20220825160820-4.png

L02 Ethernet 

Mitsubishi L series CPU built-in Ethernet port.

1)V-BOX Settings

ItemsSettingsNote
ProtocolMIT L02 CPU MELSEC 
ConnectionEthernet 
Port No.1025Must be the same as the PLC setting
PLC station No.0Must be the same as the PLC setting

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX h0~FFFF 
BitYYY h0~FFFF 
BitMMM d0~9999 
BitLLL d0~9999 
BitFFF d0~9999 
BitBBB h0~FFFF 
BitVVV d0~2047 
BitTCTCTC d0~9999 
BitSSSSSS d0~9999 
BitSCSCSC d0~9999 
BitCSCSCS d0~9999 
BitCCCCCC d0~9999 
BitSBSBSB h0~FFFF 
BitSMSMSM d0~2047 
BitSTSSTSSTS d0~1023 
BitSSS d0~9999 
BitDXDXDX h0~FFFF 
BitDYDYDY h0~FFFF 
BitTSTSTS d0~9999 
BitDbitDbitDbit d.d0~99999.0~15 
WordWWW h0~FFFF 
WordTNTNTN d0~99999 
WordSNSNSN d0~99999 
WordCNCNCN d0~99999 
WordRRR d0~99999 
WordSWSWSW h0~FFFF 
WordZZZ d0~99999 
WordZRZRZR h0~FFFF 
WordDDD d0~99999 

3)PLC Settings (GX Works2 )

Create a project

Set PLC IP, subnet mask and gateway;

Select [Binary Code] as communication data code;

12.PLC Protocol_html_776e17505f3fc6c0.png

Set PLC port number, for example 1025

12.PLC Protocol_html_8d0d1a22d388f70b.png

Save settings;

Download project into PLC device;

Restart PLC device;

4)Configure the communication protocol

image-20220825142659-1.png

5)Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

Q12H Serial 

This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol

Download link

QJ71E71 Ethernet 

Mitsubishi QJ71E71 Ethernet communication module;

1)V-BOX Settings

ItemsSettingsNote
ProtocolMIT QJ71E71 MELSEC 
ConnectionEthernet 
Port No.1025Must be the same as the PLC setting
PLC station No.0Must be the same as the PLC setting

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX h0~1FFF 
YYY h0~1FFF 
MMM d0~99999 
LLL d0~8191 
FFF d0~2047 
BBB h0~1FFF 
VVV d0~2047 
TSTSTS d0~2047 
TCTCTC d0~2047 
SSSSSS d0~2047 
SCSCSC d0~2047 
CSCSCS d0~1023 
CCCCCC d0~1023 
SBSBSB h0~7FF 
SSS d0~8191 
DXDXDX h0~1FFF 
DYDYDY h0~1FFF 
SMSMSM d8000~9999 
WordSDSDSD d0~2047 
DDD d0~12287 
WWW h0~1FFF 
TNTNTN d0~2047 
SNSNSN d0~2047 
CNCNCN d0~1023 
RRR d0~32767 
SWSWSW h0~7FF 
ZZZ d0~15 
ZRZRZR h0~FE7FF 

3)PLC Settings(GX Works2)

  • Click [Ethernet/CC IE/MELSECNET];
  • Please select [Ethernet] as network type;
  • Set station I/O number according to situation (For example, 0020 means that the module is connected to PLC CPU in first order);
  • Select [Online] as Mode;
  • image-20221119171343-2.png
  • Click [Operation setting] to set IP;
  • Select [Binary Code] as [Communication Data Code];
  • image-20221119171436-3.png
  • Click [Open setting]
  • Set protocol: TCP;
  • Set [unpassive] in [Open system];
  • Set [receive] in [Fixed buffer];
  • Set [procedure Exist] in [Fixed buffer communication];
  • Disable [Pairing open];
  • Set [No confirm] in [Existence confirmation];
  • Host station port number: 5009;
  • Save settings;
  • image-20221119171611-4.png
  • Download project into PLC and restart it

4)Configure the communication protocol

image-20221119171832-5.png

5)Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

Delta

DVP Ethernet

Supoort Series: DELTA DVP20/32/40/60ES200RE/200TE or any DVP models with built-in Ethernet port, DELTA DVPEN01-SL module

1)V-BOX Settings

ItemsSettingsNote
ProtocolDELTA DVP MODBUS TCP 
ConnectionEthernet 
Port No.502 
Device No.1 
VBox Device No.0 

2)Address List 

TypeDevice registersVBox registersFormatRangeNote
BitXXX OOO0~377 
BitYYY OOO0~377 
BitM0M0M0DDDD0~1535 
BitM1M1M1DDDD1536~4096 
BitTTTDDD0~255 
BitCCCDDD0~255 
BitSSSDDDD0~1023 
WordD0D0D0DDDD0~4095 
WordD1D1D1DDDD4096~11999 
WordTTTDDD0~255 
WordCCCDDD0~199 
Double WordHCHCHCDDD200~255 

3) PLC Setting:

1. Create new project in Delta WPL Soft, and click Setting to open the communication settings:

DVPEthernetWPLSoft2.png

2. Set up the communication type and PLC IP:

DVPEthernetSetup.png

3. Click OK and save the settings. Then click Communication on toolbar, then click Transfer Setup to open new window:

DVPEthernetTransfer.png

4. Select Communication Mode as PC => PLC to download or select PC <=PLC to upload:

DVPEthernetPLCtoPC.png

5. Click Auto-Search Ethernet Module to find the PLC on the same LAN network:

DVPEthernetAutoSearch.png

4) V-BOX Setting:

Set the same IP address according to the setting from WPL Soft:

DVPEthernetVNETPortocol.png

DVP serial

Supoort Series: DELTA DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX 

1)V-BOX Settings

ItemsSettingsNote
ProtocolDELTA DVP PROTOCOL 
ConnectionRS232 
Baud Rate9600 
Stop Bit1 
Data Bit7 
ParityEVEN 
Device No.1 

2)Address List

TypeDevice registersVBox registersFormatRangeNote
BitXXX OOOOOO0~303237 
BitYYY OOOOOO0~303237 
BitMMMDDDDD0~99999 
BitTTTDDDDD0~99999 
BitCCCDDDDD0~99999 
BitSSSDDDDD0~99999 
WordDDD DDDDD0~99999 
WordTTTDDDDD0~99999 
WordCCCDDD0~199 
Double WordCCCDDDDD200~99999 

3)Wiring Diagram

Delta DVP PROTOCOLSerial232.png

AS Ethernet

1)V-BOX Settings

ItemsSettingsNote
ProtocolDELTA AS300 MODBUS TCP 
ConnectionEthernet 
Port No.502 
Device No.1 
HMI No.0 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX d0~63 
BitYYY d0~63 
BitDDD d0~29999 
BitMMM d0~8191 
BitSMSMSM d0~4095 
BitSSS h0~2047 
BitTTT d0~511 
BitCCC d0~511 
BitHCHCHC d0~255 
WordXXX h0~63 
WordYYY d0~63 
WordSRSRSR d0~2047 
WordDDD d0~29999 
WordTTT d0~511 
WordCCC h0~511 
WordEEE d0~9 

3)Configure the communication protocol

image-20220831160010-4.png

4)Cable Wiring

Figure

image-20220831155101-1.pngimage-20220831160055-5.png

Pin Definition Diagram

image-20220831155157-3.png

Omron

CP1 Series

Download

CP2M Series

Download

EC55 Series 

Supported device: EC55 temperature instrument

1)V-BOX Settings

ItemsSettingsNote
ProtocolOmron EC55 
ConnectionRS485 (9600, 2, 7, EVEN) 
Port No.None 
PLC station No.0 

2)Address List

TypeRegisterDevice rangeHMI rangeFunction
Double wordC00-13 (Hex)0-19Set read only parameter for area 0
C10-4D(Hex)0-77Set Read/Write parameter for area 0
C30-CD(Hex)0-205Set Read/Write parameter for area 1
Word800-13(Hex)0-19Set read only parameter in area 0
810-4D(Hex)0-77Set Read/Write parameter in area 0
830-CD(Hex)0-205Set Read/Write parameter in area 1
CP-0-6Read controller intrinsic property
CS-0-2Read controller states
CA-0-17Action command

3)Device Settings

Omron E5CC PLC configuration

After entering the Communication Settings menu, please set the parameters to the default values for the following table. Press the cycle key of the instrument to enter the next setting.

12.PLC Protocol_html_3d95e093792ba98a.png

According to PLC configuration and communication port configuration information of the HMI, provide the corresponding steps and configuration screenshots. This configuration needs to communicate properly with the above PLC configuration. The project settings are as follows

12.PLC Protocol_html_be583aa69dd6cf4c.png

✎Note: The communication settings for HMI should be consistent with this setting.

4)Configure the communication protocol

image-20220831161041-1.png

5)Cable Wiring

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

✎Note:

  • COM3 only available in PI8000/PI9000 series.
  • CA address could not support continuous writing function;
  • Because of CP address intrinsic property: read control intrinsic property, so please place the character input part in use. Set address with CP0 and character length 10, used to display controller type. And place a number input part, set address with CP5 (cache size). Do not place other CP type address without CP0 in screen, otherwise CP type address is invalid
  • When set value into read & write address, it is necessary to switch the temperature instrument meter to the corresponding interface according to the menu of the instrument where the address locates, so that the value could be written, otherwise, the value could not be written; When the communication write setting of the instrument is turned off, the writing function is invalid. Writing function could be opened by using the 00 address of the CA register, which write 01 value.
  • When continuous writing of a value to a read-write address, please make sure all continuous writing address could be written. Otherwise, if one of these addresses could not be written, then all continuous writing commands will fail.
  • Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.
  • When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.
  • Please set the communication delay time of 10ms in setting, to avoid that the instrument may not be able to communicate in a short time due to too fast data access and too much connection requests.
  • image-20220831161356-1.pngBecause of the particularity of the instrument, it is necessary to write the value of the address in the menu interface corresponding to the address, and to enter the menu where the address locates, so that the value could be written.

Xinje

XC serial

1)V-BOX Settings

ItemSettingsNote
ProtocolXINJE XC MODBUS 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitMMM d0~8511 
BitXXX o0~1747 
BitYYY o0~1747 
BitSSS d0~1023 
BitTTT d0~4095 
BitCCC d0~634 
WordDDD d0~8511 
WordTDTDTD d0~618 
WordCDCDCD d0~634 
WordFDFDFD d0~8511 

3)Configure the communication protocol

image-20220831163041-1.png

4)Cable Wiring

Figure

image-20220831163406-2.pngimage-20220831163422-3.png

Pin Definition Diagram

image-20220831163441-4.png

XD serial

1)V-BOX Settings

Supported Series: Xinjie XD/XE Series PLC

ItemSettingsNote
ProtocolXINJE XD/XC MODBUS 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitMMM d0~74999 
BitX1xxX1xxX1xx o0~1177 
BitX2xxX2xxX2xx o0~277 
BitXXX o0~77 
BitY1xxY1xxY1xx o0~1177 
BitY2xxY2xxY2xx o0~277 
BitYYY o0~4095 
BitSMSMSM d0~4999

 

BitTTT d0~4999 
BitCCC d0~4999 
BitETETET d0~31 
BitSESESE d0~31 
BitHMHMHM d0~11999 
BitHSCHSCHSC d0~39 
BitHSHSHS d0~999 
BitHTHTHT d0~1999 
BitHCHCHC d0~1999 
BitSSS d0~7999 
WordDDD d0~69999 
WordIDIDID d0~99 
WordID1xxID1xxID1xx d0~999 
WordID2xxID2xxID2xx d0~299 
WordQDQDQD d0~99 
WordQD1xxQD1xxQD1xx d0~999 
WordQD2xxQD2xxQD2xx d0~299 
WordSDSDSD d0~4999 
WordTDTDTD d0~575 
WordCDCDCD d0~575 
WordETDETDETD d0~31 
WordHDHDHD d0~24999 
WordHSDHSDHSD d0~1023 
WordHTDHTDHTD d0~95 
WordHCDHCDHCD d0~95 
WordHSCDHSCDHSCD d0~31 
WordFDFDFD d0~8191 
WordSFDSFDSFD d0~5999 
WordFSFSFS d0~47 

3)Configure the communication protocol

image-20220831163923-7.png

4)Cable Wiring

Figure

image-20220831163406-2.pngimage-20220831163553-6.png

Pin Definition Diagram

image-20220830160232-3.png

Schneider

Schneider MODBUS RTU

1)V-BOX Setting

ParametersRecommendedNotes
ProtocolSchneider MODBUS RTU 
ConnectionRS485 
Baud rate19200 
Data bit8 
ParityEven 
Stop bit1 
PLC station No.1 

2)Address List

Bit/WordDevice typeFormatRangeMemo
BIXDDDDDo0 ~ 655357Input bit (read only)
BQXDDDDDo0 ~ 655357Write multiple coils
BMXDDDDDDo0 ~ 9999997Output register bit (octal)
WMWDDDDDD0 ~ 999999Output register
DWMDDDDDDD0 ~ 999999Output register

3)Configure the communication protocol

image-20220902104329-1.png

4)Cable Wiring

RS-485 2W (RJ45 Connector): The following is the view from the soldering point of a connector.

image-20220817154212-1.jpeg

Inovance

H3U serial

1)V-BOX Settings

ItemSettingsNote
ProtocolINOVANCE H3U PLC 
ConnectionRS422 
Baud rate9600 
Data bit7 
ParityEVEN 
Stop bit1 
PLC station No.0 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~303237 
BitYYY o0~303237 
BitMMM d0~99999 
BitTTT d0~99999 
BitCCC d0~99999 
BitSMSMSM d8000~999 
BitSTS d0~99999 
BitLampLampLamp d0~0 
WordXXX o0~303237 
WordYYY o0~303237 
WordMMM d0~99999 
WordTTT d0~99999 
WordCCC d0~199 
WordDDD d0~7999 
WordSSS d0~99999 
WordSDSDSD d8000~9999 
WordRRR d0~32767 

3)Configure the communication protocol

image-20220831164626-1.png

4)Cable Wiring

Figure

image-20220831164646-2.pngimage-20220831164700-3.png

Pin Definition Diagram

image-20220831164731-4.png

Panasonic

FP serial

1)V-BOX Settings

ItemSettingsNote
ProtocolPanasonic FP MFWTOCOL 
ConnectionRS232 
Baud rate9600 
Data bit8 
ParityODD 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX d0~9999 
BitYYY d0~9999 
BitRRR d0~9999 
BitTTT d0~9999 
BitCCC d0~9999 
BitLLL d0~9999 
WordWXWXWX d0~9999 
WordWYWYWY d0~9999 
WordWRWRWR d0~9999 
WordWLWLWL d0~9999 
WordLDLDLD d0~9999 
WordDTDTDT d0~65535 
WordFLFLFL d0~9999 
WordEVEVEV d0~9999 
WordSVSVSV d0~9999 

3)Configure the communication protocol

image-20220831165238-4.png

4)Cable Wiring

Figure

image-20220831165031-3.pngimage-20220831165017-2.png

Pin Definition Diagram

image-20220831165008-1.png

LS

XBC serial

1)V-BOX Settings

ItemSettingsNote
ProtocolLS XBC CNet 
ConnectionRS232 
Baud rate115200 
Data bit8 
ParityNONE 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitPPP d0~2047 
BitMMM d0~2047 
BitLLL d0~11263 
BitKKK d0~16183 
BitFFF d0~2047 
BitDDD d0~32767 
BitRRR d0~32767 
BitUUU d0~4095 
WordPPP d0~2047 
WordMMM d0~2047 
WordLLL d0~11263 
WordKKK d0~16183 
WordFFF d0~2047 
WordCCC d0~2047 
WordTTT d0~2047 
WordDDD d0~32767 
WordNNN d0~21503 
WordRRR d0~32767 
WordUUU d0~4095 
WordZZZ d0~127 
WordSSS d0~127 

3)Configure the communication protocol

image-20220831170147-1.png

4)Cable Wiring

Figure

image-20220831170306-4.pngimage-20220831170254-3.png

Pin Definition Diagram

image-20220831170215-2.png

XGK FEnet Ethernet

Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module

1)V-BOX Settings

ItemsSettingsNote
ProtocolLG XGK FEnet(Ethernet) 
ConnectionEthernet 
Port No.2004 

2)Address List

TypeRegisterRangeFormatNote
WordP0~2047P d 
M0~2047M d 
K0~2047K d 
F0~2047F d 
T0~2047T d 
C0~2047C d 
Z0~127Z d 
S0~127S d 
L0~11263L d 
N0~21503N d 
D0~32767D d 
R0~32767R d 
ZR0~65535ZR d 
UxDD0~6331UxDD nnddnn: 0~63, dd: 0~31

✎Note:

  • In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
  • The [UxDD] register, defined in the PLC is Ux.dd, x represents the block, and dd represents 0-31 of each block. There are 64 blocks in the PLC;
  • All bit registers are in the form of bits in word, and the range is the same as the word register;

3)Communication Settings

image-20220831171127-1.png

4)Cable Wiring

12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png

INVT

1)V-BOX setting

ItemSettingsNote
ProtocolINVT_IVC2L 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.1

2)Address List

TypeDevice registersFormatRangeNote
BitXXOOO0~377 
YYOOO0~377 
MMDDDD0~1999 
SMSMDDD0~255 
SSDDD0~991 
TTDDD0~255 
CCDDD0~255 
WordDDDDDD0~7999 
SDSDDDD0~255 
ZZDD0~15 
TTDDD0~255 
CCDDD0~199 
Double wordCCDDD200~255 

3)Communication Settings

盒子创建英威腾.png

4)PLC software

英威腾软件.png

5)PLC setting 

Open the INVI plc software, create a new project or open a project that has already been created

英威腾创建1.png

Configure serial port parameters.

英威腾创建2.png

PC connect PLC

英威腾创建3.png

Download

英威腾下载.png

6)Cable Wiring

wire.png

Modbus 

MODBUS RTU Slave (All function)

Select the protocol "Modbus RTU Slave (All Fuction)",

Then set baud rate, port, stop bits, data bits, parity.

1624342015914-382.png

Modbus Meter

The following example is using the Linfee meter LNF96EY to demonstrate how to set up the Modbus communication.

1. Wiring the RS485 cable first. Because the pin 58 is A, the pin 59 is B for meter. Here we use the COM1 to connect. So the diagram like follows:

LinfeeTerminalDiagram.png

2. Check the specific Modbus parameter in the communication menu from LED display.

So from the following pictures, we can know the Meter Address is 85, Baud rate is 9600, CRC None.

Information

✎Note: Meter address usually corresponding to the Modbus Slave Station No. on the Modbus communication.

MeterModbusAllView.png

3. Set up the communication in the Configuration tab.

Select the protocol as ModBus RTU Slave (All Function). And set the communication parameters like below.

VNETCommunicationtabmeter.png

4. Create new real-time monitoring tag accroding to Modbus manual

Enter the address we want to read from the meter. The following table is intercept part of the manual for Linfee Modbus manual.

0x03/0x04 command data register address:

 Address DescriptionData FormatData Length(Word)Remark
  HEXDEC       
0x000Reserved   
0x022Reserved   
0x044Reserved   
0x066Uafloat2Phase Voltage data, Unit V
0x088Ubfloat2Phase Voltage data, Unit V
0x0A10Ucfloat2Phase Voltage data, Unit V
0x0C12Uabfloat2Line Voltage data, Unit V
0x0E14Ubcfloat2Line Voltage data, Unit V
0x1016Ucafloat2Line Voltage data, Unit V
0x1218Iafloat2Phase Current data, Unit A
0x1420Ibfloat2Phase Current data, Unit A
0x1622Icfloat2Phase Current data, Unit A
Information

✎Note: We usually use the Data Type 4 for read the Modbus registers(Function Code 03)

For example, here we want to read the Phase Voltage Ua (Modbus offset 0006), the Modbus register main No. requires input decimal number, and check whether the actual address has one address offset, so the tag configured like the following screenshot:

VNETModbusTagSettings.png

VNETModbusTagByteSettings.png

Information

✎Note: If the read value is incorrect, please check whether need to change the Byte order.

Set the Modbus Slave Station No.

ModbusStationSettings.png

If the communication is setup successfully, the tag will show green light.

Monitoringtaggreenlight.png

MODBUS RTU Master

Select the protocol "Modbus RTU Master",

Then set baud rate, port, stop bits, data bits, parity

1624348709622-711.png

address list

TypeData TypeFunction code and description
Word304 (Read Input Registers: Read the current binary value in one or more input registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
403 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W603 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W1603 (read holding register: read current binary value in one or more holding registers)
10 (write values to multiple addresses )
Bit001 (Read coil state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits, ie write continuously)
102 (Read the input state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W501 (Read coil state to obtain the current state of a set of logic coils)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W1501 (Read coil state to obtain the current state of a set of logic coils)
0F (Write multiple bits)

MODBUS TCP Slave (All function)

Supported series: MODBUS TCP controller

V-B0X works as MODBUS TCP MASTER connecting with TCP SLAVE

1)V-BOX Setting

ItemsSettingsNote
ProtocolMODBUS TCP Slave (All function) 
ConnectionEthernet 
Port No.502 
PLC station No.1

2)Address List

TypeData TypeFunction code & Description
Word304 (read input register: read current binary value in one or more input registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
403 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W603 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W1603 (read holding register: read current binary value in one or more holding registers)
10 (write values to multiple addresses )
Bit001 (Read coil state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits, ie write continuously)
102 (Read the input state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W501 (Read coil state to obtain the current state of a set of logic coils)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W1501 (Read coil state to obtain the current state of a set of logic coils)
0F (Write multiple bits)

3)Communication Settings

Configure V-BOX Ethernet IP in Networking Settings

image-20220902111833-3.png

Configure PLC Ethernet IP in Communication;

image-20220902111121-1.png

4)Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

communicate with VB inverter

download link

User define

More serial port script instruction,please refer manual:Lua script function--->3.Serial port operation

Read the temperature sensor.

the commond format is as beliow:

Send commond:01 03 02 00 00 03 04 73

Feedback commond:01 03 06 07 F7 0E 7E B7 35

Temperature data:07 F7,desimal = 2039,it means temperature is 20.39℃.

Humidity data:0E 7E,desimal = 3710, it mean humidity is 37.10%RH.

Script Demo:

function com.main()
   --dosomething
    openPlc()
end

function openPlc()
 if obj then
 -- If the serial port opened,then read/write data by timing
 local wri = string.pack(">HHHH",0X0103,0X0200,0X0003,0X0473)
 local arr = reading(wri)
 -- if arr ~=nil then
  if arr[1] ==33 and arr[2] ==v[2][2] and arr[3] ==v[2][3] then
    local A = arr[4]*256
    local B = A+arr[5]
    -- addr_setword(v[1],B)
  end
-- end
 else
   --judge if there is a serial object, then initialize and open the serial port
   local configs = {
         name = 'COM1', --Select serial port COM1
         mode = 485, --Communication mode RS485
         baud_rate = 9600, --Baud rate 9600
         stop_bit = 1, --stop bit 1
         data_len = 8, --data length 8
         check_bit = 'NONE', --no parity
    }
    obj,err = serial.open(configs) --Open serial port
   if not obj then
     print("serial open :failed", err) -- Open serial port failed
   end
 end
end


function reading(wri)
   obj:flush() -- Clear serial port
   obj:write(wri)-- Write serial port
  print(string.byte(wri,1,#wri))
   obj:flush() -- Clear serial port
  local readed =obj:read(9,1000) -- Read 9 bytes, timeout 1 second
  if readed and readed ~= "" then
  -- judge that a non-empty string is read
    print(string.byte(readed,1,#readed))
     a={string.byte(readed, 1, #readed)}
    if nil ~= a[4] and nil ~= a[5] and nil ~= a[6] and nil ~= a[7] then
       a1=a[4]*256+a[5]
       a2=a[6]*256+a[7]
       addr_setword("@HDW0",a1)
       addr_setword("@HDW1",a2)
    end
    return {string.byte(readed, 1, #readed)}
  elseif readed == nil then
    print("serial read err:", err or "")
    return nil
  end
  return nil
end