B-75044EN/02 4. FA LIBRARY
-147-
DESCRIPTION
Proceed to the following procedure 1 and 2 in case of the synchronous
treatment.
Proceed to the following procedure 1,3 and 4 in case of the asynchronous
treatment.
1 F_WritePMCData(Ex) writes the PMC data to the NC specified by
MachineNumber and ToolPostNumber.
PMCAddress specifies the PMC address such as the one character of
“R” or “D”. And must be terminated by NULL.
PMCNumber specifies the start address of the PMC number.
Count specifies the number of the PMC data you want to write. But the
maximum is “32”.
PMCData points to the array where the PMC data is written. The array
must be composed of the four-byte integral elements of the same number
as Count specifies.
You set the PMC data to PMCData. The PMC data must be set in only
the least significant byte of the four-byte integer. Three higher order
bytes must be set to the value of 0.
Refer to “Reading PMC Data” for the way to write the PMC data to
PMCData.
2 F_WritePMCData doesn’t return until the request is finished. You can
know whether the function has succeeded or not by the return value.
3 F_WritePMCEx requests the system to write the PMC data, and returns
at once. The return value is the descriptor ID for pointing the result. You
must check whether the request is finished or not, and whether its result
is success or not by using F_Response.
4 Call F_FreeID to free the descriptor ID return by F_WritePMCEx
after the request is finished.
RETURN VALUE
TRUE is returned if F_WritePMCData succeeds, FALSE is returned if it
fails.
F_WritePMCDataEx returns a descriptor ID of the positive integer for
pointing the result if it succeeds. If it fails, a value of 0 is returned.
In failure, an error code can be acquired by calling F_GetLastError.