EasyManuals Logo

Omron CX-Supervisor Reference Manual

Omron CX-Supervisor
164 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #35 background imageLoading...
Page #35 background image
Using Aliases SECTION 4 CX-Supervisor Script Language
34
The following illustration shows the Alias Definitions dialog displaying a
number of User defined aliases. The System aliases are pre-defined and can
not be edited or added to.
Syntax:
@AliasNameAlias definition 'optional comment
Remarks:
The @ symbol at the beginning of each line initiates each alias command. For
example, the text string @SomePoint could be used to represent any
sequence of characters in a script or expression - e.g. it could be defined as:
@SomePoint = InArray[1]
or even
@SomePoint = Inarray[1] + Inarray[2] / 2
This is an easy way of identifying the individual members of array points. It
can also be used to associate names with numbers, for example,
@SecondsPerDay = 86400
Alias definitions are stored in a simple text file in the project directory, called
<project name>.pre. The format of the file consists of any number of lines
such as:
@Test1 = InArray[12] * 10
i.e. an @ symbol followed by the name of the alias, then an equals sign (or
space), followed by the definition of the alias. Anything that follows the last
apostrophe ( ' ) symbol on a line is interpreted as a comment. Any line which
does not start with the @ symbol is also assumed to be a comment.
Typical Examples
Declare boiler temperatures
@BoilerTemp1 = InArray[0] ' for boiler room 1
@BoilerTemp2 = InArray[1] ' for boiler room 2
Argument Type Description
@AliasName string The string name of the alias
Alias definition string This is a string representing the actual text or
expression of the expanded alias.
' comment string This is an optional comment.

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals