
5. PMC ADDRESS ACCESS
B–61863E–1/06
PMC LIBRARY
198
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_wrcntldata
[Description]
Writes a control data of PMC data table.
[Format]
ret = pl_wrcntldata(length, buf)
short ret;
short length;
short *buf;
[Input]
length Size of data buffer(8 m+6, m:group number)
*buf Control data of data table
datano_s
dummy
datano_e
tbl_prm
data_type
data_no
data_adr
tbl_prm
data_type
0
2
4
6
8
10
12
14
N–8
N–6
N–4
N–2
N
Start group number to write (s)
(not used)
End group number to write (e)
Table parameter of group “s”
Data type of group “s”
Data number of group “s” (byte)
Top address of group “s”
Table parameter of group “e”
Data type of group “e”
Data number of group “e” (byte)
Top address of group “e”
buf
data_no
data_adr
[Returns]
ret
0 : Normal termination
3 : Start group number or End group number to write is incorrect.
Size of data buffer is incorrect.
[Remarks]
Please refer the following manual for the detail of input data.
FANUC PMC MODEL PA1 / PA3 / SA1 / SA2 / SA3 / SA5 / SB / SB2
/ SB3 / SB4 / SB5 / SB6 / SC / SC3 / SC4 / NB / NB2 / NB6 LADDER
LANGUAGE PROGRAMMING MANUAL (B–61863E)
5.8
WRITING A DATA
TABLE CONTROL
DATA