HMI commands #Q

Interface settings are done in HMIDesigner. Please open the related project and find the settings under "Hardware" section.

Set HMI RS485 parameters

(HMI Change Hardware settings)

#QCH

0, Protocol, Address, Baudrate

Set HMI LAN parameters

(HMI Change Hardware settings)

1, Protocol, IP, Subnet, Gateway, Port

Set HMI WiFi parameters

(HMI Change Hardware settings)

2, Protocol, IP, Subnet, Gateway, Port, "SSID string"; "Password string"

Connect to WiFi

(HMI WIFI Connect)

#QWC

"SSID string"; "Password string"

Get WiFi list

(HMI WIFI List)

#QWL

Array-Id (SSID), Array-Id (RSSI), <Callback macro>


Set HMI RS485 parameters

#QCH

0, Protocol, Address, Baudrate

The command sets the HMI interface parameters for RS485. In addition to the Protocol, the RS485 Address and Baudrate can be configured.

Protocol

0

Small/Short

1

Modbus



Set HMI LAN parameters

#QCH

1, Protocol, IP, Subnet, Gateway, Port

The command sets the HMI interface parameters for LAN. The IP address, Subnet and Gateway as well as the Port can be configured here. IP, subnet and gateway are passed as 32-bit values (e.g. 192.168.5.9 $C0A80509).


Protocol

0

Small/Short

1

Modbus


Set HMI WiFi parameters

#QCH

2, Protocol, IP, Subnet, Gateway, Port, "SSID string"; "Password string"

The command sets the HMI interface parameters for WIFI. The IP address, Subnet and Gateway as well as the Port can be configured here. IP, subnet and gateway are passed as 32-bit values (e.g. 192.168.5.9 $C0A80509).


The WIFI SSID and password are also defined.

Protocol

0

Small/Short

1

Modbus



Connect to WiFi

#QWC

SSID string, Password string

The command establishes a connection to the selected network. the connection status can be queried with the calculation command plcW(). The return value of the signal strength is coded as follows:

Signal strength

-2

RS485

-1

Ethernet

0

No connection

1

WIFI unusable

RSSI < -110dB

2

WIFI not good

RSSI -90dB to -110dB

3

WIFI okay

RSSI -70dB to -90dB

4

WIFI very good

RSSI -30dB to -70dB

5

WIFI amazing

RSSI > -30dB


Get WiFi list

#QWL

Array-Id (SSID), Array-Id (RSSI), Callback macro

The command scans for all available WiFi networks, stores the result in two arrays (SSID and RSSI) and calls the callback macro at the end. The signal strength is coded as follows:

Signal strength

-2

RS485

-1

Ethernet

0

No connection

1

WiFi unusable

RSSI < -110dB

2

WiFi not good

RSSI -90dB to -110dB

3

WiFi okay

RSSI -70dB to -90dB

4

WiFi very good

RSSI -30dB to -70dB

5

WiFi amazing

RSSI > -30dB