Jump to content

HSC encoder position

Recommended Posts

I'm honored to use the incremental encoder 500imp/rev. I need to display the exact position on the screen. How I can calculate a position, since sharing with a comma is not possible. For 500 imp I have 37.68mm. 

Measuring range is from 0-1100mm, with a precision of 0.1mm


I use jazz T20HS

Sorry for my bad English.

Link to comment
Share on other sites

  • MVP 2023

Unfortunately, doing math in a Jazz is hard.  They're really designed to use 16 bit signed integers.

If there's any way you can upgrade to a V130 you can do your scaling in floating point registers.

The only way to do this in a Jazz is to use an implied decimal.  Since 500 pulses = 37.68 mm and your range is 1100 mm, you'll need to work with an value of 110000 for the total length.  Which requires a 32 bit "long" integer.

If you really want to tackle this in a Jazz you need to read the Help on Special Functions without Elements so you can learn how to work with these larger elements using two consecutive MIs.

Joe T.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...