GO2cam Pascal API

Functions

void PPMTE_dogleg_active (int Bval)
 FMS setting dogleg treatment on rapid moves with same tool and plane
each axis moves with same feedrate
CONST_NO by default.
 
void PPMTE_exe_component (int Bcompo, int Border, double Rval, const std::string &Sjoker, double Rdelay)
 FMS add specific event to move machine component.
 
void PPMTE_exe_composimult (int Bcompo, int Border, double Rval, const std::string &Scompo, double Rdelay)
 FMS add specific event to move machine component simultaneous with previous and next.
 
void PPMTE_exe_display (int Bwait, const std::string &Scom)
 FMS add specific event to display debug informations.
 
void PPMTE_exe_event (int Bval)
 FMS add event in list.
 
void PPMTE_exe_part_chuck (int Ipart, int Ichuck, int Isens, double Rtps)
 FMS add specific event to put or remove part on chuck.
 
void PPMTE_exe_turret_index (int Itrl, int Itool, double Rtps)
 FMS add specific event to rotate turret on specific index.
 
void PPMTE_exe_xml_order (const std::string &Slab)
 output axis movments accordind to label command in XML order file previously loaded
 
void PPMTE_first_operation_begin (int Bval)
 FMS setting if MTE_OPERATION_BEGIN is called or not for first opération
CONST_NO by default.
 
void PPMTE_get_channel (int *Inum)
 FMS Read current channel.
 
void PPMTE_get_chuck (int *Inum)
 FMS Read current chuck in use.
 
void PPMTE_get_next_point (double *Pt)
 FMS get next coordinates according to origin and reference
can be used in approach procedure.
 
void PPMTE_get_next_point_rotax (double *Pt)
 MTE get next coordinates according to current angles Rotax
can be used in approach procedure.
 
void PPMTE_get_pos_point (double *Pt)
 FMS get current coordinates according to origin and reference.
 
void PPMTE_get_rotax (int Iax, double *Rpos)
 FMS get value for rotatif axis.
 
void PPMTE_get_synchro (int *Inum)
 FMS Read synchro number in use.
 
void PPMTE_get_turret (int *Inum)
 FMS Read current turret in use.
 
void PPMTE_rot_table_auto (int Bval)
 FMS setting automatic treatment is not requested
because we want do it in MTE_APPROACH procedure
CONST_YES by default to do automatic treatment before MTE_APPROACH.
 
void PPMTE_set_chuck (int Inum)
 FMS set chuck number.
 
void PPMTE_set_delay (double Rval)
 FMS set delay for event.
 
void PPMTE_set_exec_auto (int Bval)
 FMS setting automatic treatment is requested
because it's not finish by procedure
often used with MTE_TECHNO_FUNCTION, MTE_REWORK, MTE_POINT.
 
void PPMTE_set_feed (double Rval, int Btyp)
 FMS set feed and type values.
 
void PPMTE_set_origin (int Inum, int Bdecori)
 FMS set origin for posax oordinates.
 
void PPMTE_set_osetno (int Bpilot)
 FMS set pilot point with tool or not.
 
void PPMTE_set_posax (int Iax, double Rpos)
 FMS set axis position.
 
void PPMTE_set_reference (int Inum, int Bdecori, int Bpilot, int Bplanusi)
 FMS set origin for posax oordinates.
 
void PPMTE_set_rotax (int Iax, double Rpos)
 FMS set axis position.
 
void PPMTE_set_rtcp (int Brtcp)
 MTE set RTCP or not.
 
void PPMTE_set_spindle_chuck (int Bsens, double Rspeed, int Bunit)
 FMS set spindle speed and direction.
 
void PPMTE_set_spindle_tool (int Bsens, double Rspeed)
 FMS set rotating tool speed and direction.
 
void PPMTE_set_synchro (int Inum)
 FMS set synchro number.
 
void PPMTE_set_tool (int Inum, int Iposte, int Index)
 FMS set tool info for selection.
 
void PPMTE_set_turret (int Inum)
 FMS set turret number.
 
void PPMTE_set_value (int Btyp, double Rval)
 FMS set value for specific element as rework spindle.
 

Detailed Description

Managing machine simulation

Function Documentation

◆ PPMTE_dogleg_active()

void PPMTE_dogleg_active ( int Bval)

FMS setting dogleg treatment on rapid moves with same tool and plane
each axis moves with same feedrate
CONST_NO by default.

Version
6.10
Parameters
[in]BvalCONST_YES | CONST_NO
PCALL(PPMTE_dogleg_active,CONST_YES);
void PPMTE_dogleg_active(int Bval)
FMS setting dogleg treatment on rapid moves with same tool and plane each axis moves with same feed...
Definition pp_pas99.c:95

◆ PPMTE_exe_component()

void PPMTE_exe_component ( int Bcompo,
int Border,
double Rval,
const std::string & Sjoker,
double Rdelay )

FMS add specific event to move machine component.

Version
5.13
Parameters
[in]Bcompocomponet ident (CONST_KINEMAC_COMPONENT_DOOR,...)
[in]Bordercomponent order (CONST_KINEMAC_ORDER_MOVE_MINI,...)
[in]Rvalvalue to apply
[in]Sjokerstring to specify component number
[in]''or '*' all, '1', '2', '1,2' ...
[in]Rdelayevent delay
PCALL(PPMTE_exe_component,CONST_KINEMAC_COMPONENT_AXIS,CONST_KINEMAC_ORDER_MOVE_ORIGIN, 0,'102',0.1);
void PPMTE_exe_component(int Bcompo, int Border, double Rval, const std::string &Sjoker, double Rdelay)
FMS add specific event to move machine component.
Definition pp_pas99.c:364

◆ PPMTE_exe_composimult()

void PPMTE_exe_composimult ( int Bcompo,
int Border,
double Rval,
const std::string & Scompo,
double Rdelay )

FMS add specific event to move machine component simultaneous with previous and next.

Version
6.09
Parameters
[in]Bcompocomponet ident (CONST_KINEMAC_COMPONENT_DOOR,...)
[in]Bordercomponent order (CONST_KINEMAC_ORDER_MOVE_MINI,...)
[in]Rvalvalue to apply
[in]Scompostring to specify label of component
[in]Rdelayevents delay, must be set on first event

◆ PPMTE_exe_display()

void PPMTE_exe_display ( int Bwait,
const std::string & Scom )

FMS add specific event to display debug informations.

Version
6.01
Parameters
[in]Bwaitstop on display (CONST_NO, CONST_YES)
[in]Scomcommentary to display

◆ PPMTE_exe_event()

void PPMTE_exe_event ( int Bval)

FMS add event in list.

Version
5.13
Parameters
[in]BvalEvent ident
MTE_FROM
MTE_GOTO
MTE_GOTO_LINE
MTE_OSETNO
MTE_DELAY
MTE_SPINDLE_CHUCK
MTE_SPINDLE_TOOL
MTE_SYNCHRO
MTE_STOP
MTE_PART_CHUCK
MTE_PART_RETURN
MTE_CHUCK_MOVE
MTE_CHUCK_OPEN
MTE_CHUCK_CLOSE
MTE_TURRET
MTE_BAR_CHUCK
PCALL(PPMTE_exe_event,int_TypeEvent);
void PPMTE_exe_event(int Bval)
FMS add event in list.
Definition pp_pas99.c:460

◆ PPMTE_exe_part_chuck()

void PPMTE_exe_part_chuck ( int Ipart,
int Ichuck,
int Isens,
double Rtps )

FMS add specific event to put or remove part on chuck.

Version
6.04
Parameters
[in]Ipart0:remove, 1:begin part, 2:rework part
[in]Ichuck1:main, 2:rework
[in]Isenspart orient in chuck, 1:direct, -1:invers
[in]Rtpsdelay (automatic if 0)

◆ PPMTE_exe_turret_index()

void PPMTE_exe_turret_index ( int Itrl,
int Itool,
double Rtps )

FMS add specific event to rotate turret on specific index.

Version
6.04
Parameters
[in]Itrlturret number
[in]Itooltool index number
[in]Rtpsdelay (automatic if 0)

◆ PPMTE_exe_xml_order()

void PPMTE_exe_xml_order ( const std::string & Slab)

output axis movments accordind to label command in XML order file previously loaded

Version
6.07 MTE
Parameters
[in]Slabcommand label in XML file
PCALL(PPMTE_exe_xml_order,'toolchange');
void PPMTE_exe_xml_order(const std::string &Slab)
output axis movments accordind to label command in XML order file previously loaded
Definition pp_pas99.c:578

◆ PPMTE_first_operation_begin()

void PPMTE_first_operation_begin ( int Bval)

FMS setting if MTE_OPERATION_BEGIN is called or not for first opération
CONST_NO by default.

Version
6.07
Parameters
[in]BvalCONST_YES | CONST_NO
PCALL(PPMTE_first_operation_begin,CONST_YES);
void PPMTE_first_operation_begin(int Bval)
FMS setting if MTE_OPERATION_BEGIN is called or not for first opération CONST_NO by default.
Definition pp_pas99.c:31

◆ PPMTE_get_channel()

void PPMTE_get_channel ( int * Inum)

FMS Read current channel.

Version
5.13
Parameters
[out]Inumcurrent channel
PCALL(PPMTE_get_channel,num);
void PPMTE_get_channel(int *Inum)
FMS Read current channel.
Definition pp_pas99.c:127

◆ PPMTE_get_chuck()

void PPMTE_get_chuck ( int * Inum)

FMS Read current chuck in use.

Version
5.13
Parameters
[out]Inumchuck number
PCALL(PPMTE_get_chuck,int_Chuck);
void PPMTE_get_chuck(int *Inum)
FMS Read current chuck in use.
Definition pp_pas99.c:158

◆ PPMTE_get_next_point()

void PPMTE_get_next_point ( double * Pt)

FMS get next coordinates according to origin and reference
can be used in approach procedure.

Version
5.13
Parameters
[out]Ptpoint coordinates
PCALL(PPMTE_get_next_point,tr3_Pt);
PCALL(PPMTE_set_posax,1,tr3_Pt[0]);
PCALL(PPMTE_set_posax,2,tr3_Pt[1]);
void PPMTE_get_next_point(double *Pt)
FMS get next coordinates according to origin and reference can be used in approach procedure.
Definition pp_pas99.c:187
void PPMTE_set_posax(int Iax, double Rpos)
FMS set axis position.
Definition pp_pas99.c:805

◆ PPMTE_get_next_point_rotax()

void PPMTE_get_next_point_rotax ( double * Pt)

MTE get next coordinates according to current angles Rotax
can be used in approach procedure.

Version
6.10
Parameters
[out]Ptpoint coordinates
void PPMTE_get_next_point_rotax(double *Pt)
MTE get next coordinates according to current angles Rotax can be used in approach procedure.
Definition pp_pas99.c:220

◆ PPMTE_get_pos_point()

void PPMTE_get_pos_point ( double * Pt)

FMS get current coordinates according to origin and reference.

Version
5.13
Parameters
[out]Ptpoint coordinates
PCALL(PPMTE_get_pos_point,tr3_Pt);
void PPMTE_get_pos_point(double *Pt)
FMS get current coordinates according to origin and reference.
Definition pp_pas99.c:250

◆ PPMTE_get_rotax()

void PPMTE_get_rotax ( int Iax,
double * Rpos )

FMS get value for rotatif axis.

Version
5.13
Parameters
[in]Iaxrotatif axis number (1,2)
[out]Rposvalue in degrees

◆ PPMTE_get_synchro()

void PPMTE_get_synchro ( int * Inum)

FMS Read synchro number in use.

Version
5.13
Parameters
[out]Inumsynchro number

◆ PPMTE_get_turret()

void PPMTE_get_turret ( int * Inum)

FMS Read current turret in use.

Version
5.13
Parameters
[out]Inumturret number
PCALL(PPMTE_get_turret,int_ActiveTurret);
void PPMTE_get_turret(int *Inum)
FMS Read current turret in use.
Definition pp_pas99.c:336

◆ PPMTE_rot_table_auto()

void PPMTE_rot_table_auto ( int Bval)

FMS setting automatic treatment is not requested
because we want do it in MTE_APPROACH procedure
CONST_YES by default to do automatic treatment before MTE_APPROACH.

Version
6.02
Parameters
[in]BvalCONST_YES | CONST_NO
PCALL(PPMTE_rot_table_auto,CONST_NO);
void PPMTE_rot_table_auto(int Bval)
FMS setting automatic treatment is not requested because we want do it in MTE_APPROACH procedure ...
Definition pp_pas99.c:62

◆ PPMTE_set_chuck()

void PPMTE_set_chuck ( int Inum)

FMS set chuck number.

Version
5.13
Parameters
[in]Inumchuck number
PCALL(PPMTE_set_chuck,Inum);
void PPMTE_set_chuck(int Inum)
FMS set chuck number.
Definition pp_pas99.c:602

◆ PPMTE_set_delay()

void PPMTE_set_delay ( double Rval)

FMS set delay for event.

Version
5.13
Parameters
[in]Rvaldelais (s)
PCALL(PPMTE_set_delay,Rval);
void PPMTE_set_delay(double Rval)
FMS set delay for event.
Definition pp_pas99.c:630

◆ PPMTE_set_exec_auto()

void PPMTE_set_exec_auto ( int Bval)

FMS setting automatic treatment is requested
because it's not finish by procedure
often used with MTE_TECHNO_FUNCTION, MTE_REWORK, MTE_POINT.

Version
5.13
Parameters
[in]BvalCONST_YES | CONST_NO
PCALL(PPMTE_set_exec_auto,CONST_YES);
void PPMTE_set_exec_auto(int Bval)
FMS setting automatic treatment is requested because it's not finish by procedure often used with...
Definition pp_pas99.c:658

◆ PPMTE_set_feed()

void PPMTE_set_feed ( double Rval,
int Btyp )

FMS set feed and type values.

Version
5.13
Parameters
[in]Rvalfeed values
[in]Btypunit:CONST_MMPM | CONST_MMPR

◆ PPMTE_set_origin()

void PPMTE_set_origin ( int Inum,
int Bdecori )

FMS set origin for posax oordinates.

Version
5.13
Parameters
[in]Inum0:machine, 1:main spindle, 2:sub spindle
[in]Bdecoriprogram origin (CONST_YES) or spindle origin(CONST_NO)

◆ PPMTE_set_osetno()

void PPMTE_set_osetno ( int Bpilot)

FMS set pilot point with tool or not.

Version
5.13
Parameters
[in]BpilotPOSAX with tool length or not (CONST_YES,CONST_NO)

◆ PPMTE_set_posax()

void PPMTE_set_posax ( int Iax,
double Rpos )

FMS set axis position.

Version
5.13
Parameters
[in]Iaxaxis number (1,2,3)
[in]Rposposition value
PCALL(PPMTE_get_next_point,tr3_Pt);
PCALL(PPMTE_set_posax,1,tr3_Pt[0]);
PCALL(PPMTE_set_posax,2,tr3_Pt[1]);

◆ PPMTE_set_reference()

void PPMTE_set_reference ( int Inum,
int Bdecori,
int Bpilot,
int Bplanusi )

FMS set origin for posax oordinates.

Version
5.13
Parameters
[in]Inum0:machine, 1:main spindle or setting, 2:sub spindle
[in]Bdecoriprogram origin (CONST_YES) or part origin(CONST_NO)
[in]BpilotPOSAX with tool length or not, head angles or not (CONST_YES,CONST_NO,CONST_ORI_ANGLE)
[in]Bplanusicoordinates in working plane or not (futur use)
PCALL(PPMTE_get_chuck,int_Chuck);
PCALL(PPMTE_set_reference,int_Chuck,CONST_YES,CONST_YES,CONST_NO);
void PPMTE_set_reference(int Inum, int Bdecori, int Bpilot, int Bplanusi)
FMS set origin for posax oordinates.
Definition pp_pas99.c:767

◆ PPMTE_set_rotax()

void PPMTE_set_rotax ( int Iax,
double Rpos )

FMS set axis position.

Version
5.13
Parameters
[in]Iaxrotatif axis number (1,2)
[in]Rposposition value
PCALL(PPMTE_set_rotax,1,real_PosPrimary);
void PPMTE_set_rotax(int Iax, double Rpos)
FMS set axis position.
Definition pp_pas99.c:837

◆ PPMTE_set_rtcp()

void PPMTE_set_rtcp ( int Brtcp)

MTE set RTCP or not.

Version
6.10
Parameters
[in]BrtcpCONST_YES or CONST_NO
PCALL(PPMTE_set_rtcp,CONST_YES);
void PPMTE_set_rtcp(int Brtcp)
MTE set RTCP or not.
Definition pp_pas99.c:867

◆ PPMTE_set_spindle_chuck()

void PPMTE_set_spindle_chuck ( int Bsens,
double Rspeed,
int Bunit )

FMS set spindle speed and direction.

Version
5.13
Parameters
[in]BsensCONST_BREAK, CONST_CCW, CONST_CW
[in]Rspeedspeed value
[in]Bunitunit speed (CONST_MMPM, CONST_RPM)

◆ PPMTE_set_spindle_tool()

void PPMTE_set_spindle_tool ( int Bsens,
double Rspeed )

FMS set rotating tool speed and direction.

Version
5.13
Parameters
[in]BsensCONST_BREAK, CONST_CCW, CONST_CW
[in]Rspeedspeed value

◆ PPMTE_set_synchro()

void PPMTE_set_synchro ( int Inum)

FMS set synchro number.

Version
5.13
Parameters
[in]Inumsynchro number

◆ PPMTE_set_tool()

void PPMTE_set_tool ( int Inum,
int Iposte,
int Index )

FMS set tool info for selection.

Version
5.13
Parameters
[in]Inumtool number
0 to use current tool on turret
-1 to remove tool in spindle
[in]Ipostetool post
[in]Indextool index
PCALL(READ_PART_turret_pocket_tool,int_Turret,int_Tool,int_Poste,int_Index);
PCALL(PPMTE_SET_TOOL,int_Tool,int_Poste,int_Index);
void READ_PART_turret_pocket_tool(int Itrl, int *Iout, int *Iposte, int *Index)
read current tool number and poste and index on a turret can be used at beginning to read first too...
Definition pp_pas30.c:4291

◆ PPMTE_set_turret()

void PPMTE_set_turret ( int Inum)

FMS set turret number.

Version
5.13
Parameters
[in]Inumturret number
PCALL(READ_PART_turret_no,int_Turret);
PCALL(PPMTE_set_turret,int_Turret);
void PPMTE_set_turret(int Inum)
FMS set turret number.
Definition pp_pas99.c:1012
void READ_PART_turret_no(int *Inum)
read turret number of cycle in progress (DEBUT_OPE) current turret (PP_BEGIN). Used for 4 axes la...
Definition pp_pas30.c:3614

◆ PPMTE_set_value()

void PPMTE_set_value ( int Btyp,
double Rval )

FMS set value for specific element as rework spindle.

Version
5.13
Parameters
[in]BtypMTE_Z_REWORK , MTE_Z_ACCESORY
[in]Rvalvalue to set