Function Library: PCI-8154 + DB-8151
57
5
Function Library: PCI-8154 + DB-8151
This chapter describes the function library for the DB-8151 HSL
system. These functions can be used to develop programs in C,
C++, or Visual Basic.
5.1
List of Functions
This section details all the functions. The function prototypes and
some common data types are decelerated in
PCI_8154.h
. We
suggest you to use these data types in your application programs.
The following table shows the data type names and their range.
All function calls have the same
_8154_db51_HSL_
prefix when
using the PCI-8154 as the carrier. If the PCI-8158 is selected as
the primary motion controller, all functions will carry the
_8158_db51_HSL_
prefix. The
_8154_db51_HSL_
prefix is
used below for use with the PCI-8154. If functions belong to a sys-
tem level purpose, the convention will be as follows.
_8154_db51_HSL_
{action_name}.
e.g.
_8154_db51_HSL_initial
().
If they belong to discrete I/O modules purpose, the function will be
as follows.
_8154_db51_HSL_D_
{action_name}.
e.g.
_8154_db51_HSL_D_read_input
()
If they belong to analog I/O modules purpose, the function will be
as follows.
Type Name
Description
Range
U8
8-bit ASCII character
0 to 255
I16
16-bit signed integer
-32768 to 32767
U16
16-bit unsigned integer
0 to 65535
I32
32-bit signed long integer
-2147483648 to 2147483647
U32
32-bit unsigned long integer
0 to 4294967295
F32
32-bit single-precision floating-point
-3.402823E38 to 3.402823E38
F64
64-bit double-precision floating-point
-1.797683134862315E308
to 1.797683134862315E309
Boolean
Boolean logic value
TRUE, FALSE
Summary of Contents for DB-8151
Page 4: ......
Page 24: ...16 Installation ...
Page 32: ...24 HSL Slave Module P Wet Contact Input N NPN Sinking Output v IN LED Internal Circuits G ...
Page 36: ...28 HSL Slave Module U U series slave I O module 71 8 mm X 138 mm ...
Page 39: ...HSL Slave Module 31 3 2 3 HSL TB32 MD Jumper Settings ...
Page 44: ...36 HSL Slave Module 3 3 3 Dimensions HSL HUB HSL Repeater ...