Академический Документы
Профессиональный Документы
Культура Документы
PMC_RDPMCRNG
Description
This function is used to exchange the data between the application on MMC function and
LADDER software on PMC.
Declaration
Arguments
FlibHndl [ in ]
Specify the library handle. See "Library handle" for details.
adr_type [ in ]
Specify the identification code corresponding to the kind of the PMC address.
It is not possible to write to all areas of address 'F' and 'X', and "R9000",...
Moreover, "K0017"..."K0019" and "K0900"..."K0909" must not be written.
It is not possible to write to all areas of address 'F' and 'X', and "R9000",...
Moreover, "K0900"..."K0909" must not be written.
It is not possible to write to all areas of address 'F' and 'X', and "R9000",...
Moreover, "K0017"..."K0019" and "K0900"... must not be written.
It is not possible to write to all areas of address 'F' and 'X', and "R9000",...
Moreover, "K0017"..."K0019" must not be written.
*It is not possible to write to all areas of address 'F' and 'X', and "R9000",... Moreover,
"K0017"..."K0019" and "K0900"... must not be written.
It is not possible to write to all areas of address 'F' and 'X', and "R9000",...
Moreover, "K0017"..."K0019" must not be written.
Note
1 This area is reserved for PMC management software. Do not use it in user programs.
2 This area is reserved for PMC management software. No I/O can be allocated in this
area. Do not use it in user programs.
3 This area is used to specify the precision of a variable timer.
4 It is not possible to write to all areas of address 'F' and 'X', and "R9000",... Moreover,
"K0017"..."K0019" must not be written.
Note
1 This area is reserved for PMC management software. Do not use it in user programs.
2 This area is used to specify the precision of a variable timer.
3 This area is common memory for the multi-PMC function. It is possible for each
program to read the same value from, and write to, the area.
4 No extra relay is available for the dual-check safety PMC.
5 It is not possible to write to all areas of address 'F' and 'X', and "R9000",... Moreover,
"K0017"..."K0019" must not be written.
Note
1 This area is reserved for PMC management software. Do not use it in user programs.
2 This area is used to specify the precision of a variable timer.
3 This area is common memory for the multi-PMC function. It is possible for each
program to read the same value from, and write to, the area.
4 No extra relay is available for the dual-check safety PMC.
5 To save all area of the data table, the "Nonvolatile PMC data table area expansion
(40KB)" option may be necessary.
6 It is not possible to write to all areas of address 'F' and 'X', and "R9000",... Moreover,
"K0017"..."K0019" must not be written.
*It is not possible to write to all areas of address 'F' and 'X', and "R9000",... Moreover,
"K0017",..,"K0019" and "K0900"..."K0909" must not be written.
*See the "PROGRAMMING MANUAL" of PMC about the CNC at which the PMC can be
supported.
data_type [ in ]
Specify the type of the PMC data.
It must be the same one as the type of data of the PMC side.
0:Byte type
1:Word type
2:Long type
4:32-bit floating-point type(30i-B Series/0i-F/PMi-A only)
5:64-bit floating-point type(30i-B Series/0i-F/PMi-A only)
s_number [ in ]
Specify the start PMC address number.
e_number [ in ]
Specify the end PMC address number.
length [ in ]
Specify the data block length.
data_type is 0(byte type) :length = 8 + N
data_type is 1(word type) :length = 8 + N × 2
data_type is 2(long type) :length = 8 + N ×
4
data_type is 4(32-bit floating-point length = 8 + N ×
:
type) 4
data_type is 5(64-bit floating-point length = 8 + N ×
:
type) 8
* N is the number of read data.
buf [ out ]
Pointer to the IODBPMC structure.
The IODBPMC structure is as follows. In case of using PMC memory D in Series 0i-F,
30i/31i/32i/35i-B, PMi-A, define character constant "PMCMEMD" at compiling by the '-D'
option.
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
As for the other return codes or the details, see "Return status of Data window function"
CNC option
The Ethernet function and the extended driver/library function are necessary.
However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A, the required
CNC option is as follows.
CNC parameter
CNC mode
Available CNC
0i-B/C
0i-A 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
(Note)
M
H O O O H O H H H O O O O O O O O
(Machining)
T (Turning) H O O O H - H H H O O O O O O O O
LC (Loader) - - - - - - H H X H H H H H H - -
See Also
pmc_wrpmcrng pmc_rdpmcinfo
Example(C Language)
The following program reads the PMC data within the specified
PMC address range and displays them.
#include "fwlib32.h"
Example(C#)
The following program reads the PMC data within the specified
PMC address range and displays them.
class example
{
/* start/end are start/end PMC address to be read. */
public short sample(ushort start, ushort end)
{
short ret, idx;
short adr_type, data_type;
ushort length;
Modified: 2018-06-11