
Chapter 4
Basic Programming Techniques
4-18
The SET command transfers (reads or writes) an element, a contiguous
block of elements, or an MMS structure to or from a node on the MAP
network.
Keep in mind that the syntax for the SET command to read is different
from using it to write. The placement of the connection identifier (:C)
determines whether the command line is a read or a write:
If you are:
The connection identifier directly precedes:
reading data
the source
writing data
the destination
Each case is covered in the following sections.
Using the SET Command to Read Data
The syntax for using the SET command to read is:
SET <destination> = <source>
The following table defines each part of this SET command line.
This:
Is:
SET
the command that requests the data transfer. The destination directly follows
the SET command. You can abbreviate to one character, upper or lower
case. Leave at least one space between each field in the command line.
<destination>
the location where the requested information is going to be placed. This could
be an MMS named variable (in single quotes) or an address (in double
quotes). The destination always follows the SET command.
=
an assignment qualifier. This always follows the destination and precedes the
source.
<source>
the location where the requested information is stored. This could be an MMS
named variable (in single quotes) or an address (in double quotes). The
location of the source also includes a connection identifier (:C). The source
must follow the assignment qualifier (=).
For example:
Reading and Writing Data
(Using the SET Command)
Summary of Contents for PLC-5 MAP/OSI
Page 1: ...PLC 5 MAP OSI Software User Manual Cat No 1785 OSI AB Parts...
Page 4: ...Table of Contents iii OSI Layer Management E 1...
Page 57: ...Chapter 4 Basic Programming Techniques 4 7 For example B7 6 10 AB Parts...
Page 91: ...Mapping MMS Data Types onto PLC 5 40 5 60 File Types Appendix A A 2 T ACC D 16 AB Parts...