EasyManua.ls Logo

PEP Modular Computers Modular Computers RS485 - C Programming; Hardware Requirements

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...
SMART I/O Users Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 4 - 38
Chapter 4 Digital Modules
4.3.8 ‘C’ Programming
4.3.8.1 SM-REL1 Library
The SM-REL1 library of functions smartio.l provide a convenient way of
accessing the SM-REL1 module.
All functions are written in ANSI C;
• Prototypes are to be found in the file rel1lib.h.
Hardware Requirements
• SMART I/O Base Module or Base Module and Extension unit;
• SM-REL1 Module.
Software Requirements
The compiler from one of the following:
• Ultra C Version 1.1.2 or higher;
• FasTrak 2.0.2 or higher.
The leftmost SM-Module has number 0 assigned to it a far as programming
is concerned although physically this is slot 1!
Before a library function can be used, the function SMREL1Init must first be
called. This allocates the requested resources. Furthermore, this function
needs to be called for each SM-REL1 Module called within the task. Upon
completion of the application, the function SMREL1DeInit needs to be called
for each SM-REL1 Module that has been initialized.
In order to illustrate the use of the SM-REL1 library, an application example
called demrel1.c can be found in the SMART I/O application directory
(normally found in /<device>/APPLIC/SMART/CMDS).

Table of Contents