deviceStatus

deviceStatus — provides a summary of the DeviceNet device status.

Synopsis

(deviceStatus card_id [device_MAC_id])
	

Parameters

card_id
The target card ID (0..3).
device_MAC_id
The device MAC ID. If not specified, then all devices are queried.

Returns

If the card is defined:

(deviceStatus card_id [DeviceStatusi] ...)

where DeviceStatusi is the status of the specified device (or repeated for all configured devices if not specified) and is defined as follows:

(device_MAC_id status_code status_string)

The respective meanings of the status_code and status_string are as follows:

status_codestatus_stringMeaning
0x00DS_DEV_NOT_IN_LISTDevice not in device list.
0x01DS_DEV_IDLEDevice idle (not scanned).
0x02DS_DEV_SCANNEDDevice being scanned.
0x03DS_DEV_TIMEOUTDevice timed-out.
0x04DS_UCMM_CONN_ERRORUCMM connection error.
0x05DS_CONNECTION_BUSYMstr/slv connection set busy.
0x06DS_CONN_ALLOC_ERRError allocating mstr/slv connection.
0x07DS_VEND_ID_INVALIDInvalid vendor ID.
0x08DS_VEND_ID_RD_ERRError reading vendor ID.
0x09DS_DEV_TYPE_INVALIDInvalid device type.
0x0ADS_DEV_TYPE_RD_ERRError reading device type.
0x0BDS_PRODCODE_INVALIDInvalid product code.
0x0CDS_PRODCODE_RD_ERRError reading product code.
0x0DDS_CONN1ISIZE_INVInvalid IO connection 1 input size.
0x0EDS_CONN1ISIZE_RD_ERRError reading IO connection 1 input.
0x0FDS_CONN1OSIZE_INVInvalid IO connection 1 output size.
0x10DS_CONN1OSIZE_RD_ERRError reading IO connection 1 output.
0x11DS_CONN2ISIZE_INVInvalid IO connection 2 input size.
0x12DS_CONN2ISIZE_RD_ERRError reading IO connection 2 input.
0x13DS_CONN2OSIZE_INVInvalid IO connection 2 output size.
0x14DS_CONN2OSIZE_RD_ERRError reading IO connection 2 output.
0x15DS_CONN1_PCKRATE_ERRError setting IO connection 1 packet.
0x16DS_CONN2_PCKRATE_ERRError setting IO connection 2 packet.
0x17DS_CONN_SYNC_FAULTMstr/slv connection set sync.
0x18DS_PIT_ERRError setting Production inhibit time.

Otherwise, one of the following error messages:

(error "deviceStatus DR_ERR_CARD_INVALID (time) invalid card: card_id")
(error "deviceStatus DR_ERR_DEVICE_INVALID (time) Card card_id Device device_MAC_id not valid")

Description

This command provides the status of the client connection to configured devices. Devices must have been configured with the dnsDeviceAdd command.

Example

If card 1 is online and a single device has been successfully defined (MAC id 2), then

	(deviceStatus 1)

returns

	(deviceStatus 1 (2 2 "DS_SCANNED"))

if scanning is active, otherwise

	(deviceStatus 1 (2 1 "DS_IDLE"))