Digital I/O. ADLINK Technology PCI-8136M

Add to My manuals
107 Pages

advertisement

Digital I/O. ADLINK Technology PCI-8136M | Manualzz

5.5 Digital I/O

@ Name

_8136_D_Output - Digital output for one bit

_8136_D_Input - Digital input for one bit

_8136_D_OutputA - Digital Output for all bits once

_8136_D_InputA - Digital Input for all bits once

@ Description

_8136_D_Output:

There are 7 open collector output channels in PCI-8136. This function is for controlling these output bits by setting them on or off.

This function can set each channel individually. Please refer to the pin assignment for bit numbers.

_8136_D_Input

There are 19 open isolated digital inp ut channels in PCI-8136. This function is for getting these input bits by setting them on or off. This function can get each channel individually. Please refer to the pin assignment for bit numbers.

_8136_D_OutputA

There are 7 open collector output channels in PCI-8136. This function is for controlling these output bits by setting them on or off.

This function can set all output channels on/off by a value once.

Each bit of this value represents the actual output bit. Please refer to the pin assignment for b it numbers.

_8136_D_InputA

There are 19 open isolated digital input channels in PCI-8136. This function is for getting these input bits by setting them on or off. This function can get all input channels' status once. Each bit of this value represents the actual input channel. Please refer to the pin assignment for bit numbers.

@ Syntax

C/C++ (DOS, Windows 95/98/NT/2000)

U16 _8136_D_Output( I16 CardNo , I16 Channel , I16 Control );

U16 _8136_D_Input( I16 CardNo , I16 Channel , I16* Control );

U16 _8136_D_OutputA( I16 CardNo , I16 Value );

U16 _8136_D_InputA( I16 CardNo , I32 *Value );

70

• Motion Library

Visual Basic 5.0 or higher

B_8136_D_Output(ByVal CardNo As Integer, ByVal Channe As

Integer, ByVal Control As Integer) As Integer

B_8136_D_Input(ByVal CardNo As Integer, ByVal Channel As

Integer, Control As Integer) As Integer

B_8136_D_OutputA (ByVal CardNo As Integer, ByVal Value As

Integer) As Integer

B_8136_D_InputA(ByVal CardNo As Integer, Value As Long) As

Integer

@ Argument

CardNo: card number designated to set (Range 0 ~ 3)

Channel: channel number designated to set (Range 0 ~ 6)

Control: control value for the designated channel (Range 0 ~ 1)

Value: control value for all digital output (Range 0 ~ 0x7f )

Control: return value for designated channel (Range 0 ~ 1)

Value: return value for all digital input (Range 0 ~ 0x7ffff)

@ Return Code

ERR_RangeError

ERR_NoError

Motion Libra

• 71

advertisement

Related manuals

advertisement

Table of contents