Siemens
Siemens
S7-200 Smart Serial
V-BOX setting
Items | Settings |
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 | HMI register | Format | Range | Note |
Bit | I | I | I ddddd.o | 0.0~99999.7 | |
Q | Q | Q ddddd.o | 0.0~99999.7 | ||
V | VWbit | VWbit ddddd.o | 0.0~99999.7 | ||
V | V | V ddddd.o | 0.0~99999.7 | ||
M | M | M ddddd.o | 0.0~99999.7 | ||
SM | SM | ddddd.o | 0.0~99999.7 | ||
S | S | ddddd.o | 0.0~99999.7 | Read only | |
T | T | ddddd | 0~99999 | Timer state, read only | |
C | C | ddddd | 0~99999 | Counter state, read only | |
Word | I | IW | IW ddddd | 0~99999 | |
Q | QW | QW ddddd | 0~99999 | ||
AI | AIW | AIW ddddd | 0~99999 | ||
AQ | VB | VB ddddd | 0~99999 | ||
V | VW | VW ddddd | 0~99998 | VW0=VB (0~1) VW2=VB (2~3) Address value is a multiple of 2 | |
V | VD | VD ddddd | 0~99998 | VD0=VB (0~3) VD2=VB (4~7) Address value is a multiple of 4 | |
M | MB | MB ddddd | 0~99999 | ||
M | MW | MW ddddd | 0~99999 | MW0=MB(0~1) MW2=MB(2~3) Address value is a multiple of 2 | |
M | MD | MD ddddd | 0~99999 | MD0=MB(0~3) MD4=MB(4~7) Address value is a multiple of 4 | |
T | TW | TW ddddd | 0~99999 | Value of timer | |
C | CW | CW ddddd | 0~99999 | Value of counter | |
W | SW | 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
1)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 |
2)Address List
Type | Device register | HMI register | Format | Range | Note |
Bit | I | I | I ddddd.o | 0.0~99999.7 | |
Q | Q | Q ddddd.o | 0.0~99999.7 | ||
M | M | M ddddd.o | 0.0~99999.7 | ||
DB0.DB~DB99.DB | DBxDBD | DBxDB nndddd.o | 0.0~99999999.7 | nn: block number; dddd: address; | |
Word | I | IW | IW ddddd | 0~99999 | |
Q | QW | QW ddddd | 0~99999 | ||
M | MB | MB ddddd | 0~99999 | ||
MW | MW ddddd | 0~99999 | MW0=MB(0~1) MW2=MB(2~3) Address value is a multiple of 2 | ||
MD | MD ddddd | 0~99999 | MD0=MB(0~3) MD4=MB(4~7) Address value is a multiple of 4 | ||
DB0.DB~DB99.DB | DBxDBB | DBxDBB nndddd | 0~99999999 | nn: block number; dddd: address | |
DBxDBW | DBxDBW nndddd | 0~99999999 | |||
DBxDBD | DBxDBD nndddd | 0~99999999 |
3)Configure the communication protocol
4)Cable Wiring
S7-1200 Ethernet
S7-XXX Ethernet
Supported Series: Siemens S7-400, S7-1200 and S7-1500
1)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
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 |
3)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.
4)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;
Enable V-BOX Ethernet in [Network];
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 )