Digital 1 Bit Input [SimpleDi]

 

It is the simplest example of digital input.

When executed, in the initial state, you can check the status of bit 0 (the first input terminal) by ON/OFF of the LED.


Front Panel

 


Block Diagram

 


Sample Explanation

Please refer to this sample when adding digital input processing to existing application.
In addition to digital devices, it can also be used with analog devices and counter devices. Please refer to the following.

To perform digital input/output with an analog device, select [AIO device] with the [Channel setting] selector.
Also note that the device name (DeviceName) is [AIOxxx] instead of [DIOxxx].

To perform general-purpose digital input/output of the counter device, select [CNT device] or [CNT bus master device] with the selector of [Channel setting].
Also note that the device name (DeviceName) will be [CNTxxx] in this case too.

In the case of a counter device, the channel number is specified in DiBit.