Syntax – ADLINK PCI-8158 User Manual
Page 179
Function Library
169
Set the EL logic, normal open or normal closed.
_8158_set_limit_mode:
Set the reacting modes of the EL signal.
_8158_get_io_status:
Get all the I/O statuses for each axis. The definition for each bit
is as follows:
@ Syntax
C/C++(Windows 2000/XP)
I16 _8158_set_servo(I16 AxisNo, I16 on_off);
I16 _8158_set_pcs_logic(I16 AxisNo, I16
pcs_logic);
I16 _8158_set_pcs(I16 AxisNo, I16 enable);
I16 _8158_set_clr_mode(I16 AxisNo, I16 clr_mode,
I16 targetCounterInBit);
I16 _8158_set_inp(I16 AxisNo, I16 inp_enable, I16
inp_logic);
Bit Name
Description
0
RDY
RDY pin input
1
ALM
Alarm Signal
2
+EL
Positive Limit Switch
3
-EL
Negative Limit Switch
4
ORG
Origin Switch
5
DIR
DIR output
6
EMG
EMG status
7
PCS
PCS signal input
8
ERC
ERC pin output
9
EZ
Index signal
10
CLR
Clear signal
11
LTC
Latch signal input
12
SD
Slow Down signal input
13
INP
In-Position signal input
14 SVON Servo-ON output status