Flash Memory Organization. Schneider Electric Modicon M258
विज्ञापन
विज्ञापन
Memory Mapping
Flash Memory Organization
Introduction
The Flash memory contains the file system used by the controller.
The total size of the Flash memory is 128 MB, of which 10 MB is available for the application.
File Type
The Modicon M258 Logic Controller manages the following file types:
Type Description
Executable application User application. This is the binary code that is executed when the controller is in the RUNNING state.
Boot application This file resides in Flash memory and contains the compiled binary code of the executable application. Each time the controller is rebooted, the executable application is extracted from the boot application and copied into the controller
RAM (1) .
Application source
Post configuration
Source file that can be uploaded from Flash memory to the PC if the source file is not available on the PC (2) .
File that contains Ethernet, serial line, and firewall parameters.
The parameters specified in the file override the parameters in the executable application at each reboot.
Data logging
HTML page
Files in which the controller logs events as specified by the application.
HTML pages displayed by the web server for the website embedded in the controller.
Operating System (OS) Controller firmware that can be written to Flash memory. The firmware file is applied at next reboot of the controller.
Retain variable Remanent variables
Retain-persistent variable
(1) The creation of a boot application is optional in EcoStruxure Machine Expert, according to application properties. Default option is to create the boot application on download. When you download an application from EcoStruxure Machine Expert to the controller, you are transferring only the binary executable application directly to RAM.
(2) EcoStruxure Machine Expert does not support uploading of either the executable application or the boot application to a PC for modification. Program modifications must be made to the application source. When you download your application, you have the option to store the source file to Flash memory.
28
EIO0000004135 09/2020
Memory Mapping
There are two ways to create the boot application:
Select the option during the application download process.
Choose Online → Create boot application at any point after download.
If you do not create a boot application, the controller will enter the EMPTY state after the next reboot.
File Organization
This table shows the file organization of the flash memory:
Disk
/sys
Directory File
OS
Web
/usr
M258FW1v_XX.YY
(1)
M258FW2v_XX.YY (1)
M258_top_Vxx.bit
Version.ini
NXCIF50-RTE.bin
cifxdps.nxf
Index.htm
Conf.htm
...
App
Content
Firmware of core 1
Firmware of core 2
Firmware
Control file for firmware version
Profibus firmware file
HTML pages displayed by the web server for the website embedded in the controller.
Website
Application.app
Application.crc
Application.map
Archive.prj (2)
App/MFW
Cfg
DeviceID_X.fw (2)
Machine.cfg
(2)
CodesysLateConf.cfg
(2)
Application source
Expansion modules Firmware
Post configuration file
Name of application to launch
Routing table (main/sub net)
(1) v_XX.YY represents the version
(2) If any
Up/Downloaded
Data Type
Firmware
Firmware
Boot application
Firmware
Configuration
Configuration
EIO0000004135 09/2020
29
Memory Mapping
Disk
/usr
/bd0
Directory File
Dta
Log
Ntx
SysLog
Eip
–
UserDefinedDtaNa me_1 .Dta
...
UserDefinedDtaNa me_n .Dta
UserDefinedLo gName_1 .log
...
UserDefinedLo gName_n .log
NXCIF50-RTE.bin
cifxdps.nxf
crashC1.txt
(2) crashC2.txt
(2) crashBoot.txt
(2)
PLClog.txt
(2)
Content
All *.Data files created using the
DataFileCopy function block
All *.log files created using the data logging functions (see EcoStruxure
Machine Expert, Data Logging Functions,
DataLogging Library Guide) . Specify the total number of files created and the names and contents of each log file.
Profibus firmware file
This file contains a record of detected system errors. For use by
Schneider Electric Technical Support.
FWLog.txt
My_Machine_Controller.
eds
My_Machine_Controller.
gz
My_Machine_Controller.
ico
–
This file contains system event data that is also visible in EcoStruxure Machine
Expert online by viewing the Log tab of the Controller Device Editor
.
This file contains a record of firmware system events. For use by
Schneider Electric Technical Support.
These files are necessary to configure and operate your controller as an
EtherNet/IP Master.
USB memory
Up/Downloaded
Data Type
Data files log file
Firmware log file
Configuration and icon files
Application
Configuration log file
Firmware
Website
(1) v_XX.YY represents the version
(2) If any
NOTE: Use the sysFile, sysDir, and CAAFile libraries to access to /bd0 and /usr. For more information on the function blocks of these libraries, refer to the CoDeSys Libraries topic in the
EcoStruxure Machine Expert online help.
30
EIO0000004135 09/2020
Memory Mapping
Files Redirection
When system, program or certain user activity creates specific file types, the M258 Logic Controller examines the file extension and automatically moves the file to a corresponding folder in flash memory.
The following table lists the file types that are moved in this way and the destination folder in flash memory:
File extensions
*.app, *.ap_, *.err, *.crc, *.frc, *.prj
*.cfg, *.cf_
*.log
*.rcp, *.rsi
Flash memory folder
/usr/App
/usr/Cfg
/usr/Log
/usr/Rcp
Backup Data Logging File
Data logging files can become quite large to the point of exceeding the space available in the file system. You should, therefore, develop a method to periodically archive the log data on a USB key.
For example, you could split the log data into several files, e.g. LogMonth1, LogMonth2 , and use the ExecuteScript command (refer to the Modicon M258 Logic Controller PLC System
Functions and Variables PLCSystem Library Guide) to copy the first file to a USB key, and thereafter, remove it from the internal file system while the second file is accumulating data. If you allow the data logging file to grow and exceed the limits of the file size, you could lose data
NOTICE
LOSS OF DATA
Back up your *.log files to a USB key on a regular schedule that avoids saturating the available free space in your controller file system.
Failure to follow these instructions can result in equipment damage.
EIO0000004135 09/2020
31
डाउनलोड
विज्ञापन