Introduction.
Introduction.
Introduction.
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 />
Program structures<br />
Example COB:<br />
Here you have an example program ( once in IL and once in FUPLA) which makes<br />
the output 64 blink at a rate of 1,5 seconds. The program is written in the COB 0.<br />
The COB 0 is followed by the COB 15.<br />
Instruction list program:<br />
LADDER or FUNCTION BLOCK program:<br />
COB 0 ;COB 0 starts here<br />
0<br />
STL T 1 ;If timer 1 equals 0<br />
LD T 1 ;then load it with 1.5 s.<br />
15<br />
COM O 64 ;and toggle the output 64<br />
ECOB ;COB 0 ends here<br />
START UP<br />
COB 15 ;Next block<br />
0<br />
NOP<br />
ECOB<br />
(FBox: Blinker, Blink delay T)<br />
COB’s have<br />
different qualities:<br />
1: COB’s have a number. You can choose between 0 and 15.<br />
2: They can have a name.<br />
3: They have a SUPERVISION TIME. This time (in 10th’s of a ms), says<br />
how long the execution of the COB is allowed to take. If the supervision<br />
time elapses before the COB has finished execution (ECOB reached), the<br />
Exception bloc XOB 11 (will be explained right away) is executed. If there<br />
is no XOB11 programmed, the next COB is started. A supervision time of<br />
0 means that the supervision time is not activated.<br />
4: A comment can also be added.<br />
Example: FBD editor<br />
Example: IL-editor (Instruction list)<br />
2.<br />
1.<br />
3.<br />
4.<br />
3.<br />
2.<br />
1.<br />
4.<br />
© SAIA-Burgess Controls AG Page 5-2