SCARA, 6-Axis and Modules
Technical Support Notes

Article ID: T25
Date: 5/7/99
Product: VB Guide 2.x (all versions up to and including v2.2.0)
OS: Windows NT 4.0
Problem: GetSPELVar causes type mismatch with safe guard

Symptoms
A 'Type mismatch' error occurs when GetSPELVar executes at the same time that the safe guard activates.

Causes
The reply from the robot controller that contains the data for the GetSPELVar method also includes a safe guard event message. GetSPELVar cannot convert the reply to the correct data type.

Remedies
A temporary work around is to use the following function instead of GetSPELVar. This can not be used for string variables.
Function GetSPELVar2(VarName As String) As Variant
Dim tmpVal As String
ReDim toks(0) As String
With SPELCom1
Do
tmpVal=.GetSPELVar(VarName)
Loop Until tmpVal ""
.ParseString tmpVal, toks(), vbCrLf & " "
GetSPELVar2=CVar(toks(UBound(toks)))
End With
End Function

Status
This problem has been fixed in SPEL for Windows 2.0 version 2.2.1.

Click here to return to the EPSON Robots home page
The Power of Choice!