Pause or Stop encoder count during jog?

eddy159357

Member
Join Date
Feb 2024
Location
Illinois
Posts
2
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...
Replies
1
Views
2,198
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)...
Replies
5
Views
6,701
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...
Replies
2
Views
794
Sometimes in a specific Project I need to disable all the output of the system, Then I can Resume it again by Pushing The Same Button ( Pause ) or...
Replies
4
Views
2,194
Hi, I am doing a mini project which requires me to pause(freeze) a sequence using stop button and pressing start button will resume the sequence...
Replies
2
Views
3,278
Back
Top Bottom