Download PROFIBUS-DP Slave Protocol API
Transcript
The Application Interface
89/238
FailSafe not supported:
Cyclic data transmission is not reduced as described above in case of master state CLEAR,
but all output bytes are set to the value 0 independently of their actual values.
The flag named fDpv1Enabled indicates whether DPV1 is supported or not.
DPV1 supported:
The slave behaves according to the Technical Guideline PROFIBUS-DP Extensions to EN
50170 - Version 2.0, April 1998 (Profibus document #2.082).
DPV1 not supported:
The slave behaves according to the Profibus specification (IEC 61158/EN 50170), also see.
Profibus document #0.032. The functionality described in PROFIBUS-DP Extensions to EN
50170 - Version 2.0, April 1998 (Profibus document #2.082) is not available.
The value usIdentNumber reflects the ident number of the slave that is reported to the DPMaster. This number is unique for each slave device as it is uniquely assigned by the Profibus
Trade Organization.
The coding of the abRealCfgData[…] has to meet the specification 61158-6 ©IEC:2003(E) page 525, chapter “Coding section related to the configuration PDU” and configures the number of input
and output process data bytes the DP-Slave Stack shall operate with. This structure is also
described in detail in section Configuration of Inputs and Outputs on page 54.
Besides the aforementioned end pointer reference, the confirmation packet returns two handles to
triple buffers for input and output, which should be stored for facilitating access later.
Note: Use this packet only when working with linkable object modules. It has not been
designed for usage in the context of loadable firmware.
Packet Structure Reference
typedef struct PROFIBUS_FSPMS_INIT_MS0_REQ_Ttag {
TLR_BOOLEAN8 fSyncSupported;
TLR_BOOLEAN8 fFreezeSupported;
TLR_BOOLEAN8 fNoAddChg;
TLR_BOOLEAN8 fFailSafeSupp;
TLR_BOOLEAN8 fDpv1Enabled;
TLR_UINT16
usIdentNumber;
TLR_UINT8
bSlaveAddr;
TLR_UINT8
bDataRate;
TLR_UINT8
abRealCfgData[PROFIBUS_FSPMS_MAX_CFG_DATA_SIZE];
} PROFIBUS_FSPMS_INIT_MS0_REQ_T;
typedef struct PROFIBUS_FSPMS_PACKET_INIT_MS0_REQ_Ttag {
TLR_PACKET_HEADER_T
tHead;
PROFIBUS_FSPMS_INIT_MS0_REQ_T tData;
} PROFIBUS_FSPMS_PACKET_INIT_MS0_REQ_T;
PROFIBUS-DP Slave | Protocol API
DOC050401API15EN | Revision 15 | English | 2013-09 | Released | Public
© Hilscher, 2005-2013