Elipse Scada e3

Hi,
I am User of Elipse e3 SCADA, & Now we are facing a problem of that. One Error message display on the screen " SCRIPT ERROR (TEXT 12) ERROR INLINE 11: OVERFLOW. 'CInt".

Can I change MAX set value 2 bytes (32767) to 4 bytes?
Kindly suggest.

Hello @Ajay_Singh,

In this case, you can use CLng.

Best Regards,
Link

Hi Daniel,
I am share Text script which create problem,

1 - Sub Text283_Valuechange()
2 -DIM I,MaxSet,offset
3 - MaxSet=32767
4- offset=65536
5 -
6 - IF Application.getobject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value<0 OR Application Getobject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value<0 THEN
7- IF Application.getobject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value> Offset THEN
8 - Value=0
9 - ELSE
10 - IF Application.GetObject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value<Maxset THEN
11 - Value=CStr(CInt(CLng(Application.Getobject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value)))
12- 'Application.GetObject(STR4).Value=CStr(CInt(CLng(Application.Getobject(STR3).Value)))
13 - ELSE
14 - Value=CStr(CInt(CLng(Application.Getobject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value)-offSet))
15- 'Application.GetObject(STR4).Value=CStr(CInt(CLng(Application.Getobject(STR3).Value)-offset))
16- END IF
17- END IF
18- ELSE
19- Value=0
20- END IF
21- END Sub

kindly suggest which line number need to correct as suggest by you.

thanks
Best regards

Hello @Ajay_Singh,

CInt can’t convert a Long value, the size is different.
Why you are using CStr, CInt and CLng in one Value property? If you want to convert the value to String, just use CStr.

Value=CStr(Application.Getobject(“Driver.[SRM & FLY SAW].[Display Value].[CURRENT FOR MOTOR4]”).Value)

Best regards,
Link

Thanx, Daniel

I shall change the Script line 11, 12, 14 & 15 as suggest by you.

Thanks A lot
Best regards

Hi,
We have one E3 studio with 6 viewer license, One particular viewer screen is getting hang at any location when the process start (Means when machine production start).
What could be the problem?
Thanx

This post continues in: Elipse scada problem