Important: A user may modify the IP address of VPGate via the Web server or via the DCP protocol, when the switch is set to ON. In this case, the new IP address is used immediately, despite the switch being activated. Consider setting the switch to OFF, otherwise the default IP address shall be once again used when the device is restarted.
Working principle Appliance of the product VPGate MODBUS/TCP to serial is a communication gateway which allows interfacing a MODBUS/TCP network with: MODBUS serial link slaves (1) MODBUS serial link master (2) equipment using a proprietary serial link protocol (3) Figure 7: Presentation of the VPGate MODBUS/TCP to serial operating modes...
When VPGate functions as a MODBUS/TCP server, the exchange table can be accessed by MODBUS/TCP clients who send read/write requests to VPGate. When VPGate functions as a MODBUS/TCP, it arranges the data read in the servers in its exchange table, and from there reads the data to be written on the servers.
MODBUS/TCP clients present on the network: Figure 9: VPGate in MODBUS/TCP server mode In this mode, it is necessary to configure the IP address of the MODBUS/TCP server used by VPGate, and the list of MODBUS functions that it supports.
Using the scenarios (configuration of the cyclical/acyclical requests) 3.6.1 MODBUS master with the “Direct messaging” function To access a MODBUS serial slave through VPGate, a MODBUS/TCP client must specify the address of the MODBUS serial slave which it wishes to connect to: Figure 11: VPGate serial link master with “Direct messaging”...
The field “Unit ID” is used as a slave address in order to create the MODBUS serial frame. VPGate can thus create and send a serial frame from the TCP message, and return the response from the slave to the requesting client, via its IP address.
If no cyclical scenario needs to be sent (unfinished cycle), then the change scenarios are executed one after the other. If several cyclical scenarios are already pending transmission, VPGate inserts a change scenario between each ready cyclical scenario, and thus optimises the exchanges by minimising the delay induced during cyclical scenarios.
Response Figure 14: Data exchange in MODBUS slave mode In this mode, it is necessary to configure the address of the MODBUS slave used by VPGate, and the list of MODBUS functions that it supports. The list of functions supported by VPGate in MODBUS slave mode is as follows:...
“administrator” and “user” sessions Figure 49: Configuration of the gateway via the Web server The default configuration of VPGate may be modified through the Web server in order to create a customised configuration which meets more specific requirements.
Figure 20 : Procedure for finding/configuring the IP address of VPGate MODBUS/TCP to serial The IP configuration remains unchanged once it is applied via the Web server or DCP, VPGate shall use these IP parameters from the next reboot of the product.
Important: The IP address is a critical element for accessing the product. Even though it is possible to discover VPGate using the DCP protocol, or to use the DIP switch to allocate a default IP address, it is always preferable to record your IP address on a label, or in a file.
Refer to section 5.3 Configuration of the serial link to follow the configuration steps of the VPGate serial link. Procedure for configuring the MODBUS/TCP server VPGate functions in MODBUS/TCP server mode when using Ethernet in order to exchange data with the MODBUS/TCP clients (Supervision or controllers).
MODBUS/TCP clients which fill the exchange table by accessing the VPGate MODBUS/TCP server. It is possible to use both mode simultaneously. In this case, VPGate executes scenarios configured by the user, and it is possible, between the execution of both scenarios, to execute a “Direct Messaging” acyclical request to read/write a particular parameter in a MODBUS slave.
IP address Sub-net mask 192.168.10.20 255.255.255.0 The procedure to be followed to access the VPGate Web server is as follows: Configure the IP parameters of the equipment used (PC, tablet, Smartphone, etc.) to connect to the Web server using: IP address Sub-net mask Between 192.168.10.1 and 192.168.10.254...
Page 34
Ensure that the IP address 192.168.10.20 has not been used on the Ethernet network on which VPGate is going to be connected. In Windows, open the command prompt “cmd” and enter the command “ping 192.168.10.20”. Ensure that there is no response: Figure 27 : Verification by “Ping”...
Page 35
Figure 30 : Configuring the IP address using the Web server The information related to the VPGate network configuration can be found in the section “Network Settings”. The “IP configuration mode” field indicates the source of the IP parameters configuration.
Page 36
“Default Gateway” field is optional and can be left empty if no particular default gateway address is required. After clicking on “Apply”, the Web page automatically reconnects to the Web server using the new VPGate IP address. It is necessary to log-in once more to access the web-site.
Figure 32 : Configuration of the network interface used by “Primary Setup Tool” Connect VPGate to the Ethernet network and power it on (24 V DC power supply). Click on the discover button which is depicted by a magnifying glass to the top...
Page 38
It is also possible to configure the name of the equipment in order to identify it more easily: Figure 35: Modification of the DCP name of VPGate using “Primary Setup Tool” Now, VPGate shall reboot with the IP address indicated above. These parameters are recorded in the permanent memory.
Select the type of serial link used, RS-232 or RS-485, as shown in section 2.3.2 Choosing the RS-232/RS-485 mode To ensure MODBUS communication between a master (VPGate in this case) and slaves, it is necessary to use identical serial link parameters:...
Page 40
= 2 (1st attempt + 2 retransmissions) All these parameters can be adjusted on the VPGate webpage, in the section Serials settings: Figure 36: Configuring the serial link using the VPGate Web server Click on the “Apply” button to apply the parameters temporarily (configuration lost after reboot).
6.1.1 General information regarding the MODBUS/TCP server The first part of the page indicates the IP address of the MODBUS/TCP server of VPGate. Below, a table shows the list of MODBUS/TCP clients which are currently connected to the server. When a...
The second part of the Web page is used to configure the MODBUS/TCP server: Figure 41: Web page for modifying the parameters of the MODBUS/TCP server of VPGate Here you can find the box to be ticked which allows activating the “Direct Messaging” mode as well as the MODBUS function list which are supported by the server.
Page 53
The "Interframe Silence" parameter in the MODBUS master mode: Set the Interframe silence parameter to specify the minimum waiting time taken into account by VPGate to send a new MODBUS request to a slave after having received the last response (refer to the figure below):...
Page 62
The "Interframe Silence" parameter in the MODBUS slave mode: Set the “Interframe silence” parameter to specify the waiting time taken into account by VPGate to respond to the latest MODBUS request (refer to the figure below): Figure 69: Interframe Silence in MODBUS slave mode...
If no frame is detected, VPGate sends frames on the serial link regardless of the inter-frame waiting period. But, if a frame is detected on RX, VPGate waits for the inter-frame waiting period to elapse before sending the next frame.
Page 66
(it is added by VPGate and does not originate from the serial link). During transmission, the first byte must define the length of the frame to be sent on the serial link (this byte must not be sent on the serial link).
Explanation of the LEDs The diagnostics of the VPGate functioning can be carried out based on the LEDs on the front surface of the product. It is possible to know whether the product has been configured properly if there is communication on the serial link, or even if the MODBUS master detects a communication error with a slave.
Statistics of the MODBUS master VPGate records the statistics when the MODBUS MODE serial link master mode is activated. They are available on the page “MODBUS STATISTICS” on the Web server: Figure 78: Web page of the MODBUS master statistics This page displays the values of the error counters for the various errors which can be detected by the master, refer to section 8.2 Diagnostics with status of MODBUS master scenarios for more details about these error...
“MODBUS STATISTICS” on the Web server: Figure 79: Statistics web page of the MODBUS slave This page displays the values of the error counters for the various errors which can be detected by the VPGate MODBUS slave: Error message...
Presentation of the Web server To access the Web server, a valid IP address must be configured on VPGate, in order to configure this address, refer to section 5.1 Configuration of the IP address using the DIP switch and 5.2 Configuration of the IP address using the DCP protocol and follow the VPGate IP configuration steps.
• the configuration file “config.ini” containing the configuration backed-up in VPGate These two documents are stored in the VPGate file system and can be accessed through the FTP server. “Network settings” menu This menu provides the MAC addresses used by VPGate as well as the current IP configuration:...
The IP parameters of the VPGate MODBUS/TCP – SERIAL product may be configured in different manners: • Via the Web server, configured in static mode • Using the DCP protocol • Using the DIP switch no.2 on the front surface Refer to section 5.1 Configuration of the IP address using the DIP switch and 5.2 Configuration of the IP address...
Table 4: Description of the fields on the “SNMP information” page 9.10 “ETHERNET statistics” menu This menu provides statistics of the integrated 2 ports switch of VPGate. It consists of multiple tables and a button which allows resetting the internal statistics of the switch.
“Statistics of the MODBUS slave”. 9.12 “File system” menu This page allows accessing the file system present on VPGate. It is possible to browse through it by clicking on the directories. The current path always starts with "/FLASH0" which is the root folder of the file system.
Once the file is completely loaded (100%), the percentage indicator is no longer shown, but the firmware has to be validated by VPGate. This operation can take 1 to 2 minutes to complete and is represented by the loading icon.
Google Chrome (v36.0.1985.143) and Mozilla Firefox (v31.0). 9.14 “Reboot” Menu This page allows remotely rebooting VPGate. Only the “admin” account has the rights to carry out this operation. A dialogue box is displayed and indicates that the reboot process of VPGate has stopped its switch functionality, which could result in a network interruption for the period required for the rebooting, it the wiring is done in “daisy-chain”...
Direct access to the referenced data table If the field "@" (address) is higher than 247, the request is interpreted as being intended for the VPGate internal data table: Figure 19: Direct access to the internal data table via a customised web page Figure 89: “Gateway”...
The statistics related to the IP packets received/transmitted (IP) Figure 94: structure of the MIB 2 (refer to APPENDIX E) SNMP V1 uses a community key which is exchanged in the requests to authorise their processing. VPGate uses the following default values: •...
Page 89
In addition to the information contained in MIB2, VPGate MODBUS/TCP has an integrated extension, MIB LLDP. This MIB contains the topology information transmitted by the equipment in the VPGate neighbourhood. This information can be read by a SNMP client (in this example, the software “HiVision” developed by Hirschmann or “SINEMA SERVER”...
Function 1 (0x01) This function allows reading the state of several booleans (coils or Discrete outputs). The broadcast is not supported. The number of booleans to be read simultaneously with VPGate is limited to 2000 (16 bits x 125 registers).
Page 91
Function 2 (0x02) This function allows reading the state of several booleans (coils or Discrete inputs). The broadcast is not supported. The number of booleans registers to be read simultaneously with VPGate is limited to 2000 (16 bits x 125 registers).
Page 98
Function 15 (0x0F) This function allows writing several booleans (coils or Discrete outputs) to ON or OFF. The broadcast is supported. The number of booleans registers to be written simultaneously with VPGate is limited to 1968 (16 bits x 123 registers).
0xD, 0xA 12.2 APPENDIX C: API CGI Javascript The Web server offers a CGI interface which allows processing HTTP requests intended for the VPGate application. When CGI requests are received by the Web server, they are interpreted and then an HTTP response is sent back to the client.
15. About PROCENTEC PROCENTEC is a specialist in PROFIBUS and PROFINET technology and develops products to optimize the production processes of end users. Our innovative solutions ensure that our customers successfully operate in the world of industrial automation and enjoy maximum results from their process.
Need help?
Do you have a question about the VPGate and is the answer not in the manual?
Questions and answers