Key Highlights & Features
- 100,000 d @ 0.25 V/d
- Built in RS232/RS485
- Ethernet Port
- Lua programmability
- Telnet/SSH remote access
- Trade approved Australia, Europe and USA
- USB Host Port
The R400 series hardware now supports programmability using Lua, a powerful lightweight scripting language, in conjunction with supporting libraries that simplify the process of writing scripts to control the R400 indicator. The modular design of the R400 hardware combined with Lua programmability offers the ultimate in flexibility.
Programmability is implemented using Lua and the supporting libraries and devices contained on the M4223 module. Connection to the module is via its Ethernet port and the module uses embedded Linux for an operating system. The M4223 module also has a USB HOST port that can be connected to a USB HUB and a variety of standard USB devices.
Using the Lua module an R400 indicator can be configured to handle an extensive range of applications. The module comes with a range of standard Lua libraries that allow for the following:
- Direct control of the R420 LCD display
- Custom Key handling
- Direct control of accessory hardware (I/O, serial ports, analogue outputs)
- Ethernet TCP and UDP messaging, SQL database connection
- Local File system using the M4223 onboard flash memory or connect to USB memory sticks.
- Local timers
The entire interface with the instrument is conducted through IP sockets. This means that you can write:
- Multiple applications that run on the M4223 each communicating with the R420, the outside world and each other.
- Applications that run on one instrument and control a network of instruments with a common database, simply by specifying the IP address of each device.
- Applications that run remotely from other hardware.
Telnet and SSH support on the M4223 allows for remote login to the device for diagnostics and support.
Unlike other programmable devices the Lua script does not need to be compiled and re-programmed into the unit. You simply edit the script files directly on the device and reboot.
For the hard-core enthusiast or for simple changes, logon to the device and edit the Lua scripts using the built in VI editor.
For a more familiar interface most developers opt to use a local windows editor like Notepad++ working with the files directly via FTP.
Professional developers can also develop on Ubuntu Linux or in a linux VM using Eclipse and running/debugging the application locally. Since the connection to the R420 is via an IP socket there is no difference in running the script locally or remotely other than the fact that files are stored on your local machine rather than in the M4223.
Your applications are protected directly with linux login security. Once you set a unique root login password it is not possible for any information stored on the device to be recovered without using your password. The reset mechanism clears out all user created script and data to restore the M4223 to factory configuration.
By using linux and Lua the M4223 is a fully open source implementation allowing you full access to the hardware capability of the device and the ability to field upgrade units as new features are added over time.
All of the lua library source code is freely available which is an invaluable training tool as well as giving you full control on how your applications interact with the system.
Lua is a modern, dynamically typed, open source scripting language that powers a huge range of applications across all platforms including Windows, MAC OSX, Linux, Android, and IOS. It is the language of choice for cross-platform games developers and is used in many well known applications like World of Warcraft, Adobe Lightroom, Angry Birds and Wireshark.
The investment in Lua for your company is not limited to the embedded weighing applications. With Lua, applications can be developed on Windows, MAC OSX, Linux, IOS and Android using the very same libraries you developed on the weighing devices.
Who knows, in your spare time you might just spin out the worlds next Angry Birds.
By using Linux and Lua the M4223 is an open source implementation allowing you full access to the hardware capability of the device and the ability to field upgrade units as new features are added over time.
All of the Lua library source code is freely available which is an invaluable training tool as well as giving you full control on how your applications interact with the system.
...now that's smart weighing
The following files are available for download for the R400 Lua Programmable Indicators. Ensure you select the correct documentation for your unit's software version. Check back regularly for software and other updates.
To download files, please click on a filename below. A save dialogue box should appear allowing you to specify your save location.
If a save dialogue box does not appear, right click on the link and select save target as.
07/03/2019 - 535KB (PDF) file - DataSheet