Hello,
I'm programming a routine in my SPS that writes data to a file when a signal is triggered.
I'd like to create a new file each time, with a different name.
I'm creating the file using this :
Code
CWRITE($FCT_CALL, STAT, MODE, "krl_fopen", "data_log.txt", "w", FILEHANDLE) ;Create a file under C:\KRC\ROBOTER\UserFiles
I'd like to replace "data_log.txt" by a dynamic name like $DATE.HOUR$DATE.SEC_data_log.txt.
So far I'm not able to insert a variable in my command and couldn't find any example of the required syntax.
Has someone tried to do this ?