SDK
Multi parts

Functions

void SPI_PRC_MPM_init_process ()
 Initializes the buffer for multi part machining processes.
 
void SPI_PRC_MPM_free_process ()
 Releases the buffer from multi part machining processes.
 
int SPI_PRC_MPM_next_process (int *settingNb, int *cycleNb, int *processNb)
 Reads the next process.
 
int SPI_PRC_MPM_previous_process (int *settingNb, int *cycleNb, int *processNb)
 Reads the previous process.
 
int SPI_PRC_MPM_read_process (int settingNb, int cycleNb, int processNb)
 Loads a machining cycle into the process buffer.
 
void SPI_PRC_MPM_write_seen_process (int settingNb)
 Makes a machining cycle visible.
 
void SPI_PRC_MPM_write_unseen_process (int settingNb)
 Makes a machining cycle invisible.
 
int SPI_PRC_MPM_get_part_information (int settingNb, int *partIdx, std::string &partName)
 Reads the part information associated with a setting.
 
int SPI_MPM_export_setting_list (const std::string &dirName, const std::string &fileName)
 Generates an XML file listing all the fixtures and their positions as well as the 3D files of the parts.
 

Detailed Description

Multi parts management

Function Documentation

◆ SPI_MPM_export_setting_list()

int SPI_MPM_export_setting_list ( const std::string & dirName,
const std::string & fileName )

Generates an XML file listing all the fixtures and their positions as well as the 3D files of the parts.

Version
6.02
Parameters
[in]dirNameexport directory
[in]fileNamename of the XML file to generate
Returns
SPI_YES if Ok | SPI_NO if error
ier := ICALL(SPI_MPM_export_setting_list,"C:\tmp","settings.xml");
int SPI_MPM_export_setting_list(const std::string &dirName, const std::string &fileName)
Generates an XML file listing all the fixtures and their positions as well as the 3D files of the par...
Definition sp_prc10.c:355

◆ SPI_PRC_MPM_free_process()

void SPI_PRC_MPM_free_process ( )

Releases the buffer from multi part machining processes.

Version
6.02
void SPI_PRC_MPM_free_process()
Releases the buffer from multi part machining processes.
Definition sp_prc10.c:74

◆ SPI_PRC_MPM_get_part_information()

int SPI_PRC_MPM_get_part_information ( int settingNb,
int * partIdx,
std::string & partName )

Reads the part information associated with a setting.

Version
6.02
Parameters
[in]settingNbsetting number
[out]partIdxpart index (P1, P2, ...)
[out]partNamename of the part
ier := ICALL(SPI_PRC_MPM_get_part_information,1,index,name);
int SPI_PRC_MPM_get_part_information(int settingNb, int *partIdx, std::string &partName)
Reads the part information associated with a setting.
Definition sp_prc10.c:308

◆ SPI_PRC_MPM_init_process()

void SPI_PRC_MPM_init_process ( )

Initializes the buffer for multi part machining processes.

Version
6.02
void SPI_PRC_MPM_init_process()
Initializes the buffer for multi part machining processes.
Definition sp_prc10.c:47

◆ SPI_PRC_MPM_next_process()

int SPI_PRC_MPM_next_process ( int * settingNb,
int * cycleNb,
int * processNb )

Reads the next process.

Version
6.02
Parameters
[in,out]settingNbinput : setting number, output : next setting number
[in,out]cycleNbinput : cycle number, output : next cycle number
[in,out]processNbinput : process number, output : next process number
Returns
SPI_YES if Ok | SPI_NO if error
Remarks
Since version 4.5 reads all cycles without taking account of set or batch states
To find out if the cycle is active or not, use before if necessary:
PCALL(SPI_PRC_read_boolean_tec_process,BC_VALIDITE_SET,valid);
PCALL(SPI_PRC_read_boolean_tec_process,BC_VALIDITE_BATCH,valid);
nopsg := 0;
nocyc := 0;
nopro := 0;
ier := ICALL(SPI_PRC_MPM_next_process,nopsg,nocyc,nopro);
int SPI_PRC_MPM_next_process(int *settingNb, int *cycleNb, int *processNb)
Reads the next process.
Definition sp_prc10.c:102

◆ SPI_PRC_MPM_previous_process()

int SPI_PRC_MPM_previous_process ( int * settingNb,
int * cycleNb,
int * processNb )

Reads the previous process.

Version
6.02
Parameters
[in,out]settingNbinput : setting number, output : previous setting number
[in,out]cycleNbinput : cycle number, output : previous cycle number
[in,out]processNbinput : process number, output : previous process number
Returns
SPI_YES if Ok | SPI_NO if error
Remarks
Since version 4.5 reads all cycles without taking account of set or batch states
To find out if the cycle is active or not, use before if necessary:
PCALL(SPI_PRC_read_boolean_tec_process,BC_VALIDITE_SET,valid);
PCALL(SPI_PRC_read_boolean_tec_process,BC_VALIDITE_BATCH,valid);
nopsg := 2;
nocyc := 5;
nopro := 0;
ier := ICALL(SPI_PRC_MPM_previous_process,nopsg,nocyc,nopro);
int SPI_PRC_MPM_previous_process(int *settingNb, int *cycleNb, int *processNb)
Reads the previous process.
Definition sp_prc10.c:157

◆ SPI_PRC_MPM_read_process()

int SPI_PRC_MPM_read_process ( int settingNb,
int cycleNb,
int processNb )

Loads a machining cycle into the process buffer.

Version
6.02
Parameters
[in]settingNbsetting number
[in]cycleNbcycle number
[in]processNbprocess number
Returns
SPI_YES if Ok | SPI_NO if error
Remarks
After calling this function, it is possible to use SPI_PRC_read_ (integer, boolean, real, string) _tec_process to read information on the machining cycle
Do not forget to initialize the process at the beginning and to release it at the end
ier := ICALL(SPI_PRC_MPM_read_process,1,1,1);
int SPI_PRC_MPM_read_process(int settingNb, int cycleNb, int processNb)
Loads a machining cycle into the process buffer.
Definition sp_prc10.c:212
See also
SPI_PRC_MPM_init_process, SPI_PRC_MPM_free_process

◆ SPI_PRC_MPM_write_seen_process()

void SPI_PRC_MPM_write_seen_process ( int settingNb)

Makes a machining cycle visible.

Version
6.02
Parameters
[in]settingNbsetting number
void SPI_PRC_MPM_write_seen_process(int settingNb)
Makes a machining cycle visible.
Definition sp_prc10.c:257

◆ SPI_PRC_MPM_write_unseen_process()

void SPI_PRC_MPM_write_unseen_process ( int settingNb)

Makes a machining cycle invisible.

Version
6.02
Parameters
[in]settingNbsetting number
void SPI_PRC_MPM_write_unseen_process(int settingNb)
Makes a machining cycle invisible.
Definition sp_prc10.c:282