3.FP FUNCTIONS B-66284EN/01
- 320 -
O0201
O9001 (SUB-PRO1)
- type=2
O0012 (TEST) 420
O0200 (WORK1) 352
O0201 537
O9001 (SUB-PRO1) 781
[Example]
rdprgdir[0_12_9001_9_10]
The list of the program number of all registered the
processing programs is read from program number O0012
of the [Description] with Type0, and this processing result
is written in D10.
[Value of processing result written in specified PMC area]
0 Successful.
2 Incorrect buffer size “length”.
3 Incorrect format of program “type”.
5 Program number is incorrect.
-1 CNC program directory reading command has been
rejected.
This code is returned under one of following conditions.
• CNC is executing other requested command
(downloading, comparing, uploading or reading
program directory).
• The operation mode of CNC is background editing
mode or MDI mode.
• P/S 000 or P/S 101 alarm is set.
-2 The CNC has been reset. In this case, the process of reading
program directory has been completed normally.
1.47 Delete specified program
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
[Function name]
progdel
[Data type]
2: 2 bytes (signed)
[Format/with arguments]
progdel[number_pmc_address]
[Arguments]
number Program number (0 is specified at the ten keys input.)
All program deletion can be done by specifying -1.
pmc Kind of PMC address for processing result notification
5 : R
9 : D
12 : E (PMC-SB7, PMC for Series 30i)
99 : Processing result is not notified
address PMC address where processing result is written (The
area in two bytes is used from the specified address)
Please specify 0 when you specify 99 for a kind of the
PMC address.