20 YEARS OF SMART WEIGHING
Home
Region selection
AUS (English)
EUR (English | Deutsch)
US (English)
R400 Series IndicatorsR400 Lua Programmable Indicators
R400 Lua Programmable Indicators
R400 Lua Programmable Indicators

R400 Lua Programmable Indicators

Click above images for enlarged view.
 
 
Key Highlights & Features
Product Description
  • 100,000 d @ 0.25 V/d
  • Trade approved Australia, Europe and USA
  • Lua programmability
  • Ethernet Port
  • USB Host Port
  • Built in RS232/RS485
  • Telnet/SSH remote access

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

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.

Toolchain

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.

Security

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.

Open Source

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.

rinLIB

API for programming the M4223 in Lua

 

 

Smart Weighing
R400 Lua Programmable Indicators

Open Source

 

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

Product Downloads
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.

Files

 Application Note: Installing a Package onto a M4223 LUA Module Application Note: Installing a Package onto a M4223 LUA Module - 2 Oct 14 - 272KB (PDF) file - L001-705 
 Data Sheet Data Sheet - 21 Nov 13 - 535KB (PDF) file - R400-752-100 
 L001-506 L001-506 - 24 Dec 13 - 13724KB (ZIP) file - Lua Development Environment Notepad++ and PuTTY 
 L001-602 L001-602 - 16 Dec 13 - 97KB (PDF) file - Linux Operating System Commands 
 L001-603 L001-603 - 16 Dec 13 - 187KB (PDF) file - Lua Commands 
 Quick Start Manual Quick Start Manual - 04 Nov 14 - 144KB (PDF) file - L001-601-110 
 Reference Manual Reference Manual - 04 Nov 14 - 303KB (PDF) file - L001-600-110