
6. OBTAINING THE SYSTEM
INFORMATION
B–61863E–1/06
PMC LIBRARY
204
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f
[Name]
pl_symcmt
[Description]
Reads symbol and comment data at the specified PMC address.
[Format]
ret = pl_symcmt(id,type,offset_addr,bit_pos,symbl,cmnt,size) ;
unsigned short int ret;
unsigned char id;
unsinged char type;
unsigned short int offset_addr;
unsigned short int bit_pos;
unsigned char *symbl;
unsigned char *cmnt;
unsigned short int *size;
[Input]
id PMC address identification code for the symbol and
comment data to be read
type PMC address type for the symbol and comment data
to be read
(0: byte address, 1: bit address)
offset_addr Offset address from each type of PMC address
bit_pos PMC address bit position (specify 0 to 7 for type = 1.)
[Output]
symbl Symbol data character string which was read (up to six
characters)
cmnt Comment data character string which was read (up to
30 characters)
size Length of comment data which was read
[Returns]
ret
0 : Normal termination
1 : The specified PMC address is incorrect. (The id, type,
offset_addr, and bit_pos values are out of range.)
Alternatively, symbol and comment data are not defined for the
specified PMC address.
[Remarks]
Identification code of PMC address are shown below.
For the range of address on each type of PMC, refer to the “I PMC
SEQUENCE PROGRAM 3. ADDRESS” in “FANUC PMC
MODEL PA1 / PA3 / SA1 / SA2 / SA3 / SA5 / SB / SB2 / SB3 / SB4
/ SB5 / SB6 / SC / SC3 / SC4 / NB / NB2 / NB6 PROGRAMMING
MANUAL LADDER LANGUAGE (B–61863E)”.
6.2
READING SYMBOL
AND COMMENT
DATA OF THE
SEQUENCE
PROGRAM