HP 24A, 83620A, 22A manual Convert Image Iobuffer Transfer, Enter, Getting Started Programming

Models: 83620A

1 508
Download 508 pages 6.17 Kb
Page 91
Image 91
CONVERT

CONVERT

IMAGE

IOBUFFER

TRANSFER

Enter

Enter is the complement of OUTPUT, and is used to transfer data from the addressed instrument to the controller. The syntax is:

ENTER is always used in conjunction with OUTPUT, such as:

 

100

OUTPUT 719; ” .

. . programming codes . . .

‘I

 

110 ENTER 719; ‘I . . . response data.. . ‘I

 

 

ENTER statements are commonly formatted, which requires the

 

secondary command USING and the appropriate image items. The

 

most-used image items involve end-of-line (EOI) suppression, binary

 

inputs, and literal inputs. For example:

 

 

100 ENTER719USING

"#,B"; A, B, C

 

 

suppresses the EOI sequence (#), and indicates that variables A, B,

 

and C are to be filled with binary (B) data. As another example,

 

100 ENTER719 USING "#, 123A"; A$

 

 

suppresses EOI, and indicates that string variable A$ is to be filled

 

with 123 bytes of literal data (123A).

 

Note

 

 

 

Be

careful when using

byte-counting image specifiers. If the

requested number of bytes does not match the actual number available, data might be lost, or the program might enter an endless wait state.

The suppression of the EOI sequence is frequently necessary to prevent a premature termination of the data input. When not specified, the typical EOI termination occurs when an ASCII LF

Getting Started Programming 1-61

Page 91
Image 91
HP 24A, 83620A, 22A manual Convert Image Iobuffer Transfer, Enter, Getting Started Programming