ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05 Chapter C: System functions
Operation & Software Manual
Direct Drives & Systems 171
Remark: Some digital inputs can also be used for external limit switches and external home switch, if
these switches are present in the application. Refer to §12.9
for more information.
13.4.1.2 Digital inputs on DSO-HIO
The DSO-HIO has 8 digital inputs (refer to the 'DSO-HIO User's Manual' for more information).
Remark: For the DSCDP and DSCDL, the 8 digital inputs are available for both axes.
The XDIN command allows the reading of the 8 digital inputs states: XDIN1 to XDIN8. This command is an
alias of monitoring M55.
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 monitoring M55 (in hexadecimal) is enough to know which
digital inputs are activated and deactivated.
In the first line of the above-mentioned example, XDIN5 is activated.
M55.1 ;Reads the digital inputs state. The controller gives the value 0x10 (in hexadecimal), because
0x10 in binary is 00010000 and each bit represents one of the eight digital inputs, from right to left.
In the second line of the above-mentioned example, XDIN1 to XDIN8 are activated.
M55.1 ;Reads the auxiliary digital inputs state. The controller gives the value 0xFF (in hexadecimal),
because 0xFF in binary is 11111111 and each bit represents one of the eight digital inputs, from
right to left.
Available on DSC2P DSC2V DSCDP DSCDL DSCDM
M Alias Name Comment
M55 XDIN DSO-HIO's DIN status Gives the status of the DSO-HIO digital inputs: XDIN1 (bit# 0) to XDIN8 (bit# 1)
XDIN # 87654321
Bit # 76543210
Decimal value 128 64 32 16 8 4 2 1
Hexadecimal value 80 40 20 10 8 4 2 1
XDIN
values
XDIN8 XDIN7 XDIN6 XDIN5 XDIN4 XDIN3 XDIN2 XDIN1
Bit# 7 Bit# 6 Bit# 5 Bit# 4 Bit# 3 Bit# 2 Bit# 1 Bit# 0
16 10 00010000
255 FF 11111111
Decimal Hexa. Binary