Help on Shift register

Super_unknown

Member
Join Date
Aug 2007
Location
UAE
Posts
5
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
 

Similar Topics

Hi everyone I am completely new to using shift registers and am a bit stuck, my shift register works as should, it is for an overhead conveyor...
Replies
55
Views
15,625
Hi I am fairly new to codesys 3 but I'm currently trying to make a little project using 4 cameras, a sensor and a conveyor belt each camera take...
Replies
7
Views
3,698
Posted previously but had the wrong info, hoping to get new advice. Being a mechanical engineer, I'm not very experienced with PLCs, and what...
Replies
7
Views
2,458
I'd like to start by saying that my background in engineering is mostly mechanical, and I have a tiny bit of experience with AB and RSLogix (to...
Replies
10
Views
2,656
hello people, im totally NEW in plc. i'v read reference of ladder diagram (OMRON PLC CPM1A-20CDR). why do people use 253.14 as data input of...
Replies
6
Views
4,573
Back
Top Bottom