04 Script

Last modified by Wecon on 2025/09/03 21:03

1. VB: How to get started VB Script in PIStudio
  • VB Script(Marco) is mainly designed for user to do some simple logical or calculation.
2. Lua: How to Get Started Lua Script in WECON PIStudio
  • Lua is a powerful, efficient, lightweight, embeddable scripting language.
3. Lua: MQTT Client
  • Using the Lua MQTT, the communication device which is connected to HMI can upload the values to MQTT broker(Server end)
4. Lua Tutorial 1st Class: Lua Basic
  • Chapter NO.0 The pre note of programming
  • Chapter NO.1 Preparation Works
  • Chapter NO.2 Basic Syntax
  • Chapter NO.3 Data Type
  • Chapter NO.4 Variable
5. Lua Tutorial 2nd Class: Control Structure
  • Chapter NO.5 Loop
  • Chapter NO.6 Control Flow
  • Chapter NO.7 Function
6. Lua Tutorial 3rd Class: Operator & String
  • Chapter NO.8 Operator
  • Chapter NO.9 String
7. Lua Tutorial 4th Class: Table & Iterator
  • Chapter NO.10 Array
  • Chapter NO.11 Iterator
  • Chapter NO.12 Table
  • Chapter NO.13 Module
8. Lua Tutorial 5th Class: Custom Table Drawing
  • 1. Create the customize object and get object ID
  • 2. Initial the table header and cell number
  • 3. Constructure the table content
9. Lua Tutorial 6th Class: Custom Curve Drawing
  • 1. Create the customize object and get object ID
  • 2. Set the line type
  • 3. Set the curve background
  • 4. Constructure the curve elements(one dimensional table)
10. Lua Tutorial 7th Class: HTTP & JSON
  • What is HTTP
  • What is JSON
  • Take weather api as example to test
  • How to parse value into display
11. Lua Tutorial 8th Class: FTP Client
  • What is FTP
  • Build up FTP site on PC
  • Core code part of FTP Client
12. Lua Tutorial 9th Class: CSV File Read&Write
  • What is CSV
  • How to recognize the seperator
  • File read write demonstration
13. Lua Tutorial 10th Class: MQTT & OpenCloud
  • What is OpenCloud
  • Huawei IOTDA Setup
  • Product Model Data Create
  • OpenCloud Function Demonstration

View more videos