Skip to main content
Submitted by tfredrick on Thu, 06/22/2017 - 07:41

I am working on rewriting a program using gclib instead of direct TCP commands. One feature of the program uses an array of strings stored on the Galil. In the past, I would access each element of the array individually using the MG command and {s} to display it as a string. Now, I would like to use the GArrayUpload function to read all 60 values at the same time. The first four characters of the string are easy enough to interpret by converting the decimal value to hex, but the last two characters are part of the fractional value which gets rounded to four places and cannot be converted. Is there any way to access the full values using GArrayUpload so I can read all 6 characters of my strings?

Comments 1

MichaelC_Galil on 07/17/2017 - 14:47

Hello,
When returning the decimal value of variables/arrays at any time, whether it be through the array upload or a message, the returned value is always limited to 4 decimal places. Depending on what it is you need to achieve, there may be another Galil function or feature that could be used to achieve the same end result.
If you would like, you are welcome to contact Galil Applications support directly to discuss potential solutions. You can reach us at (916) 626-0101 from 8am to 5pm Pacific.
Sincerely,
Michael Cox
Applications Engineer
Galil Motion Control