8
1.2.2.2
rddigi, read digital inputs
D
:
ESCRIPTION
B
D
:
ORLAND
ELPHI
C:
V
B
:
ISUAL
ASIC
TSRP C
:
OMPONENTS
R
V
:
ETURN
ALUE
N
:
OTE
1.2.2.2.1
Digi axis qualifier for axis channels 4, 5 and 6
The digi register is used to check the status of the digital inputs in the APCI-8001. If the respective inputs are
active, this is displayed with the value 1 at the respective bit position.
Table 1-1: Bit-coded structure of the digi word for
Bit
Function
No.
Input 17
0
Input 18
1
2
Input 19
3
Input 20
4
Input 21
5
Input 22
6
Input 23
7
Input 24
8
Input 25
Input 26
9
Input 27
10
Input 28
11
Input 29
12
Input 30 and hardware strobe signal for latching the actual position of axis channel 4
13
Input 31 and hardware strobe signal for latching the actual position of axis channel 5
14
15
Input 32 and hardware strobe signal for latching the actual position of axis channel 6
16
Zero track of the incremental encoder, axis-specific
This function is used to request the following signal statuses:
The current status of the 24 OPMF digital inputs
The current status of the zero track (index) signal from the incremental
encoder
A temporarily stored error in the measurement value acquisition system
A temporarily stored edge of the zero track (index) signal from the
incremental encoder
A temporarily stored edge of the hardware latch signal (strobe). If an input
is active, this is indicated with the value 1 for the respective bit. As an
option, all digital inputs can be planned with inversion in the mcfg.exe
TOOLSET programme. It is also possible to plan the required polarity
when using an incremental encoder with an index signal.
You must ensure that the digital inputs are grouped axis-specifically on the OPMF.
procedure rddigi(var tsrp:TSRP);
void rddigi(struct TSRP far *tsrp);
Sub rddigi(DTSRP As TSRP)
TSRP[n].digi
n = 3 .. Number of axes-1
The bit-coded return value is in the digi structure or record component and is
constructed as described in the table below.
See note PM rddigi()
Digital inputs 17 - 32 (connector X1) are assigned to axis channels 4, 5 and 6.
Digital inputs 33 - 40 (connector X2) are assigned to axis channels 7 and 8.
axis channels 4, 5 and 6
O
PTIONS MANUAL
X1/Pin
9
10
11
12
13
14
15
16
42
43
44
45
46
47
48
49
--
Need help?
Do you have a question about the APCI-8001 and is the answer not in the manual?