industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 10.07.2009 | 09:38 | 3 replies

DPV1 Alarm messages

Hi,

How can I see a Alarm message on the DP Master when i sent it from a slave:

I make a C1_Alaram_notification request:

 void APS_Set_Slave_Alarm_req(PROFIBUS_APS_RSC_T FAR* ptRsc)
{
  PROFIBUS_APS_PACKET_T* ptPck;

if (TLR_POOL_PACKET_GET(ptRsc->tLoc.hPool, &ptPck) == TLR_S_OK)
{
ptPck->tSetSlaveDiagReq.tHead.ulCmd = PROFIBUS_FSPMS_CMD_C1_ALARM_NOTIFICATION_REQ;

TLR_QUE_LINK_SET_PACKET_SRC(ptPck, ptRsc->tLoc.tMscy1s.tLnkSrc); /* Set Source Process parameter */

ptPck->tC1AlarmNotificationReq.tHead.ulLen = PROFIBUS_FSPMS_C1_ALARM_NOTIFICATION_REQ_SIZE;
ptPck->tC1AlarmNotificationReq.tData.bSlotNumber = 0x03;
ptPck->tC1AlarmNotificationReq.tData.bAlarmType = 0x01;
ptPck->tC1AlarmNotificationReq.tData.bSeqNr = 0x03;
ptPck->tC1AlarmNotificationReq.tData.fAddAck= TRUE;
ptPck->tC1AlarmNotificationReq.tData.bAlarmSpecifier = 0x03;
ptPck->tC1AlarmNotificationReq.tData.abAlarmData[0] = 'H';
ptPck->tC1AlarmNotificationReq.tData.abAlarmData[1] = 'A';

TLR_QUE_SENDPACKET_FIFO(ptRsc->tLoc.tMscy1s.tLnkDst, ptPck, TLR_INFINITE);
}
else
{
ProfibusApsFaultind(ptRsc, TLR_DIAG_E_PROFIBUS_APS_NO_SLAVE_DIAG_PACKET);
}
}

Can I read it out with the Sycon ?

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 10.07.2009 | 12:00

Hi Rainer,

there is no Alarm plotting inside of Sycon. The alarmhandling must be realized inside of your application.

Rainer Versteeg

Rainer Versteeg

| 10.07.2009 | 12:55

Hi AJ,

Do you mean that i must write an application, that read out the alarm messages form the master ?.

Where I can found a manual that describe the function to read out the DP Master ?

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 10.07.2009 | 15:00

Hi Rainer,

maybe the Hilscher support have some kind of example available.

Login