Details of Error Code

Initialization Errors

Definition

Value

[Dec]

Description

DIO_ERR_SUCCESS

0

Normal completed

DIO_ERR_INI_RESOURCE

1

Invalid resource reference specified.

Please confirm whether the used device has been registered in Device Manager normally.

DIO_ERR_INI_INTERRUPT

2

Invalid interrupt routine registered.

Please confirm whether the IRQ duplicates with another device.

DIO_ERR_INI_MEMORY

3

Invalid memory allocated.

This error would hardly occur. If this error occurred, please extend the memory.

DIO_ERR_INI_REGISTRY

4

Invalid registry access.

Please confirm whether the setting is available in property page.
If this error still occurred, please reinstall the device.

DIO_ERR_SYS_RECOVERED_FROM_STANDBY

7

Execute DioResetDevice function because the device has recovered from standby mode.

DIO_ERR_INI_NOT_FOUND_SYS_FILE

8

Because the Cdio.sys file is not found, it is not possible to initialize it.

DIO_ERR_INI_DLL_FILE_VERSION

9

Because version information on the Cdio.dll file cannot be acquired, it is not possible to initialize it.

DIO_ERR_INI_SYS_FILE_VERSION

10

Because version information on the Cdio.sys file cannot be acquired, it is not possible to initialize it.

DIO_ERR_INI_NO_MATCH_DRV_VERSION

11

Because version information on Cdio.dll and Cdio.sys is different, it is not possible to initialize it.

  

DLL Errors

Definition

Value

[Dec]

Description

DIO_ERR_DLL_DEVICE_NAME

10000

Invalid device name specified.

Please confirm the property page settings.

DIO_ERR_DLL_INVALID_ID

10001

Invalid ID specified.

Please confirm whether the initialization function has completed normally.
And confirm the scope of variable that stores ID.

DIO_ERR_DLL_CALL_DRIVER

10002

Not call the driver (Failure on DEVICE I/O CONTROL).

Please confirm whether the initialization function has completed normally.
And confirm the scope of variable that stores ID.

DIO_ERR_DLL_CREATE_FILE

10003

Not create the file (Failure on CreateFile).

Please confirm whether the device driver can activate normally using Device Manager.
When the device driver cannot activate normally, please delete the device and reinstall it.

DIO_ERR_DLL_CLOSE_FILE

10004

Not close the file (Failure on CloseFile).

It is possible that you have executed the termination processing for the device which was not initialized.
It does not matter even if this error is ignored.

DIO_ERR_DLL_CREATE_THREAD

10005

Not create the thread (Failure on CreateThread).

This error would hardly occur. If this error occurred, please confirm the number of threads activated by the application.

DIO_ERR_INFO_INVALID_DEVICE

10050

Invalid device information specified. Please check the spell.

Please confirm the device name used in the application and the device name set in Device Manager.

DIO_ERR_INFO_NOT_FIND_DEVICE

10051

Not find the available device.

Please confirm whether the device has been registered in Device Manager.

DIO_ERR_INFO_INVALID_INFOTYPE

10052

Specified device information type beyond the limit.

Error occurred in the information acquisition function. Please confirm the parameters.

DIO_ERR_DLL_BUFF_ADDRESS

10100

Invalid data buffer address.

The buffer address is NULL(0). Please confirm the source code of the application.

DIO_ERR_DLL_HWND

10200

Window handle beyond the limit.

Error occurred in message notification function. It is possible that the window handle is invalid when the function is executing. Please adjust the timing for calling the function.

DIO_ERR_DLL_TRG_KIND

10300

Trigger kind beyond the limit.

It is an error in the parameters of the trigger function. Please use the definition values.

 

Driver Errors

Definition

Value

[Dec]

Description

DIO_ERR_SYS_MEMORY

20000

Not secure memory.

This error would hardly occur. If this error occurred, please extend the memory.

DIO_ERR_SYS_NOT_SUPPORTED

20001

This board couldn't use this function.

Errors will occur when an input function is executed on a device without input port, or an output function or an echo back function is executed on a device without output port.

DIO_ERR_SYS_BOARD_EXECUTING

20002

Board is behaving, not execute.

When a device is accessed in the background, then the error will occur as the processing in the foreground cannot be executed. Now this error wouldn't occur.

DIO_ERR_SYS_USING_OTHER_PROCESS

20003

Other process is using the device, not execute.

Please confirm the restrictions on using more than one process.
For USB device, when executing the trigger function, only one process can be executed.
The trigger function cannot be executed by two or more processes on the same device.

DIO_ERR_SYS_NOT_FOUND_PROCESS_DATA

20004

Process information is not found.

 

USB Errors

Definition

Value

[Dec]

Description

STATUS_SYS_USB_CRC

20020

The last data packet received from end point has CRC error.

STATUS_SYS_USB_BTSTUFF

20021

The last data packet received from end point has bit stuffing violation error.

STATUS_SYS_USB_DATA_TOGGLE_MISMATCH

20022

The last data packet received from end point has data toggle packet that does not match the expected value.

STATUS_SYS_USB_STALL_PID

20023

End point return STALL packet identifier.

STATUS_SYS_USB_DEV_NOT_RESPONDING

20024

Device don't respond to token(IN) ,don't support handshake.

STATUS_SYS_USB_PID_CHECK_FAILURE

20025

Device don't respond to token(IN) ,don't support handshake.

STATUS_SYS_USB_UNEXPECTED_PID

20026

Invalid packet identifier received.

STATUS_SYS_USB_DATA_OVERRUN

20027

End point return data quantity overrun.

STATUS_SYS_USB_DATA_UNDERRUN

20028

End point return data quantity underrun.

STATUS_SYS_USB_BUFFER_OVERRUN

20029

IN transmit specified buffer overrun.

STATUS_SYS_USB_BUFFER_UNDERRUN

20030

OUT transmit specified buffer underrun.

STATUS_SYS_USB_ENDPOINT_HALTED

20031

End point status is STALL, not transmit.

STATUS_SYS_USB_NOT_FOUND_DEVINFO

20032

Not found device information.

STATUS_SYS_USB_ACCESS_DENIED

20033

The access to hardware was refused.

STATUS_SYS_USB_INVALID_HANDLE

20034

The specified handle is invalid.

 

Driver DIO Errors

Definition

Value

[Dec]

Description

DIO_ERR_SYS_PORT_NO

20100

Port No. beyond the limit.

Please confirm the number of I/O ports of the device and the parameters being used by the program.

DIO_ERR_SYS_PORT_NUM

20101

Port number beyond the limit.

The available maximum number of I/O ports is 256.

DIO_ERR_SYS_BIT_NO

20102

Bit No. beyond the limit.

Please confirm the number of I/O bits of the device and the parameters being used by the program.

DIO_ERR_SYS_BIT_NUM

20103

Bit number beyond the limit.

The available maximum number of I/O bits is 256.

DIO_ERR_SYS_BIT_DATA

20104

Bit data beyond the limit of 0 to 1.

It is an error in bit output. Please confirm the parameters being used by the program.

DIO_ERR_SYS_CH_NO

20105

Channel No. is outside the setting range.

DIO_ERR_SYS_CH_NUM

20106

Channel number is outside the setting range.

DIO_ERR_SYS_INT_BIT

20200

Interrupt bit beyond the limit.

For USB device, only the first four bits of a module can use interrupt.

DIO_ERR_SYS_INT_LOGIC

20201

Interrupt logic beyond the limit.

The interrupt logic is either rising edge or falling edge. Please use the definition values.

DIO_ERR_SYS_TIM

20300

Timer value beyond the limit.
The error occurred in the trigger function. For USB device, the timer value is from 1ms to 2147483647ms.

DIO_ERR_SYS_FILTER

20400

Filter number beyond the limit.

DIO_ERR_SYS_IODIRECTION

20500

Direction value is out of range.

DIO_ERR_SYS_8255

20600

8255 chip number is outside of the range.

DIO_ERR_SYS_CNT_EDGE

20700

Count edge is outside the setting range.

DIO_ERR_SYS_CMP_REG_NO

20800

Comparision register No. is outside the setting range.

DIO_ERR_SYS_CMP_REG_VAL

20801

Comparision register value is outside the setting range.

DIO_ERR_SYS_COUNT_VAL

20810

Count value is outside the setting range.

DIO_ERR_SYS_SIGNAL

21000

Signal is outside the setting range.

DIO_ERR_SYS_START

21001

Start conditions are outside the setting range.

DIO_ERR_SYS_CLOCK

21002

Clock conditions are outside the setting range.

DIO_ERR_SYS_CLOCK_VAL

21003

Clock value is outside the setting range.

DIO_ERR_SYS_CLOCK_UNIT

21004

Clock value unit is outside the setting range.

DIO_ERR_SYS_STOP

21005

Stop conditions are outside the setting range.

DIO_ERR_SYS_STOP_NUM

21006

Stop number is outside the setting range.

DIO_ERR_SYS_RESET

21007

Contents of reset are outside the setting range.

DIO_ERR_SYS_LEN

21008

Data number is outside the setting range.

DIO_ERR_SYS_RING

21009

Buffer repetition use setup is outside the setting range.

DIO_ERR_SYS_COUNT

21010

Data transmission number is outside the setting range.

DIO_ERR_DM_BUFFER

21100

Buffer was too large and has not secured.

Because the buffer size is too large, it is not possible to set it to the board. Please reduce the buffer size.

DIO_ERR_DM_LOCK_MEMORY

21101

Memory has not been locked.

Please extend the mounting memory or reduce buffer size.

DIO_ERR_DM_PARAM

21102

Parameter error.

One of the function parameters is out of the available range. Please confirm the values of the parameters.

DIO_ERR_DM_SEQUENCE

21103

Procedure error of execution.

The execution procedure of the function is wrong. When the bus master transfer starts without setting the buffer, or the buffer is set during bus master transfer, or the general-purpose I/O function is called during bus master transfer, the error will occur. Please review the program referring to the sample.

DIO_ERR_NET_BASE

22000

Access error.
You may try to initialize an unsupported device.

DIO_ERR_NET_ACCESS

22001

Access right violation.
You may try to use a feature which is not available.
Please check if the firmware and the target device are correct.

DIO_ERR_NET_AREA

22002

Area error.
You may try to use a feature which is not available.
Please check if the firmware and the target device are correct.

DIO_ERR_NET_SIZE

22003

Access size error.
You may try to use a feature which is not available.
Please check if the firmware and the target device are correct.

DIO_ERR_NET_PARAMETER

22004

Parameter error.
You may try to use a feature which is not available.
Please check if the firmware and the target device are correct.

DIO_ERR_NET_LENGTH

22005

Length error.
You may try to use a feature which is not available.
Please check if the firmware and the target device are correct.

DIO_ERR_NET_RESOURCE

22006

Resource insufficient.
You may try to use a feature which is not available.
Please check if the firmware and the target device are correct.

DIO_ERR_NET_TIMEOUT

22016

Communication timeout occurred.
Please check the communication settings and the communication environment.

DIO_ERR_NET_HANDLE

22017

Handle error.
It may have the failure on Init function.
Please call Exit function, then call Init function again.

DIO_ERR_NET_CLOSE

22018

Close error.
It had the failure on closing driver.

DIO_ERR_NET_TIMEOUT_WIO

22064

Wireless communication timeout occurred.
This is dedicated error for wireless I/O.

DIO_ERR_NET_NOT_DEVICE

22065

There is no device.
This is dedicated error for wireless I/O.