Greg Smith Posted July 24, 2014 Report Posted July 24, 2014 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
Ofir Posted July 29, 2014 Report Posted July 29, 2014 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
Greg Smith Posted August 5, 2014 Author Report Posted August 5, 2014 Ofir, Thank you for your high speed counter example logi, it was extremely simple and helpful! Thanks, Greg
CTP Posted February 24, 2022 Report Posted February 24, 2022 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!
MVP 2023 Ausman Posted February 24, 2022 MVP 2023 Report Posted February 24, 2022 Can you do the same solution as done for Vision systems? https://forum.unitronics.com/topic/6118-hsc-resets-dw-counter-after-power-cut/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now