Delete Command; Set Up The Delete Command; Determine The Number Of Bytes To Read Or Write - Allen-Bradley Logix5000 Series Application Book

Compactflash file system
Hide thumbs Also See for Logix5000 Series:
Table of Contents

Advertisement

Delete Command

Determine the Number of
Bytes to Read or Write
Use the Delete command when a file needs to be deleted from the
CompactFlash card. A file must exist on the CompactFlash card before you
can use the Delete command.
The delete command consists of two commands:
• Delete the file.
• Error Handling is performed, if needed.

Set Up the Delete Command

To set up the Delete command:
• define a filename including a file extension, for example, testfile1.dat.
• set the bit execute_CF_Delete_File. The application code handles
resetting this bit.
Refer to Chapter 4, Example Application for complete instructions.
Tags of any data type, including arrays, user-defined types (UDT), and arrays
of UDT tags can be read and written to the CompactFlash card.
When reading and writing data to the CompactFlash card, you need to know
how many bytes are actually being read or written. The following chart
indicates the type and size of the atomic data types. The minimum memory
allocation for a tag is 4 bytes. When you create a tag that stores data that
requires less than four bytes, the controller allocates four bytes, but the data
only fills the part it needs.
Data Type Bits
31
BOOL
Not used
SINT
Not used
INT
Not used
DINT
REAL
For example, if one DINT type tag value is being written to the CompactFlash
card, 4 bytes is the amount of data that will be written. If an array of DINT
tags is being written, the number of bytes being written will be 4 times the size
of the array.
CompactFlash Commands
16 15
-2,147,483,648
...
38
-3.40282347E
-1.17549435E
...
-38
1.17549435E
3.40282347E
Publication LOGIX-AP007B-EN-P - January 2007
19
8 7
1
0
0 or 1
...
-128
+127
...
-32,768
+32767
...
+2,147,483,647
-38
(negative values)
0
38
(positive values)

Advertisement

Table of Contents
loading

This manual is also suitable for:

1756-l611756-l621756-l60m03se1756-l631756-l64

Table of Contents