
WWSDK4.0 S4GetFileTime and IRC5 [WebWare SDK]

Hy Anders,
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):
------------------------------------------------------------------
AndersD38294,7155902778
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 Engineer0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 327 IRC5
- 64 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 820 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings