Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-10-2603:03 AM. Last Modified: 2023-05-0312:38 AM
[Imported] Script to generate Crystal Report
>>Message imported from previous forum - Category:Scripts and Tips<< User: admin, originally posted: 2018-10-19 19:45:51 Id:160 This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
-------------------------------
**_Andrew: Good morning all, i wrote a script that generates and exports a crystal report (that works fine) after the export the script is supposed to change the value of a few points. ex._**
**_value 1 changes, but 2 and 3 do not. What am I missing here? Thanks, Andre_**
-------------------------------
AWoodland: SetOPCValue takes two parameters, the property you are changing and the value, make sure you provide both.
____________________________
**_Andrew: Here is a copy of the exact logic i currently have. It's working until i get to "call Server.SetOPCValue("~HFOTCO.Pipeline.OMNI.Delivery Data.Points.Product Reset", 1)"_**
_sub endBatchNew DIM Gen, EXP Set Gen=Server.FindObject("~HFOTCO.Pipeline.OMNI.Reports.Batch.~OutBound Batch Report") Set Exp=Server.FindObject("~HFOTCO.Pipeline.OMNI.Reports.Batch.~OutBound Batch Report") if server.thisobject.checkaccess("CTL") = true then ret = msgbox("Are you sure you want to end the current batch?", vbExclamation + vbyesno + vbDefaultButton2, "WARNING!!!") if ret vbyes then exit sub call server.setopcvalue("~HFOTCO.Pipeline.OMNI.Delivery Data.Points.End Batch and Print",1) Gen.Interface.Generate Sleep(15000) Gen.Interface.Generate Sleep(5000) Exp.Interface.Export sleep(1000) call Server.SetOPCValue("~HFOTCO.Pipeline.OMNI.Delivery Data.Points.Product Reset", 1)