AXC F X152
PHOENIX CONTACT
107708_en_08
8.9
Client connections to a PLCnext Engineer HMI web
server
A PLCnext Engineer HMI application is executed on a PLCnext Engineer HMI server. There
are two system variables for handling client connections to a PLCnext Engineer HMI web
server:
–
HMI_STATUS
–
HMI_CONTROL
8.9.1
HMI_STATUS system variable
The HMI_STATUS system variable can be used to retrieve information on the client connec-
tions to a PLCnext Engineer HMI web server.
The HMI_STATUS system variable is a system variable organized as a data structure.
Table 8-7
HMI_STATUS system variable (HMI_STATUS_TYPE data structure) and the system variables it contains
System variable
Type
Description
HMI_STATUS
HMI_STATUS_TYPE
Data structure
CLIENT_COUNT
UINT
Number of currently existing client connections to the HMI
web server
CLIENTS
HMI_STATUS_ARRAY
Information on existing client connections
[1] ... [256]
HMI_STATUS_STRUCT
Client connections 1 ... 256
SESSION_ID
STRING
Session ID of the client connection
STATION_ID
STRING
Station ID of the client
LAST_REQ
LINT
Time of the last request from the client to the controller
IP_ADDRESS
IP_ADDRESS_ARRAY
IP address of the client
[0] ... [3]
BYTE
IP address in hexadecimal format
(Example: [C0].[A8].[01].[64]
⇒
192.168.1.100)