CompactLogix Motion Controller Programming

cmac2425

Lifetime Supporting Member
Join Date
Jul 2012
Location
Pittsburgh
Posts
48
I am trying to run an adaptation of a lathe, it's more like a winder, with a compactlogix. I have the motion axis moves working the way I want them but I need to toggle the rungs manually every time I want them to change. I basically want the axis to go to a certain count position (i.e. 100 counts) and then return back to 0, repeatedly. I get it to 100, but them I must switch over to the 0 rung. I am having problems running this automatically. I see the .PC bit seems to work as a move completed bit, can I use that bit to toggle the rungs? Any feedback would be great. Thanks.
 
Yes, the PC bit is the Process Complete bit for the instruction. You should be able to trigger a MAM for 100 units and use the .PC bit from that MAM to trigger a second MAM back 100 counts. The PC bit may only blip true, so you might be better off triggering the second MAM when the .IP (In Process)bit of the first MAM goes false.

Additionally, you only need to trigger an instruction once for it to execute - not continually. State logic works well for this or simply place a one shot in front of the instructions.
 
Thank you very much, it worked perfectly. I used the .PC bit instead of the .IP because I wanted to be able to stop the process in the middle (with a false rung trigger) and continue where it left off. When I used the .IP bit it always went to the first MAM in the rung scan. I am working on a counter now because every time the .IP hits I want to count it. Thanks for your help!:site:
 

Similar Topics

I am trying to connect to a 1769-L18-ERM-BB1B CompactLogix motion controller. I will be attaching a panelview plus 600 and 2 kinetix drives with...
Replies
31
Views
9,429
Motion control by RSLogix5000,Compactlogix 5370 L3 Controller & 2097-V31PR2-LM Drive Hello! I would like to study the Motion control by using...
Replies
0
Views
4,232
Hey guys, On my system, i got prop valve controling cylinder on the left and right to adjust the center of a lumber before it get in a woodmill...
Replies
8
Views
925
I have always used mapping to buffer IO to avoid random program hiccups caused by changing inputs in the middle of a program scan. Now I am doing...
Replies
8
Views
4,026
Hi, I have a Compactlogix processor (L33ERM) that is going to sync two lugged convyors and I am looking for some suggestions on the instructions...
Replies
2
Views
3,001
Back
Top Bottom