15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

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.

Description of a Directory File<br />

A directory file is described by 32 bytes organised as follows:<br />

Number of bytes Description<br />

8 bytes File name<br />

If filename[0] hass one of the following values, then:<br />

0x00 End of directory<br />

0x2E System file<br />

0xE5 File deleted<br />

0x05 The name begins with 0x05<br />

3 bytes File extension<br />

1 byte File attribute<br />

Bit 0 = 1: Read only<br />

Bit 1 = 1: Hidden file<br />

Bit 2 = 1: System file<br />

Bit 3 = 1: Volume name (ROOT)<br />

Bit 4 = 1: Directory file<br />

Bit 5 = 1: Archive bit<br />

Bit 6 = 1: Spare<br />

Bit 7 = 1: Spare<br />

10 bytes Spare<br />

2 bytes Time in INTEL format<br />

2 bytes Date in INTEL format<br />

2 bytes Start cluster in INTEL format<br />

4 bytes File size in INTEL format<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- *pBuf parameter error,<br />

- *pBuf+Requestno outside authorised area,<br />

- *No_read parameter error.<br />

Programming in C Language<br />

The time, date and size are in INTEL format, i.e. the MSBs and LSBs are reversed with respect to the MOTOROLA<br />

format.<br />

In the MOTOROLA format, these bits are as follows:<br />

en-938846/7 16 - 31<br />

16

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

Saved successfully!

Ooh no, something went wrong!