Post by andrej on Write to File on soft PLC winV3x64
CODESYS Forge
talk
(Post)
Hello all, I would like to store some data in text file. I use the soft PLC Win V3x64, on Windows 10. I use the SysFile Library 3.5.17.0. If I store the file directly in the in the directory of the PLC i.e. in '/CODESYSControlWinV3x64/E1FA7ABE/PlcLogic/LogAU.txt' the file is correctly filled with the data. However, If I use an absolute path to a different directory no data is stored in the respective file. Despite the fact that the respective file exists and the Filehandler is correctly opened (see in picture _fdSysFHandle <> -1). // sFileName : STRING := 'LogAU.txt'; // STORES FILE IN ../CODESYSControlWinV3x64/../PlcLogic/LogAU.txt' sFileName : STRING := 'C/Temp/LogAU.txt'// DOES NOT WORK --------------------- // FILE DESCRIPTOR _fdSysFHandle := SysFile.SysFileOpen( szFile:= sFileName,am:= SysFile.AM_APPEND,pResult := ADR(_Result)); Does some have an idea where the problem is, resp. how I can get store a file in an arbitrary directory. Thanks a lot and kind regards Andreas
Last updated: 2023-10-24
Connection to device closed
CODESYS Forge
talk
(Thread)
Connection to device closed
Last updated: 2023-08-25
Sysmac Studio to Codesys
CODESYS Forge
talk
(Thread)
Sysmac Studio to Codesys
Last updated: 2023-09-20
OPC UA Client unable to connect to CeDeSys OPC UA Server but able to connect to other OPC UA Server
CODESYS Forge
talk
(Thread)
OPC UA Client unable to connect to CeDeSys OPC UA Server but able to connect to other OPC UA Server
Last updated: 2018-10-30
Pointer To
CODESYS Forge
talk
(Thread)
Pointer To
Last updated: 2009-01-23
Sysfile copy to server
CODESYS Forge
talk
(Thread)
Sysfile copy to server
Last updated: 2012-01-13
Pointer to Softmotion axis
CODESYS Forge
talk
(Thread)
Pointer to Softmotion axis
Last updated: 2023-11-23
CoDeSys to access
CODESYS Forge
talk
(Thread)
CoDeSys to access
Last updated: 2007-01-15
string to time
CODESYS Forge
talk
(Thread)
string to time
Last updated: 2010-03-08
Button to close browser
CODESYS Forge
talk
(Thread)
Button to close browser
Last updated: 2022-09-22
Connect to MCP 3008
CODESYS Forge
talk
(Thread)
Connect to MCP 3008
Last updated: 2018-09-16
REAL to BOOL
CODESYS Forge
talk
(Thread)
REAL to BOOL
Last updated: 2007-06-11
Convertion Dint to Word
CODESYS Forge
talk
(Thread)
Convertion Dint to Word
Last updated: 2023-08-07
Variable name to string
CODESYS Forge
talk
(Thread)
Variable name to string
Last updated: 2015-03-19
STRUCT to BYTE ARRAY
CODESYS Forge
talk
(Thread)
STRUCT to BYTE ARRAY
Last updated: 2023-07-10
REFERENCE TO
CODESYS Forge
talk
(Thread)
REFERENCE TO
Last updated: 2021-11-02
Pointer To Array
CODESYS Forge
talk
(Thread)
Pointer To Array
Last updated: 2021-02-04
ENUM to STRING ??
CODESYS Forge
talk
(Thread)
ENUM to STRING ??
Last updated: 2008-04-30
Zoom to Vis
CODESYS Forge
talk
(Thread)
Zoom to Vis
Last updated: 2007-11-08
Access to disk_sys
CODESYS Forge
talk
(Thread)
Access to disk_sys
Last updated: 2011-12-20
Pointer to Byte
CODESYS Forge
talk
(Thread)
Pointer to Byte
Last updated: 2023-08-10
Move array to dut
CODESYS Forge
talk
(Thread)
Move array to dut
Last updated: 2020-10-23
Access rights to users
CODESYS Forge
talk
(Thread)
Access rights to users
Last updated: 2014-05-09
JSON to WSTRING
CODESYS Forge
talk
(Thread)
JSON to WSTRING
Last updated: 2019-12-05
Jump to a process
CODESYS Forge
talk
(Thread)
Jump to a process
Last updated: 2020-12-10
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.