Y_MA_CalcCenter
Calculate the center of an arc given the coordinates of the vector at the beginning of the arc and I,J, & K which offsets from the starting point.
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. |
|
| V | StartX | LREAL | Starting X coordinate | LREAL#0.0 |
| V | StartY | LREAL | Starting Y coordinate | LREAL#0.0 |
| V | StartZ | LREAL | Starting Y coordinate | LREAL#0.0 |
| V | I | LREAL | Offset from starting X coordinate | LREAL#0.0 |
| V | J | LREAL | Offset from starting Y coordinate | LREAL#0.0 |
| V | K | LREAL | Offset from starting Z coordinate | LREAL#0.0 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | The Valid output indicates that the function block is operating normally and the outputs of the function block are valid. |
|
| V | Xcenter | LREAL | The result of the calculation. |
|
| V | Ycenter | LREAL | The result of the calculation. |
|
| V | Zcenter | LREAL | The result of the calculation. |
|
Error Description:
No Error