ADwin-Gold II
, Manual February 2013
103
Digital Inputs and Outputs
Digout_Reset
ADwin
Digout_Reset
Digout_Reset
sets selected digital outputs to TTL level Low.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Digout_Reset
(
clear
)
Parameters
Notes
For a channel configured as input,
Digout_Reset
has no function.
Conf_DIO
configures digital channels as inputs or outputs in groups of
8.
See also
,
,
,
Valid for
Gold II
Example
Rem Please select the appropriate include for ADbasic /
TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
DIM
value
As
Long
Init:
REM configure inputs/outputs
CONF_DIO
(
0011b
)
Processdelay
=
10000
Event:
value
=
ADC
(
1
)
'get measurement
value
IF
(
value
>
3000
)
Then
'limit exceeded?
REM set outputs DIO01, DIO03, and DIO04 to level Low
Digout_Reset
(
11010b
)
EndIf
T11 TiCo
clear
Bit pattern to select the outputs, which are set to
TTL level Low (see table).
1: set to TTL level Low.
0: do not change level.
LONG
Bit no.
31
30
…
1
0
Channel
DIO31
DIO30
…
DIO01 DIO00