SDK
Création de cycles spéciaux

Fonctions

int SPI_PRC_create_tag_begin_cycle (int processNb, int subProgNb, double time, const std::string &comment, const std::string &label)
 Crée un jalon de début dans la BDD usinage.
 
int SPI_PRC_create_tag_end_cycle (int processNb, int subProgNb, double time, const std::string &comment, const std::string &label)
 Crée un jalon de fin dans la BDD usinage.
 
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)
 Crée un appel de sous programme dans la BDD.
 
int SPI_PRC_create_special_subprogram_cycle (int processNb, int subProgNb, double *arrayReal, const std::string &label, const std::string &comment)
 Crée un appel de sous programme spécial dans la BDD.
 
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)
 Crée une fonction technologique dans la BDD.
 

Description détaillée

Création de cycles speciaux

Documentation des fonctions

◆ 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 )

Crée un appel de sous programme spécial dans la BDD.

Version
4.4
Paramètres
[in]processNbnuméro du processus. L'appel de sous programme sera fait après
[in]subProgNbnuméro du sous programme
[in]arrayRealtableau de 6 valeurs réelles
[in]labellabel de l'appel de sous programme
[in]commentcommentaire
Renvoie
SPI_YES si Ok | SPI_NO si erreur
Remarques
Description des valeurs du tableau :
arrayReal[0] : vitesse d'avance
arrayReal[1] : numéro d'arrosage
arrayReal[2] : numéro de regime
arrayReal[3] : numéro de correcteur d'angle
arrayReal[4] : numéro d'offset
arrayReal[5] : offset
int SPI_PRC_create_special_subprogram_cycle(int processNb, int subProgNb, double *arrayReal, const std::string &label, const std::string &comment)
Crée un appel de sous programme spécial dans la BDD.
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 )

Crée un appel de sous programme dans la BDD.

Version
4.4
Paramètres
[in]processNbnuméro du processus. L'appel de sous programme sera fait après
[in]subProgNbnuméro du sous programme
[in]callTypetype d'appel de sous programme (AGC_APPEL_SPG, AGC_APPEL_DEPLACE_SPG)
[in]manipTypetype de manipulation
[in]planNbnuméro de plan
[in]numbernombre de répétition
[in]arrayRealvaleur réelle X, Y, Z
[in]angOrCoefangle ou coefficient
[in]labellabel de l'appel de sous programme
Renvoie
SPI_YES si Ok | SPI_NO si erreur
Remarques
Type de manipulation disponible :
1 => translation : arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz
2 => symétrie : arrayReal[0] = Xc, arrayReal[1] = Yc, angOrCoef = angle droite
3 => rotation : arrayReal[0] = Xc, arrayReal[1] = Yc, angOrCoef = angle rotation
4 => homothetie : arrayReal[0] = Xc, arrayReal[1] = Yc, angOrCoef = coefficient
5 => Rotation A : angOrCoef = angle de rotation
6 => Rotation B : angOrCoef = angle de rotation
7 => Rotation C : angOrCoef = angle de rotation
8 => Rotation A : arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz, angOrCoef = angle de rotation
9 => Rotation B : arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz, angOrCoef = angle de rotation
10 => Rotation C : arrayReal[0] = Dx, arrayReal[1] = Dy, arrayReal[2] = Dz, angOrCoef = angle de 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)
Crée un appel de sous programme dans la BDD.
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 )

Crée un jalon de début dans la BDD usinage.

Version
4.4
Paramètres
[in]processNbnuméro du processus. Le jalon sera posé avant ce processus
[in]subProgNbnuméro du sous programme (négatif => pas d'affichage dans la gamme)
[in]timetemps d'usinage en seconde
[in]commentcommentaire
[in]labellabel d'usinage
Renvoie
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)
Crée un jalon de début dans la BDD usinage.
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 )

Crée un jalon de fin dans la BDD usinage.

Version
4.4
Paramètres
[in]processNbnuméro du processus. Le jalon sera posé après ce processus
[in]subProgNbnuméro du sous programme (négatif => pas d'affichage dans la gamme)
[in]timetemps d'usinage en seconde
[in]commentcommentaire
[in]labellabel d'usinage
Renvoie
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)
Crée un jalon de fin dans la BDD usinage.
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 )

Crée une fonction technologique dans la BDD.

Version
4.4
Paramètres
[in]processNbnuméro du processus.
[in]way-1 la fonction technologique sera placée avant processNb, 1 elle sera placée après
[in]functionTypetype de fonction technologique
[in]planNbnuméro de plan
[in]fcaForme canonique de la fonction
[in]timetemps d'usinage en seconde
[in]commentcommentaire
[in]labellabel du cycle technologique
Renvoie
SPI_YES si Ok | SPI_NO si erreur
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)
Crée une fonction technologique dans la BDD.
Definition sp_prc03.c:277