beautypg.com

Horner APG XL4 OCS User Manual

Page 40

background image

CH.10

MAN0964-01-EN

June 29, 2012

Page 40 of 122

c. Rename RM csv: This function allows renaming a file on the RM card. The data in the file is not

changed.


d. Delete RM csv:
This function allows deleting a file on the RM card.

e. Copy RM csv:
This function allows copying a file on the RM card. The data in the file is not changed.

9.9

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 8.1 – Filename Special Symbols

Symbol

Description

Example

$Y

Substitutes the current 2 digit year

2004 = 04

$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 that 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, 2004 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

9.10

System Registers used with RM


%SR175 Status – This shows the current status of the RM interface.

%SR176 Free Space – This 32-bit register shows the free space on the RM card in bytes.

%SR178 Card Capacity – This 32-bit register shows the total card capacity in kilobytes.

Possible status values are shown in the table:

Table 8.2 – RM Status Values

0

RM interface OK

1

Card present but unknown format

2

No card in slot

3

Card present, but not supported

4

Card swapped before operation was complete

5

Unknown error