The Magic Module family of low cost field programmable controller modules offers a unique controller and
data acquisition product line to markets not normally using such technology due to cost and complexity.
log any data bus event on the RS-485 data bus. Over 5000 data bus events may be logged into the ML1’s EEProm
Memory.
may be the Dallas iButton and the 26 bit Wiegand Prox Card ID devices. These access control devices are
attached to the MM443 Programmable Controller. The logged data in the ML1 may be downloaded into a PC through
the RS-485 data bus or through an external modem attached to the ML1. The modem interface offers passcode
protection and gives three authorization levels to users that might be accessing the Magic Module System.
is part of the Elk Product’s Magic Module Development Software. The written program is then downloaded to the
modules by way of the RS-485 data bus and programmed into re-programmable Electrically Erasable Programmable
Read Only Memory (EEProm memory). Up to 31 modules of the same type may be data bussed together.
The Code Editor uses the Code Writer, which constructs programs from a visual question list into a lower level
Intermediate Code. The Intermediate Code, known as SIMPLE
Intermediate Code into code byte’s that the micro processor reads out of reprogrammable EEProm memory and
executes the code through a built in operating system. The latest updates to the Elk Product’s Magic Module
Development Software are available at: www.elkproducts.com.
Components Available:
Note: Specifications and features may change without notice. All rights are reserved by Elk Products, Inc.
Dallas iButton is a trademark of Dallas Semiconductor Inc., Dallas, Texas
The ELK – ML1 data logger & external modem/parallel printer interface enables the Magic Module System to
A primary application of the ML1 data logger is to log access control events from the ELK TouchKey, which
The Magic Module System Modules are programmed by way of the ELK Code Editor and Code Writer, which
, is a Basic-like high level language that compiles the
•MK400S – Starter Development Kit for the MM443S Magic Module, includes Savoy Cyberhouse
Software.
• MK410 - Pre-programmed X-10 Transceiver. Four inputs, four relay outputs, sends and receives X-10.
• MK420 - Pre-programmed access control with 10 Dallas iButton’s.
• MM220 - 2 digital inputs, 2 relay outputs, stand-alone.
• MM443 - 4 analog inputs, 4 relay outputs, RS-485 data bus, X-10, Dallas iButton.
• MM443S - MM443 with Savoy Software.
• MM447 – The MM443, MV480, and the ML8 combined on one PC board. Fits in Caddx Control box.
• MV120 - 32 Channel Recordable Voice Annunciator - 120 seconds record time, RS-485 data bus.
• MV480 - 240 Channels Recordable Voice Annunciator - 480 seconds record time, RS-485 data bus.
• MK485 – Everything in the MK400S except the MM443S Magic Module
• MC100 - Real Time Clock - Plugs into the MM443 to give real time clock capability. Includes standby
battery.
•MA100 - Dallas iButton Reader Interface and iButton Reader - Interfaces Dallas iButton to MM443.
Includes MA110 and MA190.
• MA101 - Package of 10 Dallas iButton’s.
• MA110 – iButton Reader and stainless steel faceplate.
• MA190 – iButton Reader Interface and cord.
• MT100 - Magic Module Remote Temperature Probe.
• MA290 –26 bit Wiegand Reader Interface for prox cards, with cord to Magic Module MM443.
• MKHOME1 – Preprogrammed home automation package. Works with the Caddx Security Control.
• ML1 - Data logger & modem/parallel printer interface.
Clear Logged Data .................................................................................................................................. 7
Power LED – LED 1 ................................................................................................................................ 7
Log Status LED – LED 2 ......................................................................................................................... 7
Printer Status LED – LED 3 .................................................................................................................... 7
Modem Status LED – LED 4.................................................................................................................... 7
Sign-On Status LED – LED 5 .................................................................................................................. 8
Real Time Clock....................................................................................................................................... 8
PROGRAMMING THE ML1 ...................................................................................................................................................................9
User Setup Screen .................................................................................................................................. 12
Logging – Search Order ........................................................................................................................ 12
PRINTER STRING TEXT ............................................................................................................................... 17
FORMAT CONTROL CODES ......................................................................................................................... 17
Format Code Definitions ....................................................................................................................... 17
Control Codes Output Definition..................................................................................................... 18
Time and Date Control Codes ............................................................................................................... 19
Advanced Text Control Codes................................................................................................................ 19
Compare String Control Codes.............................................................................................................. 20
PRINTER STRING EXAMPLE 1 ..................................................................................................................... 21
PRINTER STRING EXAMPLE 2 ..................................................................................................................... 23
TRANSMIT REMOTE CONTROL (XMIT) ........................................................................................................................................25
MAGIC MODULE DATA BUS COMMANDS..................................................................................................................................... 27
ASCII CHARACTER SET ......................................................................................................................................................................28
Usage – ML1 may be used as Magic Module data bus data logger, as a parallel printer interface to print the
logged messages as the messages are logged or after they have accumulated, and as an external modem interface to
control and reprogram the Magic Module System.
Printer Interface – A printer with a parallel port connection may be connected to J6, a 25 pin D connector.
The printer may be programmed to print each logged message as they are entered or print all the messages upon
command.
Modem Interface – J4, a 9 pin D connector is a serial, RS-232 port to connect to a Hayes compatible external
modem running at 28K baud or faster. The modem will answer only and will request a password. The password can
be in two levels: User and Installer Level. The passwords are set when programming the ML1 with the
Elk Product’s Magic Module Development Software using the Code Writer in the ML1 Mode.
Logging – Over 5000 data bus events may be logged into the ML1’s EEProm memory and later printed to the
parallel printer port or downloaded to a PC by way of the RS-485 data bus or an external modem connected to the
ML1’s serial modem port.
RS-485 Data Bus – The ML1 constantly monitors the RS-485 data bus to find any data packets that match
criteria that was programmed into the ML1 to log data when the criteria was matched. Excellent articles are available
from the National Semiconductor Website on the proper way to install the RS-485 Data bus:
Programming – Programming is done through the Code Editor and Code Writer programs, and then loaded
into the ML1 through the Transmit program by way of the RS-485 data bus. The program is transferred from the PC to
the ML1 using the PC’s serial port and a RS-232 to an RS-485 converter box (ELK Part # MB485). These programs
are available in the Elk Product’s Magic Module Development Software.
Reset - In the event that a defective program has been loaded into the ML1 memory and the data bus can no
longer be accessed for reprogramming, the module’s program memory can be cleared and reset by shorting the solder
pads located at “TP1” and “TP2”, then powering up the module.
Each ML1 connected to the RS-485 data bus must have a unique address set on each ML1. This address is set on
the ML1 PC Board with five (5) jumpers. The address is set with a binary code; each jumper has a value as follows:
Jumper 1 (left jumper) = 1
Jumper 2 = 2
Jumper 3 = 4
Jumper 4 = 8
Jumper 5 = 16
By placing the appropriate jumper(s) in the upper or 1 position, the address setting may be set by adding up the
jumper values.
Example: Set data bus address 5.
Jumper 1 and jumper 3 will be placed into the “1” position. Add up the value: 1 + 4 = 5.
Set data bus address 17.
Jumper 1 and jumper 5 is placed into the “1” position. Add up the value: 1 + 16 = 17.
Note: After changing the data bus address jumper settings, the power must be turned
off and turned back on before the new jumper settings will take effect.
S1 – Print Button and S2 – Pause Button
Toggles the Parallel Printer On and Off. If the printer is enabled to print as you go, and the printer is turned off
as indicated by the Printer Status LED being Off, the print messages to the printer may be stopped by
pressing the Print or Pause Button. Press the Print or Pause Button again to enable the printer as indicated
by the Print Status LED being On. Note: Most printers have a built-in buffer so several lines of print data may
be buffered in the printer to be printed after the Print or Pause Button has been pressed.
S3 – Abort Button
When pressed, the ML1 will reset the location in the logged data to start printing at the beginning of the
logged data file in EEProm. When the Abort Button is pressed, the Print Status LED will go out. Press the
Print or Pause Button to get a complete print out of the logged data. Note: Printing the logged data does not
clear the logged data out of the EEProm memory.
Clear Logged Data
All the logged data that is stored in the EEProm may be cleared with the following procedure:
1. Press the Print or Pause Button. Note that the Print Status LED will go out.
2. Press at the same time: Pause, Print and Abort Buttons.
3. Within 1.5 seconds press the Abort Button.
4. In approximately 10 seconds the Print Status LED will come on indicating that the log EEProm
memory has been cleared.
Power LED – LED 1
Is ON when +12 VDC power is available to the ML1.
Log Status LED – LED 2
Normally ON when logging is enabled. Blinks when the log EEProm memory is 80% full.
Printer Status LED – LED 3
OFF when the printer is disabled. On when the printer is enabled. Blinking when no printer is attached or
there is a problem with the printer.
Modem Status LED – LED 4
modem is connected or there is a problem with the external modem.
• Windows 95 or 98, minimum suggested Pentium 75 Mhz
•
16 meg Ram
•
50 meg Hard Drive Space
•
CD Drive for program installation
•
RS-232 Serial Port
•
Display 800 X 600 X 16 bit SVGA or greater
•
Mouse
Elk Products, Inc. Development Software
The ML1 is programmed using the Elk Product’s Magic Module Development Software. The program will be
written using the Code Editor and the Code Writer. The Code Writer will automatically write the program to be
loaded into the ML1 after you have answered the questions in the Code Writer section.
All Examples are shown with ELK Development Software version 5.0.18 or later.
Mode Selection
When the Main Screen displays, select the ML1 Modem Interface mode. Next click the “Edit” button to enter
the Code Editor Program.