Issue in case of combination of SEL & FILE_SEEK.MODE input

Hello, Team!
I was playing around simple wrap of embedded file access functions, and faced with issue, seems to be related to implicit data type conversion of SEL function or it’s interaction to MODE input of FILE_SEEK.

By default APPEND is True, and in this case I expect to navigate to the End of file to write it in Append Mode respectively. But it operates as if it was 0 or etc, and navigates me to the Beginning of the file.
And if I add explicit conversion of SEL output, it works as expected.

The most interesting thing is the system clearly identifies SEL output as INT in this case, and rise error if I try to use TO_INT conversion

I work with IDE 2026.3 and axcf2152 FW2024.6.1
Please, pay attention to this occurrences, because this issue leads to logical errors in the program, which is hardly could be identified.

WRITE_TO_FILE_IDE2026_FW2024_6.7z (61.1 KB)

BR