Chapter 13 Data Logger and Data Tracer
13-11
Operation B
You can also use SM flags or SR registors to complete the data recording, data saving or set to store data on a SD card
permanently. See the example below for reference.
Example:
Check if the flag SM457 is ON. If the flag SM457 is ON, it indicates the valid recorded parameters are downloaded in
data logger. And that means the operation A is done correctly.
Use inputs to enable/disable or set the flag SM454 to ON for the PLC to start recording. If you need to store data on
a SD card, set SR902=16#5AA5.
When SM455 is ON or when the quantity of data has met the value set in SR900 (32-bit value), the system start
saving data on a SD card.
NOTE: While sending data to the SD card for storage, the PLC needs a period of undisturbing time, approximately
tens of milliseconds. During this period, the PLC is not allowed to execute interrupts. Make sure the PLC is NOT
executing any interrupts, especially the external input ones before starting to send data to the SD card for storage.
When SM455 is switching from OFF to ON, set SM456 ON. And the PLC starts to store the recorded data on the SD
card. The default path and the file name are as shown below:
Default saving path:
ES3: \SDCard\PLC CARD\ES3\Log
EX3: \SDCard\PLC CARD\EX3\Log
SV3: \SDCard\PLC CARD\SV3\Log
SX3: \SDCard\PLC CARD\SX3\Log
Default file name
DATA_LOGGER_yyyymmdd_hhmmss.log
EX: DATA_LOGGER_20231108_161901.log