Input tab (Basic Mode)


This section describes the Input task setting screen in Basic mode.

On this screen, you can get data from the device and set the timing and destination of linkage.

 

 

①#Input

Indicates the task No.. You can create up to 100 types of task settings (0 to 99).

 

②Device

You can select the device name registered in the device settings.

 

③Access type

Select how to get the data from the device.

The items that can be selected differ depending on the device.

Item

Target device

Description

Analog

AIO device

Specifies the analog input (voltage/current value) for each channel.

AnalogBinary

AIO device

Specifies the analog input (binary value) for each channel.

Count

CNT device

Specifies the counter value for each channel.

DigitalBit

AIO device/DIO device

Specifies the digital input in bits.

DigitalPort

AIO device/DIO device

Specifies the digital input in ports(8-bit unit).

DigitalOutBit

DIO device

Specifies the digital output state in bits.

DigitalOutPort

DIO device

Specifies the digital output state in ports(8-bit unit).

 

④InCh/Bit/Port

Select the method for specifying the linkage unit specified in ③.

Item

Description

#input

Enter using the input field on the right.

DncTextBox

Use the Text property of the DncTextBox that exists on the form.

Please use it when the user wants to change the acquired data while the application is running.

The Text property of DncTextBox is referenced when DncDaq Init method is performed.
*After Init, even if you modify the text content of DncTextBox, it will not be reflected in DncDaq.

 

At the time of input, it is possible to input numerical values such as "0" and "1", specify them separated by commas such as "0,1,3", and specify sequential numbers with hyphens such as "0-3".

 

For the contents that are permitted or prohibited, please refer to Input rule when specifying channel/bit/port.

 

⑤Target

Specifies the link destination of the input data. The link destination can be selected from the following.

Item

Description

Lamp

Data is linked to the Lamp control. (Selectable only for DigitalBit/Port and DigitalOutBit/Port)

Button

Data is linked to the Lamp control. (Selectable only for DigitalBit/Port and DigitalOutBit/Port)

Graph

Data is linked to the Graph control. (Selectable only for Analog and AnalogBinary)

Label

Data is linked to the Label control.

Level

Data is linked to the Level control. (Selectable only for Analog, AnalogBinary, and Count)

Meter

Data is linked to the Meter control. (Selectable only for Analog, AnalogBinary, and Count)

TextBox

Data is linked to the TextBox control.

TaskValue

Stores the value in Value of the task.
The storage destination of TaskValue differs depending on Access type.
Analog                :TaskValueFloat
AnalogBinary       :TaskValueInt
DigitalBit/Port      :TaskValueByte
DigitalOutBit/Port :TaskValueByte
Count                 :TaskValueUInt

WriteFile

Data is linked to the WriteFile control.

#OUT-TaskValue

Stores the value in TaskValue of Output task.
Please use this when you want to use the input value as the output value.

 

⑥Task No

This is enabled when "#OUT-TaskValue" is selected at ⑤ Target.

Please specify the output task No. to store the input data.

*An error will occur if the input data and the data type specified in the output task are different.

 

⑦Timing

Specifies when to input the data. In addition to the following items, you can select the contents set in the Timing setting.

Item

Description

Button

Uses the Button control's Click event.

Match

Selects the count comparison match event set on the CNT device.

It is displayed as a combination of [device name_Match_setting channel number_comparison register number].

For example, CNT000_Match_00_00

 Device name: CNT000

 Match: Fixed string

 00: Setting channel number ch0

 00: Comparison register number RegNo.0

Timer

Specifies the cycle in 1msec units.

Timing_XX

Selects the content set in timing settings.

The No. is entered in the XX part. (00-99)

TrackBar_ValueChange

Selects the TrackBar control's ValueChange event.

Displayed as a combination of [component name_valueChage].

For example, dncTrackBar01_valueChange

 Component name: dncTrackBar01

 Fixed string: valueChange

Volume_ValueChange

Selects the Volume control's ValueChange event.

Displayed as a combination of [component name_valueChage].

For example, dncVolume01_valueChange

 Component name: dncVolume01

 Fixed string: valueChange

 

Interval(ms)

It is enabled when "Timer" is selected for ⑦ Timing.

The data input cycle can be set in 1 msec unit.

 

⑨Enabled

You can select whether to enable/disable the input settings.