Y_MA_CalcEndAngle
Calculates the end angle of an arc based on the center of the arc and the end point of the arc. Angle is in degrees.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | EN | BOOL | This function will continue to operate while EN is TRUE. | FALSE |
| V | EndX | LREAL | End X coordinate of arc. | LREAL#0.0 |
| V | EndY | LREAL | End Y coordinate of arc. | LREAL#0.0 |
| V | CenterX | LREAL | Center X coordinate of arc. | LREAL#0.0 |
| V | CenterY | LREAL | Center Y coordinate of arc. | LREAL#0.0 |
| VAR_OUTPUT | ||||
| B | ENO | BOOL | TRUE if the function is executing normally. | |
Notes:
DataType of the output of the function : LREAL
Error Description:
Refer to the Function Block ErrorID List list.