Serial Master-Interface #H


Command group to use the RS-232 master interface. For example to connect additional peripherals like temperature sensor.

Set RS232 baud rate

(Hardware Rs232 Parameter)

#HRP

Baudrate [32-Bit]

Send 8-Bit (ASCII) string

(Hardware RS232  Ascii)

#HRA

"String";

Send 16-Bit (Unicode) string

(Hardware RS232 Unicode)

#HRU

"String";

Send 32-Bit signed values

(Hardware RS232 Integer)

#HRI

Value, Value1...

Send 32-Bit float values

(Hardware RS232 floaT)

#HRT

Value, Value1...

Send binary data

(Hardware RS232 Send binary)

#HRS

Number, Data...

Send binary data from register

(Hardware RS232 send values)

#HRX

Type, Register-ID, Number(1)

Send binary data from array

(Hardware RS232 send array)

#HRY

Type, Array-ID, StartIndex(0), Number(all elements)

Send file

(Hardware RS232 send File)

#HRF

<Filename>

Receive data and place into send buffer

(Hardware RS232 Receive to buffer)

#HRR

Number [32-Bit] (max 1024)

Receive 8-bit data and write it to a string register

(Hardware RS232 Bytes to string)

#HRB

String-ID, Number (max 250)

Receive 16-bit data and write it to a string register

(Hardware RS232 Words to string)

#HRW

String-ID, Number (max 250)

Receive binary data and write it to a register

(Hardware RS232 Values to register)

#HRV

Type, Register-ID, Number(1)

Receive binary data and write it to an array

(Hardware RS232 Values to array)

#HRZ

Typ, Array-ID, StartIndex(0), Number(all elements)


Set RS232 baud rate

#HRP

Baudrate

The command sets the Baudrate (32-bit value):

Baudrate

Error

9600

+0.04

19200

-0.08

38400

+0.16

57600

-0.08

115200

+0.64

230400

-0.80

460800

+2.08

921600

-3.68




Send 8-Bit (ASCII) string

#HRA

(RS232)

"String";

The command sends a String or individual codes as ASCII value(s) (8 bits per character).


Send 16-Bit (Unicode) string

#HRU

(RS232)

"String";

The command sends a String or individual codes as Unicode value(s) (16 bits per character).

Send 32-Bit signed values

#HRI

(RS232)

Value, Value1...


The command sends one or more 32-bit signed integer Value(s) (little endian).



Send 32-Bit float values

#HRT

(RS232)

Value, Value1...

The command sends one or more 32-bit float Value(s) (little endian).


Send binary data

#HRS

(RS232)

Number, Data...

The command sends a Number of Data directly via the master interface. The data are taken over and sent directly, no interpretation, such as calculation interpretation, takes place.


Send binary data from register

#HRX

(RS232)

Type, Register-ID, Number(1)

The command sends a Number of register entries (Register-ID) in binary form via the master interface.

Type

7

Signed Byte

1 Byte

little endian

8

Unsigned Byte

1 Byte

15

Signed Integer

2 Byte

16

Unsigned Integer

2 Byte

23

Signed Integer

3 Byte

24

Unsigned Integer

3 Byte

31

Signed Integer

4 Byte

32

Unsigned Integer

4 Byte

33

Float

4 Byte

115

Signed Integer

2 Byte

big endian

116

Unsigned Integer

2 Byte

123

Signed Integer

3 Byte

124

Unsigned Integer

3 Byte

131

Signed Integer

4 Byte

132

Unsigned Integer

4 Byte

133

Float

4 Byte



Send binary data from array

#HRY

(RS232)

Type, Array-ID, StartIndex(0), Number(all elements)

The command sends a Number of array elements (Array-ID), starting with the start index, in binary form via the master interface.

Type

7

Signed Byte

1 Byte

little endian

8

Unsigned Byte

1 Byte

15

Signed Integer

2 Byte

16

Unsigned Integer

2 Byte

23

Signed Integer

3 Byte

24

Unsigned Integer

3 Byte

31

Signed Integer

4 Byte

32

Unsigned Integer

4 Byte

33

Float

4 Byte

115

Signed Integer

2 Byte

big endian

116

Unsigned Integer

2 Byte

123

Signed Integer

3 Byte

124

Unsigned Integer

3 Byte

131

Signed Integer

4 Byte

132

Unsigned Integer

4 Byte

133

Float

4 Byte


Send file

#HRF

(RS232)

<Filename>

The command sends a file (<Filename>) via the master interface.


Receive data and place it into send buffer

#HRR

(RS232)

Number [32-Bit] (max 1024)

The command reads a Number (32-bit value) of data from the master receive buffer and places it in the send buffer. The feedback is structured as follows:

ESC

H

R

R

Length

Data 1

Data 2

...

Data n

...


$1B

$48

$52

$52

32-Bit value

8-Bit value

8-Bit value

8-Bit value

8-Bit value


See also mstRA()


Receive 8-Bit data and write it to a string register

#HRB

(RS232)

String-ID, Number (max 250)

The command reads a Number of data from the master receive buffer and writes them to the specified string register (String-ID).


See also mstRA()

Receive 16-Bit data and write it to a string register

#HRW

(RS232)

String-ID, Number (max 250)

The command reads a Number of data from the master receive buffer and writes them to the specified string register (String-ID).


See also mstRA()



Receive binary data and write it to a string register

#HRV

(RS232)

Type, Register-ID, Number(1)


The command reads a Number of data from the master receive buffer and writes them to the specified register (Register-ID).

Type

7

Signed Byte

1 Byte

little endian

8

Unsigned Byte

1 Byte

15

Signed Integer

2 Byte

16

Unsigned Integer

2 Byte

23

Signed Integer

3 Byte

24

Unsigned Integer

3 Byte

31

Signed Integer

4 Byte

32

Unsigned Integer

4 Byte

33

Float

4 Byte

115

Signed Integer

2 Byte

big endian

116

Unsigned Integer

2 Byte

123

Signed Integer

3 Byte

124

Unsigned Integer

3 Byte

131

Signed Integer

4 Byte

132

Unsigned Integer

4 Byte

133

Float

4 Byte


See also mstRA()


Receive binary data and write it to an array

#HRZ

(RS232)

Typ, Array-ID, StartIndex(0), Number(all elements)

The command reads a Number of data from the master receive buffer and writes them, starting with the start index, into the specified array (Array-ID). An array must be defined before receiving (see #VAI, #VAF).

Type

7

Signed Byte

1 Byte

little endian

8

Unsigned Byte

1 Byte

15

Signed Integer

2 Byte

16

Unsigned Integer

2 Byte

23

Signed Integer

3 Byte

24

Unsigned Integer

3 Byte

31

Signed Integer

4 Byte

32

Unsigned Integer

4 Byte

33

Float

4 Byte

115

Signed Integer

2 Byte

big endian

116

Unsigned Integer

2 Byte

123

Signed Integer

3 Byte

124

Unsigned Integer

3 Byte

131

Signed Integer

4 Byte

132

Unsigned Integer

4 Byte

133

Float

4 Byte