Procentec VPGate User Manual

Modbus/tcp to serial
Hide thumbs Also See for VPGate:
Table of Contents

Advertisement

Quick Links

VPGate Manual
MODBUS/TCP to Serial

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VPGate and is the answer not in the manual?

Questions and answers

Summary of Contents for Procentec VPGate

  • Page 1 VPGate Manual MODBUS/TCP to Serial...
  • Page 2: Table Of Contents

    Implementation of the Default Configuration ..........33 Configuration of the IP address using the DIP switch ..............33 Configuration of the IP address using the DCP protocol ..............37 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 2/135...
  • Page 3 “Network settings” menu ........................76 “Gateway mode” menu ........................77 “Modbus/TCP settings” menu ......................77 “Serial settings” menu ........................77 “IO settings” menu ..........................77 “SNMP information” menu ......................78 9.10 “ETHERNET statistics” menu ......................78 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 3/135...
  • Page 4 APPENDIX E: MIB2, important fields .................... 115 13. Other PROCENTEC products ..............124 14. Sales offices and distributors ..............126 15. About PROCENTEC ..................131 16. Notes ......................132 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 4/135...
  • Page 5 Version Date MODBUS application protocol specification V1.1b3 26-04-2012 MODBUS over serial line specification and implementation guide V1.02 20-12-2006 MODBUS messaging on TCP/IP implementation guide V1.0b 31-10-2006 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 5/135...
  • Page 6: Characteristics

    MODBUS / TCP Operating modes Client, server or gateway Gateway mode Direct access by ‘tunnelling’ in the series equipment data Max number of simultaneous TCP connections Port VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 6/135...
  • Page 7 Cyclical or following change for writing outputs frames Local I/O TOR input 1 isolated digital input TOR output 1 isolated digital output File system Space available 8 MB Access FTP, HTTP VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 7/135...
  • Page 8: Electrical Characteristics

    120 x 100 x 23 mm (L x W x H) Weight 130 g Storage temperature -25°C .. +70 °C Operating 0°C .. +55 °C temperature Relative ambient Max. 80% humidity VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 8/135...
  • Page 9: Hardware Installation

    The ideal situation is to use a shield jumper screw, which is fixed at each end of the serial wire on a ground bus or a cabinet bottom plate. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 9/135...
  • Page 10: Digital Input

    Interrupting capacity 0.5 A Maximum accepted current: 1.2 A Front panel indicators   Net1  Net2   Tx (serial link)  Rx (serial link) VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 10/135...
  • Page 11: Indicator Light Of The 2 Ports Switch

    Default IP configuration User-defined IP configuration Set the DIP switch 1 to ON and power VPGate one and off to ensure that it takes the default IP parameters into account. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC...
  • Page 12: Choosing The Rs-232/Rs-485 Mode

    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.
  • Page 13 To ensure the proper functioning of the termination, switches 3 and 4 must mandatorily be in the same position Internal resistance and polarisation diagram of the bus RS-485: Figure 6 : Terminating resistance and polarisation of the bus RS-485 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 13/135...
  • Page 14: Working Principle

    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...
  • Page 15: Configuration In "Advanced Gateway" Mode

    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.
  • Page 16 MODBUS/TCP is between 247 and 254.  Important: The configuration field contains the current VPGate parameters. Accessing this field in write mode can have a direct impact on the proper functioning of the product. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC...
  • Page 17: Modbus/Tcp Server

    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.
  • Page 18: Modbus/Tcp Client

    If no cyclical scenario needs to be sent, the change scenarios are executed one after the other. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 18/135...
  • Page 19: Modbus Serial Link Master (1)

    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”...
  • Page 20: Fault Management In 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.
  • Page 21: Modbus Master Scenarios

    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.
  • Page 22: Modbus Serial Link Slave (2)

    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:...
  • Page 23: Transparent Mode (3)

    In this example, the length of the frames being received and transmitted is 128 bytes, the end character of the frame is the ASCII character "CR" (0x0D): VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 23/135...
  • Page 24: Case Where The Length Of Frame Is Known

    If a change is detected in the data to be sent on the transparent link: • If the 1st byte indicates a length longer than the number of outputs configured, no data is sent. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 24/135...
  • Page 25: Case Where The End Of The Frame Is Detected Following Timeout

    This counter is increased every time a new frame is available. It is used to indicate the presence of a new received frame, or to detect a new frame to be transmitted. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 25/135...
  • Page 26: Principle Of Configuration Of The Product

    “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.
  • Page 27: Software Configuration

    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.
  • Page 28: Procedure For Configuring The Serial Link

    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.
  • Page 29: Procedure For Configuring The Modbus/Tcp Server

    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).
  • Page 30: Procedure For Configuring The Modbus Serial Link Master

    Using the internal memory table as an exchange zone between MODBUS/TCP and MODBUS serial link (“Advanced Gateway” mode) Figure 23 : Procedure for configuring the VPGate MODBUS master VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 30/135...
  • Page 31: Procedure For Configuring The Modbus Serial Link Slave

    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.
  • Page 32: Procedure For Configuring Transparent Mode

    Procedure for configuring transparent mode The configuration process of transparent mode is as follows: Figure 25 : The configuration process of VPGate transparent mode VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 32/135...
  • Page 33: Implementation Of The Default Configuration

    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.
  • Page 37: Configuration Of The Ip Address Using The Dcp Protocol

    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.
  • Page 39: Configuration Of The Serial Link

    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).
  • Page 41: Operating Test Of The Default Gateway

    The gateway can now be used to interface a MODBUS/TCP client (Controller/Supervision/ or software) with MODBUS serial slaves: Figure 37 : Overview diagram of the implementation of VPGate in its default configuration VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC...
  • Page 42: Implementation Of The Advanced Configuration

    Lastly, click on the “Save” button to back-up the modifications permanently. The configuration of the MODBUS/TCP server can be accessed from the web server via the MODBUS/TCP SETTINGS menu. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 42/135...
  • Page 43: General Information Regarding The Modbus/Tcp Server

    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...
  • Page 44: Configuration Of The Modbus/Tcp Server

    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 45: Modbus/Tcp Client

    The configuration of the MODBUS/TCP server can be accessed from the web server via the MODBUS/TCP SETTINGS menu. 6.2.2 Creation of scenarios for the MODBUS/TCP client The list of scenarios (100 maximum) displays the configuration elements of the scenarios: VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 45/135...
  • Page 46 MODBUS/TCP server. The user can choose the TCP port number by adding “:” in the Server IP address field followed by the port number: VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 46/135...
  • Page 47 Cycle time for request transmission Cyclical: 100ms to 65535ms First register address Address where the first register read is 0 to 65535 in VPGate stored in VPGate VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 47/135...
  • Page 48 First register address in the recipient in server MODBUS/TCP server 0 to 65535 0 to 65535 Quantity Number of registers to be read 0 to 125 0 to 123 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 48/135...
  • Page 49: Status Of Scenarios For The Modbus/Tcp Client

    In the following example, the data read by the scenario are stored in the exchange table from register address 0 to 9, and are updated every 3 seconds. If the scenario is not executed correctly, its status changes to error: VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 49/135...
  • Page 50: Deactivation Of A Modbus/Tcp Client Scenario

    It is possible to modify the parameters of a MODBUS scenario. Select the corresponding line of the scenario to activate the scenario modification toolbox. The selected scenario is shown inside green brackets. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 50/135...
  • Page 51: Backing-Up The List Of Modbus/Tcp Scenarios

    After having completed the list of scenarios to be executed, click on the “SAVE” button to save the configuration permanently. Figure 5414: Permanently backing-up the list of MODBUS/TCP client scenarios VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 51/135...
  • Page 52: Modbus Master

    The configuration of the MODBUS master serial can be accessed from the web server via the SERIAL SETTINGS menu. The first section contains the serial link parameters, refer to section Procedure for configuring the serial link for more details. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 52/135...
  • 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 54: Creation Of The Modbus Serial Link Master Scenarios

    Cyclical sending: definition of a sending period • Sending after change: the request is sent only if a change is detected in the exchange table (only for MODBUS write requests) VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 54/135...
  • Page 55 The 10 registers which are read are stored in the VPGate exchange table from register address 0 to 9 Figure 60: Adding a new MODBUS/TCP serial link scenario VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 55/135...
  • Page 56 MODBUS function MODBUS function to be executed Write Multiple coils (15) First bit address in First bit address in the recipient MODBUS 0.0 to 4095.15 slave slave VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 56/135...
  • Page 57 0 to 65535 Quantity Number of registers to be read 0 to 125 Cycle time (in ms) Cycle time for request transmission Cyclical: 100ms to 65535ms VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 57/135...
  • Page 58: Status Of The Modbus Serial Link Master Scenarios

    “Timeout, no answer from slave after retrying”. Moreover, the MODBUS error counters increase following every attempt made by the scenario to reach the slave. Refer to section 8.2 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 58/135...
  • Page 59: Deactivation Of A Modbus Serial Link Master Scenario

    The toolbox allows modifying the parameters of the MODBUS scenario and backing them up using the “MODIFY” button; the operation may be cancelled by clicking on the “CANCEL” button. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 59/135...
  • Page 60: Backing-Up The List Of Modbus Master

    After having completed the list of scenarios to be executed, click on the “SAVE” button to save the configuration permanently. Figure 67: Permanent backing-up the list of MODBUS master VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 60/135...
  • Page 61: Modbus Slave

    The configuration of the MODBUS slave serial can be accessed from the web server via the SERIAL SETTINGS menu. The first section contains the serial link parameters, refer to section 4.2 Procedure for configuring the serial link for more details. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 61/135...
  • 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...
  • Page 63: Transparent Mode

    Tick the advanced configuration mode “Advanced gateway mode” and select “Transparent mode” in the dropdown list which defines the Ethernet protocol. Lastly, click on the “Save” button to back-up the modifications permanently. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 63/135...
  • Page 64: Configuration Of Transparent Mode On The Serial Link

    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 65 On timeout (2) (3) User defined EOF ASCII code of the end of frame character (case 0 to 255 delimiter where the "EOF delimiter" = User defined) VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 65/135...
  • 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).
  • Page 67: Digital Input/Output

    If the Least Significant Bit of the register is set to 1, the output is forced to 1 (closed). • If the Least Significant Bit of the register is set to 0, the output is forced to 0 (open). VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 67/135...
  • Page 68: Diagnostics

    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.
  • Page 69: Diagnostics With Status Of Modbus Master Scenarios

    Slave not responding, Indicates that the slave has not yet responded to the requests sent, but retrying... that the master is retrying VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 69/135...
  • Page 70: Diagnostics With Status Of The Modbus/Tcp Client Scenarios

    (0x02) A server with 100 registers shall generate this exception if it is sent a read request with 5 registers from the address 96 onwards. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 70/135...
  • Page 71 This message indicates that the server has not responded with the same data/quantity in answer quantity of data as indicated in the request from the client. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 71/135...
  • Page 72: Statistics Of The Modbus Master

    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...
  • Page 73: Web Page Of The Modbus Slave Statistics

    “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...
  • Page 74: Web Server

    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.
  • Page 75: Management Of Access To The Web Server

    Unable to load new firmware in VPGate via the “Upload firmware” menu • Unable to reboot VPGate remotely via the “Reboot” menu • Unable to change passwords via the “Passwords” menu VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 75/135...
  • Page 76: System Information" Menu

    • 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:...
  • Page 77: Gateway Mode" Menu

    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...
  • Page 78: Snmp Information" Menu

    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.
  • Page 79 Table 7: Description of the “Traffic” statistics “Frames errors” Name Description Number of frames with a CRC/FCS error (Frame CheckSum) Undersize Number of frames smaller than 64 bytes VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 79/135...
  • Page 80: Modbus Statistics" Menu

    This menu presents the statistics of the serial link depending on the mode being used. With the MODBUS serial link master mode, the following information is displayed: VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 80/135...
  • Page 81: File System" Menu

    “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.
  • Page 82: Firmware Upload" Menu

    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.
  • Page 83: Reboot" Menu

    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”...
  • Page 84: Logout" Menu

    9.18 Access to data via personalised Web pages This paragraph only concerns the aspect of accessing the data via an VPGate Ethernet CGI server. It is possible, using any net browser, to access the equipment data in read and write mode. There are two operating methods: VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC...
  • Page 85: Example Of Customised Web

    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”...
  • Page 86 This example uses JavaScript libraries and accesses the equipment data via specific AJAX requests. For more information pertaining to the design of the example, please refer to the APPENDIX DAPPENDIXE: "API AJAX Javascript". VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 86/135...
  • Page 87: Ftp Server

    Here is an example: Figure 92: Entering the login information Figure 93: Local and remote file Local file system Remote file system VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 87/135...
  • Page 88: Snmp Agent

    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”...
  • Page 90: Appendices

    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 92 0x01 0x01 "01" 0x30, 0x31 to 0x33 Error check 0x3F "A4" 0x41, 0x34 ( CRC / LRC ) 0xE5 End of frame CR LF 0xD, 0xA VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 92/135...
  • Page 93 Frame header ":" 0x3A Slave address 0x39 0x39 "39" 0x33, 0x39 Function code 0x03 0x03 "03" 0x30, 0x33 Number of data 0x04 0x04 "04" 0x30, 0x34 bytes VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 93/135...
  • Page 94 0x03 0x03 "03" 0x30, 0x33 significant registers Error check 0x14 "9E" 0x39, 0x45 ( CRC / LRC ) 0xB9 End of frame CR LF 0xD, 0xA VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 94/135...
  • Page 95 Value to be case of RTU Name of the field transmitted Character ASCII character code Frame header ":" 0x3A Slave address 0x01 0x01 "01" 0x30, 0x31 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 95/135...
  • Page 96 0x00 0x00 "00" 0x30, 0x30 register value Error check 0x2C "D9" 0x44, 0x39 ( CRC / LRC ) 0x30 End of frame CR LF 0xD, 0xA VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 96/135...
  • Page 97 Frame header ":" 0x3A Slave address 0x39 0x03 "39" 0x33, 0x39 Function code 0x06 0x06 "06" 0x30, 0x36 Most significant 0x00 0x00 "00" 0x30, 0x30 register address VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 97/135...
  • 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).
  • Page 99 0x12 0x12 "12" 0x31, 0x32 be written Error check 0x71 "84" 0x38, 0x34 ( CRC / LRC ) 0x74 End of frame CR LF 0xD, 0xA VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 99/135...
  • Page 100 ":" 0x3A Slave address 0x39 0x39 "39" 0x33, 0x39 Function code 0x10 0x10 "10" 0x31, 0x30 Most significant 1st 0x00 0x00 "00" 0x30, 0x30 register address VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 100/135...
  • Page 101 Number of most significant registers 0x00 0x00 "00" 0x30, 0x30 in read mode Number of least significant registers 0x02 0x02 "02" 0x30, 0x32 in read mode VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 101/135...
  • Page 102 RTU transmitted Character ASCII character code Frame header ":" 0x3A Slave address 0x39 0x39 "39" 0x33, 0x39 Function code 0x17 0x17 "17" 0x31, 0x37 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 102/135...
  • Page 103 3 exception is sent. This exception is sent by a MODBUS slave when it is already SLAVE BUSY handling a process which prevents it from responding to the request. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 103/135...
  • Page 104: Appendix C: Api Cgi Javascript

    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.
  • Page 105 Value 0 to 0xFFFF Value of a register 0 or 1 Value of a bit Numeric values are always expressed in hexadecimal in CGI requests/responses. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 105/135...
  • Page 106 Comment: The character ':' must be added between each value. If the character ':' is added after the last value to be written, the frame shall still be considered valid. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 106/135...
  • Page 107 Data V= X Contains data returned by the request Example Response for a read request for 3 registers in the exchange table from offset 0: "A=F8&F=3&O=0&Q=3&E=0&V=A:B:C" VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 107/135...
  • Page 108 The formalism of the CGI request is not complied with. The MODBUS slave behind The request has been sent to the MODBUS slave, but no 0x0B the gateway is not response was received. responding. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 108/135...
  • Page 109 (accessor): returns the value of the Function property + setFunction(func) (accessor): allocates the value func to the Function property + getOffset() (accessor): returns the value of the Offset property VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 109/135...
  • Page 110 "/UE/FLASH0/device", //URL true); //asynchronous mode Only the POST method can be used, and with a specific URL, (“/UE/FLASH0/device”), in order to interface with the CGI server. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 110/135...
  • Page 111 In the file "ag_cgi_asynchrone.js", these functions are used by other functions which have a defined role (reading several registers, writing several registers, etc.). The use of these functions must be given preference in customised WEB pages:  ReadSingleRegister( ag_commObject, usercallback ) VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 111/135...
  • Page 112 -1 if the data entered in the parameters is incorrect (a dialogue box alerts the user, and the communication object is reset to zero). After receiving the response, the communication object is updated with the data received. Then the user callback function is called. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 112/135...
  • Page 113 -1 if the data entered in the parameters is incorrect (a dialogue box alerts the user, and the communication object is reset to zero). After receiving the response, the communication object is updated with the data received. Then the user callback function is called. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 113/135...
  • Page 114 Summary of the communication object fields to be filled: Address Func Offset Quantity Data Exception Usercallback ReadSingle Register WriteSingleRegister ReadMultipleRegisters WriteMultipleRegisters ReadSingleBit WriteSingleBit ReadMultipleBits VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 114/135...
  • Page 115: Appendix E: Mib2, Important Fields

    1.3.6.1.2.1.1.5 sysName name of the device 1.3.6.1.2.1.1.6 sysLocation physical location of the device 1.3.6.1.2.1.1.7 sysServices services offered by the device VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 115/135...
  • Page 116 1.3.6.1.2.1.2.2.1.21 ifOutQlen size of the output waiting queue packet size 1.3.6.1.2.1.2.2.1.22 ifSpecific pointer towards a specific MIB “At” / “Address Translation” section: OID at = 1.3.6.1.2.1. 3 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 116/135...
  • Page 117 1.3.6.1.2.1.4.13 ipReasmReqds reassembly 1.3.6.1.2.1.4.14 ipReasmOKs number of datagrams correctly reassembled 1.3.6.1.2.1.4.15 ipReasmFails Number of reassembly errors 1.3.6.1.2.1.4.16 ipFragOKs number of datagrams correctly fragmented VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 117/135...
  • Page 118 Number of ICMP TimeStamp messages 1.3.6.1.2.1.5.10 icmpInTimestamps received Number of SNMP response messages 1.3.6.1.2.1.5.11 icmpInTimestampReps received Number of ICMP address mask request 1.3.6.1.2.1.5.12 icmpInAddrMasks messages received VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 118/135...
  • Page 119 “Tcp” / “Transmission Control Protocol” section: OID 1.3.6.1.2.1.6 Name Access Description 1.3.6.1.2.1.6.6 tcpPassiveOpens number of passive connections opened 1.3.6.1.2.1.6.7 tcpAttemptFails number of failed connection attempts VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 119/135...
  • Page 120 1.3.6.1.2.1.7.1 udpInDatagrams number of datagrams transmitted number of datagrams intended for an unknown 1.3.6.1.2.1.7.2 udpNoPorts protocol Number of datagrams ignored because of 1.3.6.1.2.1.7.3 udpInErrors format error. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 120/135...
  • Page 121 ErrorStatus ‘readOnly’ Number of PDUs received with 1.3.6.1.2.1.10.12 snmpInGenErrs ErrorStatus ‘genErr’ Number of objects of the MIB which 1.3.6.1.2.1.10.13 snmpInTotalReqVars pertain to a Get-Request or Get-Next request VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 121/135...
  • Page 122 Request type which were generated by the SNPM protocol entity Total number of PDUs of the Get-Next 1.3.6.1.2.1.10.26 snmpOutGetNexts type which were generated by the SNPM protocol entity VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 122/135...
  • Page 123 SNPM protocol entity Indication about the configuration of the 1.3.6.1.2.1.10.30 snmpEnableAuthTraps SNMP agent pertaining to the generation of the Authentication Trap VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 123/135...
  • Page 124: Other Procentec Products

    Digital glitch filtering • No limit in cascading • Integrated switchable termination • Diagnostic LEDs • DB9 connector for measurements • IP 20 with DIN-rail mounting www.procentec.com/profihub/b1/en VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 124/135...
  • Page 125 31 devices per channel • 12 Mbps • 1200 m spur line length • No address required • Integrated switchable termination • IP 65 classification www.procentec.com/profihub VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 125/135...
  • Page 126: Sales Offices And Distributors

    W: www.foxon.cz DENMARK ProSaiCon T: +45 70 20 52 01 Jernbanegade 23B F: +45 70 20 52 02 DK 4000 Roskilde E: hfj@prosaicon.dk Denmark W: www.prosaicon.dk VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 126/135...
  • Page 127 T: +81 3 6450 3739 C/O Japanese PROFIBUS Organisation F: +81 3 6450 3739 West World Building 4F E: info@profibus.jp 3-1-6 Higashi-Gotanda, Shinagawa-ku, Tokyo, 141-0022 Japan VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 127/135...
  • Page 128 Singapore 247979 www.gissmatic.com SLOVAKIA ControlSystem s.r.o. T: +421 486 115 900 Stúrova 4 F: +421 486 111 891 977 01 BREZNO E: jan.snopko@controlsystem.sk Slovakia W: www.controlsystem.sk VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 128/135...
  • Page 129 United Kingdom Parkelect Ltd. T: +44 2890 777 743 84 Dargan Road F: +44 2890 777 794 Belfast E: jgillan@parkelect.co.uk BT3 9JU W: www.parkelect.co.uk N. Ireland VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 129/135...
  • Page 130 • If your country or region is not listed, please contact us. • We are still searching for distributors who can cover complete areas or countries. VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 130/135...
  • Page 131: About Procentec

    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.
  • Page 132: Notes

    16. Notes VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 132/135...
  • Page 133 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 133/135...
  • Page 134 VPGate manual - MODBUS/TCP to serial V1.0.0 | 30 juni 2017 | ©PROCENTEC 134/135...
  • Page 135 PROCENTEC BV Klopperman 16 2292 JD Wateringen The Netherlands T: +31 (0)174 671 800 F: +31 (0)174 671 801 E: support@procentec.com W: www.procentec.com...

Table of Contents