Changing Data Item units while operating

Posted By slipton 6/8/2015 11:41:49 AM
Add to Favorites0
Author Message
slipton
 Posted 6/8/2015 11:41:49 AM
I'm hooked

I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)I'm hooked - (482 reputation)

Group: Forum Members
Last Active: 6/19/2015 3:20:42 PM
Posts: 1, Visits: 6
482
Hi All,
I am running into a bit of an issue with my application. The essence of the problem is that I have a data item that changes units during operation, and I would like to be able to send those unit changes through to the Agent. (I am using the standard C++ agent from github)
Here is what happens:
- I want to broadcast the feed rate requested in the part program.
- Depending upon some G-codes, this feed rate can be expressed in: mm/min (typical default); inverse time (velocity / distance); or mm/revolution (depends on spindle RPM). My API only allows me to access the programmed number (unitless) and the G-code state.
- It will be near impossible for me to convert the non-standard units back into mm/min in the Adapter because they depend upon many factors, including NC measurements. This would also change the nature of the data from a programmed to a measured item.

Would it be possible for the Adapter to somehow provide the Agent with the unit information? Can I do this in a separate data item? Should I have my Adapter just write over the Devices.xml file? I am currently making the data item UNAVAILABLE when the units are not standard mm/min.

Thanks,
Saul Lipton
thethemachinist
 Posted 6/23/2015 8:38:04 AM
I'm hooked

I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)I'm hooked - (481 reputation)

Group: Forum Members
Last Active: 6/23/2015 8:28:42 AM
Posts: 1, Visits: 4
481
You shouldn't need to transmit the unit of measurement if you know which modal G codes are active, just look for a G93, G94, or G95 and set the unit of measurement that way?

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top

Advertisements