TYPE SMC_GEOINFO : STRUCT
This data type is designed to store a path object, i.e. a segment of the programmed path, for example a line, arc or spline segment. In addition to the geometry of these objects, further information can be stored as for example the velocity at the beginning/end of the path or as labels.
As from V3.5 SP2 of the programming system, iSourceLine_No stores the line number of the CNC word and the sentence number is stored in diSentenceNo. In former versions, in particular CODESYS V2.3, the sentence number has been stored in iSourceLine_No.
The parameters dP1 -- dP18 are used for specific use cases.
Depending on iMoveType, these parameters contain different information:
Complete information stored in piStartPos and piDestPos
The coordinates are stored in the coordinate system (vX, vY, vN).
dP1: X-coordinate of circle center
dP2: Y-coordinate of circle center
dP3: Circle radius
dP4: Z-coordinate of circle
dP1-dP8: Spline parameter
dP9-dP18: Additional spline parameter
dP1: X-coordinate of circle center
dP2: Y-coordinate of circle center
dP3: X-component of the main axis unit vector
dP4: Y-component of the main axis unit vector
dP5: Length of the main axis
dP6: Length of the subaxis
dP7: Angle between main axis and X axis (in rad)
dP8: Ratio P6/P5
-- MCOMMAND: for M-commands (iMoveType = 120) the M-function number SMC_GetMParameters during Interpolation.
dT1 and dT2 are the start and end parameters for circle/spline.
Complete information stored in piStartPos and piDestPos
dT1: Start angle in degree, oriented mathematically (0=east, 90=north, 180=west, 270=south)
dT2: Apex angle of circle in degree (e.g. 90=quarter of circle, 180 = semicircle)
dT1: Start angle in degree oriented mathematically (0=east, 90=north, 180=west, 270=south)
dT2: Negative apex angle of circle in degree (e.g. -90=quarter of circle, -180 = semicircle)
Start and end value of parameter t, Spline, 0 and 1 by default.
--
InOut: |
|