Switch to desktop version  

Ewon TechForum
Providing technical solutions to technical requests



Writing onto an external SD card
vfourastie
mhodge
#1
Hello,

I have copied and pasted a comment that I wrote on an older post that explains how to write to an SD card. This is the comment. 

simon Wrote: Wrote:Ok :-)

You can write it into the SD using

WRITEEBD "$dtRE","/usr/RTLogs.txt"

Is it possible to just change the /RTLogs.txt to something else in order to write to the Alarm history? if so how would this be done. I am trying to write information to the SD extension, in the event that I lose my communications. For example, I had an issue with a cell network extension card, and I had to take one from a less important site and put it into the more important site. So we did not have any communications with the less important site. So I was thinking of using the SD card to extend the memory and write values to it. Is that also possible? that we can write sensor values from the tags?


I do not have a lot of knowlege in writing code. But I work with someone that can write and read code well. So with everything said, I am wondering if it is possible to write tag values like a historian to an SD card? It would be used in a temporary situation. For example, the situation above. Or if say we lose communications to a site via power outage or just bad internet equipment. 

Thanks in advance. 
Reply

AngelaT
Ewon Distributor
#2
The most important part to change is the "$dtRE" piece. That is what is called an export block descriptor (EBD). It is a way to tell your device to export a specific type of data. There is an export block descriptor for Alarm history - $dtAH.  However, there are some other parameters you will probably want to add so that you are only exporting the portion of the Alarm history that is most important to you.  You can find out more about export block descriptors and how to use them here.
Reply

vfourastie
mhodge
#3
(24-07-2023, 06:58 PM)AngelaT Wrote: The most important part to change is the "$dtRE" piece. That is what is called an export block descriptor (EBD). It is a way to tell your device to export a specific type of data. There is an export block descriptor for Alarm history - $dtAH.  However, there are some other parameters you will probably want to add so that you are only exporting the portion of the Alarm history that is most important to you.  You can find out more about export block descriptors and how to use them here.

EBD_STRING$ = "$dtAH$ftT$et" + LAST_TIME$ + "$st" + LASTTMS$

So by the logic you sent me, this would write my alarm history to the sd card?
Reply




Possibly Related Threads…
25-03-2025, 05:59 PM
Last Post: Dom_Ash
12-10-2023, 12:18 PM
Last Post: ziozetti
12-10-2023, 09:57 AM
Last Post: simon
  Share Flexy SD Card Started by Max2HC
1 Replies - 2.095 Views
23-08-2023, 11:57 AM
Last Post: simon
20-04-2022, 09:30 AM
Last Post: simon
15-06-2020, 05:38 PM
Last Post: simon
11-03-2020, 01:41 PM
Last Post: LewisH304
26-11-2018, 12:46 PM
Last Post: simon
  Max SD card size for EUM Started by AngelaT
1 Replies - 5.627 Views
21-08-2017, 05:05 PM
Last Post: Ludo



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy