Programming / parameter assignment
Instruction Manual PROTECT-PSC
V 2.6R01 / 04.19
6-88
Translation tables
Our assumed virtual machine has only a very limited instruction set. In order to dis-
tinguish between the instructions in the statement list, the instructions of the virtual
machine are shown by an operand in parentheses. The 1 bit operand is shown as
‘v’ for value.
Command
Function
load(w)
Loads w into A
push
Copies A to stack and increases stack address
pop
Loads value of stack into A and lowers stack address
read
Loads value of stack into A without altering address
out(w)
Assigns w the value of A
not
Inverts the value of A
and(w)
Performs AND logic operation with A and w and saves result in A
nand(w)
Performs NAND logic operation with A and w and saves result in A
or(w)
Performs OR logic operation with A and w and saves result in A
nor(w)
Performs NOR logic operation with A and w and saves result in A
xor(w)
Performs XOR logic operation with A and w and saves result in A
nts(w)
A = 1, with change from 0 to 1 of w; otherwise A=0
pts(w)
A = 1, with change from 1 to 0 of w; otherwise A=0
andpop
Performs AND logic operation of A and S0, saves result in A and
lowers stack address
orpop
Performs OR logic operation of A and S0, saves result in A and low-
ers stack address
T
T
a
a
b
b
l
l
e
e
6
6
-
-
2
2
8
8
I
I
n
n
s
s
t
t
r
r
u
u
c
c
t
t
i
i
o
o
n
n
s
s
o
o
f
f
v
v
i
i
r
r
t
t
u
u
a
a
l
l
m
m
a
a
c
c
h
h
i
i
n
n
e
e
Every instruction in Table 6-2 can now be specified by an equivalent instruction
sequence of the virtual machine.
Ladder dia-
gram
Instruction list
Virtual machine
STR v
push; load(v)
STR NOT v
push; load(v); not
AND v
and(v)
AND NOT v
nand(v)
OR v
or(v)
OR NOT v
nor(v)
AND STR
andpop
OR STR
orpop
OUT v
out(v)
PTS v
pts(v)
NTS v
nts(v)
FPS
push
FRD
read
FPP
pop
FST
load(1)
NOT
not
no operation
T
T
a
a
b
b
l
l
e
e
6
6
-
-
2
2
9
9
T
T
r
r
a
a
n
n
s
s
l
l
a
a
t
t
i
i
o
o
n
n
t
t
a
a
b
b
l
l
e
e
o
o
f
f
s
s
t
t
a
a
t
t
e
e
m
m
e
e
n
n
t
t
l
l
i
i
s
s
t
t
/
/
v
v
i
i
r
r
t
t
u
u
a
a
l
l
m
m
a
a
c
c
h
h
i
i
n
n
e
e
Содержание PROTECT-PSC
Страница 4: ......
Страница 8: ......
Страница 112: ......
Страница 132: ......
Страница 252: ......
Страница 265: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 5 8 3 EC Type Examination certificate ...
Страница 266: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 6 8 4 Declarations of conformity W ...
Страница 267: ...Annex 8 Instruction Manual PROTECT PSC V 2 6R01 04 19 8 7 8 5 Index ...