Pepper Computer RS232, RS485 user manual SMTstasto Syntax

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 63
Image 63

Chapter 2 SMART-BASE

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

2.6.5SMTstasto Syntax

error_code SMTstasto(u_int8 mode);

Description

This function starts / stops the timer; the zero-detect control bit is set at the start; the counter rolls over on reaching zero or is loaded with the value set in the preload register and continues counting down.

2

Input

u_int8 mode

Output

error_code

Example

Two modes are available. They are:

TMR_STRT

Start timer

TMR_STOP

Stop timer

SUCCESS

E_BMODE Unsupported mode

or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

RetVal = SMTstasto(TMR_STRT);

 

 

 

 

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 2 - 23

 

 

Page 63
Image 63
Pepper Computer RS232, RS485 user manual SMTstasto Syntax