
Chapter 4
Basic Programming Techniques
4-20
Here are more examples of using SET to read:
set ’vat_#18’ = :c3’fluids’
SE ”t4:43” = :C78’timer_44’
SET ’plank_50’ = :c6”n7:99”
Using the SET Command to Write Data
The syntax for using the SET command to write 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 location of the destination also includes a connection identifier
(:C). 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
source must follow the assignment qualifier (=).
For example:
SET :C99’parts_count’ = ’bin_12’
the command
the connection identifier
followed by the number 99
the MMS named variable
the MMS named variable that is
the source
the assignment
qualifier
the destination
Here are more examples of using SET to write:
set :c8’vat_#18’ = ’fluids’
SE :C78”t4:43” = ’timer_44’
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...