18
ADwin-Gold
Hardware Manual, Version 2.3
ADwin
5.2 Digital Inputs and Outputs
32 digital inputs and outputs
(abbreviation: DIO) are available on two 25-pin
D-SUB connections (see picture below). They are programmable in groups of
eight as inputs or outputs.
The digital inputs and outputs are TTL-compatible and not protected against
overvoltage.
Do not use connections marked as „reserved“. They are planned for upcoming
changes and expansions and can cause damages to your system if you do not
pay attention to this fact.
The
ADwin-Gold
is equipped with an external trigger input (EVENT). With this
trigger input processes are triggered by an external signal (trigger) with rising
edge and can completely and immediately be processed. (see
ADbasic
manual,
chapter „Structure of an
ADbasic
-Program“).
After power-up of the device, all connections are configured as inputs.
The instruction:
CONF_DIO(12)
configures DIO 0...DIO 15 as digital inputs and DIO 16...DIO 31 as digital
outputs (see pin assignment below).
Only in this configuration will you be able to totally access the inputs and outputs
wit the instructions
–
DIGIN
;
DIGIN_WORD
–
DIGOUT_WORD
;
SET_DIGOUT
;
CLEAR_DIGOUT
About programming under other configurations the following chapter will give
you more detailed information: chapter 5.3.2 „Time-Critical Tasks / Digital In-
puts and Outputs“), (see also
ADbasic
manual and
ADbasic
tutorial).
Trigger input (EVENT)
Power-up configuration
CONF_DIO(12)
L
CONN. 1
13
12
11
10
9
8
7
6
5
4
3
2
1
25
24
23
22
21
20
19
18
17
16
15
14
DIGIN-00
DIGIN-02
DIGIN-04
DIGIN-06
DIGIN-08
DIGIN-10
DIGIN-12
DIGIN-14
EVENT
GND
DIGIN-01
DIGIN-03
DIGIN-05
DIGIN-07
DIGIN-09
DIGIN-11
DIGIN-13
DIGIN-15
GND
reserved
reserved
CONN. 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
GND
+5V (output, max. 0.1A)
DIGOUT-14
DIGOUT-12
DIGOUT-10
DIGOUT-08
DIGOUT-06
DIGOUT-04
DIGOUT-02
DIGOUT-00
GND
DIGOUT-15
DIGOUT-13
DIGOUT-11
DIGOUT-09
DIGOUT-07
DIGOUT-05
DIGOUT-03
DIGOUT-01
reserved
reserved
Figure 5-5: Pin assignment under configuration with
CONF_DIO(12)
Inputs / DIGIN
(male)
Outputs / DIGOUT
(female)
5.2 Digital Inputs and Outputs