Programming / parameter assignment
Instruction Manual PROTECT-PSC
V 2.6R01 / 04.19
6-89
Translation example
Using a block ladder diagram the following is an example of a translation of the
ladder diagram to instruction list. This example merely serves to describe the trans-
lation process and is not conceived as an example of use.
Ladder diagram
F
F
i
i
g
g
u
u
r
r
e
e
6
6
-
-
8
8
3
3
L
L
a
a
d
d
d
d
e
e
r
r
d
d
i
i
a
a
g
g
r
r
a
a
m
m
–
–
e
e
x
x
a
a
m
m
p
p
l
l
e
e
o
o
f
f
t
t
r
r
a
a
n
n
s
s
l
l
a
a
t
t
i
i
o
o
n
n
p
p
r
r
o
o
c
c
e
e
s
s
s
s
L
L
D
D
-
-
>
>
S
S
D
D
L
L
Statement list
The statement list is now created step by step from the ladder diagram. The trans-
lation process is worked through from top to bottom and from left to right according
to the priorities of Booles algebra. This always produces a clear statement list for
every ladder diagram block. The following initial states are assumed:
A = 0; I000 to I007 = 1; T001 = 1
The registers (A, S0…S3) show states after execution of the instruction in the ‘vir-
tual’ column.
Step
LD
STL
virtual
A
S0
S1
S2
S3
0
-
-
-
-
STR I000
push
0
0
-
-
-
load(I000)
I000
0
-
-
-
AND I001
and(I001)
1
0
-
-
-
STR I004
push
1
1
0
-
-
load(I004)
I004
1
0
-
-
AND I005
and(I005)
1
1
0
-
-
OR STR
orpop
1
0
-
-
-
T
T
a
a
b
b
l
l
e
e
6
6
-
-
3
3
0
0
E
E
x
x
a
a
m
m
p
p
l
l
e
e
o
o
f
f
t
t
r
r
a
a
n
n
s
s
l
l
a
a
t
t
i
i
o
o
n
n
L
L
D
D
-
-
>
>
S
S
T
T
L
L
(
(
1
1
/
/
2
2
)
)
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 ...