VGRCommandInfo
The VGRCommandInfo function provides information about the command that the VGRProcessCommand function is currently processing. You can use the VGRCommandInfo function to get the ID type (PartID, StepID, or InspectionID) that the current command uses, as well as the actual ID in use.
The VGRCommandInfo function takes an event cell reference input, allowing you to control when the cell updates. You can also provide a number or a boolean property as input. The VGRCommandInfo function executes when the referenced cell executes.
The following are the main use cases for the VGRCommandInfo function:
- If you want to adjust the exposure settings for A0 when a new command is being processed, you can use the VGRProcessCommand cell as input for the VGRCommandInfo function, ensuring that the latest command info is always up to date.
- If you want to adjust the cell state (enabled or disabled) of location tools based on the ID being processed, you can use the A0 cell as input for the VGRCommandInfo function, ensuring that the tool executes when the vision system acquires a new image.
VGRCommandInfo Inputs
Syntax:VGRCommandInfo(Event)
| Parameter | Description |
|---|---|
| Event | Specifies the cell which triggers the VGRCommandInfo function with every update. |
VGRCommandInfo Outputs
|
Returns |
A VGRCommandInfo results table containing ReceivedID and ReceivedIDType. |
VGRCommandInfo Vision Data Access Functions
The following Vision Data Access functions are automatically inserted into the spreadsheet to create the result table.
|
GetReceivedID(VGRCommandInfo) |
Returns the ID on the received command. If the command does not have an ID, the returned value is -1. |
|
GetReceivedIDType(VGRCommandInfo) |
Returns the type of received ID.
|