
Function Library
•
101
6.15 I/O Control and Monitoring
@ Name
_8132_Set_SVON – Set state of general purpose output pin
_8132_get_io_status – Get all the I/O status of PCI-8132
@ Description
_8132_Set_SVON:
Set the High/Low output state of general purpose output pin
SVON
.
_8132_get_io_status:
Get all the I/O status for each axis. The definition for each bit is as
following:
Bit
Name
Description
0
+EL
Positive Limit Switch
1
-EL
Negative Limit Switch
2
+SD
Positive Slow Down Point
3
-SD
Negative Slow Down Point
4
ORG
Origin Switch
5
EZ
Index signal
6
ALM
Alarm Signal
7
SVON
SVON of PCL5023 pin output
8
RDY
RDY pin input
9
INT
Interrupt status
10
ERC
ERC pin output
11
INP
In-Position signal input
@ Syntax
C/C++ (DOS)
U16 _8132_Set_SVON(I16 axis, I16 on_off)
U16 _8132_get_io_status(I16 axis, U16 *io_status)
C/C++ (Windows 95/NT)
U16 _8132_Set_SVON(I16 axis, I16 on_off)
U16 _8132_get_io_status(I16 axis, U16 *io_status)
Visual Basic (Windows 95/NT)
B_8132_Set_SVON (ByVal axis As Long, ByVal on_off As Long) As
Integer
B_8132_get_io_status (ByVal axis As Integer, io_sts As Integer) As
Integer
@ Argument
axis
: axis number for I/O control and monitoring
on_off
: setting for SVON pin digital output
on_off=0, SVON is LOW.