NewsCNCnetPDMAbout usSupport
  

PBM_WR_PARAM | PROFIBUS

Description

Sets the parameter of the PROFIBUS master function.

(note) It is necessary to set slv_ind_para and slt_ind_para specified in IN_PBMPRMFLG and IN_PBMPRM.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI pbm_wr_param(unsigned short FlibHndl, short type, IN_PBMPRMFLG *flag, IN_PBMPRM *param);

Arguments

FlibHndl   [ in ]

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

type   [ in ]

Specifies the kind of PROFIBUS master parameter.

0:Bus parameter
1:allocated PMC address of mode

/* parameter for each slave station */

20:Slave sub parameter
21:Slave parameter
22:allocate of diagnosis data
23:Slave sub-parameter and diagnosis data

/* parameter for each slot module */

40:Module data
41:allocated PMC address of DI/DO data

flag   [ in ]

Specifies the pointer to the IN_PBMPRMFLAG structure to indicate the item of the setting parameter.
The IN_PBMPRMFLAG structure is as follows.


/*- FLAG of MASTER FUNCTION ---------------------------------------*/
typedef struct _IN_PBMPRMFLG {
    union {
        T_BUS_PARA_FLG              bus_para;
        T_MODE_ADDR_ALLOC_FLG       mode_addr_alloc;
        T_SLAVE_SUB_PARA_FLG        slv_sub_para;
        T_SLAVE_PARA_FLG            slv_para;
        T_DGN_ADDR_ALLOC_FLG        dgn_addr_alloc;
        T_MODULE_DATA_FLG           module_data;
        T_DIDO_ADDR_ALLOC_FLG       dido_addr_alloc;
    } flg;
} IN_PBMPRMFLG;

/*- BUS PARAMETER -----------------------------------------*/
typedef struct _T_BUS_PARA_FLG {
    char    fdl_add;                         /* station no. */
    char    baud_rate;
    char    tsl;
    char    min_tsdr;
    char    max_tsdr;
    char    tqui;
    char    tset;
    char    ttr;
    char    g;
    char    hsa;
    char    max_retry_limit;
    char    bp_flag;
    char    min_slave_interval;
    char    poll_timeout;
    char    data_control_time;
    char    pad1;
    char    reserved[6];
    char    master_class2_name_rsv;
    char    pad2;
    T_MAS_USR_FLG   mas_usr;
} T_BUS_PARA_FLG;

/* MASTER USER DATA */
typedef struct _T_MAS_USR_FLG
{
    char    master_user_data_len;
    char    master_user_data;
} T_MAS_USR_FLG;

/*- ADDRESS ALLOCATION FOR MODE -----------------------------------*/
typedef struct _T_MODE_ADDR_ALLOC_FLG
{
    char    md_path;
    char    md_kind;
    char    md_top_address;
    char    md_size;
} T_MODE_ADDR_ALLOC_FLG;

/*- SLAVE SUB-PARAMETER -----------------------------------*/
typedef struct _T_SLAVE_SUB_PARA_FLG
{
    T_SLAVE_IND_PARA_FLG    slv_ind_para;
    char                    slv_enable;
    char                    slt_num;
} T_SLAVE_SUB_PARA_FLG;

/*- SLAVE PARAMETER -------------------------------------*/
typedef struct _T_SLAVE_PARA_FLG
{
    T_SLAVE_IND_PARA_FLG    slv_ind_para;
    char                    sl_flag;
    char                    slave_type;
    char                    reserved[12];
    T_PRM_DATA_FLG          prm_data;
    T_CFG_DATA_FLG          cfg_data_rsv;
    T_SLV_USR_DATA_FLG      slv_usr;
} T_SLAVE_PARA_FLG;

/* PARAMETER DATA */
typedef struct _T_PRM_DATA_FLG
{
    char    station_status;
    char    wd_fact_1;
    char    wd_fact_2;
    char    min_tsdr;
    char    ident_number;
    char    group_ident;
    T_USR_PRM_DATA_FLG  usr_prm;
} T_PRM_DATA_FLG;

/* USER PARAMETER DATA */
typedef struct _T_USR_PRM_DATA_FLG
{
    char    user_prm_data_len;
    char    user_prm_data;
} T_USR_PRM_DATA_FLG;

/* CONFIGURATION DATA */
typedef struct _T_CFG_DATA_FLG
{
    char    cfg_data_len;
    char    cfg_data;
} T_CFG_DATA_FLG;

/* SLAVE USER DATA */
typedef struct _T_SLV_USR_DATA_FLG
{
    char    slave_user_data_len;
    char    slave_user_data;
} T_SLV_USR_DATA_FLG;

/*- ALLOCATION OF DIAGNOSIS DATA ---------------------------------------*/
typedef struct _T_DGN_ADDR_ALLOC_FLG
{
    T_SLAVE_IND_PARA_FLG    slv_ind_para;
    char                    dgn_path;
    char                    dgn_kind;
    char                    dgn_top_address;
    char                    dgn_size;
} T_DGN_ADDR_ALLOC_FLG;

/*- MODULE DATA ---------------------------------------*/
typedef struct _T_MODULE_DATA_FLG
{
    T_SLOT_IND_PARA_FLG     slt_ind_para;
    char                    module_len;
    char                    module_data;
} T_MODULE_DATA_FLG;

/*- ALLOCATION OF DI/DO DATA --------------------------------------*/
typedef struct _T_DIDO_ADDR_ALLOC_FLG
{
    T_SLOT_IND_PARA_FLG     slt_ind_para;
    char                    di_path;
    char                    do_path;
    char                    di_kind;
    char                    do_kind;
    char                    di_top_address;
    char                    do_top_address;
    char                    di_size;
    char                    do_size;
    char                    module_type_rsv;
    char                    pad;
} T_DIDO_ADDR_ALLOC_FLG;

/* SLAVE INDICATION PARAMETER */
typedef struct _T_SLAVE_IND_PARA_FLG
{
    char   slv_idx;
    char   slv_no;
} T_SLAVE_IND_PARA_FLG;

/* SLOT INDICATION PARAMETER */
typedef struct _T_SLOT_IND_PARA_FLG
{
    char   slv_no;
    char   slt_no;
} T_SLOT_IND_PARA_FLG;

"1" is substituted for the set item. Even if the value is substituted for the IN_PBMPRM structure in case of "0", the paramter cannot be set.

/*- BUS PARAMETER ----------------------------------------*/

flg.bus_para.fdl_add
flg.bus_para.baud_rate
flg.bus_para.tsl
flg.bus_para.min_tsdr
flg.bus_para.max_tsdr
flg.bus_para.tqui
flg.bus_para.tset
flg.bus_para.ttr
flg.bus_para.g
flg.bus_para.hsa
flg.bus_para.max_retry_limit
flg.bus_para.bp_flag
flg.bus_para.min_slave_interval
flg.bus_para.poll_timeout
flg.bus_para.data_control_time
flg.bus_para.pad1 -> unused
flg.bus_para.reserved[n](n : 0 to 6) -> unused
flg.bus_para.master_class2_name_rsv -> unused
flg.bus_para.pad2 -> unused

/* MASTER USER DATA */

flg.bus_para.master_user_data_len
flg.bus_para.master_user_data

/*- ADDRESS ALLOCATION FOR MODE ------------------------------------*/

flg.mode_addr_alloc.md_path
flg.mode_addr_alloc.md_kind
flg.mode_addr_alloc.md_top_address
flg.mode_addr_alloc.md_size -> unused

/*- SLAVE SUB-PARAMETER -----------------------------------*/

flg.slv_sub_para.slv_ind_para.slv_idx
flg.slv_sub_para.slv_ind_para.slv_no
flg.slv_sub_para.slv_enable
flg.slv_sub_para.slt_num

/*- SLAVE PARAMETER -------------------------------------*/

flg.slv_para.slave_ind_para.slv_idx
flg.slv_para.slave_ind_para.slv_no
flg.slv_para.sl_flag
flg.slv_para.slave_type
flg.slv_para.reserved[n](n : 0 to 11) -> unused

/* PARAMETER DATA */

flg.slv_para.prm_data.station_status
flg.slv_para.prm_data.wd_fact_1
flg.slv_para.prm_data.wd_fact_2
flg.slv_para.prm_data.min_tsdr
flg.slv_para.prm_data.ident_number
flg.slv_para.prm_data.group_ident

/* USER PARAMETER DATA */

flg.slv_para.prm_data.user_prm_data_len
flg.slv_para.prm_data.user_prm_data

/* CONFIGURATION DATA */

flg.slv_para.cfg_data_rsv.cfg_data_len -> unused
flg.slv_para.cfg_data_rsv.cfg_data -> unused

/* SLAVE USER DATA */

flg.slv_para.user_data.slave_user_data_len
flg.slv_para.user_data.slave_user_data

/*- ALLOCATION OF DIAGNOSIS DATA ---------------------------------------*/

flg.dgn_addr_alloc.slave_ind_para.slv_idx
flg.dgn_addr_alloc.slave_ind_para.slv_no
flg.dgn_addr_alloc.dgn_path
flg.dgn_addr_alloc.dgn_kind
flg.dgn_addr_alloc.dgn_top_address
flg.dgn_addr_alloc.dgn_size

/*- MODULE DATA ---------------------------------------*/

flg.module_data.slt_ind_para.slv_no
flg.module_data.slt_ind_para.slt_no
flg.module_data.module_len
flg.module_data.module_data

/*- ALLOCATION OF DI/DO DATA --------------------------------------*/

flg.dido_addr_alloc.slt_ind_para.slv_no
flg.dido_addr_alloc.slt_ind_para.slt_no
flg.dido_addr_alloc.di_path
flg.dido_addr_alloc.do_path
flg.dido_addr_alloc.di_kind
flg.dido_addr_alloc.do_kind
flg.dido_addr_alloc.di_top_address
flg.dido_addr_alloc.do_top_address
flg.dido_addr_alloc.di_size
flg.dido_addr_alloc.do_size
flg.dido_addr_alloc.module_type_rsv -> unused
flg.dido_addr_alloc.pad -> unused

param   [ in ]

Specifies the pointer to the IN_PBMPRM structure to store the setting parameter.
The IN_PBMPRM structure is as follows.


/*- parameter of master function -----------------------------------*/
typedef struct _IN_PBMPRM{
    union {
        T_BUS_PARA          bus_para;
        T_MODE_ADDR_ALLOC   mode_addr_alloc;
        T_SLAVE_SUB_PARA    slv_sub_para;
        T_SLAVE_PARA        slv_para;
        T_DGN_ADDR_ALLOC    dgn_addr_alloc;
        T_MODULE_DATA       module_data;
        T_DIDO_ADDR_ALLOC   dido_addr_alloc;
    } prm;
} IN_PBMPRM;

/*- BUS PARAMETER -----------------------------------------*/
typedef struct _T_BUS_PARA
{
    unsigned char   fdl_add;                 /* station no. */
    unsigned char   baud_rate;
    unsigned short  tsl;
    unsigned short  min_tsdr;
    unsigned short  max_tsdr;
    unsigned char   tqui;
    unsigned char   tset;
    unsigned long   ttr;
    unsigned char   g;
    unsigned char   hsa;
    unsigned char   max_retry_limit;
    unsigned char   bp_flag;
    unsigned short  min_slave_interval;
    unsigned short  poll_timeout;
    unsigned short  data_control_time;
    unsigned char   reserved[6];
    char            master_class2_name[32];
    T_MAS_USR       mas_usr;
} T_BUS_PARA;

/* MASTER USER DATA */
typedef struct _T_MAS_USR
{
    unsigned short  master_user_data_len;
    unsigned char   master_user_data[62];
} T_MAS_USR;

/*- ADDRESS ALLOCATION FOR MODE -----------------------------------*/
typedef struct _T_MODE_ADDR_ALLOC
{
    unsigned char       md_path;
    unsigned char       md_kind;
    unsigned short      md_top_address;
    unsigned char       md_size;
    unsigned char       pad;
} T_MODE_ADDR_ALLOC;

/*- SLAVE SUB-PARAMETER -----------------------------------*/
typedef struct _T_SLAVE_SUB_PARA
{
    T_SLAVE_IND_PARA    slv_ind_para;
    unsigned char       slv_enable;
    unsigned char       slt_num;
} T_SLAVE_SUB_PARA;

/*- SLAVE PARAMETER ----------------------------------------*/
typedef struct _T_SLAVE_PARA
{
    T_SLAVE_IND_PARA    slv_ind_para;
    unsigned char       sl_flag;
    unsigned char       slave_type;
    unsigned char       reserved[12];
    T_PRM_DATA          prm_data;
    T_CFG_DATA          cfg_data;
    T_SLV_USR_DATA      slv_usr;
} T_SLAVE_PARA;

/* PARAMETER DATA */
typedef struct _T_PRM_DATA
{
    unsigned char   station_status;
    unsigned char   wd_fact_1;
    unsigned char   wd_fact_2;
    unsigned char   min_tsdr;
    unsigned short  ident_number;
    unsigned char   group_ident;
    unsigned char   pad;
    T_USR_PRM_DATA  usr_prm;
} T_PRM_DATA;

/* USER PARAMETER DATA */
typedef struct _T_USR_PRM_DATA
{
    unsigned short  user_prm_data_len;
    unsigned char   user_prm_data[201];
    unsigned char   pad;
} T_USR_PRM_DATA;

/* CONFIGURATION DATA */
typedef struct _T_CFG_DATA
{
    unsigned short  cfg_data_len;
    unsigned char   cfg_data[128];
} T_CFG_DATA;

/* SLAVE USER DATA */
typedef struct _T_SLV_USR_DATA
{
    unsigned short  slave_user_data_len;
    unsigned char   slave_user_data[30];
} T_SLV_USR_DATA;

/*- ALLOCATION OF DIAGNOSIS DATA ---------------------------------------*/
typedef struct _T_DGN_ADDR_ALLOC
{
    T_SLAVE_IND_PARA    slv_ind_para;
    unsigned char       dgn_path;
    unsigned char       dgn_kind;
    unsigned short      dgn_top_address;
    unsigned char       dgn_size;
    unsigned char       pad;
} T_DGN_ADDR_ALLOC;

/*- MODULE DATA ---------------------------------------*/
typedef struct _T_MODULE_DATA
{
    T_SLOT_IND_PARA     slt_ind_para;
    unsigned short      module_len;
    unsigned char       module_data[128];
} T_MODULE_DATA;

/*- ALLOCATION OF DI/DO DATA --------------------------------------*/
typedef struct _T_DIDO_ADDR_ALLOC
{
    T_SLOT_IND_PARA     slt_ind_para;
    unsigned char       di_path;
    unsigned char       do_path;
    unsigned char       di_kind;
    unsigned char       do_kind;
    unsigned short      di_top_address;
    unsigned short      do_top_address;
    unsigned char       di_size;
    unsigned char       do_size;
    unsigned char       module_type;
    unsigned char       pad;
} T_DIDO_ADDR_ALLOC;

/* SLAVE INDICATION PARAMETER */
typedef struct _T_SLAVE_IND_PARA
{
    unsigned char   slv_idx;
    unsigned char   slv_no;
} T_SLAVE_IND_PARA;

/* SLOT INDICATION PARAMETER */
typedef struct _T_SLOT_IND_PARA
{
    unsigned char   slv_no;
    unsigned char   slt_no;
} T_SLOT_IND_PARA;

/*- BUS PARAMETER -----------------------------------------*/

prm.bus_para.fdl_add
"FDL_Add" of PROFIBUS standards Station number of master(self-node)
range: from 0 to 125
prm.bus_para.baud_rate
"Baud_rate" of PROFIBUS standards
0: 9.6 Kbps
1: 19.2 Kbps
2: 93.75 Kbps
3:187.5 Kbps
4:500.0 Kbps
6: 1.5 Mbps
7: 3.0 Mbps
8: 6.0 Mbps
9: 12.0 Mbps
prm.bus_para.tsl
"T SL" of PROFIBUS standards
range: from 1 to 65535
unit: bit time
prm.bus_para.min_tsdr
"min T SDR" of PROFIBUS standards
range: from 1 to 65535
unit: bit time
prm.bus_para.max_tsdr
"max T SDR" of PROFIBUS standards
range: from 1 to 65535
unit: bit time
prm.bus_para.tqui
"T QUI" of PROFIBUS standards
range: from 0 to 255
unit: bit time
prm.bus_para.tset
"T SET" of PROFIBUS standards
range: from 1 to 255
unit: bit time
prm.bus_para.ttr
"T TR" of PROFIBUS standards
range: from 1 to 16777215
unit: bit time
prm.bus_para.g
"G" of PROFIBUS standards
range: from 1 to 100
prm.bus_para.hsa
"HSA" of PROFIBUS standards
range: from 2 to 126
prm.bus_para.max_retry_limit
"max_retry_limit" of PROFIBUS standards
range: from 1 to 8
prm.bus_para.bp_flag
"Bp_Flag" of PROFIBUS standards
bit7 :Error_Action_Flag
bit6-0:reserved
prm.bus_para.min_slave_interval
"Min_Slave_Interval" of PROFIBUS standards
range: from 1 to 65535
unit: 100 micro seconds
prm.bus_para.poll_timeout
"Poll_Timeout" of PROFIBUS standards
range: from 1 to 65535
unit: 1 milli-second
prm.bus_para.data_control_time
"Data_Control_Time" of PROFIBUS standards
range: from 1 to 65535
unit: 10 milli-seconds
prm.bus_para.reserved[n](n : 0 to 6)
reserved
prm.bus_para.master_class2_name[n](n : 0 to 31)
reserved

/* MASTER USER DATA */

prm.bus_para.mas_usr.master_user_data_len
"Master_User_Data_Len" of PROFIBUS standards
range: from 0 to 62
unit: byte
prm.bus_para.mas_usr.master_user_data[n](n : 0 to 61)
"Master_User_Data" of PROFIBUS standards

/*- ADDRESS ALLOCATION FOR MODE -----------------------------------*/

prm.mode_addr_alloc.md_path
PMC path number
range: from 1 to 3
prm.mode_addr_alloc.md_kind
PMC address
range: R or E
prm.mode_addr_alloc.md_top_address
top number of PMC address
range: depend on the PMC address
prm.mode_addr_alloc.md_size
unused
prm.mode_addr_alloc.pad
unused

/*- SLAVE SUB-PARAMETER -----------------------------------*/

prm.slv_sub_para.slv_ind_para.slv_idx
number of slave index
range: from 0 to 47
prm.slv_sub_para.slv_ind_para.slv_no
number of slave station
range: from 0 to 125
prm.slv_sub_para.slv_enable
show whether the communication with the slave is valid or invalid
0x00:invalid
0xff:valid
prm.slv_sub_para.slt_num
number of slot for I/O module
range: from 1 to 128

/*- SLAVE PARAMETER -------------------------------------*/

prm.slv_para.slv_ind_para.slv_idx
number of slave index
range: from 0 to 47
prm.slv_para.slv_ind_para.slv_no
number of slave station
range: from 0 to 125
prm.slv_para.sl_flag
"Sl_Flag" of PROFIBUS standards
bit7 :Active
bit6 :New_Prm
bit5-0:reserved
prm.slv_para.slave_type
"Slave_Type" of PROFIBUS standards
range: from 0 to 255
prm.slv_para.reserved[n](n : 0 to 11)
reserved

/* PARAMETER DATA */

prm.slv_para.prm_data.station_status
"Station_status" of PROFIBUS standards
bit7 :Lock_Req
bit6 :Unlock_Req
bit5 :Sync_Req
bit4 :Freeze_Req
bit3 :WD_On
bit2-0:reserved
prm.slv_para.prm_data.wd_fact_1
"WD_Fact_1" of PROFIBUS standards
range: from 1 to 255
unit: milli-second
prm.slv_para.prm_data.wd_fact_2
"WD_Fact_2" of PROFIBUS standards
range: from 1 to 255
unit: milli-second
prm.slv_para.prm_data.min_tsdr
"min T SDR" of PROFIBUS standards
range: from 0 to 255
unit: bit time
prm.slv_para.prm_data.ident_number
"Ident_Number" of PROFIBUS standards
prm.slv_para.prm_data.group_ident
"Group_Ident" of PROFIBUS standards
bit7:Group8
bit6:Group7
bit5:Group6
bit4:Group5
bit3:Group4
bit2:Group3
bit1:Group2
bit0:Group1
prm.slv_para.prm_data.pad
unused

/* USER PARAMETER DATA */

prm.slv_para.prm_data.usr_prm.user_prm_data_len
length of "User_Prm_Data" of PROFIBUS standards
range: from 0 to 201
unit: byte
prm.slv_para.prm_data.usr_prm.user_prm_data[n](n : 0 to 200)
"User_Prm_Data" of PROFIBUS standards
prm.slv_para.prm_data.usr_prm.pad
unused

/* CONFIGURATION DATA */

prm.slv_para.cfg_data.cfg_data_len
unused
prm.slv_para.cfg_data.cfg_data[n](n : 0 to 127)
unused

/* SLAVE USER DATA */

prm.slv_para.slv_usr.slave_user_data_len
the value decreasing -2 from"Slave_User_Data_Len" of PROFIBUS standards
range: from 0 to 30
unit: byte
prm.slv_para.slv_usr.slave_user_data[n](n : 0 to 29)
"Slave_User_Data" of PROFIBUS standards

/*- ALLOCATION OF DIAGNOSIS DATA --------------------------------------*/

prm.dgn_addr_alloc.slv_ind_para.slv_idx
number of slave index
range: from 0 to 47
prm.dgn_addr_alloc.slv_ind_para.slv_no
number of slave station
range: from 0 to 125
prm.dgn_addr_alloc.dgn_path
PMC path number
range: from 1 to 3
prm.dgn_addr_alloc.dgn_kind
PMC address
range: R or E
prm.dgn_addr_alloc.dgn_top_address
top number of PMC address
range: depend on the PMC address
prm.dgn_addr_alloc.dgn_size
the size of diagnosis data
range: from 0 to 244
unit: byte
prm.dgn_addr_alloc.pad
unused

/*- MODULE DATA ---------------------------------------*/

prm.module_data.slt_ind_para.slv_no
number of slave station
range: from 0 to 125
prm.module_data.slt_ind_para.slt_no
module number of slot
range: from 0 to 127
prm.module_data.module_len
the length of "module" of PROFIBUS standards
range: from 0 to 128
unit: byte
prm.module_data.module_data[n](n : 0 to 127)
"module" of PROFIBUS standards

/*- ALLOCATION OF DI/DO DATA --------------------------------------*/

prm.dido_addr_alloc.slt_ind_para.slv_no
number of slave station
range: from 0 to 125
prm.dido_addr_alloc.slt_ind_para.slt_no
module number of slot
range: from 0 to 127
prm.dido_addr_alloc.di_path
PMC path number of DI data
range: from 1 to 3
prm.dido_addr_alloc.do_path
PMC path number of DO data
range: from 1 to 3
prm.dido_addr_alloc.di_kind
PMC address of DI data
range: R or E
prm.dido_addr_alloc.do_kind
PMC address of DO data
range: R or E
prm.dido_addr_alloc.di_top_address
top number of PMC address of DI data
range: depend on the PMC address
prm.dido_addr_alloc.do_top_address
top number of PMC address of DO data
range: depend on the PMC address
prm.dido_addr_alloc.di_size
the size of DI data
range: from 0 to 244
unit: byte
prm.dido_addr_alloc.do_size
the size of DO data
range: from 0 to 244
unit: byte
prm.dido_addr_alloc.module_type
unused
prm.dido_addr_alloc.pad
unused

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_DATA
(5)
data error
In order to get more information for this err_no return value, execute cnc_getdtailerr function.
err_no of ODBERR structure.
1:invalid character
2:out of range
3:format error
4:out of digit
5:data refused
err_dtno of ODBERR structure.
3:a kind of parameter is invalid

/*- BUS PARAMETER -------------------------*/

100:prm.bus_para.fdl_add
101:prm.bus_para.baud_rate
102:prm.bus_para.tsl
103:prm.bus_para.min_tsdr
104:prm.bus_para.max_tsdr
105:prm.bus_para.tqui
106:prm.bus_para.tset
107:prm.bus_para.ttr
108:prm.bus_para.g
109:prm.bus_para.hsa
110:prm.bus_para.max_retry_limit
111:prm.bus_para.bp_flag
112:prm.bus_para.min_slave_interval
113:prm.bus_para.poll_timeout
114:prm.bus_para.data_control_time
115:pad1 -> unused
116 to 121:prm.bus_para.reserved[n](n : 0 to 5) -> unused
122:prm.bus_para.master_class2_name
123:pad2 -> unused

/* MASTER USER DATA */

130:prm.bus_para.master_user_data_len
131:prm.bus_para.master_user_data

/*- ADDRESS ALLOCATION FOR MODE -------------------*/

140:prm.mode_addr_alloc.md_path
141:prm.mode_addr_alloc.md_kind
142:prm.mode_addr_alloc.md_top_address
143:prm.mode_addr_alloc.md_size
144:prm.mode_addr_alloc.pad -> unused

/*- SLAVE SUB-PARAMETER -------------------*/

150:prm.slv_sub_para.slv_ind_para.slv_idx
151:prm.slv_sub_para.slv_ind_para.slv_no
152:prm.slv_sub_para.slv_enable
153:prm.slv_sub_para.slt_num

/*- SLAVE PARAMETER ---------------------*/

160:prm.slv_para.slv_ind_para.slv_idx
161:prm.slv_para.slv_ind_para.slv_no
162:prm.slv_para.sl_flag
163:prm.slv_para.slave_type
164 to 175:prm.slv_para.reserved[n](n : 0 to 11) -> unused

/* PARAMETER DATA */

180:prm.slv_para.prm_data.station_status
181:prm.slv_para.prm_data.wd_fact_1
182:prm.slv_para.prm_data.wd_fact_2
183:prm.slv_para.prm_data.min_tsdr
184:prm.slv_para.prm_data.ident_number
185:prm.slv_para.prm_data.group_ident
186:prm.slv_para.prm_data.pad -> unused

/* USER PARAMETER DATA */

190:prm.slv_para.prm_data.user_prm_data_len
191:prm.slv_para.prm_data.user_prm_data

/* CONFIGURATION DATA */

200:prm.slv_para.cfg_data.cfg_data_len -> unused
201:prm.slv_para.cfg_data.cfg_data -> unused

/* SLAVE USER DATA */

210:prm.slv_para.user_data.slave_user_data_len
211:prm.slv_para.user_data.slave_user_data

/*- ALLOCATION OF DIAGNOSIS DATA -----------------------*/

220:prm.dgn_addr_alloc.slv_ind_para.slv_idx
221:prm.dgn_addr_alloc.slv_ind_para.slv_no
222:prm.dgn_addr_alloc.dgn_path
223:prm.dgn_addr_alloc.dgn_kind
224:prm.dgn_addr_alloc.dgn_top_address
225:prm.dgn_addr_alloc.dgn_size
226:prm.dgn_addr_alloc.pad -> unused

/*- MODULE DATA -----------------------*/

230:prm.module_data.slt_ind_para.slv_no
231:prm.module_data.slt_ind_para.slt_no
232:prm.module_data.module_len
233:prm.module_data.module_data

/*- ALLOCATION OF DI/DO DATA ----------------------*/

240:prm.dido_addr_alloc.slt_ind_para.slv_no
241:prm.dido_addr_alloc.slt_ind_para.slt_no
242:prm.dido_addr_alloc.di_path
243:prm.dido_addr_alloc.do_path
244:prm.dido_addr_alloc.di_kind
245:prm.dido_addr_alloc.do_kind
246:prm.dido_addr_alloc.di_top_address
247:prm.dido_addr_alloc.do_top_address
248:prm.dido_addr_alloc.di_size
249:prm.dido_addr_alloc.do_size
250:prm.dido_addr_alloc.module_type -> unused
251:prm.dido_addr_alloc.pad -> unused
EW_NOOPT
(6)
No option
In order to get more information for this err_no return value, execute cnc_getdtailerr function.
err_no of ODBERR structure.
40:There is no PROFIBUS master board.
41:There is no PROFIBUS master function.
42:There is no SRAM of PROFIBUS master function.
EW_PROT
(7)
write protection
In order to get more information for this err_no return value, execute cnc_getdtailerr function.
err_no of ODBERR structure.
11:fail to write the parameter into SRAM
EW_REJECT
(13)
CNC execution rejection
In order to get more information for this err_no return value, execute cnc_getdtailerr function.
err_no of ODBERR structure.
10:fail to read the parameter from SRAM

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

CNC option

This function need the following CNC option.

    The PROFIBUS-DP master function is necessary.

For HSSB connection,

    The extended driver/library function is necessary.

CNC parameter

This function is not related to CNC parameter.

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 X X X X X X O O
T (Turning) X X O O X - X X X X X X X X X O O
LC (Loader) - - - - - - X X X X X X X X X - -

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


Power Mate i-DX
Power Mate i-HX
Power Motion i-AO

"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

pbm_rd_param  

Privacy notice

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

https://www.inventcom.net/fanuc-focas-library/profibus/pbm_wr_param

Fanuc Focas Library | Profibus | flist_Profibus

PMC: Function Reference related to PROFIBUS-DP... [read more]
Fanuc Focas Library | Profibus | flist_Profibus

Fanuc Focas Library | Profibus | pbm_chg_mode

Changes the operation mode... [read more]
Fanuc Focas Library | Profibus | pbm_chg_mode

Fanuc Focas Library | Profibus | pbm_exe_subfunc

Executes sub-function for setting... [read more]
Fanuc Focas Library | Profibus | pbm_exe_subfunc

Fanuc Focas Library | Profibus | pbm_ini_prm

Initiaze the specified parameter of the PROFIBUS master function.... [read more]
Fanuc Focas Library | Profibus | pbm_ini_prm

Fanuc Focas Library | Profibus | pbm_rd_allslvtbl

Reads all slave table... [read more]
Fanuc Focas Library | Profibus | pbm_rd_allslvtbl

Fanuc Focas Library | Profibus | pbm_rd_cominfo

Reads the communicating information... [read more]
Fanuc Focas Library | Profibus | pbm_rd_cominfo

Fanuc Focas Library | Profibus | pbm_rd_errcode

Reads an error code... [read more]
Fanuc Focas Library | Profibus | pbm_rd_errcode

Fanuc Focas Library | Profibus | pbm_rd_nodeinfo

Reads the information of slave station... [read more]
Fanuc Focas Library | Profibus | pbm_rd_nodeinfo

Fanuc Focas Library | Profibus | pbm_rd_nodetable

Reads status of connected slave... [read more]
Fanuc Focas Library | Profibus | pbm_rd_nodetable

Fanuc Focas Library | Profibus | pbm_rd_param

Reads the parameters of the PROFIBUS master function.... [read more]
Fanuc Focas Library | Profibus | pbm_rd_param

Fanuc Focas Library | Profibus | pbm_rd_slot

Reads the number of slot to which the DI/DO address of the master function is allocated regardless of Enable/Disable. Number of slot that can... [read more]
Fanuc Focas Library | Profibus | pbm_rd_slot

Fanuc Focas Library | Profibus | pbm_rd_slotinfo

Reads the slot information to which the DI/DO address of the master function is allocated regardless of Enable/Disable. Slot information that... [read more]
Fanuc Focas Library | Profibus | pbm_rd_slotinfo

Fanuc Focas Library | Profibus | pbm_rd_subprm

Reads the setting assistant parameters... [read more]
Fanuc Focas Library | Profibus | pbm_rd_subprm

Fanuc Focas Library | Profibus | pbs_ini_prm

Initializes the parameters of the PROFIBUS slave function.... [read more]
Fanuc Focas Library | Profibus | pbs_ini_prm

Fanuc Focas Library | Profibus | pbs_rd_cominfo

Reads the communication state of the PROFIBUS slave function.... [read more]
Fanuc Focas Library | Profibus | pbs_rd_cominfo

Fanuc Focas Library | Profibus | pbs_rd_cominfo2

Reads the communication state of the PROFIBUS slave function. The status data is added to... [read more]
Fanuc Focas Library | Profibus | pbs_rd_cominfo2

Fanuc Focas Library | Profibus | pbs_rd_param

Reads the parameters of the PROFIBUS slave function.... [read more]
Fanuc Focas Library | Profibus | pbs_rd_param

Fanuc Focas Library | Profibus | pbs_rd_param2

Reads the parameter of the PROFIBUS slave function. The status data is added to... [read more]
Fanuc Focas Library | Profibus | pbs_rd_param2

Fanuc Focas Library | Profibus | pbs_wr_param

Sets the parameter of the PROFIBUS slave function. (note) It is necessary to set slave_no specified in IN_PBSPRMFLG and IN_PBSPRM.... [read more]
Fanuc Focas Library | Profibus | pbs_wr_param

Fanuc Focas Library | Profibus | pbs_wr_param2

Sets the parameter of the PROFIBUS slave function. The status data is added to... [read more]
Fanuc Focas Library | Profibus | pbs_wr_param2

Fanuc Focas Library | Profibus | pmc_prfrdallcadr

Reads the address allocation of the specified slave number. This function is available at the version 01-07 and 09 or later of the... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdallcadr

Fanuc Focas Library | Profibus | pmc_prfrdbusprm

Reads the bus parameter of master function. This function is available at the version 01-07 and 09 or later of the PROFIBUS-DP control software(6557... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdbusprm

Fanuc Focas Library | Profibus | pmc_prfrdconfig

Reads the series/version of PROFIBUS-DP software. * Please refer to PROFIBUS-DP function manual for details of the... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdconfig

Fanuc Focas Library | Profibus | pmc_prfrddido

Reads the DI/DO address data allocated in the slot of each slave station. This function is only for 6558 Series. *... [read more]
Fanuc Focas Library | Profibus | pmc_prfrddido

Fanuc Focas Library | Profibus | pmc_prfrdindiadr

Reads the indication address for communication mode of master function. This function is only for 6558 Series. * Please... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdindiadr

Fanuc Focas Library | Profibus | pmc_prfrdopmode

Reads the operation mode of master function. This function is only for 6558 Series. * Please refer to PROFIBUS-DP... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdopmode

Fanuc Focas Library | Profibus | pmc_prfrdslvaddr

Reads the address allocation of slave function. This function is available at the version 01-07 and 09 or later of the PROFIBUS-DP... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdslvaddr

Fanuc Focas Library | Profibus | pmc_prfrdslvid

Reads the slave index data that assigns the I/O module allocation for the specified Index number. This function is only for 6558 Series.... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdslvid

Fanuc Focas Library | Profibus | pmc_prfrdslvprm

Reads the slave parameter of the specified slave number. This function is available at the version 01-07 and 09 or later of the... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdslvprm

Fanuc Focas Library | Profibus | pmc_prfrdslvprm2

Reads the slave parameter of the specified slave Index number. This function is only for 6558 Series. * Please refer to... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdslvprm2

Fanuc Focas Library | Profibus | pmc_prfrdslvstat

Reads the state of slave function. This function is available at the version 01-07 and 09 or later of... [read more]
Fanuc Focas Library | Profibus | pmc_prfrdslvstat

Fanuc Focas Library | Profibus | pmc_prfwrallcadr

Sets the address allocation to the specified slave number. This function is available at the version 01-07 and 09 or later of the... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrallcadr

Fanuc Focas Library | Profibus | pmc_prfwrbusprm

Writes the bus parameter of master function. This function is available at the version 01-07 and 09 or later of the... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrbusprm

Fanuc Focas Library | Profibus | pmc_prfwrdido

Writes the DI/DO address data allocated in the slot of each slave station. When the parameters are changed, the restart of CNC is required... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrdido

Fanuc Focas Library | Profibus | pmc_prfwrindiadr

Writes the indication address for communication mode of master function. When the parameters are changed, the restart of CNC is required for... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrindiadr

Fanuc Focas Library | Profibus | pmc_prfwropmode

Writes the operation mode of master function. This function is only for 6558 Series. * Please refer to PROFIBUS-DP... [read more]
Fanuc Focas Library | Profibus | pmc_prfwropmode

Fanuc Focas Library | Profibus | pmc_prfwrslvaddr

Sets the address allocation of slave function. This function is available at the version 01-07 and 09 or later of the PROFIBUS-DP... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrslvaddr

Fanuc Focas Library | Profibus | pmc_prfwrslvid

Writes the slave index data that assigns the I/O module allocation for the specified Index number. The slot allocation of each slave station... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrslvid

Fanuc Focas Library | Profibus | pmc_prfwrslvprm

Writes the slave parameter of the specified slave number. This function is available at the version 01-07 and 09 or later of the... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrslvprm

Fanuc Focas Library | Profibus | pmc_prfwrslvprm2

Writes the slave parameter of the specified slave Index number. When the parameters are changed, the restart of CNC is required for putting... [read more]
Fanuc Focas Library | Profibus | pmc_prfwrslvprm2
Modified: 2023-12-05