Smtstat - PEP Modular Computers Modular Computers RS485 User Manual

8 channel ac input unit micro plcs and real-time computers
Table of Contents

Advertisement

SMART I/O User's Manual

2.6.8 SMTstat

Syntax
error_code SMTstat(u_int8 *value);
Description
This function reads the timer status register and clears it if set.
Input
u_int8 *value
Output
error_code
Example
RetVal = SMTstat(buffer);
Description of the Timer Status Register (TSR)
7
The timer status register contains one bit from which the zero detect status
can be determined. The ZDS status bit (bit 0) is an edge-sensitive flip-flop
that is set to one when the 24-bit counter decrements from $000001 to
$000000. The ZDS status bit is cleared to zero following the direct reset
operation or when the timer is halted. This register is always readable
without consequence. A write access performs a direct reset operation if bit
0 in the written data is one!
Page 2 - 26
Pointer to a variable in which to place the read
value. 0 represents not set, 1 represents set
SUCCESS
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
6
5
4
©1996 PEP Modular Computers GmbH
Chapter 2 SMART-BASE
3
2
1
0
ZDS
March 12, 1996

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Modular Computers RS485 and is the answer not in the manual?

This manual is also suitable for:

Modular computers rs232Smart i/o

Table of Contents