Wonderware FAQ:

How do I use my Sealevel Serial I/O Card with Wonderware INControl?     
Click HERE for detailed answers

How do I use my Sealevel Serial I/O Card with Wonderware INTouch?
Click HERE for detailed answers

Hardware
3rd Party Software
FAQ

Download the PDF file to view the complete installation instructions including pictures.
 Download PDF (180K)

WonderWare ModBus Communication

The purpose of this White Paper is to document how to configure WonderWare for ModBus communications using a Sealevel Systems asynchronous communications card.

ModBus is nothing more than a messaging structure and therefore is independent of the underlying physical layer. In layman’s terms, this means it can be implemented using RS-232, RS-422, or RS-485 over a variety of media. There are 2 implementations of ModBus, ModBus ASCII and ModBus RTU. ModBus ASCII transmits each 8-bit byte as 2 ASCII characters.

ASCII mode allows time intervals of up to 1 second to occur between characters without causing an error. ModBus RTU transmits each 8-bit byte as 2 4-bit hexadecimal characters. RTU mode offers higher throughput and if the option exist, is the preferable choice. For a complete detailed description of the protocol as well as other pertinent information, visit www.modbus.org. For the purpose of this paper, we will use a Sealevel Systems Ultra-COMM+2.PCI (Model 7201) asynchronous communication card. This particular Sealevel card can be field configured for RS-232, RS-422, and RS-485.

We are using Port 1 configured in half-duplex RS-485 mode. It is assumed that your Sealevel communication card is already installed and its’ proper operation has been verified using the supplied Sealevel utilities. It is also assumed that WonderWare is already installed and functioning on your system and that you installed the included WonderWare Modicon ModBus I/O Server. The first step in the process is to configure the WonderWare Modicon ModBus I/O Server. Start the I/O server and the following screen should appear:

This dialog allows you to connect to and configure the settings of the COM: port the ModBus I/O server will use. The COM: identifier for Port 1 on our 7201 card is COM3 and thus we have used the drop down box to select COM3. We have selected the RTU protocol and communication parameters of 19200 baud, 8 data bits, 1 stop bit, and no parity. The ModBus protocol and port communication parameters simply need to match those of your external I/O devices. Configure your system as required and then click ‘Save’ and ‘Done’ to complete configuration. WonderWare will exchange information with the I/O server using Dynamic Data Exchange (DDE). In order to make this work, a "Topic" must be created that can be configured and used in WonderWare. Select ‘Configure’ to open the configuration menu and choose ‘Topic Definition…’.  This dialog allows you to connect to and configure the settings of the COM: port the ModBus I/O server will use. The COM: identifier for Port 1 on our 7201 card is COM3 and thus we have used the drop down box to select COM3. We have selected the RTU protocol and communication parameters of 19200 baud, 8 data bits, 1 stop bit, and no parity. The ModBus protocol and port communication parameters simply need to match those of your external I/O devices. Configure your system as required and then click ‘Save’ and ‘Done’ to complete configuration. WonderWare will exchange information with the I/O server using Dynamic Data Exchange (DDE). In order to make this work, a "Topic" must be created that can be configured and used in WonderWare. Select ‘Configure’ to open the configuration menu and choose ‘Topic Definition…’.  Enter a "Topic Name" into this field. This name is user selectable and a good practice is to use something descriptive that will help to identify the type of device or devices you are communicating with. This will also be one of the required pieces of information you will need to configure WonderWare. Another point of interest is the COM number. Be sure to set this to the COM: port you are using and that it matches what was configured in the previous section. The remaining settings would need to be configured for your particular installation and type of I/O device. Click ‘OK’ when finished. This will return you to the "Topic Definition" dialog where you may now click ‘Done’ to complete configuration. Select ‘Configure’ to open the configuration menu and choose ‘Server Settings…’.  The main item of interest here is the last checkbox ‘Start automatically as Windows NT Service’. If checked, this will force the ModBus I/O Server to automatically start each time the computer is started. You will probably want to check this to save having to start the Server manually each time. Click ‘OK’ after configuration and minimize the ModBus I/O Server.

 

 


WonderWare InTouch
ModBus Communication


The purpose of this White Paper is to document how to configure WonderWare InTouch for ModBus communications using a Sealevel Systems asynchronous communications card.

ModBus is nothing more than a messaging structure and therefore is independent of the underlying physical layer. In layman's terms, this means it can be implemented using RS-232, RS-422, or RS-485 over a variety of media. There are 2 implementations of ModBus, ModBus ASCII and ModBus RTU. ModBus ASCII transmits each 8-bit byte as 2 ASCII characters. ASCII mode allows time intervals of up to 1 second to occur between characters without causing an error. ModBus RTU transmits each 8-bit byte as 2 4-bit hexadecimal characters. RTU mode offers higher throughput and if the option exist, is the preferable choice. For a complete detailed description of the protocol as well as other pertinent information, visit www.modbus.org.

For the purpose of this paper, we will use a Sealevel Systems Ultra-COMM+2.PCI (Model 7201) asynchronous communication card. This particular Sealevel card can be field configured for RS-232, RS-422, and RS-485. We are using Port 1 configured in half-duplex RS-485 mode. It is assumed that your Sealevel communication card is already installed and its' proper operation has been verified using the supplied Sealevel utilities. It is also assumed that WonderWare InTouch is already installed and functioning on your system and that you installed the included WonderWare Modicon ModBus I/O Server.

The first step in the process is to configure the WonderWare Modicon ModBus I/O Server. Start the I/O server and the following screen should appear:

Select 'Configure' to open the configuration menu and choose 'Com Port Settings…' to open the following dialog:

This dialog allows you to connect to and configure the settings of the COM: port the ModBus I/O server will use. The COM: identifier for Port 1 on our 7201 card is COM3 and thus we have used the drop down box to select COM3. We have selected the RTU protocol and communication parameters of 19200 baud, 8 data bits, 1 stop bit, and no parity. The ModBus protocol and port communication parameters simply need to match those of your external I/O devices. Configure your system as required and then click 'Save' and 'Done' to complete configuration.

WonderWare InTouch will exchange information with the I/O server using Dynamic Data Exchange (DDE). In order to make this work, a "Topic" must be created that can be configured and used in WonderWare InTouch. Select 'Configure' to open the configuration menu and choose 'Topic Definition…' to open the following dialog:

This dialog can be used to create new "Topics" as well as to modify or delete existing ones. To begin creating a new "Topic" click 'New…' and the following dialog will appear:

Enter a "Topic Name" into this field. This name is user selectable and a good practice is to use something descriptive that will help to identify the type of device or devices you are communicating with. This will also be one of the required pieces of information you will need to configure WonderWare InTouch. Another point of interest is the COM number. Be sure to set this to the COM: port you are using and that it matches what was configured in the previous section. The remaining settings would need to be configured for your particular installation and type of I/O device. Click 'OK' when finished. This will return you to the "Topic Definition" dialog where you may now click 'Done' to complete configuration.

Select 'Configure' to open the configuration menu and choose 'Server Settings…' to open the following dialog:

The main item of interest here is the last checkbox 'Start automatically as Windows NT Service'. If checked, this will force the ModBus I/O Server to automatically start each time the computer is started. You will probably want to check this to save having to start the Server manually each time. Click 'OK' after configuration and minimize the ModBus I/O Server.

The next step in this process is to configure WonderWare InTouch. An 'Access Point' and 'Tag Names' must be created that will allow WonderWares' InTouch Process Visualization software to communicate with the ModBus I/O Server. Start 'InTouch' and create a new project. The following screen should now appear:

In the window on the left, double click 'Tagname Dictionary' and the following dialog should now open:

Click 'New' since tag names must be created for your external I/O and set the 'Tag Type' to "I/O Discrete". The dialog should now appear as below:

Enter a "Tagname" in this field and use something descriptive about that particular I/O point. Next click 'Access Name: …' to bring up the following dialog:

Click 'Add…' and edit the following dialog:

As you can see, we have already filled in the information. The 'Access Name' is arbitrary and for simplicity it should match the 'Application Name'. The 'Application Name' must be ModBus since that is the I/O Server we are using in this example. The 'Topic Name' must match the name used earlier when creating a 'Topic Definition' in the ModBus I/O Server configuration. As mentioned earlier we will exchange information with the I/O server thru DDE so be sure this is the selected protocol. After entering all settings, click 'OK'. You should now see a dialog similar to the one below:

The last piece of information that must be entered is the 'Item' name. In our example we have chosen to use the actual ModBus I/O address for the 'Item' name. At this point, click 'Save' to complete this tagname. Create any additional tagnames by clicking 'New' and repeating this process. You won't have to define another access point unless the I/O point is accessed thru another I/O server. After creating all tagnames for your external I/O, you are now ready to create your process visualization screens. You can animate your screens by attaching an I/O points tagname to its visualization object.