Docsity

Automation Studio Online Communication: A Guide to Building Online Connections, Tesi di laurea di Elementi di Informatica

Anteprima parziale del testo

Scarica Automation Studio Online Communication: A Guide to Building Online Connections e più Tesi di laurea in PDF di Elementi di Informatica solo su Docsity!

AutomationAutomation StudioAutomationAutomation StudioStudio Online CommunicationStudio Online CommunicationOnline CommunicationOnline Communication

TM

Introduction

2 TM211 Automation Studio Online Communication

Prerequisites

Training modules: TM210 – Automation Studio Basis

Software: Automation Studio 3.

Hardware: None

Introduction

4 TM211 Automation Studio Online Communication

1. INTRODUCTION

All the programming and diagnostics services of Automation Studio run on a single PC. It is therefore necessary to create a connection from the PC to the controller. The use of a wide range of transfer media allows us to use existing connections and wiring, which results in more flexible diagnostics. Remote maintenance is an important concept these days.

Fig. 1 Communication

This training module covers the various online connections that are possible. It goes on to describe the configuration of a connection using various media. Possibilities for remote maintence are also discussed.

Introduction

Automation Studio Online Communication TM211 5

1.1 Objectives

The course participant will learn how to construct various online connections using a range of media.

The course participant will understand the importance of the routing mechanism.

The course participant will learn about the benefits of remote maintenance.

Fig. 2 Overview

Online connection

Automation Studio Online Communication TM211 7

3. ONLINE CONNECTION

In order to build an online connection from the Automation Studio to the controller, there are settings on both ends that must be configured. Not all of the controller's interfaces are pre-configured as online interfaces. They can also be used for third-party connections with devices from other manufacturers. In addition, different hardware will require different settings when building the connection.

If an interface on the controller is to be used for a direct online connection with a particular PC, that PC must have an interface of the same physical type (and it must be correctly configured).

Regardless of the transfer media used, the connection between PC and controller is based on a uniform communication protocol. This is B&R's own INA (Industrial Network Architecture) protocol.

3.1 System configuration

It is necessary to activate the online function for the interface in the Automation Studio project. Since the configuration varies depending on the type of interface, each one is handled individually in the following section.

Note: In order for the changes you make to be transferred to the target system, the configuration must be sent to the target system. You will automatically be prompted by Automation Studio™ to restart the target system. This is absolutely necessary. Keep in mind the consequences of restarting your target system.

The first interface of a system, labeled IF1, can be used as an online interface with no special configuration.

Online connection

8 TM211 Automation Studio Online Communication

3.1.1 Ethernet

The following settings will activate the Ethernet interface for INA communication. Select Open IFx Ethernet Configuration from the shortcut menu.

Fig. 4 Opening the Ethernet configuration

The following appears:

Fig. 5 Ethernet configuration

Activate the INA communication to use Ethernet as online interface.

At the very least, an IP address and a subnet mask must then be set.

Note: You can obtain the necessary values for your IP address, subnet mask, default gateway and broadcast address from your network or system administrator. The default port number for an INA connection is 11159. To test the Ethernet connection to the controller, run the command ping xx.xx.xx.xx (IP address of the controller) in the Windows command line. The command line can be found in the start menu under Programs - Accessories - Command prompt.

Online connection

10 TM211 Automation Studio Online Communication

3.1.2 Serial

Every Automation Target has a serial onboard interface that is always configured as an online interface.

The rest of the serial interfaces can be configured as follows.

Select Open IFx Serial Configuration from the shortcut menu.

Fig. 7 Opening the interface properties

The right section of the window should now look like the figure below. The settings for the interface can be changed here.

Fig. 8 Parameters for the serial interface

In addition to activating the INA communication (Online) for the online connection, the transfer rate (baudrate) can also be changed.

Note: The information regarding changed interface settings (baud rate, parity) must be stored for other users. It is best to leave the default settings. The default parameters are: baud rate = 57600, data bits = 8, parity = even, stop bits = 1.

Online connection

Automation Studio Online Communication TM211 11

3.2 Connection settings

The previous sections explained the preparations that must be made on the controller in order to set up a connection through the desired interface. There are also settings to be made on the PC end in order to create a connection.

All online connections can be configured in Automation Studio in the same dialog box.

This dialog box is opened by selecting Settings from the Online menu.

Fig. 9 Opening online settings

The connection settings can be made in the following dialog box:

Fig. 10 Online settings

Any number of connection configurations can be saved. Add a new connection by clicking on the Add... button.

Online connection

Automation Studio Online Communication TM211 13

Note:

As a default, the system configuration (sysconf) is automatically sent to the USER – ROM. When the USER – ROM is deleted, so is the online configuration. To retain the online connection in this case, the system configuration (sysconf) must be saved in the SYSTEM – ROM. If the PLC is in DIAGNOSTIC mode it is the same.

Online connection

14 TM211 Automation Studio Online Communication

3.2.1 Ethernet

Fig. 13 Ethernet configuration

An Ethernet connection is configured as follows:

  • Be sure that the IP address set on your PC that is in the same address range as the IP address of the controller. Your administrator is responsible for determining this value.
  • Add an Ethernet configuration as described above, and open its properties.

The options Obtain an IP address automatically and Specify an IP address can be selected if needed.

When the first option is selected, Automation Studio attempts to establish a connection to a controller with the listed destination address. To do this, a broadcast telegram is sent to the Ethernet, and each destination station replies with its destination address.

When the second option is selected, the IP Address for the destination station is entered as an additional test to be sure that only the controller with the set IP Address and destination address is contacted.

Settings for the Ethernet connection from the PC to the controller can be made here. The Destination address is the node number of the Ethernet interface on the controller. This is set on the controller using node selection switches, and usually in hexadecimal. In the configuration dialog box, the value must be entered in decimal form. Some of the node selection switches on the target system must be set in hexadecimal. (e.g. $2C becomes 44).

Online connection

16 TM211 Automation Studio Online Communication

3.2.2 Serial

A serial connection can be configured after it has been added. Select Properties to open the properties dialog box for the chosen configuration.

Fig. 14 Opening the configuration settings

Edit the settings for the active configuration in the following dialog box.

Fig. 15 Configuration settings

The correct interface must be selected in the line Interface in order to determine through which of your PC's serial interfaces Automation Studio will establish a connection.

The other settings are standards that apply to all newly delivered target systems. If something else has been configured on the target system, these settings must also be adjusted.

Save your settings by clicking on OK.

The setting Interval timeout (ms) is the maximum time between characters in the receive frame.

Routing

Automation Studio Online Communication TM211 17

4. ROUTING

Routing is an extension of online connections. In addition to the simple direct connection, it is also possible to communicate through already existing networks.

4.1 Principle

Fig. 16 Routing

This figure presents the concept of routing. It is possible to expand an already existing connection, in this example a serial one. The connection via the selected path remains the same. One can use an additional interface from the target system to leave the current network and establish a connection to a controller in the automation system.

Networks and wiring can be used to establish an online connection to all controllers in this network via, for example, a central connection point.

In order for such a system to work properly, all interfaces on the controllers must be configured as online interfaces.

The following networks can be used for a routing connection:

  • Ethernet network
  • CAN Network
  • Serial point-to-point connections

Note: An RS422 or RS485, just as an RS232 interface, can only be used as a point to point connection for INA communication.

Remote Maintenance

Automation Studio Online Communication TM211 19

5.1.1 System configuration

On the controller end, the following settings must be made.

Fig. 18 Modem configuration

The option Activate modem configuration must be activated in the properties dialog box for the interface settings of the desired serial interface. The settings can now be made for the connection from the PLC to the modem. The main settings to be made are the transfer rate and the initialization of the modem. Don't forget to save and transfer!

Remote Maintenance

20 TM211 Automation Studio Online Communication

5.1.2 Connection settings

After adding a modem connection, the following parameters can be defined in the properties dialog box under Online:Settings.

Fig. 19 Online connection via modem

The modems installed on the PC are shown in the Modem combination field. You can choose one of them. The Telephone number is also listed. Depending on the type of modem, a timeout is listed under Response timeout. (Since modems send data in blocks, the time between sending of data can fluctuate. The response timeout compensates for this.)

After saving the connection with OK, the modem connection is established. This also happens when opening the project (after a query).

Note: The data transfer rates and settings that need to be made on the interface will vary depending on the type of modem being used. This information can be found in the operating instructions for the modem.