DeviceNet Master Protocol API
DeviceNet Master Protocol API
DeviceNet Master Protocol API
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>DeviceNet</strong>-<strong>Master</strong> Dual-Port Memory • 41<br />
Slave State<br />
The slave state field is available for master implementations only. It indicates whether the master is in<br />
cyclic data exchange to all configured slaves. In case there is at least one slave missing or if the slave<br />
has a diagnostic request pending, the status is set to FAILED. For protocols that support non-cyclic<br />
communication only, the slave state is set to OK as soon as a valid configuration is found.<br />
Status and Error Codes<br />
Code (Symbolic Constant) Numerical Value Meaning<br />
RCX_SLAVE_STATE_UNDEFINED 0x00000000 UNDEFINED<br />
RCX_SLAVE_STATE_OK 0x00000001 OK<br />
RCX_SLAVE_STATE_FAILED 0x00000002 FAILED (at least one slave)<br />
Others are reserved<br />
Table 21: Status and Error Codes<br />
Slave Error Log Indicator<br />
The error log indicator field holds the number of entries in the internal error log. If all entries are read<br />
from the log, the field is set to zero.<br />
Note: This function is not yet supported.<br />
Number of Configured Slaves<br />
The firmware maintains a list of slaves to which the master has to open a connection. This list is<br />
derived from the configuration database created by SYCON.net (see 6.1). This field holds the number<br />
of configured slaves.<br />
Number of Active Slaves<br />
The firmware maintains a list of slaves to which the master has successfully opened a connection.<br />
Ideally, the number of active slaves is equal to the number of configured slaves. For certain Fieldbus<br />
systems it could be possible that the slave is shown as activated, but still has a problem in terms of a<br />
diagnostic issue. This field holds the number of active slaves.<br />
Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D-65795 Hattersheim<br />
Edition 3 – <strong>API</strong>:<strong>DeviceNet</strong>-<strong>Master</strong>#EN– 2009/01