MAN0964-14-EN_XL4_XL4P_UM
N o v e m b e r 1 0 , 2 0 2 1
P a g e 154 | 194
16.13 Filenames used with the Removable Media (RM) Function Blocks
The RM function blocks support the flash with a 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 16.2
–
Filename Special SymbolsError! Bookmark not defined.
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
5 pm = 17
$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, 2015 5:45:34 PM
Filename: Data$M$D.csv = Data0301.csv
Filename: Year$Y\Month$M\aa$D_$h.csv = Year15\Month03\aa01_17.csv
Filename: Month_$M\Day_$D\$h_$m_$s.csv = Month_03\Day_01\17_45_34.csv