Rockwell Automation Logix5000 Controllers Controller Information and Status Programming Manual User Manual
Page 56

Chapter 5 Access status information
To
Enter this instruction
Get the value of an attribute
GSV
Set the value of an attribute
SSV
9. Assign the required operands to the instruction.
For this operand
Select
Class name
Name of the object.
Instance name
Name of the specific object (for example, name of the
required I/O module, task, message).
•
Not all objects require this entry.
•
To specify the current task, program, or routine, select
THIS.
Attribute name
Name of the attribute.
Dest (GSV)
Tag that stores the retrieved value.
If the tag is a user-defined data type or an array, select the
first member or element.
Source (SSV)
Tag that stores the value to be set.
If the tag is a user-defined data type or an array, select the
first member or element.
The following example gets the current date and time.
Example:
Get a System Value
At the first scan, the following rung of logic gets the DateTime attribute of the WallClockTime object and
stores it in the wall_clock tag, which is based on a user-defined data type.
For more GSV/SSV information, see th
56
Rockwell Automation Publication 1756-PM015F-EN-P – October 2014