beautypg.com

U - user status…… 69, U - user status – Measurement Computing Digital488/80A User Manual

Page 75

background image

U - User Status

SYNTAX

Uval

Define status message

val

to send when the Digital488/80A is next addressed to

Talk, where

val = 0

or

bit

, and where

bit =

bit value from

1

to

40

.

U0

Send status of Digital488/80A unit.

Ubit

Send status of

bit

, where

bit =

bit value from

1

to

40

.

Note:

After the

U0

status string is read by the controller, any error conditions are cleared.

DESCRIPTION

The User Status (

U

) command

U0

causes the Digital488/80A to send the status message when next addressed to

Talk, while the command

Ubit

(where

bit

is the bit value from

1

to

40

) enables the controller to read any single bit

from the I/O ports.

The

U0

status string of the Digital488/80A may be read at any time without interfering with normal operation, and after

the string is read by the controller, any error conditions are cleared. When the command

U0

is received, the format of

the

U0

status byte returned by the Digital488/80A is as follows:

*.*C#E#F#G#I###K#L####M###P#R#Y#

where each

#

equals the parameter(s) corresponding to that command. The leading information

*.*

is the revision

level of the Digital488/80A firmware.

When the command

Ubit

is received, the format of the

Ubit

status message is an ASCII character

1

or

0

,

depending on the level of the data line, and the state of the Invert (

I

) command

I16

.


EXAMPLE 1: User Status

U0

- Digital488/80A Status

PRINT#1,"CLEAR08"

Line 1: Reset the Digital488/80A.

PRINT#1,"OUTPUT08;U0X"

Line 2: Request the status of the Digital488/80A.

PRINT#1,"ENTER08",

INPUT#2,A$

Line 4: Read the status byte.

PRINT A$

Line 5: Display shows:

1.0C0E0F0G0I000K0L0000M000P0R0S00Y0

EXAMPLE 2: User Status

Ubit

- Bit Status

PRINT#1,"CLEAR08"

Line 1: Reset the Digital488/80A.

PRINT#1,"OUTPUT08;U22X"

Line 2: Request the status of the Bit 22.

INPUT#2,A$

Line 3: Read the status message.

PRINT A$

Line 4: Display shows:

0

(Message is dependent upon the signal applied to the

input.)

Digital488/80A User’s Manual

967695

Digital488/80A Commands 69