Download netIC User Manual and Design Guide
Transcript
Data Model 12.3.3 86/241 System Flags These flags show the current state of the system and the communication of netIC Communication IC. Bit Description Bit 0 READY The Ready flag is set as soon as the operating system has initialized itself properly and passed its self test. When the flag is set, the netX is ready to accept packets via the system mailbox. If cleared, the netX does not accept any packages. Bit 1 ERROR The Error flag is set when the netX has detected an internal error condition. This is considered a fatal error. The Ready flag is cleared and the operating system is stopped. An error code helping to identify the issue is placed in the ulSystemError variable in the system control block. The Error flag is not supported yet. Bit 2 COMMUNICATING The Communicating flag is set if the protocol stack has an open connection to the network master. If cleared, the input data should not be evaluated, because it may be invalid, old or both. Bit 3 NCF_ERROR The Error flag signals an error condition that is reported by the protocol stack. It could indicate a network communication issue or something to that effect. The corresponding error code is placed in the ulCommunicationError variable in the communication status block. Bit 4 RX_MBX_FULL This flag shows that the Receive Mailbox contains a Packet. If the Packet is read out the flag will automatically cleared. This flag has to be checked cyclically by the host if a message was received. Bit 5 TX_MBX_FULL This flag shows that the Send Mailbox contains a Packet. If the Packet is taken over from the Fieldbus Protocol the flag is automatically cleared. Before sending a Packet this Flag has to be checked if it is zero otherwise it is not allowed to send a Packet. Bit 6 BUS_ON This flag reflects the current bus state, if the protocol stack accesses the bus Bit 7 FLS_CFG This flag indicates, whether the netIC is configured by a configuration originating from the flash file system. It will be cleared, when the command flag CLR_CFG is executed. When the command flag STR_CFG is set, the netIC will set this flag. Bit 8 LCK_CFG This flag indicates, whether the registers which contain any configuration data (network and system configuration data) are write protected or not. This flag will be set and cleared by using the command flags LCK_CFG and UNLOCK_CFG. Bit 9 WDG_ON This flag indicates, whether the watchdog function has been activated or not. This flag is set or cleared by the command flags WDG_ON and WDG_OFF Bit 10 RUNNING This flag indicates, whether the protocol stack has been configured and the initialization has been completed successfully. The configuration process may last for some seconds depending on the chosen protocol. If the configuration has been completed successfully, the RUNNING flag will be set. The host application can use this flag for synchronization purposes, for instance. Bit 11 SX_WRITE_IND This flag will be set when the web server writes to register 7999. It will be cleared when the host reads from register 7999. This flag can be used for synchronization between host and integrated web server. Bit 12 … 15 Reserved, set to zero Table 53: System Flags netIC | DIL-32 Communication IC for Real Time Ethernet and Fieldbus DOC080601UM25EN | Revision 25 | English | 2014-05 | Released | Public © Hilscher, 2008-2014