05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FUNCTION REFERENCE<br />

COMPACTFLASHSTATUS()<br />

COMPACTFLASHSTATUS()<br />

ARGUMENT TYPE DESCRIPTION<br />

none<br />

DESCRIPTION<br />

Returns the current status of the CompactFlash slot as an integer.<br />

VALUE STATE DESCRIPTION<br />

0 Empty Either no card is installed or the card has been ejected via a call to the<br />

CompactFlashEject function.<br />

1 Invalid The card is damaged, incorrectly formatted or not formatted at all.<br />

Remember only FAT16 is supported.<br />

2 Checking The G3 is checking the status of the card. This state occurs when a<br />

card is first inserted into the G3.<br />

3 Formatting The G3 is formatting the card. This state occurs when a format<br />

operation is requested by the programming PC.<br />

4 Locked The operator interface is either writing to the card, or the card is<br />

mounted and Windows is accessing the card.<br />

5 Mounted A valid card is installed, but it is not locked by either the operator<br />

interface or Windows.<br />

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

int.<br />

EXAMPLE<br />

d := CompactFlashStatus()<br />

REVISION 6 PAGE 303

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!