Program blocks
5.1 Program blocks for OUC
CP 1243-8 IRC
168 Operating Instructions, 02/2018, C79000-G8976-C385-03
For changing configuration data of the CP during runtime:
●
Program-controlled configuration of the IP parameters
Refer to the information on T_CONFIG and on the SDTs "IF_CONF_..." in the section
Changing the IP address during runtime (Page 169).
You can find the program blocks in STEP 7 in the "Instructions > Communication > Open
User Communication" task card.
Connection descriptions in system data types (SDTs)
The blocks listed above use the CONNECT parameter for the relevant connection
description. TMAIL_C uses the parameter MAIL_ADDR_PARAM.
The connection description is stored in a data block whose structure is specified by the
system data type (SDT).
Creating an SDT for the data blocks
Create the SDT required for every connection description as a data block (global DB).
The SDT type is generated by entering the name in the declaration table of the block
manually not by selecting an entry from the "Data type" drop-down list but by entering it in
the "Data type" box for example "TCON_IP_V4". The corresponding SDT is then created with
its parameters.
●
For transferring frames via TCP or UDP
●
For transferring frames via UDP
●
For transferring frames via ISO-on-TCP (direct communication between two S7-1200
stations)
●
For transferring e-mails addressing the e-mail server using an IPv4 address
●
For transferring e-mails addressing the e-mail server using an IPv6 address
●
For transferring e-mails addressing the e-mail server using its name (FQDN)
●
For secure transfer of e-mails addressing the e-mail server using an IPv4 address