Programming / parameter assignment
Instruction Manual PROTECT-PSC
V 2.6R01 / 04.19
6-42
Logical functions
Command OP1
OP2
OP2
Function
AND
S1
S2
S3
S3 = S1 AND S2
OR
S1
S2
S3
S3 = S1 OR S2
NOT
S1
S2
S2 = NOT S1.
Bit by bit inversion of the content of S1
XOR
S1
S2
S3
S3 = S1 XOR S2
Bit by bit XOR operation of S1 AND S2
Agenda
S
1,2,3
: register
T
T
a
a
b
b
l
l
e
e
6
6
-
-
8
8
O
O
v
v
e
e
r
r
v
v
i
i
e
e
w
w
o
o
f
f
t
t
h
h
e
e
l
l
o
o
g
g
i
i
c
c
a
a
l
l
f
f
u
u
n
n
c
c
t
t
i
i
o
o
n
n
s
s
Examples
OR operations of the LOW Byte of flag K003 with the LOW Byte of flag K001 and
saving of the result in the LOW Byte of flag K004.
Setting / resetting flags
The assigned flag is set the first time that a HIGH condition arises
The assigned flag is reset as soon as a HIGH condition arises
6.10.8
Status flags
The status flags are stored in the ‘V’ memory area in special flags V50 to V56.
Their state is dependent on the result of an executed function. The meaning of the
individual flags corresponds to that of the status flag of a processor. An exception
is provided by the ‘ER’ (ERROR) flag. It is set if the PROTECT-PSC recognises an
invalid operation. When an ER flag is set, the controller moves immediately to safe
state (all outputs shut down) and transmits an appropriate error message.
Symbol
Name
Address
CY
Carry flag
V56
BO
Borrow flag
V55
Z
Zero flag
V54
ER
Error flag
V50
T
T
a
a
b
b
l
l
e
e
6
6
-
-
9
9
S
S
t
t
a
a
t
t
u
u
s
s
f
f
l
l
a
a
g
g
s
s
Summary of Contents for PROTECT-PSC
Page 4: ......
Page 8: ......
Page 112: ......
Page 132: ......
Page 252: ......
Page 265: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 5 8 3 EC Type Examination certificate ...
Page 266: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 6 8 4 Declarations of conformity W ...
Page 267: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 7 8 5 Index ...