When you use the FP-I4C unit as an HTTP client, you can use the HTTP GET and HTTP POST methods with a cloud server. A PLC is needed to send and receive data.
Ready-made function blocks are available for Control FPWIN Pro7. To download these function blocks or a programming example, select the buttons at the end of the configuration page.
See also the related Quick Start Guide, which provides detailed step-by-step instructions for using the FP-I4C unit as an HTTP client.
Use HTTP client: Use this toggle switch to enable the HTTP client function.
First control register: Specify the start address of the control registers used in the PLC to trigger an action.
Last control register: This address is calculated based on the specified control register.
Polling time: Set the interval in seconds to poll the PLC's control registers.
Server (IP address or host name): Enter the IP address or host name of the server. If you leave this text field empty, the server's IP address or host name is read from the PLC function block.
Login user name: Enter the user name to log into the HTTP server (max. 40 characters).
Login password: Enter the password to log into the HTTP server (max. 40 characters).
Use HTTPS: Use this toggle switch to enable the HTTPS function (SSL/TLS) and encrypt your connection.
Use CA verification
Usually official certificates must be signed by a certificate authority (CA). If you use a local broker, turn the toggle switch off (no CA verification is requested).
If official certificates are used, turn the toggle switch on. To upload a certificate from the PC to the FP-I4C unit, drag a file onto the drag and drop area or select a file with the + icon and then select the cloud icon. You can upload all three certificates at the same time.
The following certificates are supported:
Certificate |
File names |
---|---|
CA certificate of the certificate authority (.crt, .csr, .pem) |
ca.crt, ca.csr, ca.pem |
Client certificate (.crt, .csr, .pem) |
client.crt, client.csr, client.pem |
Key file (.key, .pem) |
key.key, key.pem |
When you have changed any settings, a Save button appears in the upper right corner of the screen. You can make changes on multiple pages and then save your settings.
To reset all settings on the current page to the default configuration, select the Reset button at the bottom of the page.