Siemens A31003-51730-U103-7619 5.11.85The Instruction StartProgram, Instructions, Description

Models: A31003-51730-U103-7619

1 336
Download 336 pages 29.09 Kb
Page 250
Image 250

The Elements of a DCO-Script

Instructions

5.11.85The Instruction "StartProgram"

Description

Use this Function Instruction to trigger an external document or program and, if needed, wait for it to be closed again.

Provided you enter a document for "Executable program" whose file extension is properly reg- istered under Windows, the system will start the corresponding program and open the docu- ment.

Arguments

Arguments

Description

 

 

Executable program

Editable combobox to specify the document or program you

 

want to open or start, respectively.

 

Here you can:

 

enter a string or

 

assign a Constant, Parameter or Variable of the data type

 

string.

 

 

Parameter

Editable combobox to specify the prompting parameters.

 

Here you can:

 

enter a string or

 

assign a Constant, Parameter or Variable of the data type

 

string.

 

 

Wait for completion

Combobox to define if the you want the system to wait for the

 

completion of the selected program.

 

Here you can:

 

choose 0 if you do not want to wait for the program end,

 

choose 1 if you want to wait for the program end, or

 

assign a Constant, Parameter or Variable of the data type

 

bool.

 

 

Table 5-153 The arguments of the Instruction StartProgram

Note

If you want to write e-mails from within your DCO-Script, all you need to do is create a new But- ton and assign a Function with this Function Instruction to it. Then simply enter "mailto:<E-Mail- Address>" (e.g.: mailto:my.admin@my-company.de) in the argument "Executable program".

In the same way you can also open a PDF-file by entering the full path of the file in the argument "Executable program", e.g.:

\\my-server\iso9001\standardoperatingprocedure\alarms\alarmcalls.pdf.

 

07/2010

5-182

OScAR-Pro Customized Operator, User Manual

Page 250
Image 250
Siemens A31003-51730-U103-7619 5.11.85The Instruction StartProgram, Instructions, Description, Arguments, string, bool