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

90 • Fieldbus Controller 750-841

Programming the PFC with WAGO-I/O-PRO CAA

These libraries are loaded on the WAGO-I/O-PRO CAA CD.

After installing these libraries, you will have access to their POUs (Program Organization Units), data types, and global variables, which can be used in the same manner as user defined program objects.

More information

For information on the function blocks as well as details regarding the use of the software, please refer to the WAGO-I/O-PRO CAA manual. An electronic copy of this manual can be found on WAGO’s web site: www.wago.com

3.1.7.2 IEC 61131-3-Program transfer

Transferring an IEC 61131-3 application program from your PC to the PFC can be done in two different ways:

via the serial RS232 interface

via the fieldbus with TCP/IP.

Note

When choosing the driver, make sure the communication parameters are correctly set and match your controller.

The Communication parameters dialog window is displayed through the program menu item Online and then Communication parameters.

1.If you choose the RS232 driver, verify that the Communication parameters dialog window contains the following setup data: Baudrate=19200, Parity=Even, Stop bits=1, Motorola byteorder=No.

2.If you choose the TCP/IP driver, verify that the Communication parameters dialog window contains the following setup data: Port=2455, Motorola byteorder=No. Additionally, verify that the entered IP address is correct.

More information

For information on the installation of the communication drivers, as well as details regarding the use of the software, please refer to the WAGO-I/O-PRO CAA manual. An electronic copy of this manual can be found on WAGO’s web site: www.wago.com

WAGO-I/O-SYSTEM 750 ETHERNET TCP/IP

Fieldbus Controller 750-841 91

Programming the PFC with WAGO-I/O-PRO CAA

3.1.7.2.1 Transmission via the Serial Interface

Use the WAGO communication cable to produce a physical connection to the serial interface. This is contained in the scope of delivery of the programming tool IEC 1131-3, order No.: 759-333/000-002, or can be purchased as an accessory under order No.: 750-920.

Connect the COMX port of your PC with the communication interface of your controller using the WAGO communication cable.

A communication driver is required for serial data transmission. In WAGO-I/O-PRO CAA, this driver and its parameterization are entered in the

"Communication parameters" dialog.

1.Start WAGO-I/O-PRO CAA by using the Windows Start menu, find and click on the WAGO-I/O-PRO program name (i.e., CoDeSys V2.3).

2.In the Online program menu, click Communication parameters. The dialog window Communication parameters opens. Next, click New to create a new communications channel and the Communication Parameters: New Channel dialog window opens.

3.In the Communication Parameters: New Channel dialog window, you can enter a channel description in the “Name” field, then single click on Serial (RS232). Click the OK button to close the dialog window and the Communication Parameters dialog window will regain focus.

4.In the center window of the dialog, the following parameters appear: Baud rate=19200, Parity=Even, Stop bits=1, Motorola byteorder=No.

If necessary, change the entries accordingly. After all changes are entered, Click OK. You can now test communication with your controller.

Note

To access the controller, the operating mode switch of the controller must be in the center or the top position.

5.Under the program menu item Online, click Log-on to log on to the controller. (During online operations the WAGO-I/O-PRO CAA server is active and the Communication Parameters menu item cannot be accessed.)

6.If the controller does not contain a application program, or it contains a different program, a dialog window appears asking whether or not the new program should be loaded. Confirm with the Yes button.

7.As soon as the program is loaded, you can start the controller by clicking on the program menu item Online and then Run. At the right-hand side of the status bar (the status bar is located at the bottom of the screen), the RUNNING indicator will be highlighted .

8.To terminate the online operation, return to the Online menu and click on

Log-off.

WAGO-I/O-SYSTEM 750 ETHERNET TCP/IP

92 • Fieldbus Controller 750-841

Programming the PFC with WAGO-I/O-PRO CAA

3.1.7.2.2 Transmission by the Fieldbus

When using the Ethernet Fieldbus port for communication with WAGO-I/O- PRO CAA, the PC and the controller must be connected physically via Ethernet (refer to Figure 5-2 and 5-3 for typical network connections). Additionally, the TCP/IP communication driver in WAGO-I/O-PRO CAA must be setup correctly and the controller must contain an IP address (refer to section 3.1.6.4 for assigning an IP address to the controller).

A communication driver is required for Ethernet transmission. In WAGO-I/O-PRO CAA, this driver and its parameters are entered in the

Communication Parameters dialog.

1.Start WAGO-I/O-PRO CAA by using the Windows Start menu, find and click on the WAGO-I/O-PRO program name (i.e., CoDeSys V2.3).

2.In the Online program menu, click Communication parameters. The dialog window Communication parameters opens. Next, click New to create a new communications channel and the Communication Parameters: New Channel dialog window opens.

3.In the Communication Parameters: New Channel dialog window, you can enter a channel description in the “Name” field, then single click on Tcp/Ip. Click the OK button to close the dialog window and the Communication Parameters dialog window will regain focus.

4.In the center window of the dialog, the following parameters appear: Address=localHost, Port=2455, Motorola byteorder=No. Replace the Address “localHost” with the IP address of your controller assigned via the BootP server. If necessary, change the other entries accordingly. After all data has been entered, Click OK. You can now test communication with your controller.

Note

To access the controller, it must have an IP address, and the operating mode switch of the controller must be in the center or top position.

5.Under the program menu item Online, click Log-on to log on to the controller. (During online operations the WAGO-I/O-PRO CAA server is active and the Communication Parameters menu item cannot be accessed.)

6.If the controller does not contain an application program, or it contains a different program, a dialog window appears asking whether or not the new program should be loaded. Confirm with the Yes button.

7.As soon as the program is loaded, you can start the controller by clicking on the program menu item Online and then Run. At the right-hand side of the status bar (the status bar is located at the bottom of the screen), the RUNNING indicator will be highlighted.

8.To terminate the online operation, return to the Online menu and click on the Log-off.

WAGO-I/O-SYSTEM 750 ETHERNET TCP/IP

Соседние файлы в папке 750-841