
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
184/226
DRAW.NO.
3.12.16
Read the CNC Program Memory Information
[Name]
pl_nc_dir2
[Syntax]
#include <pmclib.h>
short pl_nc_dir2(unsigned short path, short * cntl);
[Arguments]
Input
path: The CNC path number(from 1)
Set the CNC path number. When you set zero, first path CNC is
selected.
cntl: Pointer to the array to store the read data
Set the pointer to the array, which the read data is stored. The
12-byte array is required.
Output
*cntl: Read data
The read data is stored with the following format.
cntl[0] The number of CNC
programs
cntl[1] The number of CNC
programs, which you can
register.
cntl[2]
cntl[3]
Used memory (Characters)
cntl[4]
cntl[5]
Unused memory
(Characters)
[Return]
0: Normal completion.
1: The "path" is invalid.
[Description]
This function reads the CNC program memory information.
You can read the number of CNC programs, the number of CNC
programs that you can register, and the used and unused characters in the
memory can be read.
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]