07.03.2014 Views

Introduction.

Introduction.

Introduction.

SHOW MORE
SHOW LESS

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

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

Workshop PG5<br />

Instructionlist<br />

Technical stuff<br />

Addressing<br />

symbols &<br />

using arrays:<br />

By the way:<br />

If you work with symbols, you can add constants or other symbols to your<br />

symbol. Like this you can define a basis address and then refer to an element in<br />

perspective to this basis element.<br />

Example:<br />

An output card PCD2.A400 with 8 outputs is placed into the slot with the start<br />

address 80. We then want to set the third output (output 82):<br />

Definition:<br />

We can simply write: SET OutputMotor1+2 in our program.<br />

A more elegant way is to reserve an array of 8 outputs:<br />

In the program we then set the output 82 like this:<br />

SET OutputMotor1[2]<br />

Auto complete<br />

symbols:<br />

If you use long symbol names your program will become easier to read. On the<br />

other hand it will be annoying if you have to re-enter the long symbol name<br />

each time you use it in the program. Therefore you can simply enter the first<br />

letters of a symbol, and then lookup all the symbols which fit the first letters<br />

by using the keys “CTRL and SPACEBAR”:<br />

Example:<br />

CTRL + SPACE<br />

ENTER<br />

PG5-07-E © Saia-Burgess Controls Ltd. Page 7-8

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

Saved successfully!

Ooh no, something went wrong!