GO2cam Pascal API

Topics

 GPP simulation Calls
 

Functions

PROCEDURE GetMTEPtEvol (VAR tr3_Pt:TR3)
 Read the point save in the MCT for MTE treatement.
 
PROCEDURE GetMTEPtParking (VAR tr3_Pt:TR3)
 Read the parking point.
 
PROCEDURE MTEMoveMachinePoint (VAR int_FlagXYZ, int_FlagABC :INTEGER, int_PointType :INTEGER, VAR tr3_Pt :TR3, real_PosSecondary :REAL)
 Simulation of movement to a point define in the MCG.
 
PROCEDURE MTEMoveOrigin (int_TypeMove, int_TypeEvent :INTEGER, tr3_Pt :TR3)
 Simulate a machine movement.
 
PROCEDURE MTEMoveParking (int_TypeMove, int_TypeEvent :INTEGER, tr3_Pt :TR3)
 Simulate a machine movement to park the turret.
 
PROCEDURE MTEMoveSecurityPoint (VAR int_FlagXYZ, int_FlagABC :INTEGER, VAR tr3_Pt :TR3)
 Simulation of security movement for a plane change.
 
PROCEDURE MTEMoveToolChangePoint (VAR int_FlagXYZ, int_FlagABC :INTEGER, VAR tr3_Pt :TR3)
 Simulation of security movement for a tool change.
 
PROCEDURE MTERotationOrigin (int_TypeMove, int_TypeEvent :INTEGER, real_PosSecondary :REAL)
 Simulation of rotation for 5th axis.
 
PROCEDURE MTERotationParking (int_TypeMove, int_TypeEvent :INTEGER, real_PosSecondary :REAL)
 Simulation of rotation for 5th axis to park the turret.
 
PROCEDURE MTEToolChange ()
 Simulation of tool change.
 
PROCEDURE MTETreatment (int_Case, int_FromMTE :INTEGER)
 Treatment of standard case for MTE.
 
PROCEDURE OutputMTEMoveOrigin (int_TypeMove :INTEGER, tr3_Pt :TR3)
 Output the NC code corresponding of simulation of MTEMoveOrigin.
 
PROCEDURE OutputMTEMoveParking (int_TypeMove :INTEGER, tr3_Pt :TR3))
 Output the NC code corresponding of simulation of MTEMoveParking.
 
PROCEDURE OutputMTERotationOrigin (int_TypeMove :INTEGER, real_PosSecondary :REAL)
 Output the NC code corresponding of simulation of MTERotationOrigin.
 
PROCEDURE OutputMTERotationParking (int_TypeMove :INTEGER, real_PosSecondary :REAL)
 Output the NC code corresponding of simulation of MTERotationParking.
 

Detailed Description

Contains procedure used for MTE simulation for mill turn

Function Documentation

◆ GetMTEPtEvol()

PROCEDURE GetMTEPtEvol ( VAR tr3_Pt:TR3 )

Read the point save in the MCT for MTE treatement.

Parameters
[out]tr3_Pt: Read point
GetMTEPtEvol(tr3_Pt);
PROCEDURE GetMTEPtEvol(VAR tr3_Pt:TR3)
Read the point save in the MCF for mte treatement.
Definition PP67_MTE_MILL.LIB:528

◆ GetMTEPtParking()

PROCEDURE GetMTEPtParking ( VAR tr3_Pt:TR3 )

Read the parking point.

By default read the point in the MCT file
If the parking is order by a techno function we check if one of customer value is not null
If one of them it not null, we use the value of the techno function

Parameters
[out]tr3_Pt: Read point
PROCEDURE GetMTEPtParking(VAR tr3_Pt:TR3)
Read the parking point.
Definition PP67_MTE_TURN.LIB:676

◆ MTEMoveMachinePoint()

PROCEDURE MTEMoveMachinePoint ( VAR int_FlagXYZ,
int_FlagABC :INTEGER ,
int_PointType :INTEGER ,
VAR tr3_Pt :TR3 ,
real_PosSecondary :REAL  )

Simulation of movement to a point define in the MCG.

Simulate the movement for all points of kind int_PointType.
The last point in the list is reached according int_FlagXYZ.
The list is treat countdown and all other points are reached in 3 axis.
If there is one movement, the int_FlagXYZ is set to CONST_NO to not simulate with old method.
The last point reached is returned in tr3_Pt

Parameters
[in,out]int_FlagXYZ: Define the decomposition of the movement
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[in,out]int_FlagABC: Define if the fifth axis move
CONST_YES : move
CONST_NO : don't move
[in]int_PointType: define the type of point to read in the MCG
CONST_TOOL_CHANGE_EVOLUTION : point to reach before a tool change CONST_PLANE_CHANGE_EVOLUTION : point to reach before a plane change CONST_TOOL_CHANGE : point to simulate a tool change CONST_GENERIC : other point
[out]tr3_Pt: last point reached by simulation
MTEMoveMachinePoint(int_FlagXYZ,CONST_TOOL_CHANGE_EVOLUTION, tr3_Pt);
PROCEDURE MTEMoveMachinePoint(VAR int_FlagXYZ :INTEGER, int_PointType :INTEGER, VAR tr3_Pt :TR3)
Simulation of movement to a point define in the MCG.
Definition PP67_MTE_MILL.LIB:435

◆ MTEMoveOrigin()

PROCEDURE MTEMoveOrigin ( int_TypeMove ,
int_TypeEvent :INTEGER ,
tr3_Pt :TR3  )

Simulate a machine movement.

Simulate a movement to reach a point define in the machine coordinate system

Parameters
[in]int_TypeMove: Define the decomposition of the movement
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[in]int_TypeEvent: Define the kind of movement
MTE_GOTO : move to the point
MTE_FROM : define the start point for next movement, no movement should be done
[in]tr3_Pt: point to reach. The point is define in the machine coordinate sytem
MTEMoveOrigin(CONST_YES, MTE_GOTO, tr3_Pt);
PROCEDURE MTEMoveOrigin(int_TypeMove, int_TypeEvent :INTEGER, tr3_Pt :TR3)
Simulate a machine movement.
Definition PP67_MTE_MILL.LIB:335
See also
OutputMTEMoveOrigin

◆ MTEMoveParking()

PROCEDURE MTEMoveParking ( int_TypeMove ,
int_TypeEvent :INTEGER ,
tr3_Pt :TR3  )

Simulate a machine movement to park the turret.

Simulate a movement to reach a point define in the machine coordinate system

Parameters
[in]int_TypeMove: Define the decomposition of the movement
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[in]int_TypeEvent: Define the kind of movement
MTE_GOTO : move to the point
MTE_FROM : define the start point for next movement, no movement should be done
[in]tr3_Pt: point to reach. The point is define in the machine coordinate sytem
MTEMoveParking(CONST_YES, MTE_GOTO, tr3_Pt);
PROCEDURE MTEMoveParking(int_TypeMove, int_TypeEvent :INTEGER, tr3_Pt :TR3)
Simulate a machine movement to park the turret.
Definition PP67_MTE_TURN.LIB:487
See also
OutputMTEMoveParking

◆ MTEMoveSecurityPoint()

PROCEDURE MTEMoveSecurityPoint ( VAR int_FlagXYZ,
int_FlagABC :INTEGER ,
VAR tr3_Pt :TR3  )

Simulation of security movement for a plane change.

Parameters
[in,out]int_FlagXYZ: Define how the first point will be reached.
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[in,out]int_FlagABC: Define if the fifth axis move
CONST_YES : move
CONST_NO : don't move
[out]tr3_Pt: last point reached
MTEMoveSecurityPoint(int_FlagXYZ, tr3_Pt);
PROCEDURE MTEMoveSecurityPoint(VAR int_FlagXYZ :INTEGER, VAR tr3_Pt :TR3)
Simulation of security movement for a plane change.
Definition PP67_MTE_MILL.LIB:478

◆ MTEMoveToolChangePoint()

PROCEDURE MTEMoveToolChangePoint ( VAR int_FlagXYZ,
int_FlagABC :INTEGER ,
VAR tr3_Pt :TR3  )

Simulation of security movement for a tool change.

Parameters
[in,out]int_FlagXYZ: Define how the first point will be reached.
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[out]tr3_Pt: last point reached
MTEMoveToolChangePoint(int_FlagXYZ, tr3_Pt);
PROCEDURE MTEMoveToolChangePoint(VAR int_FlagXYZ :INTEGER, VAR tr3_Pt :TR3)
Simulation of security movement for a tool change.
Definition PP67_MTE_MILL.LIB:506

◆ MTERotationOrigin()

PROCEDURE MTERotationOrigin ( int_TypeMove ,
int_TypeEvent :INTEGER ,
real_PosSecondary :REAL  )

Simulation of rotation for 5th axis.

Do a movement for secondary rotary axis. The value for the rotation is read in the MCT file

Parameters
[in]int_TypeMove: define if there is a movement
CONST_YES : move the axes
CONST_NO : no move
[in]int_TypeEvent: define the kind of movement
MTE_GOTO : move to the target
MTE_FROM : start of the next movement
MTERotationOrigin(CONST_YES, MTE_GOTO);
PROCEDURE MTERotationOrigin(int_TypeMove, int_TypeEvent :INTEGER)
Simulation of rotation for 4 and 5 axis.
Definition PP67_MTE_MILL.LIB:384
See also
OutputMTERotationOrigin

◆ MTERotationParking()

PROCEDURE MTERotationParking ( int_TypeMove ,
int_TypeEvent :INTEGER ,
real_PosSecondary :REAL  )

Simulation of rotation for 5th axis to park the turret.

Do a movement for secondary rotary axis. The value for the rotation is read in the MCT file

Parameters
[in]int_TypeMove: define if there is a movement
CONST_YES : move the axes
CONST_NO : no move
[in]int_TypeEvent: define the kind of movement
MTE_GOTO : move to the target
MTE_FROM : start of the next movement
MTERotationParking(CONST_YES, MTE_GOTO);
PROCEDURE MTERotationParking(int_TypeMove, int_TypeEvent :INTEGER, real_PosSecondary :REAL)
Simulation of rotation for 5th axis to park the turret.
Definition PP67_MTE_TURN.LIB:608
See also
OutputMTERotationParking

◆ MTEToolChange()

PROCEDURE MTEToolChange ( )

Simulation of tool change.

Procedure used to simulate the macro of machine tool change.
Reached each point of the list of point of type CONST_TOOL_CHANGE from last to first.\ Make the tool change and reach all point of list from first to last.

PROCEDURE MTEToolChange()
Simulation of tool change.
Definition PP67_MTE_MILL.LIB:558

◆ MTETreatment()

PROCEDURE MTETreatment ( int_Case ,
int_FromMTE :INTEGER  )

Treatment of standard case for MTE.

If no kinematic for MTE exists, a standard degagement is output for NC program

Parameters
[in]int_Case: define which case must be treat by the procedure
1 : Start of program
2 : End of program
3 : Tool change
4 : Plane change
5 : Parking
[in]int_FromMTE: Define if the procedure is called by NC program generation or by MTE simulation
0 : from NC generation
1 : from MTE simulation
PROCEDURE MTETreatment(int_Case, int_FromMTE :INTEGER)
Treatment of standard case for MTE.
Definition PP67_MTE_MILL.LIB:49

◆ OutputMTEMoveOrigin()

PROCEDURE OutputMTEMoveOrigin ( int_TypeMove :INTEGER ,
tr3_Pt :TR3  )

Output the NC code corresponding of simulation of MTEMoveOrigin.

This procedure is called by MTEMoveOrigin

Parameters
[in]int_TypeMove: define the type of movement.
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[in]tr3_Pt: point to reach
Attention
Must be overwrite in the standard post-processor.
OutputMTEMoveOrigin(CONST_YES,tr3_Pt);

◆ OutputMTEMoveParking()

PROCEDURE OutputMTEMoveParking ( int_TypeMove :INTEGER ,
tr3_Pt :TR3  )

Output the NC code corresponding of simulation of MTEMoveParking.

Parameters
[in]int_TypeMove: define the type of movement.
CONST_YES : move the 3 axis at the same time
CONST_Z_ONLY : move only Z axis
CONST_Z_XY : move Z axis then X and Y at the same time
CONST_X_ONLY : move X axis only
CONST_X_ZY : move X axis then Z and Y at the same time
CONST_Y_ONLY : move Y axis only
[in]tr3_Pt: point to reach
Attention
Must be overwrite in the standard post-processor.
OutputMTEMoveOrigin(CONST_YES,tr3_Pt);

◆ OutputMTERotationOrigin()

PROCEDURE OutputMTERotationOrigin ( int_TypeMove :INTEGER ,
real_PosSecondary :REAL  )

Output the NC code corresponding of simulation of MTERotationOrigin.

Parameters
[in]int_TypeMove: define the type of movement.
CONST_YES : move the 5th rotation axes
CONST_NO : no move
[in]real_PosSecondary: position of the second rotation axis
Attention
Must be overwrite in the standard post-processor.
OutputMTERotationOrigin(CONST_YES,0);

◆ OutputMTERotationParking()

PROCEDURE OutputMTERotationParking ( int_TypeMove :INTEGER ,
real_PosSecondary :REAL  )

Output the NC code corresponding of simulation of MTERotationParking.

Parameters
[in]int_TypeMove: define the type of movement.
CONST_YES : move the 5th rotation axes
CONST_NO : no move
[in]real_PosSecondary: position of the second rotation axis
Attention
Must be overwrite in the standard post-processor.
PROCEDURE OutputMTERotationParking(int_TypeMove :INTEGER, real_PosSecondary :REAL)
Output the NC code corresponding of simulation of MTERotationParking.
Definition PP67_MTE_TURN.LIB:1037