Path Setting - Mitsubishi Electric MELSEC iQ-R Series User Manual

Motion module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Path setting

The file path (including file name) to be used for control is specified with the STRING or FILE_LOCATION type variable by
parameters and I/O variables of FB of each control. The following describes the path specification.
Path specifications
• For the file path, alphabetic characters (a-z, A-Z, 0-9), symbols (!#$%&'()+,-.;=@[]^_`{}~), spaces and directory delimiters (/
) are available. Wide characters cannot be used.
• A wild card (*?) is available for a file name depending on the function. Refer to each function for the availability.
• The path length is up to 127 characters.
• The path is not case-sensitive.
■How to set the path
For the path setting, the absolute path and the relative path are available.
• Absolute path
The path start with / is an absolute path. An absolute path must be described with a character string combined with a file name
to a drive identifier. For a drive identifier and a file name, refer to the following.
Page 497 Drive, Page 502 Storage files
Ex.
/sdc/$MOTPRJ$/calc_profile/cam0001.csv
• Relative path
The path not start with / is a relative path. When a relative path is specified, the following directory is the root and the actual
file access is performed with a root path + a relative path. The specified root path is shown below.
Module extended parameter storage
location setting
Motion module (internal memory)
Motion module (SD memory card)
*1 The root path is stored in the environmental variable PROJECT_ROOT defined with system. Also the drive name including root path
(root drive) is stored in the environmental variable PROJECT_ROOT_DRIVE. These can be changed to the arbitrarily path by the
pathset command of file transfer function.
Ex.
When the root path is not specified by the pathset command and the module extended parameter storage location setting is
set to "Motion module (SD memory card)"
Specify the following path:
Relative path: calc_profile/cam0002.csv
The actual accessed file is as follows.
sdc/$MOTPRJ$/calc_profile/cam0002.csv
Ex.
When the $MOTPRJ$ path has been specified to /sdc/MyMachine/Work002/ by the pathset command and the following path
is specified
Relative path: calc_profile/cam0002.csv
The actual accessed file is as follows.
/sdc/MyMachine/Work002/calc_profile/cam0002.csv
As the special relative path, ./ (indicates current directory) and ../ (indicates upper directory) can be used.
Ex.
When the root path is set to /sdc/$MOTPRJ$/ and the following path is specified
Relative path: ../cam0002.csv
The actual accessed file is as follows.
/sdc/cam0002.csv
*1
Specified root path
%PROJECT_ROOT%
/rom/$MOTPRJ$/
/sdc/$MOTPRJ$/
Specified root drive
*1
%PROJECT_ROOT_DRIVE%
/rom
/sdc
19 FILE CONTROL
19.1 Memory and File
19
499

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rd78g32Rd78g64Rd78ghvRd78g4Rd78ghwRd78g8 ... Show all

Table of Contents