Interfacing Inputs as a Group Example

MDrive23 Motion Control

+5VDC

PIN 1

Sample Software Configuration

'set inputs to user inputs active low, S1=0,0

S2=0,0

S3=0,0

S4=0,0

PR IN 'Read BCD State of Input Group

Figure 2.6: TTL Interface to Input Group

Truth Table - I/O Used as a Group

DEC

IO4

IO3

IO2

IO1

0

0

0

0

0

1

0

0

0

1

2

0

0

1

0

3

0

0

1

1

4

0

1

0

0

5

0

1

0

1

6

0

1

1

0

7

0

1

1

1

8

1

0

0

0

9

1

0

0

1

10

1

0

1

0

11

1

0

1

1

12

1

1

0

0

13

1

1

0

1

14

1

1

1

0

15

1

1

1

1

Table 2.4: I/O Group Truth Table

23

Page 25
Image 25
Intelligent Motion Systems 17 manual TTL Interface to Input Group, Truth Table I/O Used as a Group