
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
178/226
DRAW.NO.
3.12.12
Start Reading of the CNC Program
(Supported 8 Digits Program Number)
[Name]
pl_nc_upstart2_8d
[Syntax]
#include <pmclib.h>
short pl_nc_upstart2_8d(unsigned short path, long no);
[Arguments]
Input
path: The CNC path number(from 1)
Set the CNC path number. When you set zero, first path CNC is
selected.
no: The CNC program number
Set the CNC program number, which you want to read.
Output
---
[Return]
0: Normal completion.
-1: Rejected
When the CNC is following status, this function cannot be
executed.
- Another command is executing. (Downloading, Verifying,
Uploading, listing program)
- The "Automatic operation signal OP (F000#7)" is on.
- Alarm state of P/S 000, P/S 101 or BP/S.
- The CNC is in background editing mode or MDI mode.
1: The "path" is invalid.
5: No specified program
7: Program protected
[Description]
This function starts reading of the CNC program.
You should call the pl_nc_upstart2_8d() before the calling of the
pl_nc_upload2(). You should call the pl_nc_upend2() after the calling of
the pl_nc_upload2().
When you use this function, you cannot use the conventional function
related to the CNC program operation in "C library for C executor"
together.