Get and Set System Data
The controller stores system data in objects. There is no status file, as in the
PLC-5
controller. Use the GSV/SSV instructions get and set controller system data that is stored in objects:- The GSV instruction retrieves the specified information and places it in the destination.
- The SSV instruction sets the specified attribute with data from the source.
Attention: Use the SSV instruction carefully. Making changes to objects can cause unexpected controller operation or injury to personnel.
To get or set a system value:
- Open theLogix Designerapplication project.
- From theHelpmenu, clickContents.
- ClickIndex.
- Typegsv/ssv objectsand clickDisplay.
- Click the required object.To get or setClickaxis of a servo moduleAXISsystem overhead time sliceCONTROLLERphysical hardware of a controllerCONTROLLERDEVICEcoordinated system time for the devices in one chassisCSTfault history for a controllerFAULTLOGattributes of a message instructionMESSAGEstatus, faults, communication path, and mode of a moduleMODULEgroup of axesMOTIONGROUPfault information or scan time for a programPROGRAMinstance number of a routineROUTINEproperties or elapsed time of a taskTASKwall clock time of a controllerWALLCLOCKTIMEtime synchronization status of a controllerTIMESYNCHRONIZE
- In the list of attributes for the object, identify the attribute that you want to access.
- Create a tag for the value of the attribute.If the data type of the attribute isThenone element (e.g., DINT)Create a tag for the attribute.more than one element (e.g., DINT[7])Create a user-defined data type that matches the organization of data used by the attribute. Then create a tag for the attribute and use the data type you created.
- In your ladder logic routine, enter the appropriate instruction.ToEnter this instructionget the value of an attributeGSVset the value of an attributeSSV
- Assign the required operands to the instruction.Refer to the GSV/SSV instruction for information on these operands.
Provide Feedback