Introduction.
Introduction.
Introduction.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Workshop PG5<br />
Instructionlist<br />
$Instructions:<br />
$skip<br />
Until now we have only talked about instructions which are downloaded to the<br />
PCD. The PCD family has a set of instructions (called directives), which can<br />
change the way the build process is done. These directives aren’t downloaded<br />
to the PCD at all. Here’s a short list of the most common directives:<br />
One of these directives was already presented at the beginning of this chapter it<br />
was : $Skip => $endskip<br />
This directive tells the build process to skip the code between these symbols.<br />
The code is considered as a comment.<br />
$include<br />
When an include statement is encountered, the given file is read and processed<br />
as though it is part of the source file being assembled.<br />
Format:<br />
$INCLUDE ["][d:][path]filename[.ext]["]<br />
SEdit can open these files for you. If you have an $include directive in your<br />
code simply click on the statement using the right mouse button, and the specified<br />
file will be opened for you:<br />
$group<br />
All symbols defined between these directives are automatically prefixed with<br />
the group_name. This makes it easier to work with symbols which are inside<br />
groups. To reference a symbol in a group, either the group name can be used<br />
as a prefix to the symbol (separated by a full stop "."), or another $GROUP<br />
directive can be used to define the default group name.<br />
For example:<br />
STH FRED.SYMBOL1 ; SYMBOL1 in group FRED<br />
$GROUP FRED<br />
; select group FRED<br />
STH SYMBOL1 ; references FRED.SYMBOL1<br />
$ENDGROUP<br />
These are just a few of the available directives. Using these directives takes a<br />
lot of experience and explaining all these techniques would go way beyond the<br />
goal of this starter workshop. Please refer to the help for a complete list.<br />
PG5-07-E © Saia-Burgess Controls Ltd. Page 7-15