Infosys在阅读器中打开 / AI 翻译

TF5xxx - Motion · 0 次阅读

GetPhi

GetPhi 1:

Get the polar angle scaled in degrees [°].

Syntax

Definition:

METHOD GetPhi : LREAL

GetPhi 2: Return value

LREAL

Example: PositionXY.GetPhi

PLC declaration

VAR
   position   : PositionXY;
   polarAngle : LREAL;
END_VAR

PLC implementation

position.SetValues(5.6, 0.2);
polarAngle := position.GetPhi();

Expected result

polarAngle = 2.045