Jump to content

Recommended Posts

Posted

Hello,

 

I'm programming challenged and like the easy Rockwell Automation world, just not the price.  So Unitronics has nice powerful solutions, but the software seems to lag behind a bit...  So... what I'd like to be able to do in the Unistream platform is over-write the "read only" register "current count" from the UID-0808THS module.  I have shaft encoders and prefer to work on the positive side of the number line.  Negative roll over is a programming headache for me.

 

The application is a mechanical jack screw with 60 PPR A quad B encoder, signal feedback and wiring is easy and works fine.  In my control code I take the raw data and scale to engineering units to yield a linear position feedback (jackscrew moving the load a specified distance).

 

In the Rockwell world, I can turn the counter off, reset to zero or some "preset" value that is meaningful to the application.  What's nice about that is the programming is far easier and I can prevent roll-over problems by offsetting the number line using the preset value = non-zero value + a safety margin in counts (could be 10 x the feedback counts per rev.)

 

 

Does anyone reading this have has an application similar to this written in Unistream / Unilogic platform?  I have my program attached if you are curious about the hardware and software setup.  Version 1.7 rev 62.

 

 

If not, then I ask the capable guru's at Unitronics to consider enhancements to high speed counter firmware.

 

Thanks,

Greg

Posted

Hi Greg,

 

In the latest version of UniLogic there is an option to reset the counter using a bit on the THS struct.

If you wish to set a preset value then you can review the attached application which uses a virtual counter which is based on the THS counter.

Virtual Preset HSC_070.ulpr

  • 7 years later...
Posted

How can I preset a counter in a UID-0808THS module. It is read only currently. In case of a power failure the counter resets and I have to calibrate the machine again.

 

It is not possible to retain the tag!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.