/*********************** Filename: dp_if.c *********************************/
/* ========================================================================= */
/* */
/* 0000 000 000 00000 0 000 0 0 0 0000 */
/* 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Einsteinstra�e 6 */
/* 0 0 0 0 0 0 0 0 0 0 0 0 0 0 91074 Herzogenaurach */
/* 0000 000 0 0 000 0 0 00000 0 0000 Germany */
/* 0 00 0 0 0 0 0 0 0 0 0 */
/* 0 0 0 0 0 0 0 0 0 0 0 0 0 Tel: ++49-9132-744-200 */
/* 0 0 0 000 0 0 000 0 0 0 0 GmbH Fax: ++49-9132-744-204 */
/* */
/* ========================================================================= */
/* */
/* Function: interface service routines for VPC3+ (dp-protocol) */
/* */
/* ------------------------------------------------------------------------- */
/* history */
/* ========================================================================= */
/* 08.09.2005 [V5.00] Urversion */
/* 22.10.2005 [V5.01] BugFix: */
/* Dp_cfg.h: */
/* Missing bracket: */
/* #define ASIC_USER_RAM (ASIC_RAM_LENGTH - */
/* DP_ORG_LENGTH - SAP_LENGTH) */
/* DP_VERSION_BUGFIX changed to 0x01 */
/* 09.01.2006 [V5.02] BugFix: */
/* Problem with SIEMENS PLC 318 and Diag.cfg_Fault */
/* The VPC3+/C does not set the default master address */
/* back in the diagnostic telegram to 0xFF. */
/* Software solution in dp_user.c */
/* (named with BugFix 502). */
/* DP_VERSION_BUGFIX changed to 0x02 */
/* 21.02.2006 [V5.03] BugFix: */
/* I&M Functions: Return Codes of NRS-PDUs changed. */
/* profichip has now it's own MANUFACTURER_ID (0x01BC). */
/* BugFix: */
/* The definition of LITTLE_ENDIAN and BIG_ENDIAN is */
/* now correct. */
/* BugFix: */
/* MSAC_C2-connection: Certification Error Ifak - */
/* ILL31 transistion implemented. */
/* After disconnecting profibus cable, an open MSAC-C2 */
/* connection will be closed after timeout (2*F-timer). */
/* Function acls in dp_msac_c1 optimized. */
/* (named with BugFix 503). */
/* DP_VERSION_BUGFIX changed to 0x03 */
/* 13.11.2006 [V5.04] Certification problem ( itm ): */
/* The DPV1-alarms will be checked now in the function */
/* UserChkNewPrmData(). */
/* Certification problem ( procentec ): */
/* The master class 2 sends an initiate.req with out */
/* data and the slave answers with next free SAP. */
/* After then the master class 2 send an initiate.req */
/* with data, the slave should now answer with the same */
/* SAP and not with new SAP. */
/* (named with BugFix 504). */
/* DP_VERSION_BUGFIX changed to 0x04 */
/* 03.08.2009 [V6.00] Supports now VPC3+S */
/* DP_VERSION_BUGFIX changed to 0x00 */
/* 08.08.2009 [V6.01] BugFix: */
/* DP_VERSION_BUGFIX changed to 0x01 */
/* 17.09.2010 [V6.02] BugFix: */
/* Error in function: VPC3_GetMasterAddress */
/* DP_VERSION_BUGFIX changed to 0x02 */
/* 13.12.2010 [V6.03] BugFix: */
/* dp_if.h: add the macro _PACKED_ to all structures */
/* Modification: Prm-, ChkCfg- and SSA-telegram via */
/* help buffer: abPrmCfgSsaHelpBuffer[ HELP_BUFSIZE ]. */
/* DP_VERSION_BUGFIX changed to 0x03 */
/* 15.02.2011 [V6.04] BugFix: */
/* dp_if.h: DxB-macros are wrong */
/* - macro VPC3_GET_NEXT_DXB_OUT_BUFFER_CMD() modified */
/* - macro VPC3_GET_DXB_OUT_BUFFER_SM() modified */
/* modification of VPC3_Initialization( UBYTE */
/* bSlaveAddress, UWORD wIdentNumber, psCFG psCfgData ); */
/* DP_VERSION_BUGFIX changed to 0x04 */
/* */
/* ------------------------------------------------------------------------- */
/* */
/* Technical support: Peter FREDEHORST */
/* Tel. : ++49-9132-744-2150 */
/* Fax. : ++49-9132-744-29-2150 */
/* eMail: [email protected] */
/* eMail: [email protected] */
/* */
/*****************************************************************************/
/*! \file
\brief Basic functions for PROFIBUS communication with VPC3+.
*/
/*****************************************************************************/
/* contents:
- function prototypes
- data structures
- internal functions
*/
/*****************************************************************************/
/* include hierarchy */
#include "..\dp_inc\platform.h"
#include "..\dp_inc\dp_inc.h"
/*---------------------------------------------------------------------------*/
/* version */
/*---------------------------------------------------------------------------*/
#define DP_VERSION_MAIN_INTERFACE ((UBYTE)0x06)
#define DP_VERSION_FUNCTION ((UBYTE)0x00)
#define DP_VERSION_BUGFIX ((UBYTE)0x04)
/*---------------------------------------------------------------------------*/
/* function prototypes */
/*-----------------------------
没有合适的资源?快使用搜索试试~ 我知道了~
profichip的示例代码
共112个文件
h:34个
c:21个
bmp:12个
4星 · 超过85%的资源 需积分: 10 17 下载量 70 浏览量
2012-02-14
08:21:12
上传
评论
收藏 1.13MB RAR 举报
温馨提示
profibus的实现,vpc3+的开发历程,支持的与外界交互方法有SPI,IIC,以及地址访问。
资源推荐
资源详情
资源评论
收起资源包目录
profichip的示例代码 (112个子文件)
STARTUP.ASM 4KB
STARTUP.ASM 4KB
DPV0AFFE.bak 9KB
_MAK51.BAT 3KB
_MAK51.BAT 3KB
_MAK51.BAT 3KB
_MAK51.BAT 3KB
_MAK51.BAT 3KB
_MAK51.BAT 3KB
EASY_1N.bmp 8KB
EASY_1S.bmp 8KB
DPV0_1N.bmp 8KB
DPV0_1S.bmp 8KB
DPV0_1N.bmp 8KB
DPV0_1S.bmp 8KB
EASY_1N.bmp 8KB
EASY_1S.bmp 8KB
EASY_1N.bmp 8KB
EASY_1S.bmp 8KB
EASY_1N.bmp 8KB
EASY_1S.bmp 8KB
dp_if.c 79KB
dp_user.c 63KB
dp_user.c 54KB
dp_user.c 38KB
dp_user.c 37KB
dp_user.c 30KB
dp_user.c 30KB
main.c 28KB
dp_isr.c 28KB
twi.c 19KB
Serio.c 17KB
Serio.c 17KB
main.c 15KB
lcd.c 15KB
lcd.c 15KB
dp_debug.c 13KB
dp_debug.c 13KB
dp_debug.c 11KB
dp_debug.c 11KB
dp_debug.c 11KB
dp_debug.c 11KB
index.chm 576KB
Thumbs.db 10KB
EASY_1N.dib 8KB
DPV0_1S.dib 8KB
DPV0_1N.dib 8KB
DPV0_1S.dib 8KB
DPV0_1N.dib 8KB
EASY_1N.dib 8KB
EASY_1N.dib 8KB
EASY_1N.dib 8KB
NMAKE.EXE 76KB
NMAKE.EXE 76KB
NMAKE.EXE 76KB
NMAKE.EXE 76KB
NMAKE.EXE 76KB
NMAKE.EXE 76KB
DPV0AFFE.gsd 9KB
DPV0AFFE.gsd 9KB
EASYADAC.gsd 6KB
EASYADAC.gsd 6KB
EASY4711.gsd 5KB
EASY4711.gsd 5KB
dp_if.h 210KB
dp_cfg.h 31KB
dp_cfg.h 31KB
dp_cfg.h 31KB
dp_cfg.h 31KB
dp_cfg.h 31KB
dp_cfg.h 31KB
dp_cfg.h 31KB
dp_inc.h 24KB
dpl_list.h 20KB
platform.h 17KB
platform.h 17KB
platform.h 17KB
platform.h 17KB
platform.h 17KB
platform.h 17KB
platform.h 17KB
hard.h 11KB
hard.h 11KB
extsnd1.h 7KB
extsnd1.h 7KB
regsnd1.h 7KB
regsnd1.h 7KB
serio.h 5KB
serio.h 5KB
lcd.h 5KB
lcd.h 5KB
dp_debug.h 3KB
dp_debug.h 3KB
dp_debug.h 3KB
dp_debug.h 3KB
dp_debug.h 3KB
dp_debug.h 3KB
twi.h 3KB
S_DPV0AFFE.HEX 56KB
DPV0AFFE.HEX 53KB
共 112 条
- 1
- 2
资源评论
- tikhoff2013-03-08应该是profichip提供的,示例程序是基于51单片机的,很容易移植到其它MCU上,不错!能否通过PROFIBUS一致性认证未知
luckmount
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功