Y_MA_Calc3DCenter
This function block works by finding the 3D center of a circle given 3 points in space.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function block will continue to execute every scan while Enable is TRUE and there are no errors. | FALSE |
| V | Px | LREAL | X coordinate of first point on sphere. | LREAL#0.0 |
| V | Py | LREAL | Y coordinate of first point on sphere. | LREAL#0.0 |
| V | Pz | LREAL | Z coordinate of first point on sphere. | LREAL#0.0 |
| V | Qx | LREAL | X coordinate of second point on sphere. | LREAL#0.0 |
| V | Qy | LREAL | Y coordinate of second point on sphere. | LREAL#0.0 |
| V | Qz | LREAL | Z coordinate of second point on sphere. | LREAL#0.0 |
| V | Rx | LREAL | X coordinate of third point on sphere. | LREAL#0.0 |
| V | Ry | LREAL | Y coordinate of third point on sphere. | LREAL#0.0 |
| V | Rz | LREAL | Z coordinate of third point on sphere. | LREAL#0.0 |
| VAR_OUTPUT | ||||
| V | Valid | BOOL | The Valid output indicates that the function block is operating normally and the outputs of the function block are valid. |
|
| V | Error | BOOL | The Error output is set to TRUE if an error has occurred during the operation of the function block. The output is cleared when the Execute or Enable input becomes FALSE. |
|
| V | ErrorID | UINT | The ErrorID output provides the identifier of the error when there is an active error in the function block execution. The output is cleared when the Execute or Enable input becomes FALSE. |
|
| V | CenterX | LREAL | The result of the calculation. |
|
| V | CenterY | LREAL | The result of the calculation. |
|
| V | CenterZ | LREAL | The result of the calculation. |
|
| V | Radius | LREAL | Radius of the sphere |
|