4#ifndef PROTOCORE_ROBOTICS_H
5#define PROTOCORE_ROBOTICS_H
57#define ROBOTICS_NS_URI "http://opcfoundation.org/UA/Robotics/"
64 ROBOTICS_CAT_OTHER = 0,
65 ROBOTICS_CAT_ARTICULATED_ROBOT = 1,
66 ROBOTICS_CAT_SCARA_ROBOT = 2,
67 ROBOTICS_CAT_CARTESIAN_ROBOT = 3,
68 ROBOTICS_CAT_SPHERICAL_ROBOT = 4,
69 ROBOTICS_CAT_PARALLEL_ROBOT = 5,
70 ROBOTICS_CAT_CYLINDRICAL_ROBOT = 6,
78 ROBOTICS_PROFILE_OTHER = 0,
79 ROBOTICS_PROFILE_ROTARY = 1,
80 ROBOTICS_PROFILE_ROTARY_ENDLESS = 2,
81 ROBOTICS_PROFILE_LINEAR = 3,
82 ROBOTICS_PROFILE_LINEAR_ENDLESS = 4,
90 ROBOTICS_MODE_OTHER = 0,
91 ROBOTICS_MODE_MANUAL_REDUCED_SPEED = 1,
92 ROBOTICS_MODE_MANUAL_HIGH_SPEED = 2,
93 ROBOTICS_MODE_AUTOMATIC = 3,
94 ROBOTICS_MODE_AUTOMATIC_EXTERNAL = 4,
#define PROTOCORE_ROBOTICS_AXES
Number of Axes the robotics MotionDevice exposes (default 6; must fit PROTOCORE_OPCUA_REF_MAX).
#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.
void protocore_robotics_install(uint8_t *work, const RoboticsMotionDeviceSystem *mds)
Convenience: bind mds and register both resolvers on the OPC UA .
EMBED_ENUM_BYTE(RoboticsMotionDeviceCategory, ROBOTICS_CAT_OTHER=0, ROBOTICS_CAT_ARTICULATED_ROBOT=1, ROBOTICS_CAT_SCARA_ROBOT=2, ROBOTICS_CAT_CARTESIAN_ROBOT=3, ROBOTICS_CAT_SPHERICAL_ROBOT=4, ROBOTICS_CAT_PARALLEL_ROBOT=5, ROBOTICS_CAT_CYLINDRICAL_ROBOT=6,)
MotionDeviceCategory (OPC 40010-1 MotionDeviceCategoryEnumeration). Exposed as Int32; the numeric val...
void protocore_robotics_bind(uint8_t *work, const RoboticsMotionDeviceSystem *mds)
Bind the MotionDeviceSystem the resolvers serve. mds must outlive .
uint8_t * protocore_robotics_span(void)
The PROTOCORE_ROBOTICS_BORROW bytes this module's state lives in.
One axis' live monitoring values (OPC 40010-1 AxisType, common subset).
double actual_position
ActualPosition (mm or deg).
RoboticsMotionProfile motion_profile
MotionProfile.
double actual_acceleration
ActualAcceleration.
double actual_speed
ActualSpeed.
The Controller identity + software (OPC 40010-1 ControllerType + SoftwareType).
const char * serial_number
SerialNumber (String).
const char * sw_manufacturer
Software.Manufacturer (String).
const char * sw_model
Software.Model (String).
const char * manufacturer
Manufacturer (LocalizedText -> String).
const char * product_code
ProductCode (String).
const char * sw_revision
Software.SoftwareRevision (String).
const char * model
Model (LocalizedText -> String).
The whole MotionDeviceSystem the server exposes. Own it in your sketch and refresh its fields each lo...
const char * name
MotionDeviceSystem BrowseName / DisplayName.
RoboticsSafetyState safety
the SafetyState.
RoboticsMotionDevice device
the MotionDevice.
RoboticsController controller
the Controller.
One MotionDevice: identity + live motion state (OPC 40010-1 MotionDeviceType, common subset).
embed_bool in_control
ParameterSet.InControl.
const char * manufacturer
Manufacturer (LocalizedText -> String).
embed_bool on_path
ParameterSet.OnPath.
double speed_override
ParameterSet.SpeedOverride (%).
RoboticsAxis axes[PROTOCORE_ROBOTICS_AXES]
the axes (axes[0..axis_count-1] are live).
RoboticsMotionDeviceCategory category
MotionDeviceCategory.
uint32_t axis_count
number of Axes exposed (<= PROTOCORE_ROBOTICS_AXES).
const char * product_code
ProductCode (String).
const char * model
Model (LocalizedText -> String).
const char * serial_number
SerialNumber (String).
Dispatch table. Addressed by offset, so the layout is asserted below.
void(* install)(uint8_t *, const RoboticsMotionDeviceSystem *)
void(* bind)(uint8_t *, const RoboticsMotionDeviceSystem *)
The SafetyState (OPC 40010-1 SafetyStateType, common subset).
RoboticsOperationalMode operational_mode
ParameterSet.OperationalMode.
embed_bool emergency_stop
ParameterSet.EmergencyStop.
embed_bool protective_stop
ParameterSet.ProtectiveStop.