Download "user manual"

Transcript
3-7
Saia-Burgess Controls Ltd.
3.3
Internal resources (softwares)
3.3.1
Flags
1 bit of information (0/1)
NV ( non volatile )
F
0
8191
A flag memorizes one bit of information. There are 8192 flags. (F 0 is the first flag).
By default, the flags are non-volatile. This means that if you turn off the PCD when
the flag is at 1, it will still be at 1 when you turn the PCD back on (assuming your
battery is good). Any volatile flags will be reset to 0 if the PCD is turned off. If one or
more volatile flags are required, they can be configured in the Software Settings. This
is explained below.
The following example writes a high (1) to flag number 11 as soon as input 1 or 3 is
high. Boolean equation: F 11 = I 1 + I 3
How to use flags in your program
Instruction list program:
COB
STH
ORH
OUT
ECOB
0
0
I1
I3
F 11
Fupla program:
Fbox : Binary, Or
By default, flags are non-volatile. To make them volatile, they must be specified as
such in the Software Settings (see example).
Setup flags
Double mouseclick
PG5-WorkShop I Chapter 3 I PCD-Resources I 05.07.04