EasyManua.ls Logo

schmersal PROTECT-PSC - Page 223

schmersal PROTECT-PSC
267 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming / parameter assignment
6
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
)
)






Table of Contents