
Chapter 5
Additional and Advanced
Programming Techniques
5-11
named variables with domain scope for other vendor’s devices (if
supported by those devices).
Defining VMD-specific Scope
VMD–specific will probably be the most widely used scope type for MMS
named variables in your application and is probably the only one you need
to use. You can specify VMD–specific scope in two ways:
by placing /vmd/ just before the MMS named variable within the single
quotes in the DEFVAR command line.
NOT specifying any scope type. If no scope is specified, VMD scope is
assumed.
The following example shows how to specify VMD–specific scope:
DEFVAR :C8’/vmd/BOX_6’ to ”F24:7”
The MMS named variable is BOX_6 and is in single quotes. Here, we
are specifying VMD-specific scope, with VMD within slash marks (/) and
within the single quotes.
Because VMD–specific scope type, we could have accomplished the same
result if we had written the above command line as:
Since we did not specify a scope type, MMS
assumes VMD-specific scope.
DEFVAR :C8’BOX_6’ to ”F24:7”
Defining Application Association (AA) Scope
You can define MMS named variable with AA scope. MMS named
variables with application association scope are variables that are defined
during the period of time that a particular connection is in use. These
variables are automatically deleted when the connection is closed.
Important: When you define MMS named variables with application
association scope, you should keep a record of them to ensure you specify
their scopes correctly in future applications. After defining the variables’
scopes, you must specify scopes correctly within command lines or you
will receive an error code.
You specify AA scope by placing /AA/ before the MMS named variable
and within the single quotes. You can enter AA in upper or lower case
letters, and abbreviate to one character.
Содержание PLC-5 MAP/OSI
Страница 1: ...PLC 5 MAP OSI Software User Manual Cat No 1785 OSI AB Parts...
Страница 4: ...Table of Contents iii OSI Layer Management E 1...
Страница 57: ...Chapter 4 Basic Programming Techniques 4 7 For example B7 6 10 AB Parts...
Страница 91: ...Mapping MMS Data Types onto PLC 5 40 5 60 File Types Appendix A A 2 T ACC D 16 AB Parts...