
The referenceable range of PMC data of FANUC Series 30i
I.D. code Kind of PMC address
---------------+-----------------------
0,'G' G (PMC->CNC)
1,'F' F (CNC->PMC)
2,'Y' Y (PMC->Machine)
3,'X' X (Machine->PMC)
4,'A' A (Message request)
5,'R' R (Relay)
6,'T' T (Timer)
7,'K' K (Keep relay)
8,'C' C (Counter)
9,'D' D (Data table)
(Note 1) It is not possible to write to all areas of address 'F' and 'X', and
"R9000 to R9099", "R9118 to R9199", and "K0017 to K0019" must not be written.
(Note 2) Addresses G1xxx and F1xxx are an I/O area for the second path, and
addresses G2xxx and F2xxx, for third path.
[Example]
The following program reads and displays the feed rate override value
(G0012).
#include <data.h>
#include <fwindow.h>
#include <stdio.h>
void example( void )
{
unsigned short fov ;
struct iodbpmc buf ;
pmc_rdpmcrng( 'G', 0, 12, 12, 8+1*1, &buf ) ;
fov = (unsigned char)buf.u.cdata[0] ;
printf( "Current feedrate override is %u[%].¥n", fov ) ;
}