-
Okuma FWRITC command
Hi All,
When writing to a file on the Okuma,
Is it possible to use a variable within the FWRITE command.
I'd like to save individual files using a time stamp format
IE:-
DATACATCH - 26-05-21
DATACATCH - 27-05-21
DATACATCH - 28-05-21
ETC
If possible I would assume its something like
FWRITC MD1 : DATACATCH - {DATE}.TXT;A
Thanks in advance
Alan
-
Re: Okuma FWRITC command
I've had a further look.
Can anyone tell me whether the following is the correct syntax for what I'm trying to achieve.
FWRITC MD1: DATACATCH - [VTIME].TXT;A
-
Re: Okuma FWRITC command
hy :) what kind of data are you recording ?
Code:
FWRITC daily.txt;A
PUT ' ' ( tab )
PUT VTIME [ 1 ] , 4
PUT ' . '
PUT VTIME [ 2 ] , 2
PUT ' . '
PUT VTIME [ 3 ] , 2
PUT ' '
PUT VTIME [ 4 ] , 2
PUT ' . '
PUT VTIME [ 5 ] , 2
PUT ' . '
PUT VTIME [ 6 ] , 2
WRITE C
CLOSE C