FC_RotationAboutX

 

FC_RotationAboutX - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Rotation of a point in the 3-dimensional space about the X axis.

Description

Carries out a rotation of the point represented by the position vector i_stV about the X axis using the angle i_lrAngle in an anti-clockwise direction. For this purpose, the angle i_lrAngle must be specified in degrees.

Interface

Input

Data type

Description

i_stV

ST_Vector3D

Position vector of the point to be rotated

i_lrAngle

LREAL

Angle by which the point is to be rotated

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

Return Value

Data type

Description

ST_Vector3D

Coordinates of the mapped point

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The coordinates of the mapped point have been calculated successfully.