Position counter control, 15 position counter control – ADLINK PCI-8134A User Manual

Page 136

Advertising
background image

126

Additional Function Library

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,Windows)

I16 _8134_set_servo(I16 axis, I16 on_off)
I16 _8134_get_io_status(I16 axis, U16 *io_status)

Visual Basic (Windows)

B_8134_set_servo (ByVal axis As Integer, ByVal on_off As Integer)

As Integer

B_8134_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.

on_off=1, SVON is HIGH.
*io_status: I/O status word. Where “1’ is ON and “0”

is OFF. ON/OFF state is read based on the
corresponding set logic.

@ Return Code

ERR_NoError

7.15

Position Counter Control

@ Name

_8134_set_position – Set the actual position
_8134_get_position – Get the actual position
_8134_set_command – Set the current command target value
_8134_get_command – Get the current command target value
_8134_get_error_counter – Get current error counter value
_8134_reset_error_counter – Reset error counter value
_8134_set_feedback_error_detect – Set feedback error detect

value

Advertising