Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
19
Добавлен:
11.10.2020
Размер:
3.39 Mб
Скачать

142Components of WAGO-I/O-PRO 32

General Online Functions

4.6.22'Online' 'Simulation'

If Simulation Mode is chosen, then a check( ) will appear in front of the menu item.

In the simulation mode, the user program runs on the same PC under Windows. This mode is used to test the project. The communication between the PC and Simulation Mode uses the Windows Message mechanism.

If the program is not in simulation mode, then the program will run on the PLC. The communication between the PC and the PLC typically runs over the serial interface.

The status of this flag is stored with the project.

4.6.23'Online' 'Communication Parameters'

You are offered a special dialog for setting communication parameters when the communication between the local PC and the run-time system is running over a gateway server in your system. (If the OPC or DDE server is used, the same communications parameters must be entered in its configuration).

4.6.24Principle of a gateway system

Let us examine the principle of the gateway system before explaining the operation of the dialog:

A gateway server can be used to allow your local PC to communicate with one or more run-time systems. The setting concerning which run-time systems can be addressed, which is specifically configured for each gateway server, and the connection to the desired gateway server, is made on the local PC. Here it is possible that both the gateway server and the run-time system(s) can run together on the local PC. If we are dealing with a gateway server which is running on another PC we must ensure that it has been started there. If you are selecting a locally installed gateway server, it automatically starts when you log onto the target run-time system. You can recognise this through the appearance of a WAGO-I/O-PRO 32 symbol on the bottom right in the task bar. This symbol lights up as long as you are connected to the run-time system over the gateway. The menu points Info and Finish are obtained by clicking with the right mousekey on the symbol. Finish is used to switch off the gateway.

See the following scheme for presenting a gateway system:

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Components of WAGO-I/O-PRO 32

143

General Online Functions

 

 

 

PC_local is your local PC, PC_x is another PC, which gateway addresses. PC_gateway is the PC on which the gateway server is installed, PC_PLC1 through to PC_PLC4 are PCs on which the run-time systems are running. The diagram shows the modules as separated but it is fully possible for the Gateway server and / or run-time systems to be installed together on the local PC.

Note:

Please note that a connection to gateway is only possible over TCP/IP so make sure that your PC is configured appropriately!

The connections from gateway to the various run-time computers can, on the other hand, run over different protocols (TCP/IP, Pipe, etc.).

4.6.25 What the communications parameters dialog on the local PC shows

This dialog is used to select a gateway server for the communicatio with a PLC. Furtheron there can be set up channels for a gateway server which is installed on the local PC so that these channels can be used by other computers which are part of the network.

The current settings can be called up at any time using the button Update.

The dialog will appear as follows if the communications parameters have already been configured according to the example in 'Principle of a gatewa system'.:

x Dialog for setting the gateway communications parameters, example

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

144Components of WAGO-I/O-PRO 32

General Online Functions

The heading Channels lists two categories of connections:

On the one hand all of the connections are shown which are installed on the currently connected gateway server called 'localhost'. Here the address or the name of this gateway is located on the upper position behind the minus sign, which in our example is running on the local computer. The appropriate address 'localhost' corresponds in the normal case to the IP address 127.0.0.1 of the local computer (PC_local). Below, indented to the right, are three addresses of run-time computers which the gateway channels are set-up to (PC_PLC1 to 3). They could have been configured both from the local PC or from the other PCs (PC_x) which are or were connected to the gateway server.

The second category of the channels describes includes all connections to the gateway which can be set up from your local PC, over this configuration dialog for example. They create the "branch" which leads from the minus sign directly below to PC_PLC1 and PC_PLC4. These channel addresses do not necessarily have to be known yet at the gateway. For PC_PLC4 in the example described above, the configuration parameters are stored locally in the project but they will first be known to the gateway the next time log-in to the run-time system occurs. This has already occurred for PC_PLC1 since the associated gateway address has appeared as an additional "sub-branch" to the "channel tree".

In the central part of the dialog one finds the designation, in each case, of the left selected channel and the associated parameter under Name, Value and

Comment.

4.6.26Setting up the desired gateway server and channel

Setting up the desired gateway server and channel

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Components of WAGO-I/O-PRO 32

145

General Online Functions

 

 

 

To define the connection to the desired gateway server we open the dialog 'Communication Parameters Gateway' by pressing the button Gateway.

x Example dialog, definition of the local connection to the gateway

Here you can enter and/or edit the following:

The type of connection from your computer to the computer on which the gateway server that you want to use is running. If the gateway server is running on the local computer, connection via shared memory ("local") or via TCP/IP is possible; if connection to a different computer is needed, only TCP/IP can be used.

The address of the computer, on which the gateway server that you want to use is running: IP address or the appropriate symbolic name such as e.g. localhost. On initial setup, the standard 'localhost' is offered as the computer name (address), which means that the locally installed gateway would be accessed. The name 'localhost' is set to be identical to the local IP address 127.0.0.1 in most cases, but you may in some cases have to enter this directly into the Address field. If you want to access a gateway server on another computer, you must replace 'localhost' with its name or IP address.

The password for the selected gateway server, if it is on a remote computer. If it is incorrectly entered, or not entered at all, an error message appears.

Note in this connection: you can give the locally installed gateway server a password with the following procedure: click with the right mouse button on the gateway symbol in the lower right portion of the toolbar and select "Change password". A dialog comes up for changing or entering a password. If you access the gateway server locally any password that is entered will not be asked for.

The computer's port on which the gateway server that you wish to use is running, as a rule the correct value for the selected gateway is already given.

If the dialog is closed with OK, the corresponding entry (computer address) appears in the Channels field at the top of the 'Communication parameters' dialog, and below it the channels available on this gateway server.

Setting up the desired channel on the selected gateway server:

Now select one of the channels by clicking on an entry with the mouse. The corresponding parameters will then be shown in the table. If no connection can

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32