Table of contents
Program blocks for SIMATIC NET S7 CPs
8 Programming Manual, 11/2015, C79000-G8976-C229-08
2.3.2.3 How the ping function works .................................................................................................. 61
2.3.2.4 Explanation of the formal parameters - AG_CNTEX ............................................................. 63
2.3.2.5 AG_CNTEX codes ................................................................................................................. 64
2.3.2.6 Commands and job results - AG_CNTEX .............................................................................. 66
2.4 Program blocks for FTP services ........................................................................................... 73
2.4.1 Overview of FTP .................................................................................................................... 73
2.4.2 FTP_CMD - universal program block for FTP services ......................................................... 74
2.4.2.1 Meaning and call - FTP_CMD ................................................................................................ 75
2.4.2.2 Input parameter - FTP_CMD .................................................................................................. 77
2.4.2.3 Output parameters and status information - FTP_CMD ........................................................ 82
2.4.2.4 Migration of FC 40-44 to FTP_CMD ...................................................................................... 85
2.4.3 FTP_CONNECT ..................................................................................................................... 86
2.4.3.1 Meaning and call - FTP_CONNECT ...................................................................................... 86
2.4.3.2 Explanation of the formal parameters - FTP_CONNECT ...................................................... 87
2.4.4 FTP_STORE .......................................................................................................................... 88
2.4.4.1 Meaning and call - FTP_STORE............................................................................................ 88
2.4.4.2 Explanation of the formal parameters - FTP_STORE ............................................................ 89
2.4.5 FTP_RETRIEVE..................................................................................................................... 90
2.4.5.1 Meaning and call - FTP_RETRIEVE ...................................................................................... 90
2.4.5.2 Explanation of the formal parameters - FTP_RETRIEVE ...................................................... 91
2.4.6 FTP_DELETE ......................................................................................................................... 92
2.4.6.1 Meaning and call - FTP_DELETE .......................................................................................... 92
2.4.6.2 Explanation of the formal parameter - FTP_DELETE ............................................................ 93
2.4.7 FTP_QUIT .............................................................................................................................. 94
2.4.7.1 Meaning and call - FTP_QUIT ............................................................................................... 94
2.4.7.2 Explanation of the formal parameters - FTP_QUIT ............................................................... 95
2.4.8 Parameters for CP and connection assignment (input parameters) ...................................... 96
2.4.9 Status information (output parameters) ................................................................................. 97
2.4.10 Data block file DB................................................................................................................... 99
2.4.10.1 Structure of the data blocks (file DBs) for FTP services - FTP client mode .......................... 99
2.4.10.2 Structure of the data blocks (file DBs) for FTP services - FTP server mode ....................... 102
2.5 Program blocks for programmed connections and IP configuration .................................... 104
2.5.1 Operating principle
............................................................................................................... 105
2.5.2 Procedure ............................................................................................................................. 107
2.5.3 Configuration data block (CONF_DB) .................................................................................. 107
2.5.4 Configuration data block - example ..................................................................................... 108
2.5.5 Parameter field for system data (IP configuration) .............................................................. 112
2.5.6 Parameter fields for connection types ................................................................................. 113
2.5.6.1 Parameter field for TCP connection ..................................................................................... 114
2.5.6.2 Parameter field for UDP connection .................................................................................... 115
2.5.6.3 Parameter field for an ISOonTCP connection ..................................................................... 116
2.5.6.4 Parameter field for an Email connection .............................................................................. 117
2.5.6.5 Parameter field for FTP connection ..................................................................................... 118
2.5.7 Subfield types....................................................................................................................... 119
2.5.8 IP_CONFIG - meaning and call ........................................................................................... 122
2.5.9 How IP_CONFIG works ....................................................................................................... 124
2.5.10 Explanation of the formal parameters - IP_CONFIG ........................................................... 126
2.5.11 Reserved port numbers - IP_CONFIG ................................................................................. 127
2.5.12 IP_CONFIG status codes ..................................................................................................... 127
2.6 Program blocks for ERPC-CP .............................................................................................. 130
2.6.1 LOGICAL_TRIGGER for the logical trigger ......................................................................... 130