Set and Confirm Device Name (USB I/O Unit - Module Type)

The following explains how to set and confirm the Device Name of our USB I/O Unit–Module Type.
The USB I/O unit is used by attaching a CONPROSYS nano I/O module.

Please note that the display screen for setting and confirming the Device Name of other devices will be different.

 

How to set and confirm Device Name

1. Start Device Manager.

The installed device is registered under the [CONTEC Devices] tree.

 

2. Expand the [CONTEC Devices] tree, select [IOC CC-USB271-CPSN4] and click the right mouse button.

Then click [Properties] from the pull-down menu.

3. The device properties screen is displayed.

Set the Device Name in [Common Settings] tab.
Settings in the [Common Settings] tab require administrator (Administrator) authority.

The [Device Type] column in the [Common Settings] tab displays the module type of the connected CONPROSYS nano I/O module.

The Device Name displayed initially is the initial value (default value).
Change the Device Name if necessary and click [OK].

※ Make sure that the device name is unique among multiple devices.
※ The Unit ID displays the value of the setting switch.

 

Use Device Name

The Device Name specified here will be required during programming.
An example of access from a program is shown below.

Example of device configuration

How to access from a program

Coupler unit: CC-USB271-CPSN4 x 1 unit

I/O module: CPSN-DO-08BL x 2 units

Assign a different Device Name "DIOxxxx" to each CPSN-DO-08BL. (For example: the first one is "DIO000", the second one is "DIO001")
Use this Device Name to output data using DioInit() and DioOutByte().

CPSN-DO-08BL is a device with only one digital output port.
Therefore, PortNo, the second argument of DioOutByte(), is always 0.

 First unit CPSN-DO-08BL : DIO000, PortNo=0
 Second unit CPSN-DO-08BL : DIO001, PortNo=0

Coupler unit: CC-USB271-CPSN4 x 1 unit

I/O module: CPSN-DI-16BCL x 2 units

Assign a different Device Name "DIOxxxx" to each CPSN-DI-16BCL. (For example: the first one is "DIO000", the second one is "DIO001")
Use this Device Name to read data using DioInit() and DioInpByte().

The CPSN-DI-16BCL is a device with two digital input ports.
Therefore, PortNo, the second argument of DioInpByte(), should be set to 0 or 1.

 First unit CPSN-DI-16BCL : DIO000, PortNo=0 (or 1)
 Second unit CPSN-DI-16BCL : DIO001, PortNo=0 (or 1)