GO2cam Pascal API

Topics

 GPP simulation Calls
 

Functions

PROCEDURE GetMTEPtEvol (VAR tr3_Pt:TR3)
 Read the point save in the MCF for mte treatement.
 
PROCEDURE MTEInitialize ()
 Check if there is a kinematic and store the value.
 
PROCEDURE MTEMoveMachinePoint (VAR int_FlagXYZ :INTEGER, int_PointType :INTEGER, VAR tr3_Pt :TR3)
 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 MTEMoveSecurityPoint (VAR int_FlagXYZ :INTEGER, VAR tr3_Pt :TR3)
 Simulation of security movement for a plane change.
 
PROCEDURE MTEMoveToolChangePoint (VAR int_FlagXYZ :INTEGER, VAR tr3_Pt :TR3)
 Simulation of security movement for a tool change.
 
PROCEDURE MTERotationOrigin (int_TypeMove, int_TypeEvent :INTEGER)
 Simulation of rotation for 4 and 5 axis.
 
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 OutputMTERotationOrigin (int_TypeMove :INTEGER, real_PosPrimary, real_PosSecondary :REAL)
 Output the NC code corresponding of simulation of MTERotationOrigin.
 

Detailed Description

Contains procedure used for MTE simulation for mill

Function Documentation

◆ GetMTEPtEvol()

PROCEDURE GetMTEPtEvol ( VAR tr3_Pt:TR3 )

Read the point save in the MCF 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

◆ MTEInitialize()

PROCEDURE MTEInitialize ( )

Check if there is a kinematic and store the value.

PROCEDURE MTEInitialize()
Check if there is a kinematic and store the value.
Definition PP67_MTE_MILL.LIB:295

◆ MTEMoveMachinePoint()

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

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_XY : move Z axis then X and Y at the same time
other value : move Z only
[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_XY : move Z axis then X and Y at the same time
other value : move Z 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

◆ MTEMoveSecurityPoint()

PROCEDURE MTEMoveSecurityPoint ( VAR int_FlagXYZ :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_XY : move Z axis then X and Y at the same time
other value : move Z only
[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 :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_XY : move Z axis then X and Y at the same time
other value : move Z 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  )

Simulation of rotation for 4 and 5 axis.

Do a movement for rotary axis. The value for the rotation are read in the MCF file

Parameters
[in]int_TypeMove: define if there is a movement
CONST_YES : move the 2 axis
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

◆ 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
[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_XY : move Z axis then X and Y at the same time
other value : move Z 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_PosPrimary ,
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 2 rotation axis at the same time
CONST_NO : no move
[in]real_PosPrimary: position of the first rotation axis
[in]real_PosSecondary: position of the second rotation axis
Attention
Must be overwrite in the standard post-processor.
OutputMTERotationOrigin(CONST_YES,0,0);