05 Lua Script

Version 12.1 by Hunter on 2022/07/29 16:56

1 64bits Address Basic Algorithm

The example shows how to do the Addition, Subtraction, Multiplication and Division for HMI internal address. 

Download link

2 MQTT Client

The example shows how to connect to the MQTT server.(Test on MaQiaTTo)

Download link

3 Timer

The example shows how to use the Lua Timer function.

Download link

4 Trigger

The example shows how to use the Lua Trigger function.

Download link

5 User Free Protocol

The example shows the simple write and read of User Free protocol

Download link

6 Arabic Keypad

The example shows how to use the Lua to achieve the Arabic keypad. Also available for other non-English language like Cyrillic.

Download link

7 FTP Client

The example shows how the to establish the FTP server at WIN10 OS and make the HMI as FTP client.

Step1: About how to set up the FTP server in Windows PC: Build an FTP Site on IIS , How to set up and manage an FTP server on Windows 10

Step2: Change the IP, port, username and password in Script_BG.lua, to connect user's own server.

Step3: Change the filename want to download or upload in Script_BG.lua

Step4: Change the string "udisk:smtp.jpg", into the storage path user want to download from FTP server save to HMI, in function Main_download() in Main.lua.

Download link

8 Telegram Notification

The example shows how to use Bot API to push the notification to channel or group of Telegram. Please change the Token and Chat id to users' own one.

Download link