Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 593 -
[Description]
Writes the PMC data within the specified address range.
This function is used for exchanging various data between the C
application and the PMC ladder software.
Specify the discrimination code corresponding to the PMC address to be
written in "buf.type_a".
The discrimination code is either a binary numeric value of 0,..,9 or
an alphabetic character such as 'G' or 'R', etc. (See "Read arbitrary
PMC data (range specified)(pmc_rdpmcrng)")
Specify the type of PMC data to be written in "buf.type_d" with binary
format.
data_type Type of PMC data Byte size
---------------+-----------------------+--------------
0 Byte type 1
1 Word type 2
2 2-Word type 4
Specify the start PMC address in "buf.datano_s" and the end one in
"buf.datano_e" with binary format.
Store the written data in one of "buf.u.cdata[i]", "buf.u.idata[i]"
or "buf.u.ldata[i]" according to its type.
The data format is same as the one in the PMC.
The data format of Timer (T0000-T0079) is as follows.
Timer number Unit
---------------+----------
T0000 - T0007 48 [msec]
T0008 - T0079 8 [msec]
For example, when you want to set 800 [msec] in T0010, specify 100
in this fucntion.
It is inhibited to write to the all data of address 'F' and 'X',
"R9000",..,"R9099", "R9118",..,"R9199" and "K0017",..,"K0019".
(By writing to address 'F', data is written to the 'F' region in the
CNC other than the PMC's.)
Refer "The referenceable range of PMC data of FANUC Series 16/18" in
"Read arbitrary PMC data (range specified)(pmc_rdpmcrng)" for writable
address, etc.