
Chapter 5
Addditional and Advanced
Programming Techniques
5-8
When you use the DEFVAR command to define an MMS named variable,
you are also specifying the data type for which that variable will be used
(see Chapter 4 for more information on DEFVAR). You specify the data
type in one of two ways:
using the DTYPE parameter with the DEFVAR command line to specify
the data type.
by simply defining your MMS variable using the DEFVAR command
and not using the DTYPE parameter, in which case the default data type
is assumed.
specifying the data type of an MMS named variable
The syntax for using the DTYPE parameter with the DEFVAR command
is:
DEFVAR <connection><remote_symbol> TO
<remote_address> DTYPE <local_address>
The following table defines each part of this command line:
This:
Is:
DEFVAR
the command that defines MMS named variables in a VMD.
You can abbreviate to three characters, upper or lower case.
Leave at least one space between each field in the command
line.
<connection>
the communication link established between two points. You
label connections using the connection symbol :C followed by
an integer from 1 to 9999).
<remote_symbol>
the name you are assigning to the remote address. This must
be in single quotes and directly follow the connection identifier
with no spaces between them.
TO
the qualifier that specifies the location of the address for which
you are defining a variable. You can abbreviate as T and use
upper or lower case letters.
<remote_address>
the address you are assigning to the name. This must be in
double quotes.
DTYPE
a parameter you place within the DEFVAR command line when
you want to specify the data type for which the variable will be
used. Must be followed by the local address. You can
abbreviate to one character, upper or lower case.
<local_address>
the type of address the MMS named variable will be
associated with.
The data type of the data at this address is
the data type of the MMS named variable. This directly follows
the DTYPE parameter and is in double quotes.
Directly after the DTYPE parameter, you add a local address. The data
type of the data at the local address will be the data type of the MMS
named variable.
Specifying the Data Type of
an MMS Named Variable
(using DTYPE)
Содержание 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...