Hướng Dẫn Kết Vbox - PLC Logo siemens

Hướng Dẫn Kết Vbox - PLC Logo siemens

Hướng dẫn kết nối PLC LOGO Siemens

 

Xem Video hướng dẫn kết nối Vbox với PLC Logo Siemens (bên dưới)

 

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.
 

1iZSZTpAdk.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;

V-NET_Client logo.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.

You can copy the following script into V-net directly.

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 must be “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 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 )
 
Video 

Đang xem: Hướng Dẫn Kết Vbox - PLC Logo siemens

0 sản phẩm
0₫
Xem chi tiết
0 sản phẩm
0₫
Đóng