CH Tech EM405-8 User Manual

Page 1
C&H Technologies, Inc.  445 Round Rock West Drive
Overview:
Key Features
Additional
Information:
Scripting Utilities Enhance
(512) 733-2621 FAX (512) 733-2629 www.chtech.com
Round Rock, TX 78681-5012
the EM405-8 M-Mod u le Carrier /LXI Bridge
The scripting utilities of the EM405-8 LXI M-Module Bridge provide enhanced programming capabilities allowing the u ser to embed software on the bridge itself to improve performance and further integrate a set of M-modules.
By embedding a script or a set of scripts on the EM405-8, the burden for monitoring, configuring and controlling the M-modules is taken off the network and placed onto the EM405-8’s embedded processor. Thus providing significant performa nce improvements and allowing the EM405-8 and associated M-modules to be more easily customized and integrated for a specific application.
The EM405-8 Ethernet M-Module carrier is an LXI compliant device that easily bridges up to eight (8) standard M-Modules to a LXI system or typical Ethernet (LAN) network.
The scripting utilities, based on the interpretive lang uage Lua†, provide a powerful tool for utilizing the intelligence of the EM405-8. EM405-8 specific extensions to the Lua language make controlling the bridge and associated M-modules from custom scripts very straightforward. Developing a script does not require complex development tools nor does it require advanced knowledge of embedded programming.
Mass Storage Option
The mass storage option of the EM405-8 provides non-volatile storage of scripts, supporting files and collected data. It also provides for the feature of a startup script allowing the EM405-8 to boot into a custom configuration and begin monitoring and controlling the M­Modules autonomously.
The EM405-8 implementation of scripting contains all the basics of Lua including all standard libraries, as well as EM405-8 specific extensions. Key features include:
Lua 5.1 language interpreter Lua 5.1 standard libraries
(ma th, table, stri ng, i/o, etc.)
EM405-8 extensions to control M-
modules and EM405-8 utilities
Call existing M-module drivers and
other libraries via Alien Library
Store and retrieve data to/from mass
storage dev ice (mass storage is an EM405-8 option)
Create custom commands and pass
data over the Ethernet interface
Create custom web pages to be
served by the EM405-8
Configure startup script for
autonomous operation
TCP/IP raw socket interpreter for
development
Develop scripts using any text editor.
No compilation required
Network based commands to use
and manage scripts (store, retrieve, run , halt, etc.)
Data sheets and user manuals for the EM405-8 including the EM405-8 Scripting Manual can be found on C&H’s website at www.chtech.com
Ordering Information:
The scripting utilities come standard with all EM405-8 M-Module carriers. The EM405-8 Ordering Information is as follows:
Part Number: 11029380-xxxx
-0001 with triggers
-0002 without triggers
-0003 with triggers & 16GB Drive
* Non-volatile storage of scripts is only available with the -0003 ordering option or configured products that include the mass
storage option .
Page 2
PART OF SCRIPTING EN
VIRONMENT FURNISHED
BY C&H
APPLICATION SPECIFIC
CUSTOMER DEVELOPMEN
T HARDWARE
STANDARD AVAILABLE S
OFTWARE FROM C&H OR
THIRD PA RTY
EM405
-
8 UTILITIES
EM405
-
8 LUA EXTENSIONS
M-
MODULE ANSI
-
C DRIVERS
LUA STD LIBRARIES
ALIEN LIB
MASS STORAGE
EM405
-
8 SCRIPT MANAGEMENT
EM405
-
8 IVI DRIVER
USER APPLICATION
WEB BROWSER
HOST
EM405
-8
RUN-TIME ENVIRONMENT
STANDARD TOOLS
ETHERNET
DEVELOP SCRIPTS MANAGE SCRIPTS RUN SCRIPTS VIEW SCRIPT OUTPUT
TELNET – RAW SOCKET I/F TERMINAL EMULATOR TEXT-BASED DEVELOPMENT
COMMANDS
AND DATA
SCRIPTS
CONTROL SCRIPTS SEND COMMANDS RETRI EVE DATA
CUSTOM SCRIPT-
BASED W EB PAGES
EMBEDDED ON EM405 -8
ARM PROCESSOR
Lua is an open source, interpretive programming language designed, implemented, and maintained by a team at PUC-Rio in Brazil
Lua is Copyright © 1994-2008 Lua.org, PUC-Rio.
(TRIGGERS, FANS, ETC.)
EM405-8 Scripting Utilities Architecture Diagram
M-MODULES
Loading...