8144_get_mio_status – ADLINK PCI-8144 User Manual

Page 97

Advertising
background image

Function Library

87

_8144_get_mio_status

Get the status of motion I/O signals

Description:

Get all of motion I/O, status of each axis

Syntax:

I16 _8144_get_mio_status(I16 AxisNo, I16

*MotionIoStatusInBit )

B_8144_get_mio_status(ByVal AxisNo As Integer,

MotionIoStatusInBit As Integer ) As Integer

Parameters:

I16 AxisNo

: Axis number of Target Axis.

I16 *MotionIoStatusInBit

: Statuses of Motion I/O. The

definition of each bit as follow

Card ID Physical axis AxisNo

0

0

0

1

1

2

2

3

3

1

0

4

1

5

2

6

3

7

2

0

8

...

...

Bit Name

Description

0

MEL

Negative Limit Switch

1

PEL

Positive Limit Switch

2

ORG

Origin Switch

3

STP

STP pin status(EMG)

4

STA

STA pin status

5

MSD

Negative Slow Down signal input

Advertising