n With the TLS_SOCKET_2 function block, you open and close IP sockets for IP com-
munication via TCP (Transmission Control Protocol - not secure or TLS (Transport
Layer Security - secure). You can control this with the START_TLS input parameter
(FALSE: TCP, TRUE: TLS).
n Use the UDP_SOCKET_2 block to open and close IP sockets for IP communication
via UDP (User Datagram Protocol).
n You can retrieve the number of open IP sockets using the following system variables:
System variable Type - description
IP_ACTIVE_SOCKETS UINT - Number of TCP/UDP sockets opened with the
TLS_SOCKET_2 and UDP_SOCKET_2 function blocks.
TLS_ACTIVE_SOCKETS UINT - Number of TLS sockets opened with the TLS_SOCKET
function block.
n The system variable DEVICE_STATE is a system variable organized as a data struc-
ture.
n You can use the DEVICE_STATE system variable to retrieve various information
about the device status of the CPU.
System variable Type - description
DEVICE_STATE DEVICE_STATE_X152_TYPE - data structure
BOARD_TEMPERATURE SINT - temperature inside the housing (in °C).
reserved1 BOOL - reserved
reserved2 USINT - reserved
CPU_LOAD_ALL_CORES USINT - average current utilization of all processor cores (in %).
CPU_LOAD_PER_CORE CPU_LOAD_PER_CORE_ARRAY - Information on the utilization of
each processor core.
[1] USINT - current utilization of processor core 1 (in %).
[2] USINT - current utilization of processor core 2 (in %).
Function blocks
TLS_SOCKET_2
UDP_SOCKET_2
Device state
iC9200 Series
Deployment
System variables and status information > System variables
HB700 | CPU | PMC921xEx | en | 23-06 115