Overview of Cooperative Multitasking in Lua
async_task do not execute immediately; they only begin running when they are passed to a synchronization function such as wait_all or wait_any.website·Indexed 32 days ago
https://help.lebai.ltdDeveloper guides and API references for Lebai robot arms and the L Master system. Includes documentation for the SDK (v3.1.8+), motion control (MoveL, MoveC, MoveJ), I/O control, and programming examples in Lua, Python, and JavaScript. Covers system services including JSON-RPC, WebSocket, and HTTP, as well as Modbus 3.0.8 integration and gripper installation.
async_task do not execute immediately; they only begin running when they are passed to a synchronization function such as wait_all or wait_any.Starting from L Master 3.0, the robot can act as a Modbus master (client) to connect with PLCs. It supports TCP/Socket network connections and RTU serial protocols.
Important Notes:
pcall) to catch errors and prevent abnormal system exits.libmodbus open-source library used in L Master 2.x is deprecated in version 3.0 as it could cause system freezes or crashes during communication abnormalities.The Lebai SDK provides a consistent development experience across multiple languages using JSON-RPC and WebSocket technologies. It is available for Lua, Python, JavaScript, Rust, and C++.
Requirement: The SDK is only compatible with version 3.1.8 and above.