Pepper Computer RS232, RS485 user manual SMREL1SetRly Syntax

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 131
Image 131

Chapter 4 Digital Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

4.3.8.6 SMREL1SetRly

Syntax

error_code SMREL1SetRly(u_int8 PortNr, u_int8 *buffer);

Description

This function sets the output of the port PortNr with the buffer contents. Bits 0-5 of the buffer are used to set the Relays:

0 = close relay

1 = open relay Bits 6 and 7 have no function.

Input

 

SM-Port number to set data

u_int8 PortNr

 

u_int8 *buffer

 

Pointer to buffer where data is stored

Output

 

if the module is unknown

error_code

SUCCESS

 

E_BMODE

 

or standard OS-9 error code (refer to the OS-9

 

Technical Manual Error Codes Section).

Example

RetVal = SMREL1SetRly(0, buffer);

4

 

 

 

 

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 4 - 43

 

 

Page 131
Image 131
Pepper Computer RS232, RS485 user manual SMREL1SetRly Syntax