If you wish to publish data to or subscribe data from a so-called broker via the light-weight MQTT protocol (Message Queuing Telemetry Transport), a PLC is needed to control and to receive the 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.
Use MQTT: Use this toggle switch to enable the MQTT 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.
Select TLS version: The MQTT protocol supports SSL/TLS. Use this setting to select an encryption type:
We recommend that you always use the newest TLS version.
If you use a local MQTT broker, you may select no encryption. If you use cloud brokers or any broker which is in the WAN (e.g. Internet), you should always use encryption.
Use self-signed certificate: Usually official certificates must be signed by a certificate authority (CA). If you use a local broker, turn the toggle switch off to save costs (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.
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.