News CNCnetPDM About us Support  
         
  

PMC_WRPMCPARAM | PMC

Description

The PMC parameter(timer, counter, keep relay, and data) is downloaded by the tape format.
When you execute this function, set '1' for PWE of the CNC parameter and make the state of CNC an emergency stop.
Refer to the description of pmc_rdpmcparam for the format of PMC parameter.
When the last character of buffer is not "A" or "%", EW_DATA error occurs.
MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h" or "fwlib64.h"

FWLIBAPI short WINAPI pmc_wrpmcparam(unsigned short FlibHndl, long *length, char *buff);

Arguments : HSSB

FlibHndl   [ in ]

Specify the library handle.
See "Library handle" for details.

length   [ in/out ]
Specify the pointer to the variable where the character size which wants to write is set.
The function returns the length of the character which was written actually.
buff   [ in ]
Specify the pointer to the area where the PMC parameter which wants to be written is stored.

Return

EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.

The major error codes are as follows.

Return code Meaning/Error handling
EW_RESET
(-2)
Stop request
All PMC parameter already was written.
EW_FUNC
(1)
pmc_wrprmstart function has not been executed.
EW_LENGTH
(2)
Data length error
The value of 0 or less was specified for write size(*length).
EW_DATA
(5)
Data error
The writing format is wrong.
In case of 0i-F,30i/31i/32i, in order to get more information for this err_no return value, execute pmc_getdtailerrfunction.
The following detail status will be set onto the member, err_no of ODBERR structure.
1:The first character string was not "%;".
2:The end of the character string was not ";(0x0A)" or "%".
3:The character string of second block was not the header information.
4:A model name of header information and an actual model are different.
5:The character by which header information and ID information were delimited was not ",".
6:The character string of ID information on header information was not "MSID =".
7:The MSID number on header information and current PMC unit type are different.
8:The last character of header information was not ")".
9:The first character of parameter block was not "N".
10:The address number of parameter block was wrong. (no six digits)
11:The address number of parameter block was wrong. (the head of N number is not "6")
12:The third character of the parameter block was not "0", "1", "2", "3", "4", or "9".
13:The block of larger group information than the total of the group was specified.
14:The data table control information was wrong. (number which cannot be specified)
15:The head of the character for the set value on the parameter block was not "P".
16:The character which was not the numerical value was included in the setting value. (format error of setting value)
17:The number of characters of bit patterns was not eight characters. (format error of setting value)
18:The range of address was wrong.
19:The total number of data table control information was wrong.
20:The data table control information was wrong.
And the block number(0-) in which includ an incorrect data will be set onto the member, err_dtno of ODBPMCERR.
EW_NOOPT
(6)
no option
EW_PARAM
(9)
Parameter error
CNC parameter(PWE) is '0'.
EW_PATH
(11)
PMC unit type was wrong.(only 0i-F,30i/31i/32i)
The PMC unit type was changed.
EW_REJECT
(13)
CNC execution rejection
CNC is not in "Emergency" state.

As for the other return codes or the details, see "Return status of Data window function"

CNC option

For HSSB connection,

    The extended driver/library function is necessary.

CNC parameter

This function is related to the following CNC parameter.
See the manual of CNC parameter for details.

    No.8900#0(PWE) (must be set)

CNC mode

This function can be used in any CNC mode.

Available CNC

0i-A 0i-B/C(Note) 0i-D 0i-F 15 15i 16 18 21 16i-A 18i-A 21i-A 16i-B 18i-B 21i-B 30i-A 30i-B
M (Machining)X X O O X X X X X H H H H H H H O
T (Turning) X X O O X - X X X H H H H H H H O
LC (Loader) - - - - - - X X X H H H H H H - -

0i-D0i-F16i18i30i-A30i-B
P (Punch press)H H H H - H
L (Laser) - - H - - H
W (Wire) - - X X X X


Power Mate i-DX
Power Mate i-HX
Power Motion i-AX

"O" : Both Ethernet and HSSB
"E" : Ethernet
"H" : HSSB
"X" : Cannot be used
"-" : None

Note) 0i-C does not support the HSSB function.

See Also

pmc_rdprmstart   pmc_rdpmcparam   pmc_rdprmend   pmc_wrprmstart   pmc_wrprmend  

Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy. 

https://www.inventcom.net/fanuc-focas-library/pmc/pmc_wrpmcparam
Fanuc Focas Library | Pmc | flist_Pmc
PMC: Function related to PMC... [read more]
flist_Pmc
Fanuc Focas Library | Pmc | pmc_crdmsg
Description Reads the data of 32 bytes transmitted from the PMC. It is necessary to transmit the data on the PMC side to read the... [read more]
pmc_crdmsg
Fanuc Focas Library | Pmc | pmc_cwrmsg
Description Writes the data of 32 bytes transmitted to the PMC. It is necessary to receive the data on the PMC side to write the... [read more]
pmc_cwrmsg
Fanuc Focas Library | Pmc | pmc_getdtailerr
Description Gets the detailed error information after the function has been executed. The detailed error information is stored in "err_no", "err_dtno" of... [read more]
pmc_getdtailerr
Fanuc Focas Library | Pmc | pmc_get_current_pmc_unit
Description Get the current PMC unit type.... [read more]
pmc_get_current_pmc_unit
Fanuc Focas Library | Pmc | pmc_get_number_of_pmc
Description Reads the number of existing PMC paths (i.e. number of unit).... [read more]
pmc_get_number_of_pmc
Fanuc Focas Library | Pmc | pmc_get_pmc_unit_types
Description Reads the PMC system information that shows what kind of PMC units compose the multi-path PMC system.... [read more]
pmc_get_pmc_unit_types
Fanuc Focas Library | Pmc | pmc_get_timer_type
Description Reads the PMC timer type of the specified timer number.... [read more]
pmc_get_timer_type
Fanuc Focas Library | Pmc | pmc_kpmsiz
Description Reads the maximum size of the extended backup memory.... [read more]
pmc_kpmsiz
Fanuc Focas Library | Pmc | pmc_rdalmmsg
Description Reads the alarm messages from PMC.... [read more]
pmc_rdalmmsg
Fanuc Focas Library | Pmc | pmc_rdcntldata
Description Reads the control data to manage PMC data table (address D). This function is not available at PMC-NA. Refer to the programming... [read more]
pmc_rdcntldata
Fanuc Focas Library | Pmc | pmc_rdcntlgrp
Description Reads the total number of groups of the control data to manage PMC data table(address D). This function is not available at PMC-NA.... [read more]
pmc_rdcntlgrp
Fanuc Focas Library | Pmc | pmc_rdkpm
Description Reads the contents of the extended backup memory of PMC specified by "offset", "length". The data are stored in "data"... [read more]
pmc_rdkpm
Fanuc Focas Library | Pmc | pmc_rdkpm2
Description Reads the contents of the extended backup memory of PMC specified by "offset", "length". The data are stored in "data"... [read more]
pmc_rdkpm2
Fanuc Focas Library | Pmc | pmc_rdmsg
Description Reads the data of 32 bytes transmitted from the PMC. It is necessary to transmit the data on the PMC side to read the... [read more]
pmc_rdmsg
Fanuc Focas Library | Pmc | pmc_rdpmcinfo
Description Reads the data information about the attribute of each kind of PMC, the effective range of PMC address, etc.... [read more]
pmc_rdpmcinfo
Fanuc Focas Library | Pmc | pmc_rdpmcparam
Description The PMC parameter(timer, counter, keep relay, and data) is uploaded by the tape format. When you execute this function, change to... [read more]
pmc_rdpmcparam
Fanuc Focas Library | Pmc | pmc_rdpmcrng
Description Reads the PMC data of the specified PMC address/range. This function is used to exchange the data between the... [read more]
pmc_rdpmcrng
Fanuc Focas Library | Pmc | pmc_rdpmctitle
Description Reads the PMC title data from PMC. When this function is executed while editing the title data with PMC, the return value... [read more]
pmc_rdpmctitle
Fanuc Focas Library | Pmc | pmc_rdprmend
Description End of upload of the PMC parameter(timer, counter, keep relay, and data) by the tape format. This function is executable other... [read more]
pmc_rdprmend
Fanuc Focas Library | Pmc | pmc_rdprmstart
Description Starts uploading the PMC parameter(timer, counter, keep relay, and data) of the tape format. To uploading of PMC parameter, this... [read more]
pmc_rdprmstart
Fanuc Focas Library | Pmc | pmc_select_pmc_unit
Description Selects PMC that will be the target of other PMC FOCAS2 function by the unit type.... [read more]
pmc_select_pmc_unit
Fanuc Focas Library | Pmc | pmc_set_timer_type
Description Writes the PMC timer type of the specified timer number.... [read more]
pmc_set_timer_type
Fanuc Focas Library | Pmc | pmc_wrcntldata
Description Writes the control data to manage PMC data table (address D). This function is not available at PMC-NA. Refer to the programming... [read more]
pmc_wrcntldata
Fanuc Focas Library | Pmc | pmc_wrcntlgrp
Description Writes the total number of groups of the control data to manage PMC data table(address D). This function is not available at PMC-NA.... [read more]
pmc_wrcntlgrp
Fanuc Focas Library | Pmc | pmc_wrkpm
Description Writes the data to the extended backup memory of PMC specified by "offset", "length". The data must be stored in "data" as... [read more]
pmc_wrkpm
Fanuc Focas Library | Pmc | pmc_wrkpm2
Description Writes the data to the extended backup memory of PMC specified by "offset", "length". The data must be stored in "data" as... [read more]
pmc_wrkpm2
Fanuc Focas Library | Pmc | pmc_wrmsg
Description Writes the data of 32 bytes transmitted to the PMC. It is necessary to receive the data on the PMC side to write the... [read more]
pmc_wrmsg
Fanuc Focas Library | Pmc | pmc_wrpmcrng
Description Writes the PMC data of the specified PMC address/range. This function is used to exchange the data between the... [read more]
pmc_wrpmcrng
Fanuc Focas Library | Pmc | pmc_wrprmend
Description End of download of the PMC parameter(timer, counter, keep relay, and data) by the tape format. Even if the PWE of CNC parameter is... [read more]
pmc_wrprmend
Fanuc Focas Library | Pmc | pmc_wrprmstart
Description Starts downloading the PMC parameter(timer, counter, keep relay, and data) of the tape format. To downloading of PMC parameter,... [read more]
pmc_wrprmstart
Modified: 2018-06-11