This is a simple example as with digital one bit input.
When executed, in the initial state, the state of port 0 (8 bits from the top) can be checked with hexadecimal display.
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.
Additionally, in the case of a counter device, DiPort is fixed to 0, and all the general-purpose digital inputs of all channels are read collectively.