
HSL Function Library 77
5 HSL Function Library
This chapter describes the functions for developing programs in C,
C++, or Visual Basic.
5.1 List of Functions
This section presents all the functions. The function prototypes
and common data types are declared in HSL.h. It is recommended
that you use these data types in your application programs. The
following table shows the data type names and their ranges.
All HSL function calls were revised. Refer to the mapping table in
Appendix B. All function calls have the same prefix HSL_. The
function belonging to a system level purpose has the following
form:
HSL_{action_name}. e.g. HSL_initial().
If they belong to a discrete I/O module purpose, the function is as
follows:
HSL_D_{action_name}. e.g. HSL_D_read_input()
If they belong to an analog I/O module purpose, the function is as
follows.
HSL_A_{action_name}. e.g. HSL_A_write_output().
If they belong to a motion control module purpose, the function is
as follows.
HSL_M_{action_name}. e.g. HSL_M_start_tr_move().
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
Comentarios a estos manuales