Appendix B: Maths Expressions; Full Maths & Script Processing; Maths Credit Options - Siemens SIREC D200 Manual

Display recorders
Hide thumbs Also See for SIREC D200:
Table of Contents

Advertisement

Appendix B: Maths Expressions

Full Maths & Script Processing
The SIREC D200, D300 and D400 recorders are supplied with Basic Maths functions:
Add, Subtract, Divide and Multiply. There are two further options that can be added, Full
Maths and an extremely powerful Scripting processing module. Scripting delivers an
additional level of enhanced capabilities with multi line script processing. Full and Script-
ing Maths must be activated in the recorder as a Firmware credit option. (Scripting is not
available on the SIREC D200).
When a recorder setup is loaded into the SIREC D software the Maths capabilities will be
transferred with the setup. If you are creating a new recorder in SIREC D software to be
transferred to a recorder the Maths capabilities will be available but will only become ac-
tive if the recorder has the same Maths functions enabled.
This document provides the Maths Variable and Function table and examples of the capa-
bilities from the simple to the complex to assist the user in understanding the concepts and
potential of these features.
*** Important Note, Full Maths and Script functions are Options and must be enable using
the Credit System. Be sure to enable these options or they will not be available.
ware Credit System" on page 167.
Notes:

Maths Credit Options

Full Maths firmware credit option will allow the functions listed in
page 234
43-TV-25-35 GLO Iss.4 Dec 06 UK
A5E01001767-04
• if, elseif & else are followed by expressions in "curly brackets" {....}
• lines within the curly brackets always end in semicolon e.g. ;
• every execution path must have a return statement. As soon as a return is executed the
script finishes; make sure that the return is the last operation to be executed.
• every expression within curly brackets "{...}" must include a "return"
• Small values (fractions) entered into a maths expression will require a zero before the deci-
mal point. Eg. 0.5. Decimal point and not comma must be used always.
• Outputs that are set to Single Pulse should not be used as a part of a maths expression as
it can cause spurious values.
• No white spaces
• Syntax is not case sensitive
• 500 character limit for scripting
NOTICE
Full Maths and Scripting functions are Options and must be enabled using the
Credit System. Be sure to enable these options in the recorder or they will not be
available.
See "Firmware Credit System" on page 167.
and
Table 14.2 on page
235.
See "Firm-
Table 14.1 on
233

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sirec d300Sirec d400

Table of Contents