Cmd_set_time, Cmd_set_ip_address, Cmd_set_common_memory_fill_stop – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 20

Advertising
background image

MCA527

Command name

CMD_SET_TIME

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command sets the time (t) on the internal clock.
Bit 31 … 17:

days since January 1, 2008

Bit 16 … 12:

hours (0 … 23)

Bit 11 … 6:

minutes (0 … 59)

Bit 5 … 0:

seconds (0 … 59)

Format

integer

integer

32 bit

integer

integer

Parameter

preamble

command

t

0

end flag

Byte string (HEX)

A5

5A

04

01

t

l

...

t

h

00

00

B9

9B

Command name

CMD_SET_IP_ADDRESS

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command allows to set a customized IP address. If the IP address is set to 0.0.0.0, the MCA is
instructed to obtain the IP address from a DHCP server or if not available, to use Zero Configuration
Networking (also named Automatic Private IP Addressing).

Format

integer

integer

char

char

char

char

integer

integer

Parameter

preamble

command

ip1

ip2

ip3

ip4

0

end flag

Byte string (HEX)

A5

5A

0B

01

ip1

ip2

ip3

ip4

00

00

B9

9B

Command name

CMD_SET_COMMON_MEMORY_FILL_STOP

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command sets the fill stop for the common memory. The MCA acquires data until the preset
number of bytes has been written. The common memory is used by the following general modes:

1 = Transient recorder (records ADC raw data)
3 = Time stamp recorder (records the timestamps of level triggered signals)
4 = Time stamp recorder (records the timestamps of edge triggered signals)
5 = Time stamp recorder (AHRC = analog high rate counting)

stop:

0 … common memory size (see CMD_QUERY_STATE527_EX)

Format

integer

integer

long

integer

integer

Parameter

preamble

command

stop

0

end flag

Byte string (HEX)

A5

5A

17

01

stop

l

...

...

stop

h

00

00

B9

9B

Remarks

For the time stamp recorders, this command is not the only way to preset an automatic stop
condition. This can also be done with the command CMD_SET_PRESETS.

20

Advertising