2 USB Autorun Function
26-24 SmartAXIS Touch User's Manual
command = PRO_UPLOAD
■ dst_path (required)
Specify the path to the folder (250 or less characters) where the uploaded project file will be saved.
Use “B:\” for a USB flash drive.
Common items
■ title
Enter a title for the button label using 1 line of 14 characters or less.
• When using a semicolon (;), backslash (\), or double quotations ("), a backslash (\) as an escape character will be
automatically inserted before those characters and will thus be calculated as 2 single-byte characters.
[COMMENT] section
■ comment
Enter a comment using 1 line of 29 characters or less.
• When using a semicolon (;), backslash (\), or double quotations ("), an escape character (\) will be automatically
inserted before those characters and will thus be calculated as 2 single-byte characters.
Notes on comments
To add comments to the USB Autorun definition file, use a semicolon (;).
All text after the semicolon (;) and up to the line feed will be treated as a non-executable comments.
Restrictions
• The maximum number of characters per line is 512 single-byte characters including line feed codes.
All the text on the line will be ignored if there are more than 512 single-byte characters on the line.
• Each item must be described as a single line. If a line feed occurs before the end of the description, all characters
after the line feed are ignored.
• The maximum size of the USB Autorun definition file (hgauto.ini) is 512 KB. The file cannot be used if it exceeds
this limit.
• Only line feed codes of the format generally supported by Windows (CR+LF) are supported. If any other format is
used, the USB Autorun definition file (hgauto.ini) will fail to run properly.
Sample definition file and explanation
Sample definition
; sample hgauto.ini
(1)
[AUTORUN]
item = 5 ; number of items
button_command = Enable ; enable individual command buttons
button_runall = Enable : enable the "Run All" button.
language =English ; use English
(2)
[COMMAND_1]
command = PRO_DOWNLOAD ; download the project file
src_path = "B:\FT_DEMO_1.ZNV" ; source path
title = "Change Program" ; button label
(3)
[COMMAND_2]
command = PRO_UPLOAD ; upload a project file
dst_path = "B:\Uploaded_Project" ; destination path
title = "Copy Program" ; button label
(4)
[COMMENT]
comment = "Press the button." ; Message shown at bottom of screen.