Create Command - Allen-Bradley Logix5000 Series Application Book

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

Advertisement

Create Command

The UDT tag's type is called CF_File_Structure. This will be important if you
create a Recipe_Manager. The only 3 tags you will need to manipulate in the
UDT are:
• File_Name
The name of the file that will be on the CompactFlash card. This name
can be up to 140 characters in length. The file name must include a file
extension. The .xxx is included in the 140 characters. For example,
testfile1.dat would be an 11-character file name. The format of the
filename follows standard Microsoft file naming conventions.
• Bytes_to_RW
The number of bytes that you want to read or write to a file.
• Data
The SINT array is where you place the data that you want to write or
where data read will be put. The baseline application supports up to
4500 bytes of data, but can easily be expanded.
Refer to Appendix D, Expand the Code to Support More than 4500
Bytes of Data, for more information.
Do not manipulate the other tags. They are used by the routines as they
execute; manipulating them could cause unexpected changes to the file
currently opened.
Use the Create command when a file does not exist on the CompactFlash card
and you want to create one. A file must exist on the CompactFlash card before
you can use the other three commands.
The Create command is broken down into four commands:
• Sets the file attribute parameters.
You do not need to manipulate the file attribute parameters.
• Creates the file.
When a Create command is performed, the file is created and then
opened.
• Closes the file.
• Error handling is performed, if needed.
CompactFlash Commands
Publication LOGIX-AP007B-EN-P - January 2007
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

1756-l611756-l621756-l60m03se1756-l631756-l64

Table of Contents