MAN0974-11-EN_XL7_UserManual
March 22
nd
, 2020
Page 157 | 195
17.13 Filenames used with the Removable Media (RM) Function Blocks
The RM function blocks support the flash with a DOS/Windows standard FAT-16 file system. All
names must be limited to the “8.3” format where the filename contains eight characters a
period then a three-character extension. The entire filename including any path must be less
than or equal to 147 characters.
When creating filenames and directories it is sometimes desirable to include parts of the current
date or time. There are six special symbols that can be entered into a filename that are replaced
by the OCS with current time and date information.
Table 17.2
–
Filename Special Symbols
Symbol
Description
Example
$Y
Substitutes the current 2 digit year
2015 = 15
$M
Substitutes the current month with a 2 digit code
March = 03
$D
Substitutes the current day
22
nd
= 22
$h
Substitutes the current hour in 24 hour format
4 pm = 16
$m
Substitutes the current minute
45 = 45
$s
Substitutes the current second
34 = 34
NOTE: All the symbols start with the dollar sign ($) character. Date symbols are in upper case,
time symbols are in lower case. The following are examples of the substituted time/date
filenames:
Current date and time
= March 1, 2013 3:45:34 PM
Filename: Data$M$D.csv
= Data0301.csv
Filename: Year$Y\Month$M\aa$D_$h.csv
= Year04\Month03\aa01_15.csv
Filename:
Month_$M\Day_$D\$h_$m_$s.csv
= Month_03\Day_01\15_45_34.csv
Table 17.3
–
Filename Examples