RECT_TO_POLAR
Function block that converts cartesian XY coordinates into polar coordinates.
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 | X | LREAL | X Coordinate |
|
| V | Y | LREAL | Y Coordinate |
|
| 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 | Angle | LREAL | Degrees | |
| V | Radius | LREAL | Radius in units of X and Y | |