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 />

Resources<br />

3.2 Internal (software) resources<br />

3.2.1 Flags<br />

How to use<br />

Flags in your<br />

program:<br />

1 bit (0/1) of information<br />

F NV ( non volatile )<br />

0 8191<br />

A flag memorizes one bit of information. There is 8192 flags. (0 is a valid<br />

flag). By default, the flags are non volatile. This means that if you turn off the<br />

PCD, and the flag is a 1, when you turn the PCD back on, it will still be a 1.<br />

(Considering that your battery is good). All volatile flags would be reset to a 0,<br />

if the PCD was turned off). If you want a volatile flag or flags, they can be<br />

configured in the software settings. This is explained below.<br />

The following example writes a high (1) into the Flag number 11 as soon as<br />

inputs 1 or 3 is high. Boolean equation: F 11 = I 1 + I 3<br />

Instruction list program:<br />

COB 0<br />

0<br />

STH I 1<br />

ORH I 3<br />

OUT F 11<br />

ECOB<br />

FUPLA program:<br />

(FBox: Binary, OR 2 to10 inputs)<br />

Setup flags:<br />

By default the flags aren’t volatile. If you want them to be volatile, then you<br />

have to specify so in the software settings. (See example)<br />

© Saia-Burgess Controls Ltd. Page 3-4

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

Saved successfully!

Ooh no, something went wrong!