
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
167/226
DRAW.NO.
3.12.4
Start DNC running of the CNC Program
[Name]
pl_nc_dncstart2
[Syntax]
#include <pmclib.h>
short pl_nc_dncstart2(unsigned short path);
[Arguments]
Input
path: The CNC path number(from 1)
Set the CNC path number. When you set zero, first path CNC is
selected.
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)
- Alarm state
- The "Automatic operation signal OP (F000#7)" is on.
- The "DMMC signal (G42#7)" is off.
1: The "path" is invalid.
[Description]
This function starts a DNC running of the CNC program.
You should call the pl_nc_dncstart2() before the calling of the
pl_nc_dnc2(). You should call the pl_nc_dncend2() after the calling of
the pl_nc_dnc2().
The procedure of the DNC running is shown below.
(1) Set the CNC to MEM mode.
(2) Turn the "DMMC signal (G42#7)" on.
(3) Execute the pl_nc_dncstart2().
(4) Turn the "ST signal (G7#2)" off and on and off to start program.
(5) Transfer the CNC program using the pl_nc_dnc2().
(6) Execute the pl_nc_dncend2().
(7) Reset the CNC after the completion of the CNC program.
(8) Turn the "DMMC signal (G42#7)" off.