VXI SM8000 user manual Multiply by 100 to convert decimal attenuation, value to an integer, format

Models: SM8000

1 74
Download 74 pages 4.14 Kb
Page 69
Image 69
Multiply by 100 to convert decimal attenuation

VXI Technology, Inc.

 

 

 

8Eh

 

 

 

 

 

 

Command Name

Query Calibration Table Entry

 

 

 

 

 

 

 

Command Format

8Eh HIGH_BYTE LOW_BYTE

 

 

 

 

 

Description

The Query Calibration Table Entry command returns the calibration table entry (step

 

 

position) for a given attenuation in a 2-byte (16-bit) format. The returned value is the

 

 

absolute step position the stepper motor would move to in order to generate the given

 

 

attenuation.

 

 

 

 

 

Example

The following example translates a decimal attenuation value (dB) into a

 

 

HIGH_BYTE and LOW_BYTE format for transmission to the device:

 

 

1.

100 x 34.39 = 3439

Multiply by 100 to convert decimal attenuation

 

 

 

 

value to an integer.

 

 

2.

3439 = 0D6Fh

Covert integer to hexadecimal.

 

 

3.

HIGH_BYTE = 0Dh

Convert to HIGH_BYTE and LOW_BYTE

 

 

 

LOW_BYTE = 6Fh

format.

 

 

 

 

Example

The following example translates a HIGH_BYTE and LOW_BYTE hexadecimal

 

 

output to an integer decimal step number:

 

 

1.

0Dh & 6Fh = 0D6Fh

Concatenate HIGH_BYTE and LOW_BYTE.

 

 

2.

0D6Fh = 3439

Convert hexadecimal table entry to integer

 

 

 

 

decimal step number.

SM8000 Series Programming

69

Page 69
Image 69
VXI SM8000 Multiply by 100 to convert decimal attenuation, value to an integer, Covert integer to hexadecimal, format