ADLINK ACL-8454/12 User Manual
Page 55
High-Level Programming
• 47
W_8454_DI_L (DI_LValue As Long) As Long
W_8454_DI_H (DI_HValue As Long) As Long
W_8454_DI_bit (ByVal Bit_No As Long) As Long
C/C++ (DOS)
int _8454_DI( UINT *DI_Value )
int _8454_DI_L( UINT *DI_LValue )
int _8454_DI_H( UINT *DI_HValue )
int _8454_DI_bit( int Bit_No )
@ Arguments
UINT *DI_Value : the 16 bits digital input value of port BASE+4 and
BASE+5
UINT *DI_LValue : the digital input value of port BASE+4, note that
only the low 8 bits is effective
UINT *DI_HValue : the digital input value of port BASE+5, note that
only the low 8 bits is effective
int Bit_No : the bit channel number to be read back, the value should
be in the range of 0 ~ 15
@ Return Value
Always no error for _8454_DI(), _8454_DI_L(), _8454_DI_H()
For _8454_DI_bit():
Invalid_Bit_Number (0xFF) : argument out of range
0 or 1 : the return value of the digital input channel
5.9 8454 Mode Functions
@ Description
This is a macro, instead of using function, which is used to program the
mode of the counters. Refer the 8454.H for the definition of these macros.
The macro names are designed for easy to memorize or to be referenced.
User can use these macros instead of using the ‘_8454_Write_Counter()’
function.