
3.FP FUNCTIONS B-66244EN/03
- 244 -
1.46 Reading program directory
[Function name]
rdprgdir
[Data type]
8 : Rectangle String
[Format/with arguments]
rdprgdir[type_sprg_eprg_pmc_address]
[Arguments]
type Format of program list
0 : O number only
1 : O number and comment
2 : O number, comment, and the use number of
characters
sprg Start program number to be read
eprg End program number to be read.
pmc Kind of PMC address for processing result
notification
5 : R
9 : D
12:E(PMC-SB7)
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.
[Description]
Reads the list of program numbers (program directory) of all
CNC programs registered in CNC.
For instance, when the following CNC programs are
registered, it is displayed as follows.
Program number (COMMENT) Character number
O0012 (TEST) ; 420
O0200 (WORK1) ; 352
O0201 ; 537
O9001 (SUB-PRO1) ; 781
- type=0 (Change line by the unit of O number when the
display reaches a right edge)
O0012 O0200 O0201 O9001
- type=1
O0012 (TEST)
O0200 (WORK1)
O0201
O9001 (SUB-PRO1)