SCARA, 6-Axis and Modules
Technical Support Notes

Article ID: T2918
Date: 5/31/07
Product: EPSON RC+ v5.0.0 - v5.2.0 SP2 VB Guide Option
Subject: GetVar does not work for long data type

Symptoms
If you use GetVar to retrieve the value of a SPEL variable whose data type is long, an InvalidCastException error will occur.

Causes
This is caused by a bug in EPSON RC+ v5.0.0 - v5.2.0 SP2.

Remedy
Use a real data type in SPEL and set to a long (or integer) in VB.

Dim myLongVar as Long

 

myLongVar = m_spel.GetVar("g_realVar")

Status
This problem is fixed in v5.2.0 SP3.

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