Reference Manual
CONTEC Data Collector
for Analog I/O

CONTENTS
Overview ........................................................................ 3

Software ......................................................................... 9
Appendix...................................................................... 26
Customer Support and Inquiry............................ 31

Table of Contents
Overview ............................................................................3
1. Product Overview ...................................................................................................................................................4
1. About Edgecross ..............................................................................................................................................4
2. About “CONTEC Data Collector for Analog I/O" .................................................................................5
2. Data Collector Specifications .............................................................................................................................6
1. Common Specifications .................................................................................................................................6
2. Device Support Function ...............................................................................................................................6
3. Analog Input Range ........................................................................................................................................7
4. Analog Output Range ....................................................................................................................................7
3. Function ......................................................................................................................................................................8
1. Collection Function .........................................................................................................................................8
2. Read Function ....................................................................................................................................................8
3. Write Function ...................................................................................................................................................8

Software.............................................................................9
1. About Device Driver ........................................................................................................................................... 10
1. Installation for Device Driver .................................................................................................................... 10
2. Installation for Data Collector .................................................................................................................. 10
3. Uninstall ............................................................................................................................................................ 10
2. About Data Collector ......................................................................................................................................... 11
1. Parameter Setting ......................................................................................................................................... 11
2. Error Handling ................................................................................................................................................ 13
3. Details of Error Code [Data Collector] .................................................................................................. 14
4. Details of Error Code [Driver] ................................................................................................................... 15

Appendix ........................................................................ 26
1. Glossary ................................................................................................................................................................... 27
2. Inquiries ................................................................................................................................................................... 28

3. Open Source Software ....................................................................................................................................... 29
1. RapidJSON ....................................................................................................................................................... 29
2. msinttypes ........................................................................................................................................................ 30

Customer Support and Inquiry ..................................... 31
1. Services .................................................................................................................................................................... 32— 2 —Overview

This manual provides the information and specifications of
the product. Make sure you read this before actual use.

— 3 —

— —
Overview

CONTEC Data Collector for Analog I/O Reference Manual

1.Product Overview
1. About EdgecrossEdgecross is a standard open edge computing software platform going beyond the bounds ofcompanies and industries that promote the use of IoT at manufacturing sites. It connects the edge

computing area between FA and IT systems and realizes seamless data coordination, which is
independent from hardware.

Since 2017, which is when “Edgecross Consortium” was establishment, operation monitoring,

preventive maintenance and data analysis software, or supporting industrial computers have beenreleased, and the applications for those have expanded in the field of edge applications. On the other

hand, while data were collected from industrial networks such as OPC UA in the area of FA field, it
was difficult to collect the data from sensors or switch circuits that were incompatible with industrial
networks due to the lack of supporting devices or software.

With the “CONTEC Data Collector” software, you can utilize our extensive measuring controllers

and remote I/O devices on the Edgecross platform, and collect data from sensors or switch circuitsthat are incompatible with industrial networks. This software enhances the application range of the
Edgecross platform, and contributes to the development for various industries as well as the
manufacturing industry.

— 4 —

— —
Overview

CONTEC Data Collector for Analog I/O Reference Manual

2. About “CONTEC Data Collector for Analog I/O"
[CONTEC Data Collector for Analog I/O] is software that implements cooperation between the
Edgecross basic software platform and the data of our analog I/O measurement control and remote
I/O devices.

By using this Data Collector, the collection function, read function, and write function can be used
for compatible analog I/O devices.

— 5 —

— —
Overview

CONTEC Data Collector for Analog I/O Reference Manual

2.Data Collector Specifications
1. Common Specifications
Item

Specification

Support Language
Collection Function

EnglishCollection Interval
Data Type

Read Function

REAL

Collection Interval
Data Type

Write Function

100 msec to 900 msec
1 sec to 3600 sec
REAL

Collection Interval
Data Type

Support Device

100 msec to 900 msec
1 sec to 3600 sec

100 msec to 900 msec
1 sec to 3600 sec
REAL

CPS-BXC200+
Support I/O Module

CPS-AI-1608LI
CPS-AI-1608ALI
CPS-AO-1604LI
CPS-AO-1604VLICPSN-MCB271-S1-041,
CPSN-MCB271-1-041+
Support I/O Module

CPSN-AI-1208LI
CPSN-AI-2408LI

2. Device Support Function
DeviceCollection Function

Read Function

Write Function

CPS-AI-1608LI

Yes

Yes

No

CPS-AI-1608ALI

Yes

Yes

No

CPS-AO-1604LI

No

No

Yes

CPS-AO-1604VLI

No

No

Yes

CPSN-AI-1208LI

Yes

Yes

No

CPSN-AI-2408LI

Yes

Yes

No

— 6 —

— —
Overview

CONTEC Data Collector for Analog I/O Reference Manual

3. Analog Input Range

The analog input range that can be set for each device is as follows.
DeviceRange

CPS-AI-1608LI-10 to 10V

CPS-AI-1608ALI

0 to 20mA

CPSN-AI-1208LI-10 to 10V-5 to 5V

Remarks

In addition, device switch settings
are required.

-2.5 to 2.5V
0 to 10V-20 to 20mA
CPSN-AI-2408LI-10 to 10V-5 to 5V

In addition, device switch settings
are required.

-2.5 to 2.5V
0 to 10V
0 to 5V
0 to 20mA-20 to 20mA

4. Analog Output Range
The analog output range that can be set for each device is as follows.
DeviceRange

CPS-AO-1604LI

0 to 20mA

CPS-AO-1604VLI-10 to 10V— 7 —Remarks

— —Overview

CONTEC Data Collector for Analog I/O Reference Manual

3.Function

1. Collection Function
Analog input from the specified channel of the device at the set time interval.
Analog input method, and analog input range can be selected. *1

2. Read Function
Analog input from the specified channel of the device at the timing requested by the Edgecross basic
software.

Analog input method, and analog input range can be selected. *1

3. Write Function
Analog output the specified data to the specified channel of the device at the timing requested by
the Edgecross basic software.

Analog output range can be selected. *1*1 The device must have this function.

— 8 —SoftwareThis section provides the information on the device driverand the data collector software.

— 9 —

— —
Software

CONTEC Data Collector for Analog I/O Reference Manual

1.About Device Driver

1. Installation for Device Driver
It is necessary to install device driver for analog input devices before using [CONTEC Data Collector
for Analog I/O]. If device driver has been already installed and enabled, please proceed to the nextitem.

 Download Device Driver
Please download device driver from following URL.

1 Access to https://www.contec.com/download/list/driver-software/apipac/.

Please download [Run-Time Environment (Run-Time only)] of API-AIO(WDM).

2 Expand the downloaded file to a suitable place.

3 For details on how to install device driver, please refer to the reference manual for each device.
2. Installation for Data Collector
1 Expand the downloaded Data Collector package to a suitable place.
2 Execute the following expanded file.
¥Installer¥AIO¥setup.exe

3 Follow the instructions to install.

When the installation is complete, [CONTEC Data Collector] will be added to the start menu
and this Reference Manual will be stored in the folder.

3. Uninstall
Select [CONTEC Data Collector for Analog I/O] from [Add/Remove Programs] in [Control Panel] anduninstall it.

— 10 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

2.About Data Collector
The data collector settings are described here.

1. Parameter Setting Communication Parameters
Select and set the device which is to be used with this Data Collector.

Setting Item

Description

Device Name

Select the device you want to use from the list of device names set in the driver.

Analog Input
MethodSelect the analog input method.
It cannot be set if the device cannot be used.

 Collection Parameters
Set the data collection interval.

— 11 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual Location Parameters

Set the actual I/O target for the selected device.

Setting Item

Description

I/O Direction

For analog input, select [Input]. For analog output, select [Output].
If only one of these functions can be used depending on the function and device
used, the setting value is fixed.

Analog Range

Select the range.

ChannelSelect the target channel for analog input or analog output.

— 12 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

2. Error Handling Supplement on Error CodeIf an error occurs in the device driver, as detailed information,[Driver API name] and [Driver API error] items are displayed, and the API name, error code, and error
code description of the device driver in which the error occurred are displayed.

When you make an inquiry, please provide this information together to make it easier to understandthe details of the phenomenon.

Display contents example

1 Overview

Connection Processing error

2 Event code
2200

3 Detailed information[Process Flow information]
Source function :Data Collection Process Flow type :Data logging flow Data logging/diagnosis
flow No. :1 Process No. :1 Target device setting No. :1[Driver API name]
AioInit()[Driver API error]
10000: The devicename which wasn't registered by a device manager or a setup-tool was
specified

4 CauseAn error occurred in the driver.

— 13 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

3. Details of Error Code [Data Collector]
Error code [Hex]1001

Description (Overview / Cause)
Driver initialization error
Read data No. is incorrect.

1002

Collection data No. error
Collection data No. is incorrect.

1003

Read data No. error
Read data No. is incorrect.

1004

Write data No. error
Write data No. is incorrect.

1005

Collection parameter error
Collection parameter is incorrect.

1006

Connection status notification error
Connection status notification failed.

1007

Event notification function registration error
Error occurred in communication driver.

1008

Communication parameter acquisition failure
Failed to get the communication parameter.

1009

Data parameter acquisition failure
Failed to get the data parameter.

1300

Collection processing error
Parameter is incorrect.

1400

Read processing error
Parameter is incorrect.

1500

Write processing error
Parameter is incorrect.

2200

Connection processing error
An error occurred in the driver.

2300

Disconnection processing error
An error occurred in the driver.

2400

Collection processing error
An error occurred in the driver.

2500

Read processing error
An error occurred in the driver.

2600

Write processing error
An error occurred in the driver.

— 14 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

4. Details of Error Code [Driver]
Value [Dec]Description0

Normality completion

1

Failed in the acquisition of the resource
When you install the hardware, the resource of I/O address, interrupt level cannot be
retrieved. Check the resource in Device Manager.

2

Failed in the registration of the interruption routine
The device may be being used by such another driver as API-AIO.
Please remove other drivers by using Device Manager.
And, if the device is with interrupt jumper, please do the necessary settings.

3

Failed in the allocation of the memory
Memory is insufficient. Terminate the unnecessary applications.

4

Failed in the access of registry
Please contact CONTEC Information Center.

7

Execute AioResetDevice function because the device has recovered from standby mode

8

Initialization failed because caio.sys is not found9

Initialization failed because the file version of caio.dll cannot be acquired

10

Initialization failed because the file version of caio.sys cannot be acquired

11

Initialization failed because the file version of caio.dll is not same as caio.sys

10000

The device name which wasn't registered by a device manager was specified
Specify the right device name.

10001

Invalid ID was specified
Please use the ID retrieved from AioInit to specify the ID in function.

10002

AIO driver can't be called
At first, perform the function AioInit.

10003

Failed in the creation of the file
Please confirm whether the device driver has been started up normally in Device Manager.
If the device driver has not been started up normally, delete the device from Device
Manager, and recognize the device again.

10004

Failed in the closing of the file
There is a possibility that you performed termination processing for a device which was notinitialized.
This error may be ignored.

10005

Failed in the creation of the thread
Please contact CONTEC Information Center.

10006

Device not found
Make sure that the device is registered in device manager.

10007

Pointer to DeviceName is NULL

10008

Pointer to Device is NULL

10009

Device not found
Make sure that the device is registered in device manager.

10010

Pointer to DeviceName is NULL

10011

Pointer to Device is NULL

10012

Pointer to BoardId is NULL
— 15 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

10013

Could not get device type

10014

Pointer to Device is NULL

10015

Pointer to DeviceType is NULL

10100

A device name isn't stored in DeviceName
The string DeviceName is empty. Please store the device name into it.

10101

Pointer to Id is NULL
Specify the address of variable to parameter.

10180

Pointer to ErrorString is NULL
Specify the address of variable to parameter.

10220

The value of Offset is a minus
Specify a positive number to Offset.

10240

The value of Offset is a minus
Specify a positive number to Offset.

10241

Pointer to Data is NULL
Specify the address of variable to parameter.

10242

The value of Flag is outside the designated range of the function

10260

The value of Offset is a minus
Specify a positive number to Offset.

10261

Pointer to Data is NULL
Specify the address of variable to parameter.

10262

The value of Flag is outside the designated range of the function

10280

The value of Offset is a minus
Specify a positive number to Offset.

10281

The value of Flag is outside the designated range of the function

10300

The value of Offset is a minus
Specify a positive number to Offset.

10301

The value of Flag is outside the designated range of the function

10320

The value of Offset is a minus
Specify a positive number to Offset.

10321

The value of Flag is outside the designated range of the function

10340

The value of Signal is outside the designated range of the function

10341

The value of Value is outside the designated range of the function

10350

The value of Signal is outside the designated range of the function

10351

Pointer to Value is NULL

11000

The value of AiInputMethod is outside the designated range of the function
Set 0(single end input) or 1(differential input) to AiInputMethod.

11010

Pointer to AiInputMethod is NULL
Specify the address of variable to parameter.

11020

The value of AiChannels is outside the designated range of the function
Specify the number of analog input channels in range: 1 <= AiChannels <= Max number ofchannels.

11030

Pointer to AiChannels is NULL
Specify the address of variable to parameter.
— 16 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

11040

The value of AiChennal is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11041

The value of AiRange is outside the designated range of the function

11050

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11051

Pointer to AiRange is NULL
Specify the address of variable to parameter.

11060

The value of AiRange is outside the designated range of the function

11080

The value of AiMemoryType is outside the designated range of the function
Set 0(FIFO) or 1(RING) to AiMemoryType.

11090

Pointer to AiMemoryType is NULL
Specify the address of variable to parameter.

11100

The value of AiRepeatTimes is outside the designated range of the function
AiRepeatTimes should be set to a value greater than or equal to 0.

11110

Pointer to AiRepeatTimes is NULL
Specify the address of variable to parameter.

11120

The value of AiClockType is outside the designated range of the function
Set 0(clock for conversion) or 1(external clock) to AiClockType.

11130

Pointer to AiClockType is NULL
Specify the address of variable to parameter.

11140

The value of AiSamplingClock is outside the designated range of the function
AiSamplingClock should be set to a value greater than or equal to 1.

11150

Pointer to AiSamplingClock is NULL
Specify the address of variable to parameter.

11160

The value of AiStartTrigger is outside the designated range of the function

11170

Pointer to AiStartTrigger is NULL
Specify the address of variable to parameter.

11180

The value of AiChennal is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11181

The value of AiDirection is outside the designated range of the function
Set 0(both sides), 1(rising) or 2(falling) to AiDirection.

11190

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <=AiChannel <= Max channel.

11191

Pointer to AiStartLevel is NULL
Specify the address of variable to parameter.

11192

Pointer to AiDirection is NULL
Specify the address of variable to parameter.

11260

The value of AiStopTrigger is outside the designated range of the function
Specify the condition for stopping conversion in range: 0 <= AiStopTrigger <= 4.

11270

Pointer to AiStopTrigger is NULL
Specify the address of variable to parameter.

11280

The value of AiStopTimes is outside the designated range of the function
AiStopTimes should be set to a value greater than or equal to 1.

— 17 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

11290

Pointer to AiStopTimes is NULL
Specify the address of variable to parameter.

11300

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11301

The value of AiDirection is outside the designated range of the function
Set 0(both sides), 1(rising) or 2(falling) to AiDirection.

11310

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11311

Pointer to AiStopLevel is NULL
Specify the address of variable to parameter.

11312

Pointer to AiDirection is NULL
Specify the address of variable to parameter.

11360

The value of AiStopDelayTimes is outside the designated range of the function
AiStopDelayTimes should be set to a value greater than or equal to 0.

11370

Pointer to AiStopDelayTimes is NULL
Specify the address of variable to parameter.

11390

Pointer to AiEvent is NULL
Specify the address of variable to parameter.

11400

The value of AiSamplingTimes is outside the designated range of the function
AiSamplingTimes should be set to a value greater than or equal to 0.

11410

Pointer to AiSamplingTimes is NULL
Specify the address of variable to parameter.

11420

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11421

Pointer to AiData is NULL
Specify the address of variable to parameter.

11440

The value of AiChannels is outside the designated range of the function
Specify the number of channels setting in range: 1 <= AiChannels <= Max number ofchannels.

11441

Pointer to AiData is NULL
Specify the address of variable to parameter.

11460

The thread can't be carried out

11480

A driver inner error occurred

11481

A driver inner error occurred

11482

A driver inner error occurred

11483

A driver inner error occurred

11500

Pointer to AiStatus is NULL
Specify the address of variable to parameter.

11520

Pointer to AiSamplingCount is NULL
Specify the address of variable to parameter.

11540

Pointer to AiRepeatCount is NULL
Specify the address of variable to parameter.

11560

Pointer to AiStopTriggerCount is NULL
Specify the address of variable to parameter.
— 18 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

11580

Pointer to AiSamplingTimes is NULL
Specify the address of variable to parameter.

11581

Pointer to AiData is NULL
Specify the address of variable to parameter.

11720

Pointer to AiMaxChannels is NULL
Specify the address of variable to parameter.

11740

Pointer to AiResolution is NULL
Specify the address of variable to parameter.

11760

The value of AiChannel is outside the designated range of the function
Specify the analog input channel in range: 0 <= AiChannel <= Max channel.

11761

The value of Sequence is outside the designated range of the function
Specify the order for channels to convert in range: 0 <= AiChannel <= Max channel.

11770

The value of AiChannel is outside the designated range of the function
Specify the analog input channel in range: 0 <= AiChannel <= Max channel.

11771

Pointer to Sequence is NULL
Specify the address of variable to parameter.

11820

The value of AiMemorysize is outside the designated range of the function

11830

Pointer to AiMemorySize is NULL

11840

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11841

Pointer to AiData is NULL
Specify the address of variable to parameter.

11860

The value of AiChannels is outside the designated range of the function
Specify the number of channels setting in range: 1 <= AiChannels <= Max number ofchannels.

11861

Pointer to AiData is NULL
Specify the address of variable to parameter.

11880

Pointer to AiSamplingTimes is NULL
Specify the address of variable to parameter.

11881

Pointer to AiData is NULL
Specify the address of variable to parameter.

11920

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11921

The value of AiDirection is outside the designated range of the function

11930

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11931

Pointer to AiStartLevel is NULL
Specify the address of variable to parameter.

11932

Pointer to AiDirection is NULL

11940

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

11941

The value of AiDirection is outside the designated range of the function

11950

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.
— 19 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

11951

Pointer to AiStopLevel is NULL
Specify the address of variable to parameter.

11952

Pointer to AiDirection is NULL
Specify the address of variable to parameter.

11960

The value of AiTransferMode is outside the designated range of the function

11970

Pointer to AiTransferMode is NULL
Specify the address of variable to parameter

11980

The value of DataNumber is outside the designated range of the function

11981

Pointer to Buffer is NULL
Specify the address of variable to parameter.

11982

It failed in securing a buffer for Bus-Master transfer

12020

Pointer to DataSize is NULL
Specify the address of variable to parameter.

12040

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12041

The value of StateTimes is outside the designated range of the function

12050

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12051

Pointer to Level1 is NULL
Specify the address of variable to parameter.

12052

Pointer to Level2 is NULL
Specify the address of variable to parameter.

12053

Pointer to StateTimes is NULL
Specify the address of variable to parameter.

12060

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12061

The value of StateTimes is outside the designated range of the function

12070

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12071

Pointer to Level1 is NULL
Specify the address of variable to parameter.

12072

Pointer to Level2 is NULL
Specify the address of variable to parameter.

12073

Pointer to StateTimes is NULL
Specify the address of variable to parameter.

12080

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12081

The value of StateTimes is outside the designated range of the function

12090

The value of AiChannel is outside the designated range of the function

12091

Pointer to Level1 is NULL
Specify the address of variable to parameter.

12092

Pointer to Level2 is NULL
Specify the address of variable to parameter.

— 20 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

12093

Pointer to StateTimes is NULL
Specify the address of variable to parameter.

12100

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12101

The value of StateTimes is outside the designated range of the function

12110

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12111

Pointer to Level1 is NULL
Specify the address of variable to parameter.

12112

Pointer to Level1 is NULL
Specify the address of variable to parameter.

12113

Pointer to StateTimes is NULL
Specify the address of variable to parameter.

12120

The value of AiTransferTimes is outside the designated range of the function

12130

Pointer to AiSamplingTimes is NULL
Specify the address of variable to parameter.

12140

Pointer to AiTransferCount is NULL
Specify the address of variable to parameter.

12160

Pointer to Lap is NULL
Specify the address of variable to parameter.

12180

Pointer to Count is NULL
Specify the address of variable to parameter.

12200

The value of Range is outside the designated range of the function

12201

The value of Type is outside the designated range of the function

12202

The value of Data is outside the designated range of the function

12003

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <=AiChannel <= Max channel.

12210

The value of Range is outside the designated range of the function

12211

The value of Type is outside the designated range of the function

12212

Pointer to Data is NULL
Specify the address of variable to parameter.

12213

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12220

The value of Range is outside the designated range of the function

12221

The value of Type is outside the designated range of the function

12222

Pointer to Data is NULL
Specify the address of variable to parameter.

12223

The value of AiChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AiChannel <= Max channel.

12240

The value of AiScanClock is outside the designated range of the function

12250

Pointer to AiScanClock is NULL

12260

Pointer to AoSamplingClock is NULL

— 21 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

12310

The value of AiClockEdge is outside the designated range of the function

12320

Pointer to AiClockEdge is NULL

12382

Timeout occurred. Please reset the device, or extend the timeout period.

13000

The value of AoChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AoChannel <= Max channel.

13020

The value of AoChannels is outside the designated range of the function
Specify the number of analog output channels in range: 1 <= AoChannels <= Max numberof channels.

13021

Pointer to AoData is NULL
Specify the address of variable to parameter.

13040

Pointer to AoResolution is NULL
Specify the address of variable to parameter.

13060

The value of AoChannels is outside the designated range of the function
Specify the number of analog output channels in range: 1 <= AoChannels <= Max numberof channels.

13070

Pointer to AoChannels is NULL
Specify the address of variable to parameter.

13080

Pointer to AoMaxChannels is NULL
Specify the address of variable to parameter.

13100

The value of AoChannels is outside the designated range of the function
Specify the number of analog output channels in range: 1 <= AoChannels <= Max numberof channels.

13101

The value of AoRange is outside the designated range of the function

13110

The value of AoChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AoChannel <= Max channel.

13111

Pointer to AoRange is NULL
Specify the address of variable to parameter.

13120

The value of AoRange is outside the designated range of the function

13140

The value of AoMemoryType is outside the designated range of the function
Set 0(FIFO) or 1(RING) to AiMemoryType.

13150

Pointer to AoMemoryType is NULL
Specify the address of variable to parameter.

13160

The value of AoRepeatTimes is outside the designated range of the function
AoRepeatTimes should be set to a value greater than or equal to 0.

13170

Pointer to AoRepeatTimes is NULL
Specify the address of variable to parameter.

13180

The value of AoClockType is outside the designated range of the function
Set 0(clock for conversion) or 1(external clock) to AoClockType.

13190

Pointer to AoClockType is NULL
Specify the address of variable to parameter.

13200

The value of AoSamplingClock is outside the designated range of the function
AoSamplingClock should be set to a value greater than or equal to 1.

13210

Pointer to AoSamplingClock is NULL
Specify the address of variable to parameter.
— 22 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

13220

The value of AoSamplingTimes is outside the designated range of the function
AoSamplingClock should be set to a value greater than or equal to 1.

13221

Pointer to AoData is NULL
Specify the address of variable to parameter.

13230

Pointer to AoSamplingTimes is NULL
Specify the address of variable to parameter.

13240

The value of AoStartTrigger is outside the designated range of the function

13250

Pointer to AoStartTrigger is NULL
Specify the address of variable to parameter.

13260

The value of AoStopTrigger is outside the designated range of the function

13270

Pointer to AoStopTrigger is NULL
Specify the address of variable to parameter.

13290

Pointer to AoEvent is NULL
Specify the address of variable to parameter.

13300

The value of AoSamplingTimes is outside the designated range of the function
AoStopTimes should be set to a value greater than or equal to 1.

13310

Pointer to AoSamplingTimes is NULL
Specify the address of variable to parameter.

13320

The thread can't be carried out

13360

The value of AoChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AoChannel <= Max channel.

13370

The value of AoChannel is outside the designated range of the function
Specify the channel setting in range: 0 <= AoChannel <= Max channel.

13380

Pointer to AoStatus is NULL
Specify the address of variable to parameter.

13400

Pointer to AoSamplingCount is NULL
Specify the address of variable to parameter.

13420

Pointer to AoRepeatCount is NULL
Specify the address of variable to parameter.

13480

The value of AoMemorySize is outside the designated range of the function

13490

Pointer to AoMemorySize is NULL

13500

The value of AoChannel is outside the designated range of the function

13520

The value of AoChannels is outside the designated range of the function

13521

Pointer to AoData is NULL

13540

The value of AoSamplingTimes is outside the designated range of the function

13541

Pointer to AoData is NULL

13580

The value of AoTransferMode is outside the designated range of the function

13590

Pointer to AoTransferMode is NULL

13600

The value of DataNumber is outside the designated range of the function

13601

Pointer to Buffer is NULL

13602

It failed in securing a buffer for Bus-Master transfer

13640

Pointer to DataSize is NULL
— 23 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

13660

The value of AoTransferTimes is outside the designated range of the function

13670

Pointer to AoSamplingTimes is NULL

13680

Pointer to AoTransferCount is NULL

13700

Pointer to Lap is NULL

13720

The value of Range is outside the designated range of the function

13721

The value of Type is outside the designated range of the function

13722

The value of Data is outside the designated range of the function

13723

The value of AoChannel is outside the designated range of the function

13730

The value of Range is outside the designated range of the function

13731

The value of Type is outside the designated range of the function

13732

Pointer to Data is NUL

13733

The value of AoChannel is outside the designated range of the function

13740

The value of Range is outside the designated range of the function

13741

The value of Type is outside the designated range of the function

13742

Pointer to Data is NULL

13743

The value of AoChannel is outside the designated range of the function

13760

Pointer to AoSamplingClock is NULL

13770

The value of AoClockEdge is outside the designated range of the function

13780

Pointer to AiClockEdge is NULL

14000

The value of DiBit is outside the designated range of the function
Specify the digital input bit in range: 0 <= DiBit <= Max bit.

14001

Pointer to DiData is NULL
Specify the address of variable to parameter.

14010

The value of DiPort is outside the designated range of the function
Specify the digital input port in range: 0 <= DiPort <= Max port.

14011

Pointer to DiData is NULL
Specify the address of variable to parameter.

14020

The value of DoBit is outside the designated range of the function
Specify the digital output bit in range: 0 <= DoBit <= Max bit.

14021

The value of DoData is outside the designated range of the function

14030

The value of DoPort is outside the designated range of the function
Specify the digital output port in range: 0 <= DoPort <= Max port.

14031

The value of DoData is outside the designated range of the function

14040

The value of Bit is outside the designated range of the function

14041

The value of Value is outside the designated range of the function

14050

The value of Bit is outside the designated range of the function

14051

Pointer to Value is NULL

15000

The value of CntChannel is outside the designated range of the function

15010

The value of CntChannel is outside the designated range of the function

15011

Pointer to CntMode is NULL
— 24 —

— —Software

CONTEC Data Collector for Analog I/O Reference Manual

Value [Dec]Description

15020

The value of CntChannel is outside the designated range of the function

15021

The value of PresetNumber is outside the designated range of the function

15022

The value of Flag is outside the designated range of the function— 25 —

Appendix

This section describes words and terms used in thismanual, software details, and inquiries.

— 26 —

— —Appendix

CONTEC Data Collector for Analog I/O Reference Manual

1.Glossary
 Channel

The channel represents the number of analog inputs or analog outputs.
In this driver, the first channel is from 0 on.

 Input Method
The input method is the connection method of input analog signal. There are two input methods:

Single end and Differential input. For environments where the potential difference between the signal
source and the ground and noise components can be ignored, single ended input is suitable. Also,in an environment where the potential difference between the signal source and the ground and thenoise component can not be ignored, the differential input is suitable. When differential input is used,
the number of usable channels is half of that of single ended input.

 Range
Range is the range of the possible voltage (current) which can be analog input or analog output.

— 27 —

— —Appendix

CONTEC Data Collector for Analog I/O Reference Manual

2.Inquiries

Contact your retailer about the matter which is not described by this reference manual or unusual
operation.

Moreover, because the contents of question are hard to grasp as being oral, please inquire it in Email or Web form. We will contact you back.

When it is thought that operation is unusual, please write down the version of driver, Edgecross basic
software, Data Collector and the hardware environment of PC or other using devices in detail.

Please note that we cannot answer general questions such as how to use the Edgecross basic
software.

Before inquiry
The retailer first checks whether the hardware is not working properly or the software is not working,and responds according to each situation.

If you suspect an abnormal operation, please let us know in detail as much as possible after
confirming the reproduction procedure and the location where the problem occurred.

Inquiry Contact toPlease refer to the contact information and templates for making inquiries on our website.
https://www.contec.com/support/
FAQ library is also available.

— 28 —

— —Appendix

CONTEC Data Collector for Analog I/O Reference Manual

3.Open Source SoftwareThis software consists of multiple software components. Each of them is copyrighted by this company
and/or third parties.

This software contains the following open source software.
Software copyrighted by third parties and distributed as free software
In addition, source codes are not distributed for the software that this company and/or third parties
have copyrights to.

Please refrain from inquiring about the source codes of this open source.

1. RapidJSONThis product uses RapidJSON licensed under the MIT License.
The copyright and permission notices of RapidJSON are described below.
Tencent is pleased to support the open source community by making RapidJSON available.
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
If you have downloaded a copy of the RapidJSON binary from Tencent, please note that the
RapidJSON binary is licensed under the MIT License.

If you have downloaded a copy of the RapidJSON source code from Tencent, please note that

RapidJSON source code is licensed under the MIT License, except for the third-party components
listed below which are subject to different license terms.

Your integration of RapidJSON into yourown projects may require compliance with the MIT License, as well as the other licenses applicableto the third-party components included within RapidJSON.

To avoid the problematic JSON license

in your own projects, it's sufficient to exclude the bin/jsonchecker/ directory, as it's the only code
under the JSON license.

A copy of the MIT License is included in this file.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software andassociated documentation files (the "Software"), to deal in the Software without restriction,

including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,

and/or sell copies of the Software, and to permit persons to whom the Software is furnished to doso, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A— 29 —

— —Appendix

CONTEC Data Collector for Analog I/O Reference Manual

PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR

COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN

AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2. msinttypes
This product uses msinttypes licensed under the BSD License.
The copyright and permission notices of msinttypes are described below.
The msinttypes r29
Copyright (c) 2006-2013 Alexander Chemeris
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions andthe following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the
distribution.

* Neither the name of copyright holder nor the names of its contributors may be used to endorse or
promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESSOR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.

IN NO EVENTSHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,

SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,

PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN

CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANYWAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

— 30 —Customer Support andInquiry

CONTEC provides the following support services for you to
use CONTEC products more efficiently and comfortably.

— 31 —

—

Customer Support and Inquiry—

CONTEC Data Collector for Analog I/O Reference Manual

1.Services

CONTEC offers the useful information including product manuals that can be downloaded throughthe CONTEC website.

Download
https://www.contec.com/download/
You can download updated driver software, firmware, and differential
manuals in several languages. Membership registration (myCONTEC)
is required to use the services.

— 32 —

—

Revision History—

CONTEC Data Collector for Analog I/O Reference Manual

Revision History
MONTH YEARMay 2020

Summary of Changes
The First Edition— 33 —

CONTEC CO., LTD.

3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan

https://www.contec.com/
No part of this document may be copied or reproduced in any form by any means without prior written consent
of CONTEC CO., LTD.

CONTEC Data Collector for Analog I/O Reference Manual

NA07408 (LYYF811)[05082020]

May 2020 Edition