RobotStudio event

WWSDK4.0 S4GetFileTime and IRC5 [WebWare SDK]

Hy Anders,

image

 we tested the following with IRC5 5.04.66 and we did get all the time the error -3102:

 intResult = Helper1.S4GetFileTime("/hd0a/", "temp/READM.prg", dteFiletime)
With S4Cplus it is working fine. We tried with other devices like "ctrl:" but we receives all the time the same error....

This was tested due to customer detection of Desma..

 

Comments

  • Hello Kevin,

    I have investigated the issue you are reporting and unfortunately it seems to be a defect. For some reason, the S4GetFileTime method works on directories, but not files on the IRC5. When trying to use file/s on a IRC5 system, a -3102 error will be thrown. This will be fixed it the next release.

    Until this problem has been fixed, one possible work-around for this could be using the S4Dir and FileList methods (see vb6 code below):

    ------------------------------------------------------------------
            Dim intResult As Integer
            Dim lngResult As Long
           
            intResult = Helper1.S4Dir("/hd0a/", "5_04_66TESTWWSDK", 0, 3, lngResult)
            For i = 0 To Helper1.FileListCount - 1
               If CStr(Helper1.FileList(i)) = "Renamed.txt" Then
                MsgBox (Helper1.FileList(i) + " " + CStr(Helper1.FileDate(i)))
               End If
            Next
    ------------------------------------------------------------------

    ______________________________
    Anders Dannberg
    ABB Automation Technologies
    Support Engineer

    AndersD38294,7155902778