beautypg.com

Set digital input stamping – Measurement Computing TempScan/1100 User Manual

Page 234

background image

A-38 API Command Reference

889897

TempScan / MultiScan User’s Manual

I#

- Set Digital Input Stamping

TYPE

System

EXECUTION

Deferred

SYNTAX

I#state

Specify whether or not digital input stamping will be enabled. Valid options for

state

are:

0

- Disable digital input stamping (default), and

1

- Enable

digital input stamping.

DESCRIPTION

The Set Digital Input Stamping (

I#

) command, when enabled, is used to stamp the digital input states of the 8

digital inputs to the end of each scan as the scans occur in real time. The digital input status consists of 16 bits,
grouped into two 8-bit bytes: Bits 07-00 and 15-08, where Bits 15-08 are always inactive. Consequently, each of
the 8 Bits 07-00 is identified with a

1

signifying input on, or a

0

signifying input off, while each of the 8 Bits 15-08

is identified with a

0

(off).

In the following data formats, the digital input status will be stamped to each scan in the corresponding patterns:

Binary Low-High-Byte format: Two 8-bit Bytes 1 and 2, where:

Byte 1: Bits 07 through 00.
Byte 2: Bits 15 through 08.

Binary High-Low-Byte format: Two 8-bit Bytes 1 and 2, where:

Byte 1: Bits 15 through 08.
Byte 2: Bits 07 through 00.

ASCII format: Two 8-bit bytes in Binary format converted to eight bytes in printable ASCII format:

TxxxT000

, where:

T

= User terminator.

xxx

= Three-digit decimal value of Bits 07 through 00.

For more information on digital input stamping, see section Stamping Configuration in the section System

Configuration.

Note: In an 8-bit byte, Bits 00 through 07 correspond to digital input/output (DIO) lines 1 through 8. Also, Bit n

corresponds to the decimal value 2^n (where n is an integer from 00 to 07).

Note: If scan alarm stamping has also been enabled via the Set Scan Alarm Stamping (

A#

) command, then the

digital input states will be stamped after the scan alarm output states have been stamped.

Note: Data in Binary format is not printable. The Binary data must be converted to ASCII format for printability.


EXAMPLE

PRINT#1,"OUTPUT07;I#1X"

‘ Enable digital input stamping

PRINT#1,"OUTPUT07;I#0X"

‘ Disable digital input stamping

This manual is related to the following products: