Pepper Computer RS232, RS485 user manual SMREL1Reset Syntax

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 129
Image 129

Chapter 4 Digital Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

4.3.8.4 SMREL1Reset

Syntax

error_code SMREL1Reset(u_int8 PortNr);

Description

This function resets the SM-REL1 Module by setting all relays to OPEN and all LEDs to OFF. This function does not free the resources as with the SMRELl1DeInit function call but it does ensure that the relay status (and LEDs) is as expected.

Input

u_int8 PortNr

Output

error_code

Example

Number of the SM port to reset

SUCCESS

E_BMODE if the module is unknown or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

4

RetVal = SMREL1Reset(0);

 

 

 

 

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 4 - 41

 

 

Page 129
Image 129
Pepper Computer RS232, RS485 user manual SMREL1Reset Syntax