industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 23.07.2009 | 14:36 | 3 replies

Change slave busaddress over DP Master

Hi !

We want to manually configure the fieldbus structure and change the busaddress of the slave over the Profibus master.

Can I change the slave busaddress over Sycon Systemconfigurator ?

If yes, then how can I do it ?

The Indication of the Slave:

void APS_Set_Slave_Add_ind(PROFIBUS_APS_RSC_T FAR* ptRsc,
                           PROFIBUS_APS_PACKET_T FAR* ptPckt)
{
  TLR_UINT uRemSlaveDataLen;

uRemSlaveDataLen = ptPckt->tSetSlaveAddInd.tHead.ulLen - PROFIBUS_FSPMS_SET_SLAVE_ADD_IND_SIZE;
if (uRemSlaveDataLen != 0)
{
/* TO DO!!! */
/* Save the remanent data somewhere */
}

/* Save the address */
ptRsc->tLoc.tMscy1s.uSlaveAdd = ptPckt->tSetSlaveAddInd.tData.bNewSlaveAdd;

/* Release the indication */
TLR_QUE_RETURNPACKET(ptPckt);

/* After having received the new station address we have to reset the MS0 Connection */
APS_SInitMs0_req(ptRsc);
}

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 23.07.2009 | 15:54

Hi Rainer,

the function to change the bus address is implemented in the Hilscher slave side. I do not know any function for this in Sycon.

On the master side exists the command "PROFIBUS_FSPMM2_CMD_SET_SLAVE_ADD_REQ" which can be sent over the message interface.

Rainer Versteeg

Rainer Versteeg

| 24.07.2009 | 12:41

Hi Aj,

My master is a PCI CIF50 PB card.
How can i sent the message PROFIBUS_FSPMM2_CMD_SET_SLAVE_ADD_REQ with the CIF 50 card.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 24.07.2009 | 12:45

Hi,

you can not sent the command "PROFIBUS_FSPMM2_CMD_SET_SLAVE_ADD_REQ" with the cif50PB. It was a netX command. maybe in the cif50PB exists a similar feature, but sorry this I don't know.

Login