Remote I/O. ADLINK Technology PCI-8136M

Add to My manuals
107 Pages

advertisement

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

5.6 Remote I/O

@ Name

_8136_R_Status - Check Remote I/O Status

_8136_R_Write - Write a word to remote

_8136_R_Read - Read a word from remote

@ Description

_8136_R_Status:

This function is for checking remote I/O stopped status. If the remote I/O is not running, user can use this function to check to status of remote I/O. It contains the following information: Remote

I/O enable/disable, master/slave receive data status, and module fail.

_8136_R_Write

This function is for writing a word to one set. Each slave module has 4 sets. User must assign the slave number and set number and a value to use this function.

_8136_R_Read

This function is for reading a word from one set. Each slave module has 4 sets. User must assign the slave number and set number and a value to use this function.

@ Syntax

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

I16 _8136_R_Status(I16 CardNo);

U16 _8136_R_Write(I16 CardNo,I16 SlaveNo,I16 SetNo,U16

SetValue);

U16 _8136_R_Read(I16 CardNo,I16 SlaveNo,I16 SetNo,U16

*SetValue);

Visual Basic 5.0 or higher

B_8136_R_Status (ByVal CardNo As Integer) As Integer

B_8136_R_Write (ByVal CardNo As Integer, ByVal SlaveNo As

Integer, ByVal SetNo As Integer, ByVal SetValue As Long) As

Integer

B_8136_R_Read (ByVal CardNo As Integer, ByVal SlaveNo As

Integer, ByVal SetNo As Integer, SetValue As Long) As Integer

@ Argument

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

SlaveNo: assign slave number (Range 0~1)

72

• Motion Library

SetNo: I/O range in slave module

0: bit 0~15

1: bit 16~31

2: bit 32~47

3: bit 48~63

SetValue: 16-bit value to write

*SetValue: 16-bit value to read

@ Return Code

ERR_RangeError

ERR_NoError

Motion Libra

• 73

advertisement

Related manuals

advertisement

Table of contents