Download Siemens SPC3 Technical data
Transcript
SPC3
PROFIBUS Interface Center
if(DPS2_GET_IND_NEW_SSA_DATA())
{
/*=== New Slave address received ===*/
address_data_function(DPS2_GET_SSA_BUF_PTR(), DPS2_GET_SSA_LEN());
DPS2_CON_IND_NEW_SSA_DATA();
/* confirm this indication */
}
if(DPS2_GET_IND_WD_DP_MODE_TIMEOUT())
{
/*=== Watchdog is run out ===*/
wd_dp_mode_timeout_function();
DPS2_CON_IND_WD_DP_MODE_TIMEOUT(); /* confirm this indication */
}
if(SPC3_GET_IND_USER_TIMER_CLOCK())
{
/*==== Timer tick received ====*/
SPC3_CON_IND_USER_TIMER_CLOCK();
}
if(SPC3_GET_IND_BAUDRATE_DETECT())
{
/*==== Baudrate found ====*/
/* If the baudrate has lost and again found in the state WAIT_CFG,
/* DATA_EX the SPC3 would answer to the next telegramms
/* with his default mintsdr.
/* But he should answer in the meantime parametrized mindstr
*/
*/
*/
*/
if ((DPS2_GET_DP_STATE() == DPS2_DP_STATE_WAIT_CFG )
|| (DPS2_GET_DP_STATE() == DPS2_DP_STATE_DATA_EX))
SPC3_SET_MINTSDR(store_mintsdr);
SPC3_CON_IND_BAUDRATE_DETECT();
}
SPC3_SET_EOI(); /* */
}
/* End dps2_ind() */
SPC3 User Description
Copyright (C) Siemens AG 2002. All rights reserved.
V2.0
Page 95
09/02