S7-200 Smart Serial
V-BOX setting
Items | Settings | Note |
Protocol | Siemens S7-200 CPU22x/Smart PPI | |
Connection | RS485 | |
Baud rate | 9600 | |
Data bit | 8 | |
Parity | EVEN | |
Stop bit | 1 | |
PLC station No. | 2 |
Address List
Type | Device register | Format | Range | Note |
Bit | I | I ddddd.o | 0.0~99999.7 | |
Q | Q ddddd.o | 0.0~99999.7 | ||
V | VWbit ddddd.o | 0.0~99999.7 | ||
V | V ddddd.o | 0.0~99999.7 | ||
M | M ddddd.o | 0.0~99999.7 | ||
SM | ddddd.o | 0.0~99999.7 | ||
S | ddddd.o | 0.0~99999.7 | Read only | |
T | ddddd | 0~99999 | Timer state, read only | |
C | ddddd | 0~99999 | Counter state, read only | |
Word | I | IW ddddd | 0~99999 | |
Q | QW ddddd | 0~99999 | ||
AI | AIW ddddd | 0~99999 | ||
AQ | VB ddddd | 0~99999 | ||
V | VW ddddd | 0~99998 | VW0=VB (0~1) VW2=VB (2~3) Address value is a multiple of 2 | |
V | VD ddddd | 0~99998 | VD0=VB (0~3) VD2=VB (4~7) Address value is a multiple of 4 | |
M | MB ddddd | 0~99999 | ||
M | MW ddddd | 0~99999 | MW0=MB(0~1) MW2=MB(2~3) Address value is a multiple of 2 | |
M | MD ddddd | 0~99999 | MD0=MB(0~3) MD4=MB(4~7) Address value is a multiple of 4 | |
T | TW ddddd | 0~99999 | Value of timer | |
C | CW ddddd | 0~99999 | Value of counter | |
W | SW ddddd | 0~99999 |
PLC setting
Connect and Download
Cable Wiring
S7-200 Smart Ethernet
V-BOX setting
Items | Settings |
Protocol | Siemens S7-200 Smart(Ethernet) |
Connection | Ethernet |
Port No. | 102 |
PLC station No. | 2 |
PLC setting
Connect and Download
Cable Wiring
V-Box : RJ45 Ethernet interface
PLC : RJ45 Ethernet interface
S7-300 Ethernet
Supported Series: Siemens S7-300 series PLC
V-BOX setting
Items | Settings | Note |
Protocol | Simens S7-300 Ethernet | |
Connection | Ethernet | |
Port No. | 102 | |
PLC station No. | 2 | Need to be same as the PLC setting |
Address List
Type | Device register | Format | Range | Note |
Bit | I | I ddddd.o | 0.0~99999.7 | |
Q | Q ddddd.o | 0.0~99999.7 | ||
M | M ddddd.o | 0.0~99999.7 | ||
DB0.DB~DB99.DB | DBxDB nndddd.o | 0.0~99999999.7 | nn: block number; dddd: address; | |
Word | I | IW ddddd | 0~99999 | |
Q | QW ddddd | 0~99999 | ||
M | MB ddddd | 0~99999 | ||
MW ddddd | 0~99999 | MW0=MB(0~1) MW2=MB(2~3) Address value is a multiple of 2 | ||
MD ddddd | 0~99999 | MD0=MB(0~3) MD4=MB(4~7) Address value is a multiple of 4 | ||
DB0.DB~DB99.DB | DBxDBB nndddd | 0~99999999 | nn: block number; dddd: address | |
DBxDBW nndddd | 0~99999999 | |||
DBxDBD nndddd | 0~99999999 |
Configure the communication protocol
Cable Wiring
S7-1200 Ethernet
V-BOX Setting
Items | Settings | Note |
Protocol | Siemens S7-1200 | |
Connection | Ethernet | |
Port No. | 102 | |
PLC station No. | 2 |
Address List
Type | Device register | HMI register | Format | Range | Note |
Bit | I | I | M d.o | d:0--9999 o:0-7 | |
Q | Q | Q d.o | d:0--9999 o:0-7 | ||
M | M | M d.o | d:0--9999 o:0-7 | ||
DB0.DB-DB99.DB | DBxDB | DBxDBnndddd.o | nn:0-9999, dddd:0-9999, o:0-7 | nn:DB No. dddd:address value o: digit address | |
Word | M | MB | MB d | d:0-99999 | |
M | MW | MW d | d:0-99999 | MW0=MB(0~1) MW2=MB(2~3) Address value is a multiple of 2 | |
M | MD | MD d | d:0-99999 | MD0=MB(0~3) MD4=MB(4~7) Address value is a multiple of 4 | |
I | IW | IW d | d:0-99999 | ||
Q | QW | QW d | d:0-99999 | ||
DB0.DB-DB99.DB | DBxDBB | DBxDBBnndddd | nn:0-9999 dddd:0-9999 | nn:DB No. dddd:address value | |
DB0.DB-DB99.DB | DBxDBW | DBxDBWnndddd | nn:0-9999 dddd:0-9999 | nn:DB No. dddd:address value Address value is a multiple of 2 | |
DB0.DB-DB99.DB | DBxDBD | DBxDBDnndddd | nn:0-9999 dddd:0-9999 | nn:DB No. dddd:address value Address value is a multiple of 4 |
PLC Settings
In the Project tree [PLC project]→Right-click[PLC-1]→[Properties]→[General]→[PROFINE interface]→[Add new subnet]→[IP address]192.168.40.20,[Subnet mask]255.255.255.0→[OK]
Open [Properties] again→[General]→[Protection&Security]→[Connection mechanisms]→Check [Permit access with PUTIGET communication remote partner ]→[OK]
Address settings, using BD2 as example.
- DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
- 2 represent DB block number
- xxxx represent address
Such as:
- DBxDBB20000 = DB2.DBB0
- DBxDBW20004 = DB2.DBW4
How to setting String in PLC and V-net
PLC configuration
choosing Data type--String→add"[]" after String and input data length
V-box configuration
choosing Word and DBxDBW →input Register Main No. →Data format is String →input data length you want to use → choosing Byte order--Little-endian
How to connect with S7-1200 Firmware V4.0
PLC configuration
- Double click [device configuration] in Siemens via software
- Double click [protection] to enter protection configuration screen
- Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]
DB settings
- Right click [DB], select [properties]
- Uncheck [optimized block access]
Cable Wiring
S7-XXX Ethernet
Supported Series: Siemens S7-400, S7-1200 and S7-1500
V-BOX setting
Items | Settings | Note |
---|---|---|
Protocol | Siemens S7-XXX | |
Connection | Ethernet | |
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
Address List
Type | Device register | Format | Range | Note |
Bit | I | M d.o | d:0--9999 o:0-7 | |
Q | Q d.o | d:0--9999 o:0-7 | ||
M | M d.o | d:0--9999 o:0-7 | ||
DB0.DB-DB99.DB | DBxDBnndddd.o | nn:0-9999, dddd:0-9999, o:0-7 | nn:DB No. dddd:address value o: digit address | |
Word | M | MB d | d:0-99999 | |
M | MW d | d:0-99999 | MW0=MB(0~1) MW2=MB(2~3) Address value is a multiple of 2 | |
M | MD d | d:0-99999 | MD0=MB(0~3) MD4=MB(4~7) Address value is a multiple of 4 | |
I | IW d | d:0-99999 | ||
Q | QW d | d:0-99999 | ||
DB0.DB-DB99.DB | DBxDBBnndddd | nn:0-9999 dddd:0-9999 | nn:DB No. dddd:address value | |
DB0.DB-DB99.DB | DBxDBWnndddd | nn:0-9999 dddd:0-9999 | nn:DB No. dddd:address value Address value is a multiple of 2 | |
DB0.DB-DB99.DB | DBxDBDnndddd | nn:0-9999 dddd:0-9999 | nn:DB No. dddd:address value Address value is a multiple of 4 |
Configure the communication protocol
✎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.
Cable Wiring
LOGO Ethernet
Supported Series: Siemens Logo 0BA0, 0BA1 series
V-BOX Settings
Items | Settings | Note |
Protocol | Siemens LOGO | |
Connection | Ethernet | |
Port No. | 102 | |
PLC station No. | 2 |
Address List
Number | Address Type | Data Type | Range | DB Address | PLC Address |
1 | RTC | Word | 1-7 | DB1.DBX984.0 | 0x001ec0 |
2 | VB | Byte | 0-1469 | DB1.DBX0.0 | 0x000000 |
3 | VD | Double Word | 0-1466 | DB1.DBX0.0 | 0x000000 |
4 | VW | Word | 0-1468 | DB1.DBX0.0 | 0x000000 |
5 | NAQ | Word | 1-32 | DB1.DBX1406.0 | 0x002bf0 |
6 | NAI | Word | 1-64 | DB1.DBX1262.0 | 0x002770 |
7 | AM | Word | 1-64 | DB1.DBX1118.0 | 0x0022f0 |
8 | AQ | Word | 1-16 | DB1.DBX1072.0 | 0x002180 |
9 | AI | Word | 1-16 | DB1.DBX1032.0 | 0x002040 |
10 | I | Bit | 1-64 | DB1.DBX1024.0 | 0x002000 |
11 | Q | Bit | 1-64 | DB1.DBX1064.0 | 0x002140 |
12 | M | Bit | 1-112 | DB1.DBX1104.0 | 0x002280 |
13 | NI | Bit | 1-128 | DB1.DBX1246.0 | 0x0026f0 |
14 | NQ | Bit | 1-128 | DB1.DBX1390.0 | 0x002b70 |
15 | V | Bit | 0-14697 | DB1.DBX0.0 | 0x000000 |
PLC Settings in LOGO Software:
Click [Tools]--[Ethernet Connections],shown as below.
Set Ethernet connection parameter. IP, Subnet Mask, shown as below.
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.
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.
V-BOX Communication Settings
Set PLC IP in [IP Address] settings;
TSAP setting
- The initialization script needs to set the source TSAP address and the target TSAP address, otherwise the communication will not be successful.
You can copy the following script into V-net directly.
✎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 they 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 )