GO2cam Pascal API

Functions

void ecycANNUL_ORIGINE ()
 Reset origine offset ( 0 GO2cam is now the origine )
 
void ecycDECAL_ORIGINE (double *pt, double angle)
 Write origine offset.
 
void ecycTRA_APPROCHE (double *point)
 Create an approach toolpath.
 
void ecycTRA_COMMENTAIRE (const std::string &txt)
 Write a comment for the following toolpath.
 
void ecycTRA_FCT (double *point, int ival, double *elt)
 Create a technological function (stop,..)
 
void ecycTRA_RAPIDE (double *point)
 Create a rapid toolpath.
 
void ecycTRA_RETOUR (double *point)
 Create a return toolpath.
 
void ecycVALB_TECHNO (int btype, int bval)
 Write a boolean in the current Technology/Tool.
 
void ecycVALE_TECHNO (int btype, int ival)
 Write an integer in the current Technology/Tool.
 
void ecycVALR_TECHNO (int btype, double rval)
 Write a real in the current Technology/Tool.
 
void ecycVALS_TECHNO (int btype, const std::string &sval)
 Write a string in the current Technology/Tool.
 
void lcycINDICE_POINT (int *ind)
 Read index of the current point.
 
void lcycNOMBRE_POINT (int *nb)
 Read points number.
 
void lcycPOINT (double *pt)
 Read point coordinates.
 
void lcycPREMIER_POINT (int *is_first)
 Read if the current point is the first one.
 
void lcycVALB_TECHNO (int btype, int *bval)
 Read a boolean from the current Technology / Tool.
 
void lcycVALE_TECHNO (int btype, int *ival)
 Read an integer from the current Technology / Tool.
 
void lcycVALR_TECHNO (int btype, double *rval)
 Read a real from the current Technology / Tool.
 
void lcycVALS_TECHNO (int btype, std::string &sval)
 Read a string from the current Technology / Tool.
 

Detailed Description

Shared functions

Function Documentation

◆ ecycANNUL_ORIGINE()

void ecycANNUL_ORIGINE ( )

Reset origine offset ( 0 GO2cam is now the origine )

void ecycANNUL_ORIGINE()
Reset origine offset ( 0 GO2cam is now the origine )
Definition pa_cyc02.c:192
See also
ecycDECAL_ORIGINE

◆ ecycDECAL_ORIGINE()

void ecycDECAL_ORIGINE ( double * pt,
double angle )

Write origine offset.

Parameters
[in]ptNew origine point
[in]angleRotation (angle in radian)
Remarks
Allows to calculate a toolpath from 0 with angle=0
Usefull if you don't want to use cosinus, ..
PCALL(ecycDECAL_ORIGINE,pt,angle);
void ecycDECAL_ORIGINE(double *pt, double angle)
Write origine offset.
Definition pa_cyc02.c:147
See also
ecycANNUL_ORIGINE

◆ ecycTRA_APPROCHE()

void ecycTRA_APPROCHE ( double * point)

Create an approach toolpath.

Parameters
[in]pointApproach point coordinates
Remarks
Coordinates depend on the origine. To create several approach point, use
several times ecycTRA_RAPIDE before ecycTRA_APPROCHE.
PCALL(ecycTRA_APPROCHE,pt_app);
void ecycTRA_APPROCHE(double *point)
Create an approach toolpath.
Definition pa_cyc02.c:753
See also
ecycDECAL_ORIGINE, ecycANNUL_ORIGINE

◆ ecycTRA_COMMENTAIRE()

void ecycTRA_COMMENTAIRE ( const std::string & txt)

Write a comment for the following toolpath.

Version
4.3
Parameters
[in]txtComment to write
Remarks
This function is to be used before the creation of the toolpath.
The comment is memorised and used at the next toolpath creation
(ecycTRA_RAPIDE,..) and then initialised
PCALL (ecycTRA_COMMENTAIRE,'Test Comment 1');
PCALL (ecycTRA_SEGMENT,pt1,pt2); { with comment }
PCALL (ecycTRA_SEGMENT,pt3,pt4); { without Comment }
PCALL (ecycTRA_COMMENTAIRE,'Test Comment 2');
PCALL (ecycTRA_SEGMENT,pt1,pt2); { without comment }
void ecycTRA_SEGMENT(double *point1, double *point2)
Create a segment toolpath (G01)
Definition pa_cyc02.c:1019
void ecycTRA_COMMENTAIRE(const std::string &txt)
Write a comment for the following toolpath.
Definition pa_cyc02.c:947
See also
ecycTRA_SEGMENT

◆ ecycTRA_FCT()

void ecycTRA_FCT ( double * point,
int ival,
double * elt )

Create a technological function (stop,..)

Parameters
[in]pointLocation point of the function
[in]ivaltechnology type (DPP_STOP, ...)
[in]elt9 reals array
Remarks
Functions located on a point (approach,..) must be created AFTER the
point (ecycTRA_APPROCHE).
PCALL(ecycTRA_FCT,pt,DPP_STOP,tab9);
void ecycTRA_FCT(double *point, int ival, double *elt)
Create a technological function (stop,..)
Definition pa_cyc02.c:895

◆ ecycTRA_RAPIDE()

void ecycTRA_RAPIDE ( double * point)

Create a rapid toolpath.

Parameters
[in]pointRapid point coordinates
Remarks
Coordinates depend on the origine. This function MUST be located BEFORE
ecycTRA_APPROCHE or AFTER ecycTRA_RETOUR
PCALL(ecycTRA_RAPIDE,pt_rap);
void ecycTRA_RAPIDE(double *point)
Create a rapid toolpath.
Definition pa_cyc02.c:847
See also
ecycDECAL_ORIGINE, ecycANNUL_ORIGINE

◆ ecycTRA_RETOUR()

void ecycTRA_RETOUR ( double * point)

Create a return toolpath.

Parameters
[in]pointReturn point coordinates
Remarks
Coordinates depend on the origine. To create several return point, use
several times ecycTRA_RAPIDE after ecycTRA_RETOUR.
PCALL(ecycTRA_RETOUR,pt_ret);
void ecycTRA_RETOUR(double *point)
Create a return toolpath.
Definition pa_cyc02.c:800
See also
ecycDECAL_ORIGINE, ecycANNUL_ORIGINE

◆ ecycVALB_TECHNO()

void ecycVALB_TECHNO ( int btype,
int bval )

Write a boolean in the current Technology/Tool.

Version
4.4
Parameters
[in]btypeField name to write in (BTT_DECALAGE..)
[in]bvalboolean value to write
PCALL(ecycVALE_TECHNO ,ETT_CORRECTEUR_RAYON,2);

◆ ecycVALE_TECHNO()

void ecycVALE_TECHNO ( int btype,
int ival )

Write an integer in the current Technology/Tool.

Version
4.4
Parameters
[in]btypeField name to write in (ETT_CORRECTEUR_RAYON..)
[in]ivalInteger value to write
PCALL(ecycVALE_TECHNO ,ETT_CORRECTEUR_RAYON,2);

◆ ecycVALR_TECHNO()

void ecycVALR_TECHNO ( int btype,
double rval )

Write a real in the current Technology/Tool.

Version
4.4
Parameters
[in]btypeField name to write in (RTT_DIAMETRE..)
[in]rvalreal value to write
PCALL(ecycVALR_TECHNO,RO_DIAMETRE,20);
void ecycVALR_TECHNO(int btype, double rval)
Write a real in the current Technology/Tool.
Definition pa_cyc02.c:409

◆ ecycVALS_TECHNO()

void ecycVALS_TECHNO ( int btype,
const std::string & sval )

Write a string in the current Technology/Tool.

Version
4.4
Parameters
[in]btypeField name to write in (ST_NOM_OUTIL..)
[in]svalstring value to write
PCALL(ecycVALS_TECHNO,SO_REFERENCE,'ref');
void ecycVALS_TECHNO(int btype, const std::string &sval)
Write a string in the current Technology/Tool.
Definition pa_cyc02.c:450

◆ lcycINDICE_POINT()

void lcycINDICE_POINT ( int * ind)

Read index of the current point.

Version
4.4
Parameters
[out]indPoint index
PCALL(lcycINDICE_POINT,ind);
void lcycINDICE_POINT(int *ind)
Read index of the current point.
Definition pa_cyc02.c:298

◆ lcycNOMBRE_POINT()

void lcycNOMBRE_POINT ( int * nb)

Read points number.

Version
4.4
Parameters
[out]nbPoints number
PCALL(lcycNOMBRE_POINT,nb);
void lcycNOMBRE_POINT(int *nb)
Read points number.
Definition pa_cyc02.c:329

◆ lcycPOINT()

void lcycPOINT ( double * pt)

Read point coordinates.

Parameters
[out]ptPoint coordinates (X,Y,Z)
PCALL(lcycPOINT,pt);
void lcycPOINT(double *pt)
Read point coordinates.
Definition pa_cyc02.c:223

◆ lcycPREMIER_POINT()

void lcycPREMIER_POINT ( int * is_first)

Read if the current point is the first one.

Version
4.4
Parameters
[out]is_firstSPI_YES First Point | SPI_NO Others points
Remarks
Allows to create differenty hole on the first point.
PCALL(lcycPREMIER_POINT,is_first);
void lcycPREMIER_POINT(int *is_first)
Read if the current point is the first one.
Definition pa_cyc02.c:262

◆ lcycVALB_TECHNO()

void lcycVALB_TECHNO ( int btype,
int * bval )

Read a boolean from the current Technology / Tool.

Version
4.4
Parameters
[in]btypeField name to read ( BTT_DECALAGE,..)
[out]bvalboolean value read
PCALL(lcycVALB_TECHNO,BTT_DECALAGE,ival);
void lcycVALB_TECHNO(int btype, int *bval)
Read a boolean from the current Technology / Tool.
Definition pa_cyc02.c:697
See also
lcycSELECT_CYCLE

◆ lcycVALE_TECHNO()

void lcycVALE_TECHNO ( int btype,
int * ival )

Read an integer from the current Technology / Tool.

Version
4.4
Parameters
[in]btypeField name to read ( ETT_CORRECTEUR_RAYON,..)
[out]ivalInteger value read
PCALL(lcycVALE_TECHNO,ETT_CORRECTEUR_RAYON,ival);
void lcycVALE_TECHNO(int btype, int *ival)
Read an integer from the current Technology / Tool.
Definition pa_cyc02.c:525
See also
lcycSELECT_CYCLE

◆ lcycVALR_TECHNO()

void lcycVALR_TECHNO ( int btype,
double * rval )

Read a real from the current Technology / Tool.

Version
4.4
Parameters
[in]btypeField name to read ( RTT_DIAMETRE,..)
[out]rvalreal value read
PCALL( lcycVALR_TECHNO,RTT_ANGLE_APPROCHE,angle);
void lcycVALR_TECHNO(int btype, double *rval)
Read a real from the current Technology / Tool.
Definition pa_cyc02.c:584

◆ lcycVALS_TECHNO()

void lcycVALS_TECHNO ( int btype,
std::string & sval )

Read a string from the current Technology / Tool.

Version
4.4
Parameters
[in]btypeField name to read ( ST_NOM_OUTIL,..)
[out]svalstring value read
PCALL(lcycVALS_TECHNO,ST_NOM_OUTIL,nomout);
void lcycVALS_TECHNO(int btype, std::string &sval)
Read a string from the current Technology / Tool.
Definition pa_cyc02.c:642
See also
lcycSELECT_CYCLE