Pause or Stop encoder count during jog?

Hi, I'm programming in RSLogix 500, and I'm wondering how I would program a Jog command that does not increase the encoder count. Basically we'd like to be able to jog to adjust a piece without messing up the existing counter.

My first thought would be to mov the encoder count into a float before the jog and then mov it back into the HSC after the jog is complete?
 
It is best to keep the HSC on an unconditional rung to prevent losing counts during operation. It sounds like you are wanting to lose counts while jogging, so why not put an XIO or XIC in front of the HSC to disable it while in jog mode? The ACC value of the HSC is read only, so you can't MOV a value back into it. Also, why would you move it to a float? IIRC the PRE and ACC are integers only.
 
Thanks, that is a good idea! Yes sorry, not a float the counts are integer.

So, I currently do not have a rung that enables the HSC, it's enabled in the function files. Would I move a bit to HSC:0.CE or FE to turn it off while I'm jogging?


It is best to keep the HSC on an unconditional rung to prevent losing counts during operation. It sounds like you are wanting to lose counts while jogging, so why not put an XIO or XIC in front of the HSC to disable it while in jog mode? The ACC value of the HSC is read only, so you can't MOV a value back into it. Also, why would you move it to a float? IIRC the PRE and ACC are integers only.
 
Ah, you are using a MicroLogix. I am more familiar with SLC and using the HSC instruction. I would imagine you can set the .CE bit to 0 while you are jogging.

If you have a TechConnect contract, check out this article: ID: QA1634 | Access Levels: TechConnect. It has a very handy document attached that I think will explain what you are trying to do.
 

Similar Topics

Hi all, I need to send these commands (play, stop, pause, run next block, run previous block) from an HMI (made in Visual Studio with C++) in...
1
Replies
2,687
Views
This has been started in another post http://www.plctalk.net/qanda/showthread.php?p=361488#post361488 A referance was made in that post (# 18)...
5
Replies
7,780
Views
Hi all. I do commissioning on boiler houses, CODESYS. Something I ran into that I still cannot forget: pause(IN := run_2); IF NOT run_2 OR...
11
Replies
419
Views
Hello, I have an paintline application currently running off of a powerflex 523. Inputs 1 & 2 are start and stop with inputs 5 & 6 being used for...
2
Replies
447
Views
I have a request to integrate a pause button in RSlogix to be able to start/stop a video. Video format is not defined at the moment, so it could...
2
Replies
1,441
Views
Top