xLadder user manual-V2.0.0.6

10.12 MQTT (New block for Ethernet series PLC)

10.12.1 Connect to MQTT Server

Description of Function

This function block is used to configure and connect to the MQTT server.

The IP and port information of the MQTT server is no longer obtained from ‘Web Server Config’. Instead,

get from this block, which triggers this block to connect to the server.

Publish and subscribe function blocks also do not configure the parameters of the MQTT server, they are

simplified to have only publish and subscribe features.

Only one Connect to MQTT Server block can be placed in the program.

Connection

Description

You enable/disable the block with the signal at input En (1/0).

En

Parameter

IP Address: The IP address of the MQTT server. Port: The port of the MQTT server. Connection timeout: Timeout setting for cloud connection in seconds. PING interval time:

Ping timer setting in seconds. If there is no message to publish before the timer expires, the PLC will send a ping command to the cloud server to check connection status. Enable SSL/TLS: After checking, select to use SSL encryption mode.

273

Made with FlippingBook - Online magazine maker