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.

4 - The Individual Components<br />

To edit numerical values it is possible with the arrow keys or the Page Up/Down keys to change the<br />

value by one or ten units respectively. A double click with the mouse also changes the value by<br />

increasing by one unit. A typing check is installed for numerical values: + or +<br />

deliver the lowest or the highest value respectively for the possible input values for the type of<br />

parameter in question.<br />

Quick check in the event of unsuccessful connection attempt to the gateway<br />

You should make the following checks if the connection to the selected gateway computer is not<br />

successful. (You get the message „not connected" in the Communication Parameters dialog behind<br />

the gateway server address in the field Channels):<br />

• Has the gateway server been started (the three-color symbol appears in the bottom right portion of<br />

the toolbar) <br />

• Is the IP address that you entered in the 'Gateway: Communication Parameters' dialog really that<br />

of the computer on which the gateway is running (use „ping" to check)<br />

• Is the TCP/IP connection working locally The error may possibly lie with TCP/IP.<br />

'Online' 'Sourcecode download'<br />

This command loads the source code for the project into the controller system. This is not to be<br />

confused with the Code that is created when the project is compiled! You can enter the options that<br />

apply to Download (time, size) in the 'Project' 'Options' 'Sourcedown ' dialog.<br />

'Online' 'Create boot project'<br />

With this command, the compiled project is set up on the controller in such a way that the controller<br />

can load it automatically when restarted. Storage of the boot project occurs differently depending on<br />

the target system. For example, on 386 systems three files are created: default.prg contains the<br />

project code, default.chk contains the code's checksum, default.sts contains the controller status<br />

after restart (start/stop).<br />

The command 'Online' 'Create boot project' is also available in offline mode if the project has been<br />

built without errors. In this case the following files are created in the projects directory:<br />

.prg for the boot project code, and projektname>.chk for the checksum. These files<br />

can be renamed as necessary and then be copied to a <strong>PLC</strong>.<br />

Note:<br />

If the project option Implicit at create boot project (category Sourcedownload) is activated, then<br />

the selected sources will be loaded automatically into the controller on the command 'Online' 'Create<br />

boot project'.<br />

'Online' 'Write file to controller'<br />

This command is used for loading any desired file onto the controller. It opens the dialog for 'Write file<br />

to controller' in which you can select the desired file.<br />

After the dialog is closed using the 'Open' button, the file is loaded into the controller and stored there<br />

under the same name. The loading process is accompanied by a progress dialog.<br />

With the command 'Online' 'Load file from controller' you can retrieve a file previously loaded on the<br />

controller.<br />

'Online' 'Load file from controller'<br />

With this command, you can retrieve a file previously loaded into the controller using 'Online' 'Write file<br />

to controller'. You receive the 'Load file from controller' dialog. Under Filename, provide the name of<br />

the desired file, and in the selection window enter the directory on your computer into which it is to be<br />

loaded as soon as the dialog is closed with the „Save" button.<br />

CoDeSys V2.3 4-61

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

Saved successfully!

Ooh no, something went wrong!