A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 32
2.7.4
DI/DO operating method
You can make commands in MiniOS7 Utility to test DI and DO. Please refer to
Chapter 3 & 4 (especially section 3.4 & 4.3) to see how to use MiniOS7 Utility.
The commands for testing DI & DO are listed below:
Type
Command Description
DI i port Read data from the address of hardware port ( 0x104 )
DO o port value
Output data value to the address of hardware port (0x105)
Ex1: Make command
i 0x104
to get DI value as below.
Ex2: Make command
o 0x105 DOvalue
to set DO value as below.
The value will show the DI/DO byte value, please see the bits definition from
section 2.7.1 to 2.7.3.
Get value:
3F => 00111111 (DI4 => DI1 : 1111)
When DI changed, get value again:
76 => 01110110 (DI4 => DI1 : 0110)
If pin is float (without connect to any line), input value is “1”.
If pin is connected to ground, the input value is “0”.
Set value:
1F => 00011111 (Bit 8 => Bit 5 : 0001) (Relay 1 active)
Set value again, the DO will change:
2F => 00101111 (Bit 8 => Bit 5 : 0010) (Relay 2 active)