ADLINK PCI-8158 User Manual

Page 178

Advertising
background image

168

Function Library

Enable the position override when input signal PCS is turn ON.
The PCS terminal status can be monitored by
“_8158_get_io_status” function.

_8158_set_clr_mode

CLR inputted signal can reset specified counters(command,
position, error and general purpose counter). The reset action
could be set by this function. The reset action mode has 4
types. For details refer to arguments description.

_8158_set_inp:

Set the active logic of the In-Position signal input from the
servo driver. Users can select whether they want to enable this
function. It is disabled by default.

_8158_set_alm:

Set the active logic of the ALARM signal input from the servo
driver. Two reacting modes are available when the ALARM sig-
nal is active.

_8158_set_erc:

Users can set the logic and on time of the ERC with this func-
tion. It also can set the pulse width of ERC signal.

_8158_set_erc_out:

This function is used to output the ERC signal manually.

_8158_clr_erc:

This function is used to reset the output when the ERC signal
output is specified to a level type output.

_8158_set_sd:

Set the active logic, latch control, and operating mode of the
SD signal input from a mechanical system. Users can select
whether they want to enable this function by _8158_enable_sd.
It is disabled by default

_8158_enable_sd:

Enable the SD signal input. Default setting is default.

_8158_set_limit_logic:

Advertising