Cmd_set_measure_pzc, Cmd_set_pzc_time_offset – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 15

Advertising
background image

Description of the MCA527 Firmware Commands

Command name

CMD_SET_MEASURE_PZC

Compatibility

Compatible to the MCA166 command.

Execution right

Necessary

Description

The command performs the Pole Zero Cancellation.
pv: 0 ... 2499

PZC control voltage

pm = 0

set PCZ only

pm > 0

set PZC and measure PZC offset

The command is ignored and responds with an error value if a measurement is still running.

Format

integer

integer

integer

integer

integer

integer

Parameter

preamble

command

pm

pv

0

end flag

Byte string (HEX)

A5

5A

58

00

pm

l

pm

h

pv

l

pv

h

00

00

B9

9B

Result data array

Byte offset 0

unused

106 bytes

Byte offset 106

Command flag and parameters

8 bytes

Byte offset 114

unused

12 bytes

Byte offset 126

Checksum

unsigned short

Byte offset 128

Number of measured pulses

unsigned short

Byte offset 130

Averaged negative offset of measured input
pulses

short

Remarks

This command takes at least 800 milliseconds to return, because it runs a measurement of this
duration.

Command name

CMD_SET_PZC_TIME_OFFSET

Compatibility

Compatible to the MCA166 command. The command is meaningless for the MCA527. It has only
been retained for compatibility with older software

Execution right

Necessary

Description

The command sets the time offset for Pole Zero Cancellation.
t1: 0 ... 31

Time offset for low shaping time

t2: 0 ... 31

Time offset for high shaping time

Format

integer

integer

integer

integer

integer

integer

Parameter

preamble

command

t1

t2

0

end flag

Byte string (HEX)

A5

5A

60

00

t1

00

t2

00

00

00

B9

9B

15

Advertising