This command queries the PMC for information for a particular XBot.
Fieldbus Interface
PMC_GetXbotStatus
Inputs
Name
Data Type
Description
Execute
BOOL
Execution of the function block begins on a rising edge of this input.
XbotID
USINT
Real XBot IDs [1,78]. Virtual XBot IDs [100,127]
FeedbackType
USINT
0: Position feedback 1: Force Feedback 2: Reference Position in user coordinates 3: Reference Position in PMC coordinates 4: Target Position of command being executed 5: Target Position of last command in buffer 6: Reference Velocity
PM_Controller
PMControllerType
Data structure that specifies which PMC to connect to. There should be only 1 instance of this variable for each connected PMC.
Outputs
Name
Data Type
Description
Valid
BOOL
TRUE: output values are valid. FALSE: output values are invalid.
Busy
BOOL
Function block is active and must continue to be called.
Aborted
BOOL
Command aborted by another command.
Error
BOOL
If there is an error in processing the command, then Error = TRUE, otherwise, FALSE.
Contains the Command Label of the command that the queried XBot is currently executing. If the XBot is not executing a motion command, it will return 0xFFFF.
FMState
USINT
Force Mode status: Bit 0 to 5 represent the control mode of X, Y, Z, Rx, Ry, Rz respectively. Value 0 means in position controlled mode; value 1 means force mode. Bit 6 to 7 reserved.
StarXID
USINT
ID of the XBot that is acting as a Star XBot for this mover. 0: no Star XBot. See Planet XBots Control.
GroupID
BOOL
The group ID to which the XBot is bonded. If XBot is not bonded to any group, this value is 0. See XBot Group
Contains the Command Label of the command that the queried XBot is currently executing. If the XBot is not executing a motion command, it will return 0xFFFF.
XBotStatus.inForceMode
bool
FALSE = XBot in position control mode; TRUE = XBot in Force Mode
XBotStatus.FeedbackPositionSI
double[]
The corresponding feedback values based on parameter feedbackType, in SI units
Command Label of the command that the XBot is currently executing. If not applicable (e.g. XBot is idle or in async motion), then the returned value will be 0xFFFF
Force Mode state (In force mode or not in force mode) for each axis (X, Y, Z, RX, RY, RZ)