Operation & Software Manual
170
Direct Drives & Systems
Chapter C: System functions
ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
13.4 Digital inputs / outputs
13.4.1 Digital inputs
The number of digital inputs is different from a position controller to another. Here is a table giving the number
of digital inputs present on each position controller (refer to the corresponding
’Hardware Manual’
for more
information):
Caution:
On the DSCDM, the digital inputs and outputs are on the same pin. The pin must be selected in
order to have an input
or
an output.
It is NOT possible to have both on the same pin.
To
use a pin as a digital input, the bit corresponding to this input
MUST
be equal to 0 in parameter
K171 (otherwise the hardware of the controller and the one of the user can be damaged).
13.4.1.1 Digital inputs on position controller
The DIN command enables the reading of the digital inputs states. This command is an alias of monitoring
M50
.
A bit equal to 1 means that the corresponding digital input is activated and equal to 0 means that the
corresponding digital input is deactivated. The digital inputs bits values are as follows:
Example:
A simple conversion in binary of the value shown by DIN (in hexadecimal) is enough to know which digital
inputs are activated and deactivated.
In the first line of the above-mentioned example, DIN1 and DIN2 are activated.
DIN.1
;Reads the digital inputs state.
The controller gives the value 3 in hexa, because 0x3 in binary is
0000000011 and each bit represents one of the digital inputs, from right to left.
In the second line of the above-mentioned example DIN1, DIN9 and DIN10 are activated.
DIN.1
;Reads the digital inputs state.
The controller gives the value 301 in hexa, because 0x301 in binary
is 1100000001 and each bit represents one of the digital inputs, from right to left.
DSC2P / DSC2V
DIN #
10
9
-
7
6
5
4
3
2
1
DSCDP / DSCDL
DIN #
10
9
-
-
-
-
-
-
2
1
DSCDM
DIN #
-
-
-
-
-
-
-
3
2
1
Available on
DSC2P
DSC2V
DSCDP
DSCDL
DSCDM
M
Alias
Name
Comment
M50
DIN
DIN status
Gives the status of the digital inputs: DIN1 (bit# 0), DIN2 (bit# 1)...
DIN #
10
9
-
7
6
5
4
3
2
1
Bit #
9
8
-
6
5
4
3
2
1
0
Decimal value
512
256
-
64
32
16
8
4
2
1
Hexadecimal value
200
100
-
40
20
10
8
4
2
1
DIN
values
DIN10
DIN9
-
DIN7
DIN6
DIN5
DIN4
DIN3
DIN2
DIN1
Bit# 9
Bit# 8
-
Bit# 6
Bit# 5
Bit# 4
Bit# 3
Bit# 2
Bit# 1
Bit# 0
3
3
0
0
-
0
0
0
0
0
1
1
769
301
1
1
-
0
0
0
0
0
0
1
Decimal
Hexa.
Binary
Содержание DSC Series
Страница 2: ...THIS PAGE IS INTENTIONALLY LEFT BLANK ...