![Phoenix Contact AXC F 1152 Installing, Starting Up, And Operating Download Page 67](http://html1.mh-extra.com/html/phoenix-contact/axc-f-1152/axc-f-1152_installing-starting-up-and-operating_1551419067.webp)
System variables and status information
107708_en_08
PHOENIX CONTACT
8.3
System time
The RTC system variable is a system variable organized as a data structure. The RTC sys-
tem variable can be used to retrieve information on the system time of the device‘s internal
real-time clock.
8.4
Power supplies
8.5
TCP_SOCKET, UDP_SOCKET, and TLS_SOCKET
function blocks
You can use the TCP_SOCKET and UDP_SOCKET function blocks to open and close the
IP sockets that are used for IP communication via TCP (Transmission Control Protocol) or
via UDP (User Datagram Protocol).
You can use the TLS_SOCKET function block to open and close IP sockets that are used
for secure IP communication via TLS (Transport Layer Security).
You can retrieve the number of opened IP sockets using the following system variables:
Table 8-1
RTC system variable (RTC_TYPE data structure) and the system variables it contains
System variable
Type
Description
RTC
RTC_TYPE
Data structure
HOURS
USINT
System time (hours)
MINUTES
USINT
System time (minutes)
SECONDS
USINT
System time (seconds)
DAY
USINT
System time (day)
MONTH
USINT
System time (month)
YEAR
UINT
System time (year)
Table 8-2
Power supply system variables
System variable
Type
Description
POWER_SUPPLY_MAIN_OK
BOOL
The 24 V main power supply is OK.
UPS_BATTERY_OK
BOOL
Full capacity of the energy storage for the undervoltage buff-
ering
Table 8-3
System variables for the TCP_SOCKET, UDP_SOCKET, and TLS_SOCKET function blocks
System variable
Type
Description
IP_ACTIVE_SOCKETS
UINT
Number of IP sockets opened using the TCP_SOCKET and
UDP_SOCKET function blocks
TLS_ACTIVE_SOCKETS
UINT
Number of IP sockets opened using the TLS_SOCKET func-
tion block