News CNCnetPDM About us Support  
       
  

PMC_RDPMCPARAM | PMC

TOP

Description

The PMC parameter(timer, counter, keep relay, and data) is uploaded by the tape format.

When you execute this function, change to 'EDIT' mode.
The format of the read PMC parameter is shown as follows.

In case of SB5/SB6:
%;
N60xxx Pnnnnn;Timer(T)
:
N61xxx Pnnnnn;Counter(C)
:
N62xxx Pnnnnn;Keep relay(K)
:
N63xxx Pnnnnn;Data table control(D) of data
:
N64xxx Pnnnnn;Data(D) of data
:
%;

In case of SB7:
%;
(PMC=SB7,MSID=0);Header
N60xxx Pnnnnn;Timer(T)
:
N61xxx Pnnnnn;Counter(C)
:
N62xxx Pnnnnn;Keep relay(K)
:
N63xxx Pnnnnn;Data table control(D) of data
:
N64xxx Pnnnnn;Data(D) of data
:
N69xxx Pnnnnn;Extended memory(E)
:
%;

In case of PMC for 30i/31i/32i:
%;
(PMC=30I-A,MSID=1);Header
N60xxxx Pnnnnn;Timer(T)
:
N61xxxx Pnnnnn;Counter(C)
:
N62xxxx Pnnnnn;Keep relay(K)
:
N63xxxx Pnnnnn;Data table control(D) of data
:
N64xxxx Pnnnnn;Data(D) of data
:
N69xxxx Pnnnnn;Extended memory(E)
:
%;

In case of 31i/32i, the header information is as follows.

31i:(PMC=31I-A,MSID=1);
32i:(PMC=32I-A,MSID=1);

The header information is as follows by the unit type of PMC.

1st PMC :(PMC=30I-A,MSID=1);
2nd PMC :(PMC=30I-A,MSID=2);
3rd PMC :(PMC=30I-A,MSID=3);
Dual-check safety PMC:(PMC=30I-A,MSID=9);

* ";" shows EOB(=0x0a).

When the EOB data cannot be read by specified *length, data to immediately before is read.
Moreover, when also one block of the PMC parameter cannot be read, EW_LENGTH error occurs.
MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI pmc_rdpmcparam(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 which stored the reading length.
When the function is normal return (EW_OK), the function returns the length of the character which was actually read.
buff   [ out ]
Specify the pointer to the area where the PMC parameter is stored.
When the size of the area specified with this pointer is smaller than the size specified by *length, the operation of this function is not guaranteed.

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 uploaded.
EW_FUNC
(1)
pmc_rdprmstart function has not been executed.
EW_LENGTH
(2)
Data length error
The value of 0 or less was specified for read size(*length).
EW_PATH
(11)
PMC unit type was wrong.(only 30i/31i/32i)
The PMC unit type was changed.
EW_NOOPT
(6)
no option
EW_MODE
(12)
CNC mode error
CNC mode is not EDIT mode.

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 not related to CNC parameter.

CNC mode

It is possible to use in EDIT 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_rdprmend   pmc_wrprmstart   pmc_wrpmcparam   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_rdpmcparam

Fanuc Focas Library | Pmc | flist_Pmc

PMC: Function related to PMC... [read more]
Fanuc Focas Library | Pmc | flist_Pmc

Fanuc Focas Library | Pmc | pmc_crdmsg

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]
Fanuc Focas Library | Pmc | pmc_crdmsg

Fanuc Focas Library | Pmc | pmc_cwrmsg

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]
Fanuc Focas Library | Pmc | pmc_cwrmsg

Fanuc Focas Library | Pmc | pmc_getdtailerr

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]
Fanuc Focas Library | Pmc | pmc_getdtailerr

Fanuc Focas Library | Pmc | pmc_get_current_pmc_unit

Get the current PMC unit type.... [read more]
Fanuc Focas Library | Pmc | pmc_get_current_pmc_unit

Fanuc Focas Library | Pmc | pmc_get_number_of_pmc

Reads the number of existing PMC paths (i.e. number of unit).... [read more]
Fanuc Focas Library | Pmc | pmc_get_number_of_pmc

Fanuc Focas Library | Pmc | pmc_get_pmc_unit_types

Reads the PMC system information that shows what kind of PMC units compose the multi-path PMC system.... [read more]
Fanuc Focas Library | Pmc | pmc_get_pmc_unit_types

Fanuc Focas Library | Pmc | pmc_get_timer_type

Reads the PMC timer type of the specified timer number.... [read more]
Fanuc Focas Library | Pmc | pmc_get_timer_type

Fanuc Focas Library | Pmc | pmc_kpmsiz

Reads the maximum size of the extended backup memory.... [read more]
Fanuc Focas Library | Pmc | pmc_kpmsiz

Fanuc Focas Library | Pmc | pmc_rdalmmsg

Reads the alarm messages from PMC.... [read more]
Fanuc Focas Library | Pmc | pmc_rdalmmsg

Fanuc Focas Library | Pmc | pmc_rdcntldata

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]
Fanuc Focas Library | Pmc | pmc_rdcntldata

Fanuc Focas Library | Pmc | pmc_rdcntlgrp

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]
Fanuc Focas Library | Pmc | pmc_rdcntlgrp

Fanuc Focas Library | Pmc | pmc_rdkpm

Reads the contents of the extended backup memory of PMC specified by offset, length. The data are stored in data... [read more]
Fanuc Focas Library | Pmc | pmc_rdkpm

Fanuc Focas Library | Pmc | pmc_rdkpm2

Reads the contents of the extended backup memory of PMC specified by offset, length. The data are stored in data... [read more]
Fanuc Focas Library | Pmc | pmc_rdkpm2

Fanuc Focas Library | Pmc | pmc_rdmsg

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]
Fanuc Focas Library | Pmc | pmc_rdmsg

Fanuc Focas Library | Pmc | pmc_rdpmcinfo

Reads the data information about the attribute of each kind of PMC, the effective range of PMC address, etc.... [read more]
Fanuc Focas Library | Pmc | pmc_rdpmcinfo

Fanuc Focas Library | Pmc | pmc_rdpmcrng

Reads the PMC data of the specified PMC address/range. This function is used to exchange the data between the... [read more]
Fanuc Focas Library | Pmc | pmc_rdpmcrng

Fanuc Focas Library | Pmc | pmc_rdpmctitle

Reads the PMC title data from PMC. When this function is executed while editing the title data with PMC, the return value... [read more]
Fanuc Focas Library | Pmc | pmc_rdpmctitle

Fanuc Focas Library | Pmc | pmc_rdprmend

End of upload of the PMC parameter(timer, counter, keep relay, and data) by the tape format. This function is executable other... [read more]
Fanuc Focas Library | Pmc | pmc_rdprmend

Fanuc Focas Library | Pmc | pmc_rdprmstart

Starts uploading the PMC parameter(timer, counter, keep relay, and data) of the tape format. To uploading of PMC parameter, this... [read more]
Fanuc Focas Library | Pmc | pmc_rdprmstart

Fanuc Focas Library | Pmc | pmc_select_pmc_unit

Selects PMC that will be the target of other PMC FOCAS2 function by the unit type.... [read more]
Fanuc Focas Library | Pmc | pmc_select_pmc_unit

Fanuc Focas Library | Pmc | pmc_set_timer_type

Writes the PMC timer type of the specified timer number.... [read more]
Fanuc Focas Library | Pmc | pmc_set_timer_type

Fanuc Focas Library | Pmc | pmc_wrcntldata

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]
Fanuc Focas Library | Pmc | pmc_wrcntldata

Fanuc Focas Library | Pmc | pmc_wrcntlgrp

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]
Fanuc Focas Library | Pmc | pmc_wrcntlgrp

Fanuc Focas Library | Pmc | pmc_wrkpm

Writes the data to the extended backup memory of PMC specified by offset, length. The data must be stored in data as... [read more]
Fanuc Focas Library | Pmc | pmc_wrkpm

Fanuc Focas Library | Pmc | pmc_wrkpm2

Writes the data to the extended backup memory of PMC specified by offset, length. The data must be stored in data as... [read more]
Fanuc Focas Library | Pmc | pmc_wrkpm2

Fanuc Focas Library | Pmc | pmc_wrmsg

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]
Fanuc Focas Library | Pmc | pmc_wrmsg

Fanuc Focas Library | Pmc | pmc_wrpmcparam

The PMC parameter(timer, counter, keep relay, and data) is downloaded by the tape format. When you execute this function, set... [read more]
Fanuc Focas Library | Pmc | pmc_wrpmcparam

Fanuc Focas Library | Pmc | pmc_wrpmcrng

Writes the PMC data of the specified PMC address/range. This function is used to exchange the data between the... [read more]
Fanuc Focas Library | Pmc | pmc_wrpmcrng

Fanuc Focas Library | Pmc | pmc_wrprmend

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]
Fanuc Focas Library | Pmc | pmc_wrprmend

Fanuc Focas Library | Pmc | pmc_wrprmstart

Starts downloading the PMC parameter(timer, counter, keep relay, and data) of the tape format. To downloading of PMC parameter,... [read more]
Fanuc Focas Library | Pmc | pmc_wrprmstart
Modified: 2023-12-05