24.01.2015 Views

PLC Programming

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DDE communcation with the GatewayDDE Server...<br />

=CODESYS|'C:\CODESYS\PROJECT\IFMBSP.PRO'!<strong>PLC</strong>_PRG.TEST'<br />

When you click on 'Edit' then "Links", the result for this link will be:<br />

Type: CODESYS<br />

Source file: C:\CODESYS\PROJECT\IFMBSP.PRO<br />

Element: <strong>PLC</strong>_PRG.TEST<br />

Accessing variables with Intouch<br />

Link with your project a DDE Access Name with the application name CODESYS and<br />

the DDE topic name C:\CODESYS\PROJECT\IFMBSP.PRO.<br />

Now you can associate DDE type variables with the access name . Enter the name of<br />

the variable as the Item Name (e.g., <strong>PLC</strong>_PRG.TEST).<br />

9.2 DDE communcation with the GatewayDDE Server...<br />

Handling of the GatewayDDE Server<br />

The GatewayDDE Server can use the symbols which are created in CoDeSys for a project to<br />

communciate with other clients or the <strong>PLC</strong>. (see 'Project' 'Options' 'Symbolconfiguration'). It can serve<br />

the DDE interfaces of applications like e.g. Excel. This allows to transmit the variables values of the<br />

<strong>PLC</strong> to an applications, e.g. for the purpose of monitoring.<br />

At start of the GatewayDDE Server a window opens, where the configuration of start and<br />

communication parameters can be done. A already existing configuration file can be called or the<br />

parameters can be set newly.<br />

Starting dialog of the GatewayDDE Server<br />

Using the command 'File' 'Open' you can call an already existing file which stores a set of<br />

configuration parameters. The standard dialog for selecting a file will open and available files with the<br />

extension ".cfg" will be offered. If a configuration file is selected, the configuration parameters and the<br />

defined target device are displayed<br />

If the option 'File' 'Autoload' is activated, the GatewayDDE Server automatically opens with that<br />

configuration, which was active before the last terminating of the server.<br />

If the server is started without any predefined configuration and without the setting Autoload, then in<br />

the configuration window 'Gateway:' und 'Device:' are displayed. Then you have to set up a new<br />

configuration.<br />

The command 'File' 'Settings' opens the dialog 'Server settings', in which the following parameters<br />

can be set:<br />

9-2 CoDeSys V2.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!