Cmd_stop_extension_pulser, Cmd_set_extension_output, Cmd_write_file – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 27

Advertising
background image

Description of the MCA527 Firmware Commands

Command name

CMD_STOP_EXTENSION_PULSER

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command stops the selected pulser. The command will only be executed successfully if the
corresponding parts have been correctly configured (see CMD_SET_EXTENSION_PORT).
part:

1 = part B (pulser2)
3 = part D (pulser1)
7 = part B (pulser2) and part D (pulser1)

Format

integer

integer

integer

long

integer

Parameter

preamble

command

part

0

end flag

Byte string (HEX)

A5

5A

23

01

part

00

00

00

00

00

B9

9B

Command name

CMD_SET_EXTENSION_OUTPUT

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command sets the selected output. The command will only be executed successfully if the
corresponding parts have been correctly configured (see CMD_SET_EXTENSION_PORT).
part:

1 = part B (output2)
3 = part D (output1)
7 = part B (output2) and part D (output1)

o1:

0 = off, ≠0 = on

o2:

0 = off, ≠0 = on

Format

integer

integer

integer

integer

integer

integer

Parameter

preamble

command

part

o1

o2

end flag

Byte string (HEX)

A5

5A

24

01

part

00

o1

00

o2

00

B9

9B

MCA File System Command:

Command name

CMD_WRITE_FILE

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command writes the current measurement into a file. The file name is created automatically from
a consecutive number. Basis for this command is that a microSD card with enough free memory is
plugged in.
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

0

0

0

end flag

Byte string (HEX)

A5

5A

28

01

00

00

00

00

00

00

B9

9B

Remarks

Call CMD_QUERY_STATE527_EX to get the needed and the free microSD memory size. The
command returns immediately., so CMD_QUERY_STATE527_EX has to be called again to get the
state and the result of the file writing process.

27

Advertising