Ask our Experts
Didn't find what you are looking for? Ask our experts!
New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
Support Forum for HVAC and pumping machines, Modicon M17x and EcoStruxure Machine Expert HVAC software for chillers, AHU, CRAC units for datacenters or process chillers applications - from design, implementation to troubleshooting and more, by Schneider Electric.
Search in
Please select a country to continue with beta search.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-02-26 12:46 AM
Hello,
I am working on a SIG controller and trying to create a directory and a log file on the MMC storage.
status := FS_OpenFile(name := 'log.txt', mode := 7);
FS_CreateDir(name := '/mmcblk0p1/MyFolder');
The problem is that the directory is not created and the file is not opened.
It seems the path format is incorrect.
What is the correct path format for storage card?
Could someone provide a working example of:
creating a new directory on storage card
creating/opening a file inside that directory
writing a test string to that file
A minimal working example in Structured Text would be highly appreciated.
Thank you.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-02-26 11:19 PM
Hello,
folders options are:
'/SD/FolderName' or '/SD'
'/SHARED_FS/FolderName' or '/SHARED_FS', NAND shared with FTP and Web site
'/FolderName' or '/', private NAND
'/USB/FolderName' or '/USB'
Here attached a library which could help you
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-12 09:00 AM
Hello,
can you share a screenshot with live debug enabled of:
Same for program SR_BasicLogger
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-17 04:34 AM
Hello,
Thank you for your suggestions.
I can confirm the following:
The SD card is formatted as FAT32
The controller firmware is already 816.7 (updated according to the correct procedure)
The firmware file is correctly recognized when placed on the microSD
I also checked via FTP and web interface, but no files or folders are created
Additionally, I tested with the example project you provided (LoggerSI), and also tried using the basic FS_* functions directly.
In all cases:
FS_CreateDir does not create any directory
FS_OpenFile does not create or open any file
no data appears on the SD or in SHARED_FS
This makes me think that the issue might not be related to formatting or firmware version.
Could you please confirm:
Is file writing fully supported on TM172SIG with FW 816.7?
Is there any additional step required to enable filesystem write access (permissions, mounting, configuration)?
Is there a known issue with SD or filesystem on this firmware version?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-02-27 05:19 AM
Hello,
Thank you for the response and the suggested folder options.
I have tested the paths you listed on my TM172SIG (SIG controller), including:
/SD/FolderName
/SHARED_FS/FolderName
/FolderName (or /)
/USB/FolderName
However, using these paths with the standard file functions still does not create any directory and does not create/open any file. For example, neither a directory nor a file appears after calling FS_CreateDir() and FS_OpenFile() (even when I also call FS_CloseFile() and try to write at least one character to force creation).
Also, I do not have (and do not want to rely on) the LoggerSI library version from the documentation you attached. I need to log more than 12 values at the same time, so I prefer to use the basic FS_* functions directly.
Could you please provide a confirmed working minimal Structured Text example for TM172SIG that shows:
creating a directory on the storage card (e.g., SD or SHARED_FS),
creating/opening a file inside that directory,
writing a short test string,
closing the file,
using FS_CreateDir and FS_OpenFile (and the corresponding write/close functions) that are available on the TM172SIG?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-03 12:41 AM
Sorry, I forgot to attach the library.
Actually the FB LogFileGenericData allows to log more than 12 data.
I can't prepare a specific example this week, but try to have a look to this additional documentation
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-06 05:21 AM
Thank you for sending the library and the example project.
I compiled the project successfully and downloaded it to the TM172SIG controller (firmware version 816.7). The application runs without compilation errors.
However, the logger still does not create any files or data.
I checked both:
via FTP
via the embedded web page (Generic Logger page)
but no log files or folders appear in the filesystem.
From the web interface I can see the Generic Logger page, but the Root filesystem / Folder / Filename lists are empty, and no log file is created.
Could you please advise what I might be missing in the configuration or if there is any additional step required to enable file creation on the controller?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-12 09:00 AM
Hello,
can you share a screenshot with live debug enabled of:
Same for program SR_BasicLogger
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-13 04:35 AM
Hello,
SR_BasicLogger Watch window
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-16 01:18 AM
Hello,
can you double check your SD is FAT32 formatted?
If you enable the "live debug" option, you can see values also in the code:
Try to check also the FW version and eventually update it to the latest release .7 (you can download it from SE website searching for TM172 Secure Interface).
Be careful, if you have a version earlier than .5, you have first to update to version .5/.6 and then you can update to version .7. Please check the release note about when you have to skip the data migration.
If you copy the FW file in the microSD, from the webapp you will be able to double check if it is recognized or not.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-17 04:34 AM
Hello,
Thank you for your suggestions.
I can confirm the following:
The SD card is formatted as FAT32
The controller firmware is already 816.7 (updated according to the correct procedure)
The firmware file is correctly recognized when placed on the microSD
I also checked via FTP and web interface, but no files or folders are created
Additionally, I tested with the example project you provided (LoggerSI), and also tried using the basic FS_* functions directly.
In all cases:
FS_CreateDir does not create any directory
FS_OpenFile does not create or open any file
no data appears on the SD or in SHARED_FS
This makes me think that the issue might not be related to formatting or firmware version.
Could you please confirm:
Is file writing fully supported on TM172SIG with FW 816.7?
Is there any additional step required to enable filesystem write access (permissions, mounting, configuration)?
Is there a known issue with SD or filesystem on this firmware version?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-18 04:57 AM
Hello,
there aren't known issues regarding writing on SD or NAND with this firmware version. Is SD card size greater that 32GB? If yes, please try with a lower size.
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.