GSV/SSV Safety Objects

For safety tasks, the GSV and SSV instructions are more restricted.
TIP:
SSV instructions in safety and standard tasks cannot set bit 0 (major fault on error) in the mode attribute of a safety I/O module.
For safety objects, the following table shows which attributes you can get values for using the GSV instruction and which attributes you can set using the SSV instruction in safety and standard tasks.
WARNING:
CAUTION:
Use the GSV/SSV instructions carefully. Making changes to objects can cause unexpected controller operation or injury to personnel.
Safety Object
Attribute Name
Attribute Description
Accessible from the Safety Task
Accessible from the Standard Task
GSV
SSV
GSV
SSV
Safety Task
Instance
Provides instance number of this task object. Valid values are 0...31.
checkmark (2)
checkmark (2)
MaximumInterval
The max time interval between successive executions of this task.
checkmark (2)
checkmark (2)
MaximumScanTime
Max recorded execution time (ms) for this task.
checkmark (2)
checkmark (2)
MinimumInterval
The min time interval between successive executions of this task.
checkmark (2)
checkmark (2)
Priority
Relative priority of this task as compared to other tasks. Valid values are 0...15.
checkmark (2)
checkmark (2)
Rate
Period for the task (in ms), or timeout value for the task (in ms).
checkmark (2)
checkmark (2)
Watchdog
Time limit (in ms) for execution of all programs associated with this task.
checkmark (2)
checkmark (2)
DisableUpdateOutputs
Enables or disables the processing of outputs at the end of a task.
  • Set the attribute to 0 to enable the processing of outputs at the end of the task.
  • Set the attribute to 1 (or any non-zero value) to disable the processing of outputs at the end of the task.
checkmark (2)
EnableTimeOut
Enables or disables the timeout function of a task.
  • Set the attribute to 0 to disable the timeout function.
  • Set the attribute to 1 (or any non-zero value) to enable the timeout function.
checkmark (2)
InhibitTask
Prevents the task from executing. If a task is inhibited, the controller still prescans the task when the controller transitions from Program mode to Run or Test mode.
  • Set the attribute to 0 to enable the task
  • Set the attribute to 1 (or any non-zero value) to inhibit (disable) the task
checkmark (2)
LastScanTime
Time it took to execute this program the last time it was executed. Time is in microseconds.
checkmark (2)
Name
The name of the task
OverlapCount
The number of times that the task was triggered while it was still executing. Valid for an event or periodic task.
To clear the count, set the attribute to 0.
checkmark (2)
StartTime
Value of WALLCLOCKTIME when the last execution of the task was started. DINT[0] contains the lower 32 bits of the value; DINT[1] contains the upper 32 bits of the value.
checkmark (2)
Status
Provides status information about the task. Once the controller sets one of these bits, you must manually clear it.
To determine if:
  • an EVENT instruction triggered the task (event task only), examine bit 0
  • a timeout triggered the task (event task only), examine bit 1
  • an overlap occurred for this task, examine bit 2
checkmark (2)
Safety Program
Instance
Provides the instance number of the program object.
checkmark (2)
checkmark (2)
MajorFaultRecord
Records major faults for this program.
checkmark (2)
checkmark (2)
checkmark (2)
MaximumScanTime
Max recorded execution time (ms) for this program.
checkmark (2)
checkmark (2)
Disable Flag
Controls this program’s execution. Each value has a specific meaning:
  • 0. Execution enabled.
  • Non zero. Execution disabled.
checkmark (2)
MaximumScanTime
Maximum recorded execution time (ms) for this program.
checkmark (2)
Minor Fault Record
Records minor faults for this program.
checkmark (2)
LastScanTime
Time it took to execute this program the last time it was executed. Time is in microseconds.
checkmark (2)
Name
The name of the task.
Safety Routine
Instance
Provides the instance number for this routine object. Valid values are 0...65,535.
checkmark (2)
Safety Controllers
SafetyLockedState (SINT)
Indicates whether the controller is safety-locked or -unlocked.
checkmark (2)
SafetySILConfiguration (SINT)
Specifies the safety SIL configuration as:
  • 2 = SIL2/PLd
  • 3 = SIL3/PLe
checkmark (2)
checkmark (2)
SafetyStatus (INT)
(Applicable to Compact GuardLogix 5380 and GuardLogix 5580 controllers only).
Applications configured for SIL3/PLe, specify the safety status as:
  • Safety task OK. (1100000000000000)
  • Safety task inoperable. (1100000000000011)
  • Partner missing. (01000000000000000)
  • Partner unavailable. (01000000000000001)
  • Hardware incompatible (01000000000000010)
  • Firmware incompatible. (01000000000000011)
Tip:
For applications configured for SIL2/PLd, bits 15, 0, and 1 should be ignored if they can be different values based on the slot +1 of the Primary Controller. See the above status for meaning.
Applications configured for SIL2/PLd, specify the safety task as:
  • Safety task OK
    (x1000000000000xx)
  • Safety task inoperable
    (x10000000000001xx)
checkmark (2)
SafetyStatus (INT)
(Applicable to Compact GuardLogix 5370 and GuardLogix 5570 controllers only).
Specifies the safety status as:
  • Safety task OK. (1000000000000000)
  • Safety task inoperable. (1000000000000001)
  • Partner missing. (0000000000000000)
  • Partner unavailable. (0000000000000001)
  • Hardware incompatible (0000000000000010)
  • Firmware incompatible. (0000000000000011)
checkmark (2)
SafetySignatureExists (SINT)
Indicates whether the safety signature is present.
checkmark (2)
checkmark (2)
SafetySignatureID (DINT)
(Applicable to Compact GuardLogix 5370, and GuardLogix 5570 controllers only)
32-bit identification number.
checkmark (2)
SafetySignature (String)
(Applicable to Compact GuardLogix 5370, and GuardLogix 5570 controllers only)
ID number plus date and time stamp.
checkmark (2)
SafetyTaskFaultRecord (DINT)
Records safety task faults.
checkmark (2)
SafetySignatureIDLong SINT [33]
(Applicable to Compact GuardLogix 5380 and GuardLogix 5580 controllers only)
The first byte is the size of the safety signature ID in bytes and the remaining 32 bytes contain the content of the 32-byte Safety signature ID.
checkmark (2)
SafetySignatureIDHex(String)
(Applicable to Compact GuardLogix 5380 and GuardLogix 5580 controllers only)
64 character Hexadecimal sting representation of signature ID
checkmark (2)
SafetySignatureDateTime(String)
(Applicable to Compact GuardLogix 5380 and GuardLogix 5580 controllers only)
27 character date time of a safety signature in the format of mm/dd/yyyy, hh:mm:ss.iii<AM or PM>
checkmark (2)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.