GO2cam Pascal API

Functions

void READ_NC_block_nb (double *Rval)
 read number of punched lines
 
void READ_NC_block_no (int *Inum)
 read block number for current buffer
 
void READ_NC_block_optional (int *Bval)
 read if optional blocks activated or not
 
void READ_NC_character_nb (double *Rval)
 read number of punched characters
 
void READ_NC_coolant (int *Inum)
 read current coolant number
 
void READ_NC_cutcom (int *Bval)
 read current radius compensation dimension
 
void READ_NC_feed (double *Rval, int *Bunit)
 read current feed rate
 
void READ_NC_format_block (int *Inum)
 read current format type for ecritB
 
void READ_NC_format_comment (int *Inum)
 read current format number ECR_COM
 
void READ_NC_g (int *Icode, int *Bactif)
 reads value and activates G group
 
void READ_NC_key (const std::string &Sclef, double *Rval, int *Bactif)
 reads value and activates (y/n) concerned key
 
void READ_NC_key_axis1 (std::string &Sclef)
 read 1st NC axis key according to INIT_PLAN
 
void READ_NC_key_axis2 (std::string &Sclef)
 read 2nd NC axis key according to INIT_PLAN
 
void READ_NC_key_axis3 (std::string &Sclef)
 read 3rd NC axis key according to INIT_PLAN
 
void READ_NC_key_primary (std::string &Sclef)
 read NC primary axis key
 
void READ_NC_key_secondary (std::string &Sclef)
 read NC secondary axis key
 
void READ_NC_linprog (int *Bval)
 read linear axes programming type
 
void READ_NC_m (int *Icode, int *Bactif)
 reads value and activates M group
 
void READ_NC_machining_length (double *Rval)
 read machined length (mm)
 
void READ_NC_origin_coord (double *Rval1, double *Rval2, double *Rval3)
 read current NC offset values
 
void READ_NC_origin_no (int *Inum)
 read NC origin number previously memorized
 
void READ_NC_origin_validate (int Inumgoe, int *Inumpp)
 origin numbers management when their utilization is
combined with programs offsets utilization.
 
void READ_NC_osetno (int *Inum)
 read length compensation number
 
void READ_NC_osetno_dia (int *Inum)
 read diameter compensation number
 
void READ_NC_pax3 (double *Rval)
 read 3rd NC axis current position
in Milling PROCEDURE Rapg80, It will help you remember the bottom point
 
void READ_NC_paxis1 (double *Rval)
 read 1st NC axis current position
 
void READ_NC_paxis2 (double *Rval)
 read 2nd NC axis current position
 
void READ_NC_paxis3_cycle (double *Rval)
 read 3rd NC axis current position on point to pointe cycles (Drilling,...).
It's only a memorized value
in Milling PROCEDURE Rapg80, It will help you remember the entry point.
 
void READ_NC_plane_no (int *Inum)
 read current .DPP plane number
 
void READ_NC_position_old (double *Pt)
 read previous 3 axes position
 
void READ_NC_pplane (double *Rval1, double *Rval2)
 read 1st and 2nd NC axes current position
 
void READ_NC_primary (double *Rval)
 read primary rotary axis current position
 
void READ_NC_program_name (std::string &Str)
 read program name
 
void READ_NC_program_no (int *Inum)
 read program number
 
void READ_NC_rotation (int *Bsens)
 read current spindle rotation direction
 
void READ_NC_rotation_livetool (int *Bsens)
 read current livetool direction on turning cycle
 
void READ_NC_rotprog (int *Bval)
 read rotary axes programming type
 
void READ_NC_secondary (double *Rval)
 read NC secondary rotary axis position
 
void READ_NC_speed (double *Rval)
 read NC spindle speed.
The real value is possibly restored, according to the Code
 
void READ_NC_spindle (double *Rval, int *Bunite, int *Igamme)
 read current NC spindle
 
void READ_NC_spindle_livetool (double *Rval)
 read current NC spindle livetool on turning cycle
 
void READ_NC_tool_no (int *Inum)
 read NC current tool number
 
void READ_NC_toolchgt_point (int Itrl, double *Ptchgt)
 read tool change point
 

Detailed Description

Read current NC states

Function Documentation

◆ READ_NC_block_nb()

void READ_NC_block_nb ( double * Rval)

read number of punched lines

Parameters
[out]Rvalnumber
PCALL(READ_NC_block_nb,int_nbLine);
void READ_NC_block_nb(double *Rval)
read number of punched lines
Definition pp_pas22.c:562

◆ READ_NC_block_no()

void READ_NC_block_no ( int * Inum)

read block number for current buffer

Parameters
[out]Inumnumber of next punchb() block
PCALL(READ_NC_block_no,int_block_no);
void READ_NC_block_no(int *Inum)
read block number for current buffer
Definition pp_pas22.c:626
See also
WRITE_NC_block_no

◆ READ_NC_block_optional()

void READ_NC_block_optional ( int * Bval)

read if optional blocks activated or not

Parameters
[out]BvalCONST_YES
CONST_NO
void READ_NC_block_optional(int *Bval)
read if optional blocks activated or not
Definition pp_pas22.c:29
See also
WRITE_NC_block_optional

◆ READ_NC_character_nb()

void READ_NC_character_nb ( double * Rval)

read number of punched characters

Parameters
[out]Rvalnumber
PCALL(READ_NC_character_nb,real_character_nb);
void READ_NC_character_nb(double *Rval)
read number of punched characters
Definition pp_pas22.c:534

◆ READ_NC_coolant()

void READ_NC_coolant ( int * Inum)

read current coolant number

Parameters
[out]Inumcurrent coolant number
PCALL(READ_NC_coolant,currentCoolant);
void READ_NC_coolant(int *Inum)
read current coolant number
Definition pp_pas22.c:240

◆ READ_NC_cutcom()

void READ_NC_cutcom ( int * Bval)

read current radius compensation dimension

Parameters
[out]BvalCONST_RIGHT
CONST_LEFT
CONST_CENTER
PCALL(READ_NC_cutcom,currentCompensation);
void READ_NC_cutcom(int *Bval)
read current radius compensation dimension
Definition pp_pas22.c:299
See also
OUTPUT_NC_cutcom, READ_PATH_cutcom

◆ READ_NC_feed()

void READ_NC_feed ( double * Rval,
int * Bunit )

read current feed rate

Parameters
[out]Rvalfeed value
[out]BunitCONST_MMPM
CONST_MMPR
PCALL(READ_NC_feed,real_CurrentFeed, int_BUnitRead);
void READ_NC_feed(double *Rval, int *Bunit)
read current feed rate
Definition pp_pas22.c:332
See also
OUTPUT_NC_feed, WRITE_NC_feed, READ_PATH_feed

◆ READ_NC_format_block()

void READ_NC_format_block ( int * Inum)

read current format type for ecritB

Parameters
[out]Inumcurrent format number
PCALL(READ_NC_FORMAT_BLOCK,int_currentFormat);
See also
WRITE_NC_comment_format, ECRITB, PUNCHB

◆ READ_NC_format_comment()

void READ_NC_format_comment ( int * Inum)

read current format number ECR_COM

Parameters
[out]Inumcurrent format number
PCALL(READ_NC_format_comment,int_currentFormat);
void READ_NC_format_comment(int *Inum)
read current format number ECR_COM
Definition pp_pas22.c:392
See also
WRITE_NC_comment_format

◆ READ_NC_g()

void READ_NC_g ( int * Icode,
int * Bactif )

reads value and activates G group

Parameters
[in,out]IcodeG belonging to group (in)
Icode G group current value (out)
[out]BactifCONST_YES
CONST_NO
PCALL(READ_NC_G,int_GCode,int_Active);
See also
OUTPUT_NC_g, WRITE_NC_g, WRITE_NC_g_force

◆ READ_NC_key()

void READ_NC_key ( const std::string & Sclef,
double * Rval,
int * Bactif )

reads value and activates (y/n) concerned key

Parameters
[in]Sclefstring identifying the key
[out]Rvalnumerical value
[out]BactifCONST_YES
CONST_NO
PCALL(READ_NC_key,'T',out_prec,isactif);
void READ_NC_key(const std::string &Sclef, double *Rval, int *Bactif)
reads value and activates (y/n) concerned key
Definition pp_pas22.c:59
See also
OUTPUT_NC_tab, WRITE_NC_key

◆ READ_NC_key_axis1()

void READ_NC_key_axis1 ( std::string & Sclef)

read 1st NC axis key according to INIT_PLAN

Parameters
[out]Sclefstring identifying the key
PCALL(READ_NC_key_axis1,str_Ax1Key);
void READ_NC_key_axis1(std::string &Sclef)
read 1st NC axis key according to INIT_PLAN
Definition pp_pas22.c:101

◆ READ_NC_key_axis2()

void READ_NC_key_axis2 ( std::string & Sclef)

read 2nd NC axis key according to INIT_PLAN

Parameters
[out]Sclefstring identifying the key
PCALL(READ_NC_key_axis2,str_Ax2Key);
void READ_NC_key_axis2(std::string &Sclef)
read 2nd NC axis key according to INIT_PLAN
Definition pp_pas22.c:129

◆ READ_NC_key_axis3()

void READ_NC_key_axis3 ( std::string & Sclef)

read 3rd NC axis key according to INIT_PLAN

Parameters
[out]Sclefstring identifying the key
PCALL(READ_NC_key_axis3,str_Ax3Key);
void READ_NC_key_axis3(std::string &Sclef)
read 3rd NC axis key according to INIT_PLAN
Definition pp_pas22.c:157

◆ READ_NC_key_primary()

void READ_NC_key_primary ( std::string & Sclef)

read NC primary axis key

Parameters
[out]Sclefstring identifying the key
PCALL(READ_NC_key_primary,str_PrimaryKey);
void READ_NC_key_primary(std::string &Sclef)
read NC primary axis key
Definition pp_pas22.c:184

◆ READ_NC_key_secondary()

void READ_NC_key_secondary ( std::string & Sclef)

read NC secondary axis key

Parameters
[out]Sclefstring identifying the key
PCALL(READ_NC_key_secondary,str_SecondaryKey);
void READ_NC_key_secondary(std::string &Sclef)
read NC secondary axis key
Definition pp_pas22.c:212

◆ READ_NC_linprog()

void READ_NC_linprog ( int * Bval)

read linear axes programming type

Parameters
[out]BvalCONST_ABSOLUTE
CONST_RELATIVE
PCALL(READ_NC_linprog,int_linetype);
void READ_NC_linprog(int *Bval)
read linear axes programming type
Definition pp_pas22.c:1074
See also
WRITE_NC_linprog

◆ READ_NC_m()

void READ_NC_m ( int * Icode,
int * Bactif )

reads value and activates M group

Parameters
[in,out]IcodeM belonging to group (in)
Icode M group current value (out)
[out]BactifCONST_YES
CONST_NO
PCALL(READ_NC_m,Mval,Bactif);
void READ_NC_m(int *Icode, int *Bactif)
reads value and activates M group
Definition pp_pas22.c:494
See also
OUTPUT_NC_m, WRITE_NC_m, WRITE_NC_m_force

◆ READ_NC_machining_length()

void READ_NC_machining_length ( double * Rval)

read machined length (mm)

Parameters
[out]Rvallength
Remarks
At PP_END, total machining length is obtained
At FILE_END, the length of the last external
subprogram is obtained if it exists, else idem PP_END
PCALL(READ_NC_machining_length,real_length);
void READ_NC_machining_length(double *Rval)
read machined length (mm)
Definition pp_pas22.c:458

◆ READ_NC_origin_coord()

void READ_NC_origin_coord ( double * Rval1,
double * Rval2,
double * Rval3 )

read current NC offset values

Parameters
[out]Rval1value on 1st axis
[out]Rval2value on 2nd axis
[out]Rval3value on 3rd axis
PCALL(READ_NC_ORIGIN_COORD,currentX,currentY,currentZ);
See also
WRITE_NC_origin_coord, READ_PART_ori_coord

◆ READ_NC_origin_no()

void READ_NC_origin_no ( int * Inum)

read NC origin number previously memorized

Parameters
[out]Inumorigin number
PCALL(READ_NC_origin_no,int_origin_no);
void READ_NC_origin_no(int *Inum)
read NC origin number previously memorized
Definition pp_pas22.c:710
See also
WRITE_NC_origin_no, READ_PART_origin_no

◆ READ_NC_origin_validate()

void READ_NC_origin_validate ( int Inumgoe,
int * Inumpp )

origin numbers management when their utilization is
combined with programs offsets utilization.

Parameters
[out]Inumgoeorigin number of READ_PART_origin_no (cumul SPG,PLANS)
[out]&InumppPP origin number (for each added origin)
PCALL(READ_NC_origin_validate,origin_number,origine_PP);
void READ_NC_origin_validate(int Inumgoe, int *Inumpp)
origin numbers management when their utilization is combined with programs offsets utilization.
Definition pp_pas22.c:854
See also
WRITE_NC_plane_origin READ_PART_origin_no READ_PART_plane_ori_no

◆ READ_NC_osetno()

void READ_NC_osetno ( int * Inum)

read length compensation number

Parameters
[out]Inumlength compensation number
PCALL(READ_NC_osetno,int_length_compensation);
void READ_NC_osetno(int *Inum)
read length compensation number
Definition pp_pas22.c:682
See also
WRITE_NC_osetno_dia

◆ READ_NC_osetno_dia()

void READ_NC_osetno_dia ( int * Inum)

read diameter compensation number

Parameters
[out]Inumdiameter compensation number
PCALL(READ_NC_osetno_dia,int_diameter_compensation);
void READ_NC_osetno_dia(int *Inum)
read diameter compensation number
Definition pp_pas22.c:654
See also
WRITE_NC_osetno_dia

◆ READ_NC_pax3()

void READ_NC_pax3 ( double * Rval)

read 3rd NC axis current position
in Milling PROCEDURE Rapg80, It will help you remember the bottom point

Parameters
[out]Rval3rd axis position value
PCALL(READ_NC_pax3,rval3);
void READ_NC_pax3(double *Rval)
read 3rd NC axis current position in Milling PROCEDURE Rapg80, It will help you remember the bottom...
Definition pp_pas22.c:946
See also
OUTPUT_NC_paxis3, READ_PATH_point, WRITE_NC_paxis3

◆ READ_NC_paxis1()

void READ_NC_paxis1 ( double * Rval)

read 1st NC axis current position

Parameters
[out]Rval1st axis position value
PCALL(READ_NC_paxis1,rval1);
void READ_NC_paxis1(double *Rval)
read 1st NC axis current position
Definition pp_pas22.c:886
See also
OUTPUT_NC_paxis1, READ_PATH_point, WRITE_NC_paxis1

◆ READ_NC_paxis2()

void READ_NC_paxis2 ( double * Rval)

read 2nd NC axis current position

Parameters
[out]Rval2nd axis position value
PCALL(READ_NC_paxis2,rval2);
void READ_NC_paxis2(double *Rval)
read 2nd NC axis current position
Definition pp_pas22.c:916
See also
OUTPUT_NC_paxis2, READ_PATH_point, WRITE_NC_paxis2

◆ READ_NC_paxis3_cycle()

void READ_NC_paxis3_cycle ( double * Rval)

read 3rd NC axis current position on point to pointe cycles (Drilling,...).
It's only a memorized value
in Milling PROCEDURE Rapg80, It will help you remember the entry point.

Parameters
[out]Rvalvalue
void READ_NC_paxis3_cycle(double *Rval)
read 3rd NC axis current position on point to pointe cycles (Drilling,...). It's only a memorized v...
Definition pp_pas22.c:977
See also
WRITE_NC_paxis3_cycle

◆ READ_NC_plane_no()

void READ_NC_plane_no ( int * Inum)

read current .DPP plane number

Parameters
[out]Inumcurrent .DPP plane number (WRITE_NC_init_plane)
PCALL(READ_NC_plane_no,int_plane_no);
void READ_NC_plane_no(int *Inum)
read current .DPP plane number
Definition pp_pas22.c:767
See also
WRITE_NC_init_plane

◆ READ_NC_position_old()

void READ_NC_position_old ( double * Pt)

read previous 3 axes position

Parameters
[out]Ptprevious position coordinates
PCALL(READ_NC_position_old,pnt_position_old);
void READ_NC_position_old(double *Pt)
read previous 3 axes position
Definition pp_pas22.c:825

◆ READ_NC_pplane()

void READ_NC_pplane ( double * Rval1,
double * Rval2 )

read 1st and 2nd NC axes current position

Parameters
[out]Rval11st axis position value
[out]Rval22nd axis position value
PCALL(READ_NC_pplane,Rval1,Rval2);
void READ_NC_pplane(double *Rval1, double *Rval2)
read 1st and 2nd NC axes current position
Definition pp_pas22.c:1011
See also
OUTPUT_NC_pplane, WRITE_NC_pplane, READ_NC_pax3

◆ READ_NC_primary()

void READ_NC_primary ( double * Rval)

read primary rotary axis current position

Parameters
[out]Rvalprimary rotary axis value
PCALL(READ_NC_primary,a1);
void READ_NC_primary(double *Rval)
read primary rotary axis current position
Definition pp_pas22.c:1044
See also
WRITE_NC_primary, OUTPUT_NC_primary

◆ READ_NC_program_name()

void READ_NC_program_name ( std::string & Str)

read program name

Parameters
[out]Strcharacter string indicating program
PCALL(READ_NC_program_name,str_program_name);
void READ_NC_program_name(std::string &Str)
read program name
Definition pp_pas22.c:598
See also
WRITE_NC_program_name

◆ READ_NC_program_no()

void READ_NC_program_no ( int * Inum)

read program number

Parameters
[out]Inumnumber
PCALL(READ_NC_program_no,numprog);
void READ_NC_program_no(int *Inum)
read program number
Definition pp_pas22.c:796
See also
WRITE_NC_program_no

◆ READ_NC_rotation()

void READ_NC_rotation ( int * Bsens)

read current spindle rotation direction

Parameters
[out]BsensCONST_CCW
CONST_CW
CONST_BREAK
PCALL(READ_NC_rotation,Bsens);
void READ_NC_rotation(int *Bsens)
read current spindle rotation direction
Definition pp_pas22.c:1168
See also
OUTPUT_NC_rotation, WRITE_NC_rotation

◆ READ_NC_rotation_livetool()

void READ_NC_rotation_livetool ( int * Bsens)

read current livetool direction on turning cycle

Version
6.09
Parameters
[out]BsensCONST_CCW
CONST_CW
CONST_BREAK
void READ_NC_rotation_livetool(int *Bsens)
read current livetool direction on turning cycle
Definition pp_pas22.c:1201

◆ READ_NC_rotprog()

void READ_NC_rotprog ( int * Bval)

read rotary axes programming type

Parameters
[out]BvalCONST_ABSOLUTE
CONST_RELATIVE
PCALL(READ_NC_rotprog,int_Rottype);
void READ_NC_rotprog(int *Bval)
read rotary axes programming type
Definition pp_pas22.c:1104
See also
WRITE_NC_rotprog

◆ READ_NC_secondary()

void READ_NC_secondary ( double * Rval)

read NC secondary rotary axis position

Parameters
[out]Rvalsecondary rotary axis value
void READ_NC_secondary(double *Rval)
read NC secondary rotary axis position
Definition pp_pas22.c:1232
See also
OUTPUT_NC_secondary, OUTPUT_NC_secondary

◆ READ_NC_speed()

void READ_NC_speed ( double * Rval)

read NC spindle speed.
The real value is possibly restored, according to the Code

Version
4.5
Parameters
[out]Rvalspeed value (0. if in CCS)
PCALL(READ_NC_speed,real_speed);
void READ_NC_speed(double *Rval)
read NC spindle speed. The real value is possibly restored, according to the Code
Definition pp_pas22.c:1262

◆ READ_NC_spindle()

void READ_NC_spindle ( double * Rval,
int * Bunite,
int * Igamme )

read current NC spindle

Parameters
[out]Rvalspeed value
[out]BuniteCONST_RPM
CONST_SMM
[out]Igammespindle speed range number (direct GOE)
PCALL(READ_NC_spindle,real_CurSpeed,int_CurBUnit, int_CurRange);
void READ_NC_spindle(double *Rval, int *Bunite, int *Igamme)
read current NC spindle
Definition pp_pas22.c:1293
See also
OUTPUT_NC_spindle

◆ READ_NC_spindle_livetool()

void READ_NC_spindle_livetool ( double * Rval)

read current NC spindle livetool on turning cycle

Version
6.09
Parameters
[out]Rvalspeed value
PCALL(READ_NC_spindle_livetool,real_spindle_livetool);
void READ_NC_spindle_livetool(double *Rval)
read current NC spindle livetool on turning cycle
Definition pp_pas22.c:1326

◆ READ_NC_tool_no()

void READ_NC_tool_no ( int * Inum)

read NC current tool number

Parameters
[out]Inumtool number
PCALL(READ_NC_tool_no,numout_p);
void READ_NC_tool_no(int *Inum)
read NC current tool number
Definition pp_pas22.c:738
See also
WRITE_NC_tool_no

◆ READ_NC_toolchgt_point()

void READ_NC_toolchgt_point ( int Itrl,
double * Ptchgt )

read tool change point

Parameters
[in]Itrlturret number
[out]Ptchgttool change point coordinates
PCALL(READ_NC_toolchgt_point,int_turretno,real_toolchgt_point);
void READ_NC_toolchgt_point(int Itrl, double *Ptchgt)
read tool change point
Definition pp_pas22.c:1134
See also
WRITE_NC_toolchgt_point