Super_unknown
Member
Hello dear experts! just started learning STL and tried writing a program that writes the status of a particular bit M0.1 on 80 bits of DB5.Pointer is shifted by positive pulse from M0.2..the program is working when I used MD 60 to store temporary value of pointer but if I use indirect address say #dbtemp it works if no other function calls on OB but if other Function calls with OPN Db it does not work..I just wanted to know what could be the problem..Is there another way of doing this shift register?
OPN DB 5
A M 0.2
JCN m002
A M 0.1
= DBX [MD 60]
m003: L MD 60
L P#10.0
>=D
JC M001
L MD 60
LAR1
L P#0.1
+AR1
TAR1
T MD 60
T DB5.DBD 20
JU M002
M001: L P#0.0
T MD 60
A M 0.1
= DBX [MD 60]
JU m003
M002: NOP 0
OPN DB 5
A M 0.2
JCN m002
A M 0.1
= DBX [MD 60]
m003: L MD 60
L P#10.0
>=D
JC M001
L MD 60
LAR1
L P#0.1
+AR1
TAR1
T MD 60
T DB5.DBD 20
JU M002
M001: L P#0.0
T MD 60
A M 0.1
= DBX [MD 60]
JU m003
M002: NOP 0