EasyManua.ls Logo

PEP Modular Computers Modular Computers RS485 - Page 151

Default Icon
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Digital Modules
08 Jan. 98
SMART I/O User’s Manual
Page 4 - 65Manual ID 09901, Rev. Index 0500
Software Requirements
The compiler belonging to one of the following environments:
Ultra C Version 1.1.2 or higher;
FasTrak for Windows version 2.02 or higher.
Attention:
As far as programming is concerned, to the
SM-Module on the very left the figure ’0’ is assigned,
although physically it is slot 1.
Before a library function can be used, the function SMACI1Init
must be called first. By this the requested resources are allo-
cated. Beyond, this function needs to be called for each SM-
ACI1 Module called within the task. Upon completion of the
application, the function SMACI1DeInit needs to be called for
each SM-ACI1 Module that has been initialized.
In order to illustrate the use of the SM-ACI1 library, an applica-
tion facsimile called demoaci1.c can be found in the SMART I/
O application directory (normally to be found in /<device>/
APPLIC/SMART/SRC).
4.4.8.2 SMACI1Init
Syntax
error_code SMACI1Init(u_int8 PortNr);
Description:
This function initializes the SM-ACI1 Module on port PortNr
by allocating space in memory for resources and resetting all
inputs.

Table of Contents