(cardTaskState [card_id])
The target card ID (0..3). If no card ID is specified, the query is repeated for all initialized cards.
(cardTaskState card_id global_bits master_state (error_addr error_event bus_error_count bus_timeout_count) (SlaveCfg slave0_cfg...slave15_cfg) (SlaveState slave0_state...slave15_state) (SlaveDiag slave0_diag...slave15_diag) )
defined as follows:
A collective display of global event indications. Errors can occur either at the card itself or on a fieldbus device.
D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 |
0 | 0 | NRDY | EVE | FAT | NEXC | ACLR | CTRL |
NRDY (Host-Not-Ready-Notification): Indicates whether or not the HOST program has set its state to operational. If this bit is not set, the HOST is not ready to communicate.
EVE (Event-Error): The card has detected fieldbus short circuits. The number of detected events is reported in bus_error_count. This bit is set when the event was detected and is never cleared (until the card is reset).
FAT (Fatal-Error): Major bus error detected; no further bus communication is possible.
NEXC (Non-Exchange-Error): At least one fieldbus device has not reached the data exchange state and no process data exchange can take place.
ACLR (Auto-Clear-Error): The card has stopped communication with all fieldbus evices and reached the auto-clear end state.
CTRL (Control-Error): Parameterization error.
The overall card firmware state, one of the following:
0x00 | OFFLINE |
0x40 | STOP |
0x80 | CLEAR |
0xC0 | OPERATE |
If any of the global_bits: CTRL, ACLR, or NEXC are set, this variable specifies the source of the error. If the source is within the card itself, then a value of 255 is used. Otherwise, the MAC-ID of the faulty fieldbus device is returned.
Provides more detailed error codes. For more detail, see the appropriate protocol-specific CIF manual.
Provides a count of the number of times the warning limit on bus communication errors has been reached.
Provides a count of the number of times the bus frame error counter reaches its limit.
Reports the parameterization state of each field device, one bit per device, as 16 bytes (16 x 8 = 128 devices), starting with device 0 as bit 0 of the first byte. The status bit is interpreted as follows:
0: device is not configured in the card.
1: device is configured in the card, and serviced.
Reports the state of each field device, one bit per device, as 16 bytes (16 x 8 = 128 devices), starting with device 0 as bit 0 of the first byte. The status bit is interpreted as follows:
0: device is not operating, due to error or not configured.
1: device is operating.
Reports the diagnostic bit for each field device, one bit per device, as 16 bytes (16 x 8 = 128 devices), starting with device 0 as bit 0 of the first byte. These values are only valid if the master state of the card is OPERATE. The status bit is interpreted as follows:
0: no values were changed in the internal diagnostic buffer since the last diagnostic buffer read by the card.
1: new diagnostic values are available in the internal diagnostic buffer of one of the diagnostic bits of the device has changed. A diagnostic value can only be read via the message interface (see cifTelegram command).
Otherwise, one of the following error messages:
(error "cardReset DR_ERR_CARD_INVALID (time) invalid card: card_id")
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.