dio_dev_emc

	status.i4.v = dio_dev_emc(device_indices.i4a.r, num_emcs.i4a.r,
				  emc_data.i1a.r, errors.i2a.r
				  [,num_devices.i4.r])

	This routine returns the Event Message Code(s) (EMC(s)) for a device.
	If "num_devices" specified, EMCs for a list of devices can be retrieved.

	device_indices	device index or array of device indices
	num_emcs	returned number of EMCs per device (up to 2)
			(A value of NULL may be passed if no entry counts
			 are needed.)
	emc_data	returned EMC data (LEN_EMC bytes per EMC)
			(A value of NULL may be passed if no EMC data
			 is needed.)
	errors		returned ACNET status value or array of status values
			(A status of DBM_NOPROP indicates that no EMCs exist
			 for that device.)
	[num_devices]	number of devices (default is 1)

	This function returns status values as follows:

	OK			success
	DIO_BADARG		invalid number of devices passed
	DIO_MEMFAIL		memory allocation failure
	negative value		ACNET format error indicating overall failure
	positive value		number of devices in error indicating partial
				success

	This function requires the following include files:

	cnsparam_h, diolib_h, acnet_errors_h

	Related functions:

	dio_emc_type_c, dio_emc_to_device_index, error_in_list(_c),
	dio_enable_obsolete_dev_info, dio_disable_obsolete_dev_info

	C/C++ usage:

	char	emc_data[2*NUM_DEVICES*LEN_EMC];
	short	errors[NUM_DEVICES];
	int	status;
	static const int	device_indices[NUM_DEVICES] = {14430, 14431};
	int	num_emcs[NUM_DEVICES];
	int	num_devices = NUM_DEVICES;

	status = dio_dev_emc(device_indices,num_emcs,emc_data,errors,
			     &num_devices);