QUOTE(pro17 @ Mar 16 2008, 01:40 PM) [snapback]66491[/snapback]
Accessing other (clasical I/O and memory) points is possible through Point("___point name___") command in both script files.
Actually, now the access is direct so you don't need the extra function call. Just "MyPLCPoint = 10" or "MessageBox MyTextPoint" are valid (I mean on both left or right of equals).
QUOTE(pro17 @ Mar 16 2008, 01:40 PM) [snapback]66491[/snapback]
Is it possible to use Aliases ... in VBScript file or JScript file?
No. Aliases are a "CX-Supervisor Script" feature only. You can easily simulate this I guess though? Because all the VBScripts have global access, if you write an Project Initialisation script that says:
PI = 3.14
BOILER1 = 37
BOILER2 = 44
txtError = "An error "
etc then you can use these variables as aliases from any VBScript...
MessageBox txtError + (ValueArray(BOILER1) * PI)
QUOTE(pro17 @ Mar 16 2008, 01:40 PM) [snapback]66491[/snapback]
Is it possible to use ... Alarm points in VBScript file or JScript file?
No, and not from CX-Supervisor script either. The only way you can use the Alarm Names is in the script functions that expect them (AcknowledgeAlarm, IsAlarmActive etc)
Bertie
P.S. No comeback on my VB syntax please! These are conceptual not compilable!