# Error writing to FbDatalogger file

**URL:** <https://www.wago.community/t/error-writing-to-fbdatalogger-file/1071>\
**Category:** CODESYS\
**Created:** [July 2, 2024, 10:10am UTC](https://www.wago.community/t/error-writing-to-fbdatalogger-file/1071 "2024-07-02T10:10:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)\
**Post date:** [July 2, 2024, 10:10am UTC](https://www.wago.community/t/error-writing-to-fbdatalogger-file/1071/1 "2024-07-02T10:10:36Z")

</div>

I ran into this problem. I write to a file using FbDatalogger. He didn’t record the data correctly. After rewriting the firmware in the PLC, the problem went away. Why does this happen?  
bDatalogger\_type = 3. Below I’ll provide a couple screenshots of different content. The program code has not been changed.  
The correct data to be recorded:  
 ![2024-07-02_13-07-24](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/cd6026a1ac5e77a423f878130462588ff98d51ea.png)

Data that was wrong:  
 ![2024-07-02_13-07-37](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/46ea6ccefdb255abe832c22b02372cbf173c433c.png)

As you can see there is something wrong with the clock format and it only writes one post instead of 3 posts

---

<div class="post-metadata">

**Author:** ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)\
**Post date:** [August 5, 2024, 2:02pm UTC](https://www.wago.community/t/error-writing-to-fbdatalogger-file/1071/2 "2024-08-05T14:02:14Z")

</div>

750-8212 After the update (FW 27), the recording error remained. Has anyone encountered a similar problem?

---

<div class="post-metadata">

**Author:** ![MikePsaltis](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/mikepsaltis/32/47_2.png) [@MikePsaltis](https://www.wago.community/u/MikePsaltis)\
**Post date:** [August 13, 2024, 2:28am UTC](https://www.wago.community/t/error-writing-to-fbdatalogger-file/1071/3 "2024-08-13T02:28:43Z")

</div>

Is the PLC able to write to the file, but the data format is incorrect? If the data is not being recorded, you could check the file path. The newer FW releases only allow the PLC runtime to access certain directories in the PLC. Please confirm that the write path is in one of the following.

/home/codesys, /media/sd, or /tmp’

---

<div class="post-metadata">

**Author:** ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)\
**Post date:** [August 19, 2024, 8:49am UTC](https://www.wago.community/t/error-writing-to-fbdatalogger-file/1071/4 "2024-08-19T08:49:51Z")

</div>

There is no mistake in the way. that’s right.
