Interface Inc.
●
7401 East Butherus Drive, Scottsdale, Arizona 85260 USA
●
Phone 480.948.5555
●
Fax 480.948.1924
www.interfaceforce.com
●
Email:
●
ORDER TOLL-FREE 800.947.5598
29
Send:
0xB6 01 00
Send:
0xB7
Receive
:
0x 3B B7
01
00 02 30 33 33 01 00 0D 0A
Send:
0x24
Result: IO1 is configured as an input and can be read with 0xB9
set_threshold (0x20 <p1> <p2>)
Parameters in HEX <p1>
Description
Channel
assignment
Switching
threshold
01
SW1
1
ON
02
SW1
1
OFF
03
SW2
1
ON
04
SW2
1
OFF
05
SW3
2
ON
06
SW3
2
OFF
07
SW4
2
ON
08
SW4
2
OFF
09
SW5
3
ON
0A
SW5
3
OFF
0B
SW6
3
ON
0C
SW6
3
OFF
0D
SW7
4
ON
0E
SW7
4
OFF
0F
SW8
4
ON
10
SW8
4
OFF
By setting the on and off switching thresholds differently, a hysteresis can be programmed.
The second parameter (<p2>) is the switching threshold in HEX e.g.: 0x89 FF.
Caution: in order to compare the threshold value with the measured value directly, it has to be
added with 0x80 00.
Example: Configuration of SW1 IO8 ( or digital 5)
Send:
0x 23
Send:
0x B6 08 11
Configure IO8 for SW1