Jetter AG
Programming | 7
JCM-501-E00 User Manual
38 / 59
A
conditional jump
is defined as follows:
if
{condition}
goto
end
{skipped block}
:end
Available
commands
The commands correspond to common Windows
®
command line syntax.
7.11.5 Example of a command file
Task
New functions are to be added to an installed JCM-501-E00. To this end, the fol-
lowing modifications are required:
■
Operating system update
■
New application program
■
New values for some of the registers
Solution
You copy the required files to a USB flash drive and create a command file for
the Autostart function.
USB flash drive -
Content
The USB flash drive contains the following files:
■
The
autostart.bat
file
■
The new OS
■
A *.da file containing the new register values
■
A
start.ini
file and a *.es3 file containing the new application program
Command file
@echo off
if not exist \app\autostart.exe goto end
if exist \app\update.ini goto end
if exist \app\usb_update_process_marker goto dm
echo \data\update\jvm_ce0_1.00.0.04.os >\app\update.ini
md \data\update
copy \%1\jvm_ce0_1.00.0.04.os \data\update\jvm_ce0_1.00.0.04.os
echo >\app\usb_update_process_marker
md \app\progtest
copy \%1\progtest\progtest.es3 \app\progtest\progtest.es3
copy \%1\register.da \app\register.da
del \System\reset.exe
goto end
:dm
del \app\usb_update_process_marker
:end
7.11.6 Data files
File format
The data file consists of the following elements:
■
Pure text file
■
Each entry must be in a separate line of text
■
Each line must be completed by carriage return/line feed
■
Comment lines must be preceded by ";"
■
Each data file must start with the entry
SD1001
.
Data lines
A data line consists of the following elements:
■
ID of the variable at the beginning of the line
■
Now follows the number of the variable separated by a blank or tab
■
Then follows the value of the variable separated by a blank or tab