4#ifndef PROTOCORE_UMATI_H
5#define PROTOCORE_UMATI_H
53#define UMATI_NS_URI "http://opcfoundation.org/UA/MachineTool/"
63 UMATI_OP_AUTOMATIC = 3,
72 UMATI_CH_INTERRUPTED = 0,
#define PROTOCORE_UNUSED
Suppress the unused warning. Every module ends in a namespace most callers only partly use.
#define PROTOCORE_NS_LAYOUT(T,...)
Pin every dispatch slot of a table that is nothing but function pointers.
#define PROTOCORE_NS
Storage for a dispatch table. The const is load bearing.
One linear Axis' live monitoring value (OPC 40501-1 LinearAxisType, common subset).
double actual_position
ActualPosition (mm).
One Channel's live monitoring values (OPC 40501-1 ChannelType, common subset).
double feed_override
FeedOverride (%).
double rapid_override
RapidOverride (%).
const char * active_program
ActiveProgram.Name (the running NC program).
UmatiChannelState state
ChannelState.
MachineTool identification (OPC 40501-1 Identification, subtype of Machinery MachineIdentification).
const char * product_instance_uri
ProductInstanceUri (String) - the unique instance URI.
const char * manufacturer
Manufacturer (LocalizedText -> String).
const char * serial_number
SerialNumber (String).
const char * model
Model (LocalizedText -> String).
const char * software_revision
SoftwareRevision (String).
uint16_t year_of_construction
YearOfConstruction (UInt16, exposed as UInt32).
Dispatch table. Addressed by offset, so the layout is asserted below.
void(* install)(uint8_t *, const UmatiMachineTool *)
void(* bind)(uint8_t *, const UmatiMachineTool *)
One Spindle's live monitoring values (OPC 40501-1 SpindleType, common subset).
double override_value
OverrideValue (%).
double rotation_speed
RotationSpeed (rpm).
embed_bool is_rotating
IsRotating.
void protocore_umati_bind(uint8_t *work, const UmatiMachineTool *mt)
Bind the MachineTool the resolvers serve. mt must outlive the .
uint8_t * protocore_umati_span(void)
The PROTOCORE_UMATI_BORROW bytes this module's state lives in.
EMBED_ENUM_BYTE(UmatiOperationMode, UMATI_OP_OTHER=0, UMATI_OP_MANUAL=1, UMATI_OP_MDA=2, UMATI_OP_AUTOMATIC=3, UMATI_OP_SETUP=4,)
MachineTool OperationMode (OPC 40501-1 MachineOperationMode). Exposed as Int32; the numeric values fo...
void protocore_umati_install(uint8_t *work, const UmatiMachineTool *mt)
Convenience: bind mt and register both resolvers on the OPC UA .