beautypg.com

Horner APG QX351 OCS HEQX351C103 User Manual

Page 36

background image

CH. 8

MAN0892-03-EN

February 25, 2010

Page 36 of 109

# 1039

8.3

Configuring Removable Media Manager graphic object in Cscape

The Removable Media Manager is a graphic object that allows viewing filenames, size and dates of files,
and directories on a RM card. The operator can optionally change directories, delete files, and format new
RM cards.This object also supplies status information such as Color change on card OK, Card full, and
Card missing status. For additional information, refer Cscape Help File|Graphics|Removable Media.

8.4

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

8.5

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 bytes.

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

This manual is related to the following products: