Details of Error Code

Initialization Errors

Definition

Value

Description

CNT_ERR_SUCCESS

0

Normality completion

CNT_ERR_INI_RESOURCE

1

Failed in the acquisition of the resource.
The used Device was not registered in the device manager normally, please make sure about that.

CNT_ERR_INI_INTERRUPT

2

Failed in the registration of the interruption routine.
The IRQ duplicates with another device, please make sure about that.

CNT_ERR_INI_MEMORY

3

Failed in the allocation of the memory.
Please extend the memory.

CNT_ERR_INI_REGISTRY

4

Failed in the access of registry.
Please make sure if the property pages can be set.
When this error occurred, please reinstall the device.

CNT_ERR_SYS_RECOVERED_FROM_STANDBY

7

Execute the function CntResetDevice to return from the standby mode.

CNT_ERR_INI_NOT_FOUND_SYS_FILE

8

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

CNT_ERR_INI_DLL_FILE_VERSION

9

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

CNT_ERR_INI_SYS_FILE_VERSION

10

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

CNT_ERR_INI_NO_MATCH_DRV_VERSION

11

Because the version information of ccnt.dll is not corresponding to the version information of ccnt.sys, it is not possible to initialize it.

 

DLL Errors

Definition

Value

Description

CNT_ERR_DLL_DEVICE_NAME

10000

The device name which wasn't registered by a device manager was specified.
Please make sure about the settings of property pages.

CNT_ERR_DLL_INVALID_ID

10001

Invalid ID was specified.
Please make sure if the initialization function could complete normally.
And make sure about the scope of variable containing ID.

CNT_ERR_DLL_CALL_DRIVER

10002

CNT driver can't be called (Failed in the device I/O control).
Please make sure if the initialization function could complete normally.
And make sure about the scope of variable containing ID.

CNT_ERR_DLL_CREATE_FILE

10003

Failed in the creation of the file (Failed in CreateFile).
Please use the device manager to make sure if the device driver could activate normally.
When the device driver cannot activate normally, please delete the device and reinstall it.

CNT_ERR_DLL_CLOSE_FILE

10004

Failed in the closing of the file (Failed in CloseFile).
It is possible that you have executed the exit processing of the device which wasn't initialized.
Even if the error is ignored, you needn't to mind it.

CNT_ERR_DLL_CREATE_THREAD

10005

Failed in the creation of the thread (Failed in CreateThread).
This error would hardly occur. If this error occurred, please make sure about the number of threads activated by the application.

CNT_ERR_INFO_INVALID_DEVICE

10050

The specified device name is not found. Please check spelling.
Please make sure of the device name used in the application and the device name set in the device manager.

CNT_ERR_INFO_NOT_FIND_DEVICE

10051

No more device.
Please make sure that the device was registered in the device manager.

CNT_ERR_INFO_INVALID_INFOTYPE

10052

Information type is invalid.
Error occurred in the information acquisition functions. Please make sure about the parameters.

CNT_ERR_DLL_MODE

10100

Invalid mode setting.
Please set mode to the defined value.

CNT_ERR_DLL_BUFF_ADDRESS

10101

Invalid data buffer address.
The buffer address is NULL(0). Please make sure of the application's source code.

CNT_ERR_DLL_HWND

10200

Window handle is invalid.
Error occurred in the message notice function. It is possible that the window handle is not valid when the function is executing. adjust the timing for function calling.

 

Driver Errors

Definition

Value

Description

CNT_ERR_SYS_MEMORY

20000

It failed in memory allocation for the object preparation. This error would hardly occur. If this error occurred, please extend the memory.

CNT_ERR_SYS_NOT_SUPPORTED

20001

This function can't be used by this device.

CNT_ERR_SYS_BOARD_EXECUTING

20002

Cannot use while by another device works.
When the device is accessing in background and a foreground processing is executed, the error occurs.

CNT_ERR_SYS_USING_OTHER_PROCESS

20003

Cannot use because another process is using the device.
Please make sure of the restrictions when using multiple processes.
The number of available processes varies depending on the device used.

  

USB Errors

Definition

Value

Description

STATUS_SYS_USB_CRC

20020

The final data packet received from the endpoint have CRC error.

STATUS_SYS_USB_BTSTUFF

20021

The final data packet received from the endpoint have infract of bit stuff error.

STATUS_SYS_USB_DATA_TOGGLE_MISMATCH

20022

The final data packet received from the endpoint mismatch with the expected data toggle packet.

STATUS_SYS_USB_STALL_PID

20023

The STALL packet id returned from the endpoint.

STATUS_SYS_USB_DEV_NOT_RESPONDING

20024

The device is marked with unresponsive token (IN). Or it cannot support handshake.

STATUS_SYS_USB_PID_CHECK_FAILURE

20025

The device is marked with unresponsive token (IN). Or it cannot support handshake.

STATUS_SYS_USB_UNEXPECTED_PID

20026

Received packet id is invalid or undefined.

STATUS_SYS_USB_DATA_OVERRUN

20027

The size of the data returned from the endpoint is over the permitted maximum length of data packet or buffer remain.

STATUS_SYS_USB_DATA_UNDERRUN

20028

The size of the data returned from the endpoint is not up to the expectation.

STATUS_SYS_USB_BUFFER_OVERRUN

20029

The size of the data returned from the endpoint is not up to the expectation.

STATUS_SYS_USB_BUFFER_UNDERRUN

20030

When doing OUT transfer, the specified buffer cannot store all the data transferred to the device.

STATUS_SYS_USB_ENDPOINT_HALTED

20031

The status of the endpoint is STALL, transfer failed.

STATUS_SYS_USB_NOT_FOUND_DEVINFO

20032

The device information is not found.

STATUS_SYS_USB_ACCESS_DENIED

20033

The access to hardware was refused.

STATUS_SYS_USB_INVALID_HANDLE

20034

The specified handle is invalid.

  

Driver CNT Errors

Definition

Value

Description

CNT_ERR_SYS_MODE

20100

Invalid mode setting.
The selected mode on the specified device is can't be used. Please refer to the device's manual.

CNT_ERR_SYS_CH_NO

20201

Channel number is out of range.
Please make sure about the channel number.

CNT_ERR_SYS_CH_NUM

20202

Number of channels is out of range.
Please make sure about the number of channels.

CNT_ERR_SYS_CH_VALUE

20203

Counter value is out of range.

CNT_ERR_SYS_REGNO

20204

Compare register number is out of range.

CNT_ERR_SYS_TIMER_VALUE

20300

Timer value is out of range.

CNT_ERR_SYS_OUTPUT_LOGIC

20301

The output logic of the control output signal is out of range.

CNT_ERR_SYS_EVENT_TYPE

20302

The kind of hardware event is out of range.

CNT_ERR_SYS_PULSE_WIDTH

20303

The coefficient of one-shot pulse width is out of range.

CNT_ERR_SYS_INPUT_LOGIC

20304

The input logic of control input signal is out of range.

CNT_ERR_SYS_OUTPUT_DATA

20305

The output data is out of range.

CNT_ERR_NET_BASE

22000

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

CNT_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.

CNT_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.

CNT_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.

CNT_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.

CNT_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.

CNT_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.

CNT_ERR_NET_TIMEOUT

22016

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

CNT_ERR_NET_HANDLE

22017

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

CNT_ERR_NET_CLOSE

22018

Close error.
It had the failure on closing driver.

 

Driver CNT Sampling Function Error

Definition

Value

Description

CNT_ERR_SYS_START_SIGNAL

21000

The start signal is out of range.

CNT_ERR_SYS_STOP_SIGNAL

21001

The stop signal is out of range.

CNT_ERR_SYS_CLOCK_SIGNAL

21002

The clock signal is out of range.

CNT_ERR_SYS_SIGNAL

21003

The available signal is out of range.

CNT_ERR_SYS_COUNT_MODE

21004

The count mode is out of range.

CNT_ERR_SYS_START_TRG

21005

The start condition is out of range.

CNT_ERR_SYS_COUNT_START_MODE

21006

The count start condition is out of range.

CNT_ERR_SYS_CLOCK_TRG

21007

The clock condition is out of range.

CNT_ERR_SYS_STOP_TRG

21008

The stop condition is out of range.

CNT_ERR_SYS_CLOCK_VAL

21009

The clock value is out of range.

CNT_ERR_SYS_CLOCK_UNIT

21010

The unit of clock value is out of range.

CNT_ERR_SYS_STOP_NUM

21011

The time of sampling stop is out of range.

CNT_ERR_SYS_COUNT_STOP_MODE

21012

The count stop condition is out of range.

CNT_ERR_SYS_BUFFER

21100

Because the buffer was too large, it was not possible to secure it.

CNT_ERR_SYS_LOCK_MEMORY

21101

The memory cannot be locked.

CNT_ERR_SYS_SEQUENCE

21102

Execution procedure error