Y_UpdateAxesGroupRef
This function block will properly update the AxesGroupRef with pertinent information required to use the Group on function blocks.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | GroupDataArray | FMK_Group_Data_Array | Group Data Array | |
| V | AxesGroupRef | AXES_GROUP_REF | Axes Group Ref containing all data pertaining to the Group |
|
| VAR_INPUT | ||||
| V | Enable | BOOL | Input to enable the function block to run | FALSE |
| VAR_OUTPUT | ||||
| V | Valid | BOOL | Output indicating the function block data is valid and ready to use | |
| V | Error | BOOL | Output indicating an error occurred inside the function block | |
| V | ErrorID | UINT | Output indicating the error code if the Error output is TRUE | |
Notes
- Used internally until future development is completed to properly establish the AXES_GROUP_REF
- The Enable input should always be enabled so data can be transferred from FMK_Group_Data_Array to the AXES_GROUP_REF .
- This function block should also be included in the fastest running task of the program.
Error Description
See the Function Block ErrorID List.
Example
The following shows examples of what variables are connected to the In/Out ports of the function block.
- The AxesGroupRef variable can be found in the PLC variable tab under the Motion Group variable section.
- The GroupDataArray variable can be found in the PLC variables tab under the System Variables Section.
- The Handle associated to the "AxesGroupRef" variable defines what GroupDataArray variable to use.