• AnyViz
  • Overview
    • Concept
    • System constellations
    • OEM Cloud Instance
    • VPN Cloud Access
    • Security
  • Use Cases
    • IIoT
    • Industry 4.0
    • Cloud HMI
    • Energy Management
    • Building Automation
    • Water supply
    • Machine to Machine (M2M)
    • Remote Monitoring
    • Energy Monitoring
    • Wastewater treatment
    • Smart Grid
  • Connectivity
    • Cloud Adapter
    • Getting started
    • IoT Gateway
  • FAQ
  • Features
enEN
deDE
AnyViz Portal
en
de
Portal

AnyViz Universal Cloud Adapter 2.1: Now with Lua scripting for local logic and data preprocessing

4 days ago
Uncategorized
Cloud Adapter Scripting

With the new version 2.1 of the AnyViz Universal Cloud Adapter, AnyViz is taking functionality to a new level. The most important new feature: Lua scripts can now be created and executed directly in the cloud adapter.

More than just a data collector

Until now, the Cloud Adapter was primarily used to collect data from a wide variety of controllers, sensors and devices and transfer it securely to the AnyViz Cloud. With the new Lua scripting module, the adapter now also becomes a local control and pre-processing unit: it can process and calculate data directly or control local outputs based on logic – independently of a PLC.

Easy development in the web interface

The scripts are created easily via the Cloud Adapter’s web interface. Thanks to the integrated IntelliSense function, which data points and functions are available is displayed immediately during input. An output window provides additional support for development by:

  • the current value of all tags used,
  • the return value of the script and
  • the cycle time

live. This makes testing and optimization simple.

Connected intelligence

A particular highlight is the ability to request variables from the cloud within a Lua script. This allows distributed, cross-location logics to be implemented – without a central PLC or external controller.

level = requirenumber("Water level") -- Get water level via the cloud pumpIsOn = tags["Modbus"]["Pump"] -- Get current pump status if pumpIsOn then -- Turn off pump when 400cm is reached tags["Modbus"]["Pump"] = level < 400 else -- Turn on pump when below 300cm tags["Modbus"]["Pump"] = level < 300 end

Extended functionality

In addition to the connection to local IOs and controllers, the Lua scripts provide access to:

  • the current time of the operating system (e.g. for time controls),
  • an extensive mathematical function library,
  • conditions, loops, table structures and more.
-- Get current hour using os.date() hour = tonumber(os.date("%H")) -- Hour (00-23) -- Turn on light after 19:00 until 06:00 tags["Siemens TCP"]["Light"] = hour >= 19 or hour < 6

Compact control solution for simple applications

For many smaller automation tasks, this eliminates the need for a traditional PLC. The cloud adapter handles both data collection and simple control tasks – all in one compact solution.

Previous Post
Universal Cloud Adapter Version 2.0 Released

Latest posts

  • AnyViz Universal Cloud Adapter 2.1: Now with Lua scripting for local logic and data preprocessing
  • Universal Cloud Adapter Version 2.0 Released
  • Efficient load management and monitoring of charging stations with OCPP
  • Direct integration of LoRaWAN sensors into the AnyViz Cloud
  • SunSpec protocol for connecting inverters, meters and storage systems

Archive

  • 2025 (2)
  • 2024 (3)
  • 2023 (2)
  • 2022 (5)
  • 2021 (5)
  • 2020 (1)
  • 2019 (1)
  • 2018 (3)
  • 2017 (1)

Categories

  • Automation (15)
  • IoT Gateway (5)
  • New features (10)
  • News (1)
  • Uncategorized (1)

Mirasoft Logo

© 2025 AnyViz
Made with by Mirasoft

AnyViz

Blog
References
Online Help
Changelog
Media
Legal Information
Privacy Statement
Terms

Topics

Getting started
Connectivity
Concept
System constellations
OEM Cloud Instance
VPN Cloud Access
Features
Security

Contact

+49 (0) 9351 9793 320

info@anyviz.io

X
YouTube
LinkedIn
Xing
RSS