Академический Документы
Профессиональный Документы
Культура Документы
SITRAIN
ST-BWINCCS /GlobalScript Page 1 Siemens AG 2007
Objectives
- Project Functions
- Standard Functions
- Internal Functions
- Project-wide Actions
- Project Modules
SITRAIN
ST-BWINCCS /GlobalScript Page 2 Siemens AG 2007
1
Global Script C Actions and Functions
SITRAIN
ST-BWINCCS /GlobalScript Page 3 Siemens AG 2007
2
Background Processing (Actions) with Global Script
Operating hours.PAS
WORD HOUR, MINUTE;
BYTE Z_ON;
if (Z_ON) {
MINUTE = GetTagWord ("Minutes");
MINUTE = MINUTE + 1;
SetTagWord ("Minutes", MINUTE);
SITRAIN
ST-BWINCCS /GlobalScript Page 5 Siemens AG 2007
SITRAIN
ST-BWINCCS /GlobalScript Page 6 Siemens AG 2007
3
Global Script VBS Actions and Procedures 1/2
Procedures
(Function)
SITRAIN
ST-BWINCCS /GlobalScript Page 7 Siemens AG 2007
In the project
Module
Procedure A
Procedure B
Procedure C
Instruction a
Action Instruction b
Instruction 1
Instruction 2
Trigger Procedure C
.
Instruction n
Procedure D
Procedure E
SITRAIN
ST-BWINCCS /GlobalScript Page 8 Siemens AG 2007
4
Example of a VBS Project Function
.pdl
Call
SITRAIN
ST-BWINCCS /GlobalScript Page 9 Siemens AG 2007