ADwin-Gold II
, Manual February 2013
105
Digital Inputs and Outputs
Digout_Word1
ADwin
Digout_Word1
Digout_Word1
sets the digital outputs DIO00…DIO15 to defined TTL-levels.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Digout_Word1
(
pattern
)
Parameterss
Notes
For any digital channel configured as input
Digout_Word1
has no
function.
Conf_DIO
configures digital channels as inputs or outputs in groups of
8.
To set selected channels without changing the other channels, use the
instruction
Digout_Bits
.
See also
,
,
Valid for
Gold II
Example
Rem Ple
as
e select the appropriate include for ADbasic / TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Dim
value
As
Long
Init:
REM Configure inputs and outputs
Conf_DIO
(
0011b
)
Event:
value
=
ADC
(
1
)
'get measurement value
If
(
value
>
3000
)
Then
'limit exceeded?
Rem Set outputs DIO00, DIO02 to level high,
Rem all other channels to level low.
Digout_Word1
(
101b
)
EndIf
T11 TiCo
pattern
Bit pattern that corresponds to the TTL-levels at
the digital outputs (see table).
1: Set to TTL-level high.
0: Set to TTL-level low.
LONG
B i t n o . i n
pattern
31 …
16
15
14
…
1
0
Channel
–
DIO15 DIO14
…
DIO01 DIO00