for PROFIBUS Slave (Version 1.21)
(1) Reading of the parameters of the PROFIBUS slave function
Function name:
pbs_rd_param
Declaration:
#include "fwlib32.h"
FWLIBAPI short WINAPI pbs_rd_param(unsigned short FlibHndl,
OUT_PBSPRM *param);
Description:
Reads the parameters of the PROFIBUS slave function.
Arguments:
FlibHndl [in]
Specifies the library handle.
param [out]
Specifies the pointer to the OUT_PBSPRM structure to store the
the acquired parameter. The OUT_PBSPRM structure is as follows.
/*-----------------------------------------------------------*/
/* OUT_PBSPRM structure */
/*-----------------------------------------------------------*/
typedef struct _OUT_PBSPRM{
unsigned char slave_no;
unsigned char pad;
unsigned char di_size;
unsigned char do_size;
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;
} OUT_PBSPRM;
/*-----------------------------------------------------------*/
/* Explanation of each parameter */
/*-----------------------------------------------------------*/
slave_no
Station number of slave
range: from 0 to 125
pad
unused
di_size
size of DI data
range: from 0 to 244
unit: byte
do_size
size of DO data
range: from 0 to 244
unit: byte
di_path
PMC path number of DI data
range: from 1 to 3
do_path
PMC path number of DO data
range: from 1 to 3
di_kind
PMC address of DI data
range: R or E
do_kind
PMC address of DO data
range: R or E
di_top_address
top number of PMC address for DI data
range: depends on the PMC address
do_top_address;
top number of PMC address for DO data
range: depends on the PMC address
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_NOOPT No option
In order to get more information for this err_no return
value, execute cnc_getdtailerr function. The following
details status will be set onto the member, err_no of
ODBERR structure.
43 : There is no PROFIBUS slave board.
44 : There is no PROFIBUS slave function.
45 : There is no SRAM of PROFIBUS slave function.
EW_REJECT CNC execution rejection
In order to get more information for this err_no return
value, execute cnc_getdtailerr function. The following
details status will be set onto the member, err_no of
ODBERR structure.
10 : fail to read the parameter from SRAM
14 : fail to get the library handle
CNC option:
CNC parameter:
CNC mode:
This function can be used in any CNC mode.
(2) Setting of the parameters of the PROFIBUS slave function
Function name:
pbs_wr_param
Declaration:
#include "fwlib32.h"
FWLIBAPI short WINAPI pbs_wr_param(unsigned short FlibHndl,
IN_PBSPRMFLG *flag,
IN_PBSPRM *param);
Description:
Sets the parameter of the PROFIBUS slave function.
(note) It is necessary to set slave_no specified in IN_PBSPRMFLG and
IN_PBSPRM.
Arguments:
FlibHndl [in]
Specifies the library handle.
flag [in]
Specifies the pointer to the IN_PBSPRMFLG structure to indicate
the item of the setting parameter. The IN_PBSPRMFLG structure
is as follows.
/*-----------------------------------------------------------*/
/* IN_PBSPRMFLG structure */
/*-----------------------------------------------------------*/
typedef struct _IN_PBSPRMFLG {
char slave_no;
char pad;
char di_size;
char do_size;
char di_path;
char do_path;
char di_kind;
char do_kind;
char di_top_address;
char do_top_address;
} IN_PBSPRMFLG;
"1" is substituted for the set item. Even if the value is
substituted for the IN_PBSPRM structure in case of "0", the
paramter cannot be set.
param [in]
Specifies the pointer to the IN_PBSPRM structure to store the
the setting parameter. The IN_PBSPRM structure is as follows.
/*-----------------------------------------------------------*/
/* IN_PBSPRM structure */
/*-----------------------------------------------------------*/
typedef struct _IN_PBSPRM{
unsigned char slave_no;
unsigned char pad;
unsigned char di_size;
unsigned char do_size;
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;
} IN_PBSPRM;
/*-----------------------------------------------------------*/
/* Explanation of each parameter */
/*-----------------------------------------------------------*/
slave_no
Station number of slave
range: from 0 to 125
pad
unused
di_size
size of DI data
range: from 0 to 244
unit: byte
do_size
size of DO data
range: from 0 to 244
unit: byte
di_path
PMC path number of DI data
range: from
没有合适的资源?快使用搜索试试~ 我知道了~
FANUC开发包.zip_FANUC FOCAS协议_FANUC开发包_fanuc_fanuc的协议_发那科cnc协议
共1627个文件
xml:705个
htm:699个
gif:169个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 15 下载量 14 浏览量
2022-07-14
11:03:12
上传
评论 3
收藏 6.22MB ZIP 举报
温馨提示
FANUC数控系统的FOCAS协议和例子
资源详情
资源评论
资源推荐
收起资源包目录
FANUC开发包.zip_FANUC FOCAS协议_FANUC开发包_fanuc_fanuc的协议_发那科cnc协议 (1627个子文件)
Fwlib32.bas 230KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
Fwlib32.bas 229KB
fwlib32.cs 511KB
FWLIB32.CSS 2KB
fwlib30i.dll 1.3MB
FwlibNCG.dll 1.29MB
Fwlib0iB.dll 832KB
Fwlib160.dll 832KB
fwlibe1.dll 712KB
Fwlibpmi.dll 500KB
Fwlib32.dll 424KB
Fwlib0i.dll 384KB
Fwlib15i.dll 332KB
Fwlib150.dll 256KB
Fwlib16W.dll 208KB
Fwlibpm.dll 116KB
Dnc1.gif 22KB
FOCAS1.GIF 13KB
Protect.gif 11KB
ext_msg_alarm.gif 11KB
Unsolic2.gif 11KB
ext_alarm.gif 10KB
Unsolic1.gif 10KB
sramget.gif 10KB
ODBAHIS5.gif 10KB
ALMHIS3_VC.gif 9KB
dnc.gif 9KB
fromget.gif 8KB
fromput.gif 8KB
DYNA.GIF 8KB
Hssb.gif 8KB
DYNA8.GIF 7KB
dyna2.gif 7KB
alm24.gif 7KB
pmc_cwrmsg.gif 7KB
pmc_crdmsg.gif 7KB
ALMHIS_VC.gif 7KB
com15.gif 6KB
com16w.gif 6KB
alm.gif 6KB
com16.gif 6KB
pmc_wrmsg.gif 6KB
pmc_rdmsg.gif 6KB
almhis15_VC.gif 6KB
Unsol_reschat.GIF 6KB
recalm15_vc.gif 5KB
General1.gif 5KB
com30.gif 5KB
TLGRP.GIF 5KB
mergeEx.gif 5KB
svdtwr2_e.gif 5KB
NAXISA.GIF 5KB
Unsol_sim1chat.GIF 5KB
Unsol_sim2chat.GIF 5KB
rectim15_vc.gif 5KB
NINFT.GIF 5KB
rdalmhistry4.gif 5KB
svdtrd2_e.gif 4KB
DYN.GIF 4KB
DYN8.GIF 4KB
WRCOUNT.GIF 4KB
datatbl.gif 4KB
PMACRO.GIF 4KB
upload4.gif 4KB
upload.gif 4KB
NMACRO.GIF 4KB
dyn2.gif 4KB
GRPINFO.GIF 4KB
download.gif 4KB
His_reclen.GIF 4KB
axisdata.gif 4KB
dnload4.gif 4KB
ODBSYS.gif 4KB
workoffset.gif 4KB
recsig15_vc.gif 4KB
parameter.gif 4KB
rdomhistry2.gif 4KB
TLRNG.GIF 4KB
DELTOOL.GIF 4KB
custommacro.gif 4KB
recalm30_VC.gif 4KB
tooloffset.gif 4KB
operator_msg.gif 4KB
HANDLE.GIF 4KB
datatbl_vb.gif 4KB
verify.gif 4KB
HANDLE.GIF 3KB
rectim30_VC.gif 3KB
cnc_rdaxisdata.gif 3KB
recmdi15_vc.gif 3KB
alarm.gif 3KB
verify4.gif 3KB
共 1627 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
小波思基
- 粉丝: 70
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论12