
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
213/226
DRAW.NO.
3.12.37
Start Reading of the CNC Program List
(Supported 8 Digits Program Number)
[Name]
pl_nc_pdirstart_8d
[Syntax]
#include <pmclib.h>
short pl_nc_pdirstart_8d(short type, long * cntl);
[Arguments]
Input
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.
3: The "type" is invalid.
[Description]
This function starts reading of the CNC program list.
You should call the pl_nc_pdirstart_8d() before the calling of the
pl_nc_progdir(). You should call the pl_nc_pdirend() after the calling of
the pl_nc_progdir().
When you use this function, you cannot use the conventional function
related to the CNC program operation in "C library for C executor"
together.
[Related Function]
cnc_rdprogdir()