SDK
Creation of special cycles

Functions

int SPI_PRC_create_tag_begin_cycle (int processNb, int subProgNb, double time, const std::string &comment, const std::string &label)
 Creates a starting tag in the machining database.
 
int SPI_PRC_create_tag_end_cycle (int processNb, int subProgNb, double time, const std::string &comment, const std::string &label)
 Creates an ending tag in the machining database.
 
int SPI_PRC_create_subprogram_cycle (int processNb, int subProgNb, int callType, int manipType, int planNb, int number, double *arrayReal, double angOrCoef, const std::string &label)
 Creates a subprogram call in the database.
 
int SPI_PRC_create_special_subprogram_cycle (int processNb, int subProgNb, double *arrayReal, const std::string &label, const std::string &comment)
 Creates a special subprogram call in the database.
 
int SPI_PRC_create_techno_cycle (int processNb, int way, int functionType, int planNb, double *fca, double time, const std::string &comment, const std::string &label)
 Creates a technological function in the database.
 

Detailed Description

Creation of special cycles

Function Documentation

◆ SPI_PRC_create_special_subprogram_cycle()

int SPI_PRC_create_special_subprogram_cycle ( int processNb,
int subProgNb,
double * arrayReal,
const std::string & label,
const std::string & comment )

Creates a special subprogram call in the database.

Version
4.4
Parameters
[in]processNbprocess number. The subprogram call will be made after
[in]subProgNbsubprogram number
[in]arrayRealarray of 6 real values
[in]labelsubprogram call label
[in]commentcomment
Returns
SPI_YES if Ok | SPI_NO if Error
Remarks
Type of array :
arrayReal[0] : feedrate
arrayReal[1] : coolant number
arrayReal[2] : setting number
arrayReal[3] : number of angle register
arrayReal[4] : offset number
arrayReal[5] : offset
int SPI_PRC_create_special_subprogram_cycle(int processNb, int subProgNb, double *arrayReal, const std::string &label, const std::string &comment)
Creates a special subprogram call in the database.
Definition sp_prc03.c:219

◆ SPI_PRC_create_subprogram_cycle()

int SPI_PRC_create_subprogram_cycle ( int processNb,
int subProgNb,
int callType,
int manipType,
int planNb,
int number,
double * arrayReal,
double angOrCoef,
const std::string & label )

Creates a subprogram call in the database.

Version
4.4
Parameters
[in]processNbprocess number. The subprogram call will be made after
[in]subProgNbsubprogram number
[in]callTypetype of subprogram call (AGC_APPEL_SPG, AGC_APPEL_DEPLACE_SPG)
[in]manipTypetype of manipulation
[in]planNbplan number
[in]numbernumber of repetitions
[in]arrayRealreal value X, Y, Z
[in]angOrCoefangle or coefficient
[in]labelsubprogram call label
Returns
SPI_YES if Ok | SPI_NO if error
Remarks
Type of manipulation available:
1 => translation : arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz
2 => symmetry : arrayReal[0] = Xc, arrayReal[1] = Yc, angOrCoef = right angle
3 => rotation : arrayReal[0] = Xc, arrayReal[1] = Yc, angOrCoef = angle rotation
4 => homothety : arrayReal[0] = Xc, arrayReal[1] = Yc, angOrCoef = coefficient
5 => Rotation : At angOrCoef = angle of rotation
6 => Rotation : B angOrCoef = angle of rotation
7 => Rotation : C angOrCoef = angle of rotation
8 => Rotation : A arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz, angOrCoef = angle of rotation
9 => Rotation : B arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz, angOrCoef = angle of rotation
10 => Rotation : C arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz, angOrCoef = angle of rotation
ier := ICALL(SPI_PRC_create_subprogram_cycle,1,10,AGC_APPEL_SPG,1,1,10,pt,
int SPI_PRC_create_subprogram_cycle(int processNb, int subProgNb, int callType, int manipType, int planNb, int number, double *arrayReal, double angOrCoef, const std::string &label)
Creates a subprogram call in the database.
Definition sp_prc03.c:144

◆ SPI_PRC_create_tag_begin_cycle()

int SPI_PRC_create_tag_begin_cycle ( int processNb,
int subProgNb,
double time,
const std::string & comment,
const std::string & label )

Creates a starting tag in the machining database.

Version
4.4
Parameters
[in]processNbprocess number. The tag will be laid before this process
[in]subProgNbsubprogram number (negative => no display in operation list)
[in]timemachining time in seconds
[in]commentcomment
[in]labelmachining label
Returns
SPI_YES si Ok | SPI_NO si erreur
ier := ICALL(SPI_PRC_create_tag_begin_cycle,1,10,0.0,'toto','lbl');
int SPI_PRC_create_tag_begin_cycle(int processNb, int subProgNb, double time, const std::string &comment, const std::string &label)
Creates a starting tag in the machining database.
Definition sp_prc03.c:54

◆ SPI_PRC_create_tag_end_cycle()

int SPI_PRC_create_tag_end_cycle ( int processNb,
int subProgNb,
double time,
const std::string & comment,
const std::string & label )

Creates an ending tag in the machining database.

Version
4.4
Parameters
[in]processNbprocess number. The tag will be laid after this process
[in]subProgNbsubprogram number (negative => no display in operation list)
[in]timemachining time in seconds
[in]commentcomment
[in]labelmachining label
Returns
SPI_YES si Ok | SPI_NO si erreur
ier := ICALL(SPI_PRC_create_tag_end_cycle,1,10,0.0,'toto','lbl');
int SPI_PRC_create_tag_end_cycle(int processNb, int subProgNb, double time, const std::string &comment, const std::string &label)
Creates an ending tag in the machining database.
Definition sp_prc03.c:99

◆ SPI_PRC_create_techno_cycle()

int SPI_PRC_create_techno_cycle ( int processNb,
int way,
int functionType,
int planNb,
double * fca,
double time,
const std::string & comment,
const std::string & label )

Creates a technological function in the database.

Version
4.4
Parameters
[in]processNbprocess number.
[in]way-1 the technological function will be placed before processNb, 1 it will be placed after
[in]functionTypetype of technological function
[in]planNbplan number
[in]fcaCanonical form
[in]timemachining time in seconds
[in]commentcomment
[in]labeltechnology cycle label
Returns
SPI_YES if Ok | SPI_NO if Error
ier:=ICALL(SPI_PRC_create_techno_cycle,1,1,DPP_STOP,1,fca,0.0,'toto','lbl');
int SPI_PRC_create_techno_cycle(int processNb, int way, int functionType, int planNb, double *fca, double time, const std::string &comment, const std::string &label)
Creates a technological function in the database.
Definition sp_prc03.c:277