
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
186/226
DRAW.NO.
3.12.17
Start Reading of the CNC Program List
(Supported 8 Digits Program Number)
[Name]
pl_nc_pdirstart2_8d
[Syntax]
#include <pmclib.h>
short pl_nc_pdirstart2_8d(unsigned short path, short type, long * cntl);
[Arguments]
Input
path: The CNC path number(from 1)
Set the CNC path number. When you set zero, first path CNC is
selected.
type: Data type
Set the data type that you want to read.
0: Read the CNC program number
1: Read the CNC program number, comment and the number of
used characters.
*cntl: Control information
Set the start and end number of the CNC program with following
format. If you set zero to the start number, the list is read from the
top of the CNC program. If you set zero to the end number, the
list is read until bottom of the CNC program.
cntl[0] Start program number
cntl[1] End program number
Output
---
[Return]
0: Normal completion.
1: The "path" is invalid.
3: The "type" is invalid.
[Description]
This function starts reading of the CNC program list.
You should call the pl_nc_pdirstart2_8d() before the calling of the
pl_nc_progdir2(). You should call the pl_nc_pdirend2() after the calling
of the pl_nc_progdir2().