Jetter AG
Programming | 8
User Manual – JCM-501-E01
50 / 65
8.7.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 a semicolon (;)
■
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
Variable ID
Variable type
FS
Flag
RS
Integer register
QA
Floating-point registers
Example
SD1001
; Data File - Jetter AG;
; Registers 1000000 ... 1000005
RS 1000000 12345
RS 1000001 2
RS 1000002 -1062729008
RS 1000003 502
RS 1000004 50
RS 1000005 3
QS 1009000 3.14
;
; Flags 10 ... 13
FS 10 0
FS 11 1
FS 12 1
FS 13 0
Automatically
loading data file
information
The JCM-501-E01 features a mechanism allowing a data file to be loaded auto-
matically before the application program starts. You must name the data file
reg-
ister.da
and store it in the
App
folder.
Process
The table below shows how the device retrieves data file information:
Step
Description
1
If the data file
register.da
has been stored to the directory
App
,
the device will detect this file the next time the device is started.
2
The device retrieves the file.
3
The device maps the values to the registers.
4
Once the device has retrieved the file, it deletes the data file.
5
The device loads the application program.