Category
Scripting

Scripting

65 Articles
All tags
3D 61850 64 bits 7u51 AA Active Directory ActiveX Addon Adeunis ADO ADODB AE AI Alarm Alarm sythesis Alarm viewer Alarming Alarms Alert Animations ANSI Anywhere USB Applet Application Architect Application Explorer Applicom Architect Archive Archives Archiving ASCII Audit Autosize Average AVI BACnet Big data BMS Bottleneck Broadcast Byte Cassandra CFR21 Chart Control CHRONO Cimway Client Cloud CMMS Code Page Codec Comm.dat Command line Commend Communication Compatibility Configuration environment Copyfield Cosmos DB CRM Cron CSV Cyclic DALI Dashboard Data acquisition Data Export Database DataVue DBMS DCOM DDE DDE Server Debug Décret BACS Demo Demo project DEP DEV Diagnostic DirectLink DNP3 Documentation Domain Domain controller Dongle download Drawing Dream Report DVD extras EDE Email Enable Energy Equipment Error Error ID Error messages numbers ESXi Ethernet Ethernet direct Ethway EV Charge Event viewer Events Excel Export Expression FAQ File File Format Fipway Firewall Font Form FrontVue Gateway General GEZE Gmail Graphics Grid Groupalarm Handled Handles Hardcopy HDS Historic HMI HP IA prediction Icx IEC IEC 61850 IIS Iks Import Industry Installation Internet Internet Explorer Intravue IoT IP Izot Java JRE JSON Kerlink Key Keyboard KNX Language Legrand Libraries Library Licence Utility License License Utility Licensing LNS Log Log files Log viewer LogList Logoff LogViewer Lonworks LoRaWAN Memory Memory leak Messages Microsoft Microsoft SQL Server Migration Mimic Modbus TCP/IP Modem Molex Moxa MQTT MSSqlServer Multi-Station Multimedia Multiregion Multistation Multitech MXview MySQL NetBIOS Network Network analyser Networking News NL220 NoSQL Obsolete articles OCPP ODBC Offline OPC OPC UA OPC-DA Client OPC-DA Server Open source Open Weather Map Operating System Oracle Password PcVue PcVue 10 PcVue 12 PcVue as a service PcVue features PcVue11.2 PDF Performance PlantVue PLC Print Private Process Profibus Project management proprietary archiving Protect Tools Protocol Provider Proxy Pulse Quickstart Recipe Region Regular release Release info Replication Rest RLM RTE Ecowatt Russian S7 S7 Fetch/Write S7 ISO SAIA Sample project Scada Basic Schedule Scheduler Scripting Security Segmentation Sentinel Setup SG Siemens Sigfox Silent installation Simulation Single line diagram Smart Generator SMS SnapVue SNMP Social Network Solar Solar panel SQL SQL Server SQL Server 2014 Sql variables Start Startup String Substation Automation Summer SV Manager Toolkit Svmgr SW1000 Switch Syslog System Text TFTP Threads TIA Portal Time Timeout Timer Timestamp Toolkit Tools Touchscreen TouchVue Trace Treatments Trend Trend viewer Trends Troubleshooting TSDB UDC Unitelway Upgrade Useful tools Username Varconf.dat Varexp Variables VBA Version control Versions Virtual machine Virtualization VmWare VPN W7x64 WAGO Watchdog Weather Weather station Web Web Browser Web Services Web Services Toolkit Web.configsvmobile WebScheduler Webvue WhatsApp Windows domain Windows Terminal Server Windows update Winter Workaround Workspace Write Commands Xml Generic Import
Scripting

[KB843] Controlling the Workspace using VBA

Applies to: PcVue 11.1 and 11.2 update. Summary: Two new VBA methods allow the Workspace size and position to be controlled programatically. Details: There has long been an issue when […]

888
Scripting

[KB803] Incompatibility of the AITimer between PcVue 10.0 SP2 and 11.1

Applies to: PcVue 10.0 SP2 and 11.1 Summary: The AITimer of version 10.0 SP2 is incompatible with the AITimer of version 11.1.Originator: ND Details: If you install 10.0 SP2 on […]

537
Scripting

[KB762] How to get/display the time with milliseconds using VBA

Applies to: All versions of PcVue Summary: There is nothing in VBA that will allow you to display the time with milliseconds. A simple solution is to call a system […]

951
Scripting

[KB767] Large on-screen keypad using mimic

Applies to: PcVue 11.1 Summary: Example of an on-screen key pad created with a mimic and driven by SCADA Basic Details: An on-screen numeric keypad using a mimic and SCADA […]

645
Scripting

[KB729] Using HARDCOPY in a Multi-screen Environment

Applies to: PcVue. All versions. Summary: Workaround, using a SCADA Basic script, to generate a screen hard copy when in a multi-screen environment.Originator: FABO Details: If you need to print […]

710
Scripting

[KB719] Creation of Office 2013 document from PcVue VBA is not possible

Applies to: PcVue – all versions supporting VBA Summary: Office 2013 doesn’t install the component required to manipulate Office documents through VBA. This is a known problem and there is […]

560
Scripting

[KB695] VARIABLE mode REFRESH

Applies to: PcVue 9.0 SP2 and later Summary: How to force the refresh of a variable on a client station. Details: A new mode REFRESH has been added to the […]

780
Scripting

[KB682] Copy/Paste of a VBA symbol object

Applies to: PcVue – all versions supporting VBA Summary: If VBA symbol code of a duplicated symbol is not executed after a copy/paste, you need to check the symbol configuration. […]

650
Scripting

[KB690] Cypress Enable help files

Applies to: All versions of PcVue particulary 11 onwards Summary: The VBA-like scripting language called Cypress Enable was originally supplied with PcVue before VBA itself was integrated. The Cypress Enable […]

496
Scripting

[KB657] How to use the AITimer in VBA

Applies to: PcVue version 8.0 onwards. Summary: How to use the AITimer, provided with PcVue, in VBA. Details: PcVue provides a component library called Arc Informatique Common Controls. So far […]

1004
Scripting

[KB664] VBA and SCADA BASIC function integration

Applies to: PcVue version 8.20 onwards Summary: The Configure / Project / Settings / Run User Programs // Before initialization // After initialization properties – used to execute SCADA Basic […]

1271
Scripting

[KB673] How to use time-delayed alarms with SCADA Basic

Applies to: PcVue version 10.0 onwards Summary: This program shows how to create a delayed alarm using SCADA Basic, the alarm being activated by a manually controlled bit. This delayed […]

783
Scripting

[KB606] Memory leak when making unnecessary use of Alloc_Buffer

Applies to: PcVue all versions. Summary: Memory leak when making unnecessary use of the SCADA Basic instruction ALLOC_BUFFER. Details: It has been observed that sometimes, if ALLOC_BUFFER is used to […]

619
Scripting

[KB607] Managing VBA events when a mimic object overlaps a template object

Applies to: PcVue all versions.PlantVue all versions.FrontVue all versions. Summary: This article explains the options for managing VBA events when a mimic template object and a mimic object overlap. Details: […]

757
Scripting

[KB614] Example of how to use a DLL in SCADA Basic

Applies to: All PcVue versions Summary: An example of using an external DLL in SCADA Baisc. In this example – to read and write in a standard format .ini file. […]

885
Scripting

[KB589] How to obtain the GMT offset using SCADA Basic

Applies to: PcVue version 10.0In general if a project is used with a later version of PcVue it will be automatically converted to that version. Occasionally it may be necessary […]

598
Scripting

[KB590] How to convert a time into the FILETIME format used by the HDS

Applies to: PcVue version 11 onwards. Summary: How to convert, using SCADA Basic, a Unix time (also known as Epoch time, Posix time…) to the FILETIME format as used by […]

906
Scripting

[KB550] How to temporarily disable database archiving

Applies to: PcVue version 8.10 onwards Summary: This article describes how to pause and resume HDS database archiving using VBA. (For proprietary archive units you must use the SCADA Basic […]

653
Scripting

[KB552] Chrono, UTC, Local hour in VBA

Applies to: PcVue all versions. Summary: This article contains a set of useful VBA functions for the conversion of datetime values from UTCtime to local time or Chrono values to datetime values and […]

1061
Scripting

[KB530] SELECTOR instruction, new modes

Applies to: PcVue version 9.0 and 10.0. Summary: This article presents new SELECTOR modes. The new modes appeared in PcVue 9.0 but are not described in online help of some […]

625
Scripting

[KB516] How to resize the AIGrid

Applies to: PcVue version 8.10 SP7 onwards. Summary: A sample VBA function to resize the AIGrid component after zoom or screen adaptation. Details: An example mimic after ZOOM OUT: The […]

498
Scripting

[KB506] How to access a VBA graphic object

Applies to: PcVue version 8.10 onwards Summary: Syntax to access a graphic object using a string variable Details: Please note that the graphic object does not have to be ticked […]

845
Scripting

[KB495] Memory leak when using the MULTIMEDIA instruction

Applies to: PcVue all VBA versions. Related articles: KB721 Summary: This article explains the handle (and memory) leakage due to the MULTIMEDIA instruction in SCADA BASIC. Note that there is another […]

1133
Scripting

[KB496] Running SCADA Basic functions

Applies to: PcVue all versions Summary: This article describes the sequence in which SCADA Basic functions are run when called simultaneously from different sources (via a button, action or cyclic […]

1061
Scripting

[KB476] SCADA Basic Limitations

Applies to: PcVue vesion 10.0.The basic content of this article may also be applicable to other versions of PcVue although the detail may vary. Summary: This article shows the SCADA […]

726
Scripting

[KB458] SCADA Basic Editor is invisible

Applies to: PcVue version 8.2 onwards. Summary: The SCADA Basic editor stores the most recent position of the editor window at the time it was last opened. If the window […]

602
Scripting

[KB320] When not to use SCADA Basic SYSTEM mode SYSTEM

Applies to: PcVue version 8.00 onwards. Summary: Do not use SYSTEM mode SYSTEM to launch a batch file which takes a long time to execute. For example a batch launching […]

650
Scripting

[KB321] VBA function DoEvent

Applies to: PcVue all versions. Summary: This article describes how to use the VBA function DoEvents and warns about the possible problems that can occur when using it. Details: The […]

831
Scripting

[KB306] SCADA Basic function execution from VBA

Applies to: PcVue all versions. Summary: By forcing a variable in VBA code you can trigger a SCADA Basic function. By forcing a variable in SCADA Basic you can trigger […]

1216
Scripting

[KB163] UserForm cannot migrate between PcVue versions 7 and 8.

Applies to: PcVue version 7.20 VBA. Summary: This article indicates how to work around an incompatibility that affects VBA projects that contain UserForms. Solution: When you migrate a project from […]

500
Scripting

[KB164] VBA UserForms are not saved with mimics in ASCII format

Applies to: PcVue version 7.20 onwards. Summary: This article provides a work-around for the fact that when a mimic is saved in ASCII format, any VBA UserForm in it is […]

576
Scripting

[KB159] Mimic templates with VBA/Enable scripts

Applies to: PcVue version 7.20 onwards. Summary: This article describes how to overcome a limitation concerning mimic templates with VBA/Enable scripts. Details: You can associate a script with a mimic […]

639
Scripting

[KB160] Restart PcVue with SvRestart.exe and VB script

Applies to: From PcVue version 7.00 to version 8.00 (incl.) Summary: This article describes how to restart a project with a VBscript procedure to call Restart_PcVue. Details: Open the attach […]

699
Scripting

[KB161] Restriction on Symbols that Include VBA Code

Applies to: PcVue version 7.20a onwards. Summary: This article advises on a limitation on symbols that include VBA code. Details: If you create an instance of a symbol containing a […]

649
Scripting

[KB151] Using the “?VarName” syntax in SCADA Basic

Applies to: PcVue all versions. Summary: This article defines when you can use the syntax ‘?VarableName’ in SCADA Basic. Details: When you can use ‘?’ The syntax ‘?VariableName’ can only […]

667
Scripting

[KB162] Restrictions on executing VBA scripts

Applies to: PcVue version 7.20d onwards.While the basic content of this article remains valid, details may have changed since it was written. Summary: This article describes how to configure PcVue […]

717
Scripting

[KB152] Accessing extended attributes using VBA/Enable scripts

Applies to: PcVue version 7.20c onwards.While the basic content of this article remains valid, details may have changed since it was written. Summary: This article shows how to use VBA […]

838
Scripting

[KB153] Adding a plug-in to VBA

Applies to: FrontVue all versions. PcVue version 7.20 onwards. Summary: This article describes how to add a powerful plug-in to VBA. Details: The VBA Editor enables you to add third […]

695
Scripting

[KB154] Bindable properties of external ActiveX

Applies to: PcVue version 7.00 onwards. Summary: This article indicates how to identify which properties of an external ActiveX can be linked to variables from the variables tree. Details: When […]

702
Scripting

[KB156] How to check whether a project is from a VBA version of PcVue

Applies to: PcVue version 7.20 to version 9.00. From version 10 onwards VBA was standard. Summary: This article describes how to tell from its mimic files whether a project came […]

516
Scripting

[KB139] Date and time formats from SCADA Basic and VBA

Applies to: PcVue all versions. Summary: This article discusses discrepancies in the ways date-time formatting works in PcVue, SCADA Basic, VBA and animations. Details: Calculations of date and time do […]

912
Scripting

[KB142] How to Send Messages to the Event Viewer

Applies to: PcVue all versions.While the basic content of this article remains valid, details may have changed since it was written. Summary: This article describes how to run a trace […]

748
Scripting

[KB143] How to start a SCADA Basic Program when a mimic opens

Applies to: PcVue all versions. Summary: This article describes how to make a SCADA Basic Program run when a particular mimic opens.From version 11.0 onwards it is not necessary to […]

1035
Scripting

[KB144] How to Increase the Number of Symbols in SCADA BASIC Programs and SCADA BASIC limitations

Applies to: PcVue all versions.While the basic content of this article remains valid, details may have changed since it was written. Summary: This article explains how to modify the limit […]

623
Scripting

[KB145] Limitations of the ‘IF’ instruction

Applies to: PcVue all versions. Summary: This article describes some limitations of the ‘IF’ instruction Details: In SCADA Basic you cannot combine a test of an register variable and bit […]

627
Scripting

[KB146] Logging of Alarm Acknowledgements

Applies to: PcVue version 6.04d onwards. Summary: This article describes how to attribute alarm acknowledgement from SCADA Basic to the current user. Details: It is possible to acknowledge alarms from […]

598
Scripting

[KB148] SQL Syntax for SVSQL SCADA Basic Instruction

Applies to: PcVue all versions.While the basic content of this article remains valid, details may have changed since it was written. Summary: This article outlines the SQL syntax to use […]

779
Scripting

[KB137] Retrieving memory information with Enable Basic

Applies to: PcVue version 7.00 onwards.While the basic content of this article remains valid, details may have changed since it was written. Summary: This article describes how to retrieve information […]

447
Scripting

[KB138] Changing a threshold value by a SCADA BASIC Program

Applies to: PcVue all versions. Summary: This article describes how to modify a threshold value of a register, using SCADA BASIC. Details: When a threshold value of a register variable […]

706
Scripting

[KB136] Printing a Window with Enable Basic VBscript

Applies to: PcVue version 7.00c onwards.This article contains obsolete references. Summary: This article outlines methods for printing a Window (or Mimic) with VBscript. Details: There are three ways to print […]

623