SDK
Tool gauges

Functions

int SPI_ASM_load_assembly ()
 Loads tool assemblies.
 
void SPI_ASM_free_assembly ()
 Releases the tool assembly.
 
int SPI_ASM_init_toollist ()
 Initializes the list of assembly tools.
 
int SPI_ASM_free_toollist ()
 Releases the assembly tool list.
 
int SPI_ASM_select_tool (int index)
 Selects a tool from the assembly.
 
void SPI_ASM_read_string_tool (int key, std::string &sValue)
 Reads a string parameter of the tool.
 
void SPI_ASM_read_integer_tool (int key, int *iValue)
 Reads an integer parameter of the tool.
 
void SPI_ASM_read_real_tool (int key, double *rValue)
 Reads a real parameter of the tool.
 
int SPI_ASM_nb_tool_position (int toolType, const std::string &toolName)
 Reads the number of tool positions.
 
int SPI_ASM_get_tool_position (int index, int *turretNb, int *toolNb)
 Reads the position of a tool with its index.
 
int SPI_ASM_export_assembly_3d (const std::string &folderName)
 Exports a 3D tool assembly.
 

Detailed Description

Tool gauges

Function Documentation

◆ SPI_ASM_export_assembly_3d()

int SPI_ASM_export_assembly_3d ( const std::string & folderName)

Exports a 3D tool assembly.

Version
6.07
Parameters
[in]folderNameName of the export directory
Returns
SPI_YES | SPI_NO

◆ SPI_ASM_free_assembly()

void SPI_ASM_free_assembly ( )

Releases the tool assembly.

Version
6.01
void SPI_ASM_free_assembly()
Releases the tool assembly.
Definition sp_asm01.c:75
See also
SPI_ASM_load_assembly

◆ SPI_ASM_free_toollist()

int SPI_ASM_free_toollist ( )

Releases the assembly tool list.

Version
6.01
int SPI_ASM_free_toollist()
Releases the assembly tool list.
Definition sp_asm01.c:128
Returns
SPI_YES
See also
SPI_ASM_init_toollist

◆ SPI_ASM_get_tool_position()

int SPI_ASM_get_tool_position ( int index,
int * turretNb,
int * toolNb )

Reads the position of a tool with its index.

Version
6.07
Parameters
[in]indexIndex of the tool
[out]turretNbTurret number
[out]toolNbTool number
Returns
SPI_YES | SPI_NO

◆ SPI_ASM_init_toollist()

int SPI_ASM_init_toollist ( )

Initializes the list of assembly tools.

Version
6.01
Returns
number of tools found
Remarks
An assembly must be loaded with SPI_ASM_load_assembly
before you call this function
nbtools := ICALL(SPI_ASM_init_toollist);
int SPI_ASM_init_toollist()
Initializes the list of assembly tools.
Definition sp_asm01.c:97
See also
SPI_ASM_free_toollist

◆ SPI_ASM_load_assembly()

int SPI_ASM_load_assembly ( )

Loads tool assemblies.

Version
6.01
int SPI_ASM_load_assembly()
Loads tool assemblies.
Definition sp_asm01.c:51
Returns
SPI_YES | SPI_NO
See also
SPI_ASM_free_assembly

◆ SPI_ASM_nb_tool_position()

int SPI_ASM_nb_tool_position ( int toolType,
const std::string & toolName )

Reads the number of tool positions.

Version
6.07
Parameters
[in]toolTypeType of tool
[in]toolNameName of tool
Returns
Number of positions

◆ SPI_ASM_read_integer_tool()

void SPI_ASM_read_integer_tool ( int key,
int * iValue )

Reads an integer parameter of the tool.

Version
6.01
Parameters
[in]keyField name to read
MT_NUMERO_TOURELLE
MT_NUMERO_OUTIL
MT_NUMERO_POSTE
MT_POSTE_INDEX
EO_*
[out]iValueValue read
ierr := ICALL(SPI_ASM_select_tool,index);
PCALL(SPI_ASM_read_integer_tool,MT_NUMERO_TOURELLE);
void SPI_ASM_read_integer_tool(int key, int *iValue)
Reads an integer parameter of the tool.
Definition sp_asm01.c:231
int SPI_ASM_select_tool(int index)
Selects a tool from the assembly.
Definition sp_asm01.c:152

◆ SPI_ASM_read_real_tool()

void SPI_ASM_read_real_tool ( int key,
double * rValue )

Reads a real parameter of the tool.

Version
6.01
Parameters
[in]keyField name to read
MT_LONGUEUR_UTILE
MT_TRANSLATION_X
MT_TRANSLATION_Y
MT_TRANSLATION_Z
MT_ROTATION_Y
MT_ROTATION_Z
MT_JAUGE_X
MT_JAUGE_Y
MT_JAUGE_Z
!RO_DIAMETRE!, RO_*
[out]rValueValue read
ierr := ICALL(SPI_ASM_select_tool,index);
PCALL(SPI_ASM_read_real_tool,MT_LONGUEUR_UTILE,rValue);
void SPI_ASM_read_real_tool(int key, double *rValue)
Reads a real parameter of the tool.
Definition sp_asm01.c:275

◆ SPI_ASM_read_string_tool()

void SPI_ASM_read_string_tool ( int key,
std::string & sValue )

Reads a string parameter of the tool.

Version
6.01
Parameters
[in]keyField name to read
SO_NOM_OUTIL
SO_TYPE_OUTIL
SO_*
[out]sValueValue read
ierr := ICALL(SPI_ASM_select_tool,index);
PCALL(SPI_ASM_read_string_tool,SO_NOM_OUTIL);
void SPI_ASM_read_string_tool(int key, std::string &sValue)
Reads a string parameter of the tool.
Definition sp_asm01.c:191

◆ SPI_ASM_select_tool()

int SPI_ASM_select_tool ( int index)

Selects a tool from the assembly.

Version
6.01
Parameters
[in]indexPosition of the tool in the toollist
Remarks
Before selecting a tool, you need to call these two functions
SPI_ASM_load_assembly
SPI_ASM_init_toollist
ierr := ICALL(SPI_ASM_select_tool,index);
Returns
SPI_YES | SPI_NO
See also
SPI_ASM_load_assembly
SPI_ASM_init_toollist