Help on using a register.

fredz0003

Member
Join Date
Dec 2010
Location
Houston
Posts
186
I am trying to run 3 conveyors, and each conveyor has three buttons 1,2,3 for priority control, and each conveyor will have the same three buttons. I read about using
N7:0 = First Priority
N7:1 = Second Priority
N7:2 = Third Priority

But I don't quite understand how I can implement it using switches. This is what I have but when I hit priority 1 on the first conveyor the N7:0 turns into 1 like is suppose to, then when I hit priority 2 on the second all N7 change?

Any suggestions? I posted what I have but I know is wrong.

priorityTry.jpg
 

Attachments

  • priorityTest2.zip
    461 bytes · Views: 4
I can see a couple of things going on in your program. The "B" addresses are at bit level and the "N" addresses are at word level. In your file the MOV instructions are always on, so, 1 scan after the bit is switched off, the MOV instruction moves the current state of the "B" bit, which is "0". Instead of using a "B" bit, try using a constant. Maybe something like the attached file will give you a start.
 
Last edited:

Similar Topics

After replacing the 70 with the 525, the PLC can read from the drive and recognizes it as online, but no commands are being listened to. PLC is...
Replies
1
Views
587
I'm new to Crimson (this is my first week, and I just ran into my first road block. I'm trying to display the position of a rail car, running in...
Replies
3
Views
1,170
Hello, I'm struggling with getting an email to send using an eweb module on a controllogix system. Any chance I could get someone here to help?
Replies
4
Views
1,871
Hi all I am trying to set up a lhttp instruction to connect to an api https (with our IT) this will send data back to the plc? I have an api https...
Replies
9
Views
1,798
please help i didn't solve this problem with rslogix. I counted but i am not using timer. How i will fix this situation? Please anyone solve this...
Replies
18
Views
4,954
Back
Top Bottom