B-1369 (5)USB Autorun Deﬁnition File Creation Tool

User's Manual

SmartAXIS FT2J/1J
MICRO/I HG2J/1J, HG5G/4G/3G/2G-V,
HG4G/3G, HG2G-5F/-5T, HG1G/1P

Revision history
June 2011:

First Edition

June 2013:

Second Edition

December 2019:

Third Edition

January 2022:

Fourth Edition

September 2023:

Fifth Edition

July 2024:

Sixth Edition

Preface

USB Autorun definition files that are required when using the USB Autorun function can easily be created by using the USB
Autorun Definition File Creation Tool.
For details about the USB Autorun function, refer to the WindO/I-NV4 User’s Manual.

1USB Autorun Definition File Creation Tool

Contents
Revision history ...................................................................................... 1
Preface .................................................................................................. 1
1

Overview of the USB Autorun Function ............................................... 32

USB Autorun Definition File Creation Tool Menu................................... 43

Creating a USB Autorun Definition File ................................................ 53.1

USB Autorun Definition File Creation Procedures ................................. 53.2

USB Autorun Definition File Settings .................................................. 63.3Command Settings Dialog Box........................................................... 7

USB Autorun Definition File Creation Tool21

Overview of the USB Autorun Function
The USB Autorun function automatically displays a menu screen from which the user can execute predefinedcommands when a USB flash drive is inserted into the main unit.

USB flash drive

Main unit

USB AutoRun Function Menu Screen
Confirmation
Production line A - replace
display program

Copy display program toUSB flash drive

Replace sound data

Copy PLC program to USB
flash drive

Production line A - replace
PLC program

USB AutoRundefinition file(hgauto.ini)

Run All

CancelTouch the command to execute.

•These defined processes are called commands, and the file that contains the details of the command andmenu screen is called the USB Autorun definition file (hgauto.ini).
•A USB Autorun definition file (hgauto.ini) must be stored on a USB flash drive to use the USB Autorun
function.

3

USB Autorun Definition File Creation Tool

2

USB Autorun Definition File Creation Tool Menu
The commands that can be executed from the menu are as follows.
Menu

FileHelpCommandDetails

NewDiscards the USB Autorun definition file that is currently being edited
and creates a new USB Autorun definition file.

OpenOpens a USB Autorun definition file that has finished being created.

Save

Saves over the USB Autorun definition file that is currently being edited.

Save As

Names and saves the USB Autorun definition file that is currently beingedited.

Exit

Exits the USB Autorun Definition File Creation Tool.

Open Help

Opens the USB Autorun Definition File Creation Tool Help.

About the USB Autorun Definition
File Creation Tool

Displays version information for the USB Autorun Definition FileCreation Tool.

USB Autorun Definition File Creation Tool43Creating a USB Autorun Definition File

3.1 USB Autorun Definition File Creation Procedures
Use the following procedures to create USB Autorun definition files for a USB flash drive.

1 Insert a USB flash drive into the USB port of a PC.
PC
USB flash drive
To USB port

2 Launch the USB Autorun Definition File Creation Tool.
3 Set each item for the USB Autorun definition file as necessary.

For details, refer to “3.2 USB Autorun Definition File Settings” on page 6.

4 Click the File menu, and then click Save As.
The Save As dialog box is displayed.

5 Specify the USB flash drive, then click Save.

The USB Autorun definition file (hgauto.ini) is generated in the root folder of the USB flash drive.

5USB Autorun Definition File Creation Tool

3 Creating a USB Autorun Definition File

3.2 USB Autorun Definition File Settings■ Number of Buttons
Specifies the number of buttons (1 to 5) to create.
■ Enable buttons 1 to 5
Select this to enable buttons 1 to 5.
When cleared, the number of buttons that was specified in Number of Buttons will be displayed but they will not
execute even if pressed.
■ Show Execution Buttons for Run All
Select this to show the Run ALL button.
■ External Memory Device Folder
Enter the name of the External Memory Device Folder. Maximum number is 8 characters.
■ Language
Select language for the button labels and messages from the following choices.
Japanese, Western, Simplified Chinese, Traditional Chinese, Hangul, Central European, Baltic, Cyrillic■ Button 1 to Button 5
Pressing a button sets or changes a command that will be executed.
Click this button to open the Command Settings dialog box. Set the command to be executed by the button. If theselected button has already been set, the command that will be set can be changed. For details, refer to “3.3Command Settings Dialog Box” on page 7.
Entering a Title in the Command Settings dialog box will display the label for the button.
■ Run All button
This button executes in order, all defined commands for the USB Autorun definition file (hgauto.ini). This will bedisplayed only when Show Execution Buttons for Run All is selected.
■ Cancel button
The button that closes the menu screen for the USB Autorun function. It is always displayed.
■ CommentEnter a comment using 6 lines of 54 characters (total 324 characters) or less.
•A line feed will automatically be added but can be added where desired. When added in a desired location, \n will beinserted automatically and is thus calculated as 2 single-byte characters.
•When using a semicolon (;), backslash (\), or double quotations ("), an escape character (\) will be automaticallyinserted before those characters and will thus be calculated as 2 single-byte characters.

USB Autorun Definition File Creation Tool63 Creating a USB Autorun Definition File3.3 Command Settings Dialog Box
Sets commands that will be executed when button 1 to button 5 have been pressed.

■ Button
The number of the selected button will be displayed.
■ TitleEnter a title for the button label using 2 lines of 26 characters (total 52 characters) or less.
•A line feed will automatically be added but can be added where desired. When added in a desired location, \n will beinserted automatically and is thus calculated as 2 single-byte characters.
•When using a semicolon (;), backslash (\), or double quotations ("), an escape character (\) will be automaticallyinserted before those characters and will thus be calculated as 2 single-byte characters.
■ Command
Select a command to execute from the following:
Download Project, Upload Project, Copy Data, Download PLC Program, Upload PLC Program
The setting items below will be displayed according to the command that has been selected.

7

USB Autorun Definition File Creation Tool

3 Creating a USB Autorun Definition File

When Download Project has been selectedSource:

Select either SD Memory Card or USB1 or USB Flash Drive or USB2 for the external memory towhich the project file for transfer (ZNX Project File*1 or ZNV Project File) was saved.

Path:

Specify the file path of the project file for the transfer (.ZNX)*1. The maximum number of characters is247. Only alphanumeric characters and symbols can be used. Path delimiters and characters that cannot
be used vary based on the model.
ModelDelimiter

Characters that cannot be used

FT2J/1J, HG2J/1J/"#$&'()*:;<>?\`|~

HG5G/4G/3G/2G-V, HG4G/3G, HG2G-5F/-5T, HG1G/1P\"*:;<>?|Example: When saving "HG3G_DEMO_1.ZNV", a ZNV Project File, to the root directory of an external
memory device:
HG3G_DEMO_1.ZNV
External Memory Device Folder: Click this button to insert a folder path to the Path indicated inthe External Memory Device Folder settings. The External
Memory Device Folder is set in the USB Autorun Definition
File Creation Tool dialog box.
Example: When the name of the External Memory Device Folder
is “HGDATA01”,“HGDATA01\NVDATA\” will be inserted.
Destination: Displays a download destination of the project.
Clear Keep Devices: Select this check box to clear keep devices after the project data is downloaded. However,when downloading a project file with different OS version or system version or modified DataStorage Area Settings, the keep devices are always cleared.
After downloading, execute the ladder programs automatically:
Select this check box to execute the ladder program after the project download. This option can only bevalid when downloading the project file for the FT2J/1J.

*1 FT2J/1J, HG2J/1J only

USB Autorun Definition File Creation Tool8

3 Creating a USB Autorun Definition File

When Upload Project has been selected

Destination: Specifies the save destination for the projected that has been uploaded from the main unit. Selecteither SD Memory Card or USB1 or USB Flash Drive or USB2 for the external memory.
Path:Specify the folder path of the location where the uploaded project will be saved. The maximum numberof characters is 247. Only alphanumeric characters and symbols can be used. Path delimiters andcharacters that cannot be used vary based on the model.
Model

Delimiter

Characters that cannot be used

FT2J/1J, HG2J/1J/"#$&'()*:;<>?\`|~

HG5G/4G/3G/2G-V, HG4G/3G, HG2G-5F/-5T, HG1G/1P\"*:;<>?|Example: When saving a project to the "Upload_Project" folder in an external memory:
Uploaded_Project
External Memory Device Folder: Click this button to insert a folder path to the Path indicated inthe External Memory Device Folder settings. The External
Memory Device Folder is set in the USB Autorun Definition
File Creation Tool dialog box.
Example: When the name of the External Memory Device Folder
is “HGDATA01”,“HGDATA01\NVDATA\” will be inserted.

9USB Autorun Definition File Creation Tool

3 Creating a USB Autorun Definition File

When Copy Data has been selected

Source:Path:

Select either SD Memory Card or USB1 or USB Flash Drive or USB2 for the external memory copysource.
Specifies the file path for the file copy source or the folder path for the folder copy source. The
maximum number of characters is 247. Only alphanumeric characters and symbols can be used. Pathdelimiters and characters that cannot be used vary based on the model.
Model

Delimiter

Characters that cannot be used

FT2J/1J, HG2J/1J/"#$&'()*:;<>?\`|~

HG5G/4G/3G/2G-V, HG4G/3G, HG2G-5F/-5T, HG1G/1P\"*:;<>?|Example: When the sound file “Error.wav” has been saved in the root path of an external memory
deviceError.wav
External Memory Device Folder: A drop-down menu is displayed when this button is clicked. Clickan item on the drop-down menu to insert a folder path to thePath indicated in the External Memory Device Folder
settings. The External Memory Device Folder is set in theUSB Autorun Definition File Creation Tool dialog box.
Example: When the name of the External Memory Device Folder
is “HGDATA01”,“HGDATA01\(Folder to be created)\” will be inserted.
Destination: Select either SD Memory Card or USB1 or USB Flash Drive or USB2 for the external memory copy
destination.
Path:
Specifies the folder path for the copy destination folder. The maximum number of characters is 247.
Only alphanumeric characters and symbols can be used. Path delimiters and characters that cannot be
used vary based on the model.
ModelDelimiter

Characters that cannot be used

FT2J/1J, HG2J/1J/"#$&'()*:;<>?\`|~

HG5G/4G/3G/2G-V, HG4G/3G, HG2G-5F/-5T, HG1G/1P\"*:;<>?|Example: When saving to the “SOUND” folder in the “HGDATA01” folder on an external memory device
HGDATA01\SOUNDUSB Autorun Definition File Creation Tool10

3 Creating a USB Autorun Definition File

External Memory Device Folder: A drop-down menu is displayed when this button is clicked. Clickan item on the drop-down menu to insert a folder path to thePath indicated in the External Memory Device Folder
settings. The External Memory Device Folder is set in theUSB Autorun Definition File Creation Tool dialog box.
Example: When the name of the External Memory Device Folder
is “HGDATA01”,“HGDATA01\(Folder to be created)\” will be inserted.
Selection Items

11

Folder to be createdExternal Memory Device Folder

HGDATA01\ (Inserted to the root
folder of a USB flash drive)

Alarm Log Files

ALARMLOG

Data Log FilesDATALOG

Operation Log FilesOPERATIONLOG

Screenshots

CAPTURE

Recipe FilesRECIPE

Picture Files used by MICRO/I

PICTURESound Files used by MICRO/I

SOUND

ZNV/ZNX Project Files

NVDATAZLD Project FilesLDRDATA

Movie Files

MOVIE

Recorded movie files

RECORD

USB Autorun Definition File Creation Tool

3 Creating a USB Autorun Definition File

When Download PLC Program has been selected

Source:Path:

Select either SD Memory Card or USB1 or USB Flash Drive or USB2 for the external memory towhich the PLC program file for transfer (.ZLD) was saved.
Specifies the file path for the PLC program file for transfer (.ZLD). The maximum number of charactersis 247. Only alphanumeric characters and symbols can be used. Path delimiters and characters thatcannot be used vary based on the model.
ModelDelimiter

Characters that cannot be used

FT2J/1J, HG2J/1J/"#$&'()*:;<>?\`|~

HG5G/4G/3G/2G-V, HG4G/3G, HG2G-5F/-5T, HG1G/1P\"*:;<>?|Example: When the PLC program file “LDR_PROGRAM.ZLD” has been saved to the “LDRDATA” folder
on an external memory device
LDRDATA\LDR_PROGAM.ZLD
External Memory Device Folder: Click this button to insert a folder path to the Path indicated inthe External Memory Device Folder settings. The External
Memory Device Folder is set in the USB Autorun Definition
File Creation Tool dialog box.
Example: When the name of the External Memory Device Folder
is “HGDATA01”,“HGDATA01\LDRDATA\” will be inserted.
Destination: Interface:

Selects the main unit port that is connecting the PLC from the following.
COM1, COM2, Ethernet
Slave Number:Specify the Slave Number (0 to 31) of the download destination PLC.
This option can only be set when COM1 or COM2 is selected as theInterface.
Specify External Device ID: Specify the external device ID (0 to 31) of the download destination PLC.
This option can only be set when Ethernet is selected as the Interface.
Specify IP Address:
Specify the IP address and port number of the download destination PLC.
This option can only be set when Ethernet is selected as the Interface.

USB Autorun Definition File Creation Tool12

3 Creating a USB Autorun Definition File

When Upload PLC Program has been selected

Source:Interface:

Selects the main unit port that is connecting the PLC from the following.
COM1, COM2, Ethernet
Slave Number:Specify the Slave Number (0 to 31) of the upload source PLC.
This option can only be set when COM1 or COM2 is selected as theInterface.
Specify External Device ID: Specify the external device ID (0 to 31) of the upload source PLC.
This option can only be set when Ethernet is selected as the Interface.
Specify IP Address:
Specify the IP address and port number of the upload source PLC.
This option can only be set when Ethernet is selected as the Interface.

Destination: Specifies the save destination for the PLC program that has been uploaded from the PLC connected tothe main unit. Select either SD Memory Card or USB1 or USB Flash Drive or USB2 for the externalmemory.
Path:Specifies the folder path where the uploaded PLC program file will be saved. The maximum number ofcharacters is 247. Only alphanumeric characters and symbols can be used. Path delimiters andcharacters that cannot be used vary based on the model.
ModelDelimiter

Characters that cannot be used

FT2J/1J, HG2J/1J/"#$&'()*:;<>?\`|~

HG5G/4G/3G/2G-V, HG4G/3G, HG2G-5F/-5T, HG1G/1P\"*:;<>?|Example: When saving to the “Uploaded_Program” folder on an external memory device
Uploaded_Program
External Memory Device Folder: Click this button to insert a folder path to the Path indicated inthe External Memory Device Folder settings. The ExternalMemory Device Folder is set in the USB Autorun Definition
File Creation Tool dialog box.
Example: When the name of the External Memory Device Folder
is “HGDATA01”,“HGDATA01\LDRDATA\” will be inserted.
For details about the created USB Autorun definition file and folder structure, refer to the WindO/I-NV4 User’sManual.

13

USB Autorun Definition File Creation Tool

Specifications and other descriptions in this manual are subject to change without notice.
Information in this manual is current as of July, 2024.
2011 IDEC Corporation, All Rights Reserved.
B-1369(5)