Digital Inputs and Outputs
Digout_Set
ADwin
104
ADwin-Gold II
, Manual February 2013
Digout_Set
Digout_Set
sets selected outputs to TTL level High.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Digout_Set
(
set
)
Parameters
Notes
For a channel configured as input,
Digout_Set
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 /
TiCoB
as
ic
#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 DIO00 and DIO02 to level High
Digout_Set
(
00101b
)
EndIf
T11 TiCo
set
Bit pattern to select the outputs, which are set to
TTL level High (see table).
1: set to TTL level High.
0: do not change level.
LONG
Bit no.
31
30
…
1
0
Channel
DIO31
DIO30
…
DIO01 DIO00