Section 5 — Programming
5-27
esp_get_hardware_status
Report Hardware Status For All Axes
Synopsis:
#include “esp6000.h”
int esp_get_hardware_status(long *hardstat1, long *hardstat2)
Arguments:
long hardstat1
general hardware status register 1
long hardstat2
general hardware status register 2
Library Location:
\esp6000.dll
Description: (Register #1)
esp_get_hardware_status() is used to get general hardware status for all axes. This
routine allows you to observe the various digital input signals as they appear to the
controller.
HARDWARE STATUS REGISTER #1
BIT#
VALUE
DEFINITION
0
0
axis 1 +hardware travel limit low
0
1
axis 1 +hardware travel limit high
1
0
axis 2 +hardware travel limit low
1
1
axis 2 +hardware travel limit high
2
0
axis 3 +hardware travel limit low
2
1
axis 3 +hardware travel limit high
3
0
axis 4 +hardware travel limit low
3
1
axis 4 +hardware travel limit high
4
0
axis 5 +hardware travel limit low
4
1
axis 5 +hardware travel limit high
5
0
axis 6 +hardware travel limit low
5
1
axis 6 +hardware travel limit high
6
0
reserved
6
1
reserved
7
0
reserved
7
1
reserved
8
0
axis 1 -hardware travel limit low
8
1
axis 1 -hardware travel limit high
9
0
axis 2 -hardware travel limit low
9
1
axis 2 -hardware travel limit high
10
0
axis 3 -hardware travel limit low
10
1
axis 3 -hardware travel limit high
11
0
axis 4 -hardware travel limit low
11
1
axis 4 -hardware travel limit high
12
0
axis 5 -hardware travel limit low
12
1
axis 5 -hardware travel limit high
13
0
axis 6 -hardware travel limit low
13
1
axis 6 -hardware travel limit high
14
0
reserved
14
1
reserved
15
0
reserved
15
1
reserved
16
0
axis 1 amplifier fault input low
16
1
axis 1 amplifier fault input high
17
0
axis 2 amplifier fault input low
17
1
axis 2 amplifier fault input high
18
0
axis 3 amplifier fault input low
18
1
axis 3 amplifier fault input high
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com