Two Hand Run Station Enhanced (THRSe)

This instruction applies to the Compact GuardLogix 5370, GuardLogix 5570, Compact GuardLogix 5380, and GuardLogix 5580 controllers.
Use this instruction to monitor the inputs of a Two-hand Run Station. Each run station button has two inputs; one normally-closed (N.C.) contact and one normally-open (N.O.) contact. To energize Output 1, the instruction must be enabled and connected with no faults present. Then both buttons must be pressed within 500 ms of one another.
IMPORTANT:
The right and left buttons of the Two-hand Run Station must be pressed within 500 ms of one another to energize Output 1. To make sure this situation can be properly detected, the safety task period cannot exceed 40 ms and the input device’s requested packet interval (RPI) cannot exceed 20 ms.
Refer to the
GuardLogix
5580 and
Compact GuardLogix
5380 Controller Systems Safety Reference, publication 1756-RM012, for information on the safety task period and the RPI.
The Buttons Released (BR) output turns ON (1) whenever the Two-hand Run Station is connected and enabled, no faults are present, and both the right and left buttons are in the released (safe) state. In this case, all four contacts are in the safe state.
The Two-hand Run Station may be disconnected when not in use. To properly disconnect the Two-hand Run Station, the Disconnected input must be ON (1) and all button inputs must be OFF (0). When the Two-hand Run Station is disconnected, the (SB) Station Bypassed output turns ON (1).
Available Languages
Ladder Diagram
L5K_THRSe_LD_avail_v31
Function Block
This instruction is not available in function block.
Structured Text
This instruction is not available in structured text.
Operands
IMPORTANT:
Do not use the same tag for more than one instruction in the same program. Do not write to any instruction output tag under any circumstances.
IMPORTANT:
Make sure that your safety input points are configured as Single, not Equivalent or Complementary. These instructions provide all dual channel functionality necessary for PLd (Cat. 3) or PLe (Cat. 4) safety functions.
WARNING:
If you change instruction parameters while in Run mode, you must accept the pending edits and cycle the controller mode from Program to Run for the changes to take effect.
The following table provides the parameter used to configure the instruction. This parameter cannot be changed at runtime.
Operand
Data Type
Description
THRSe
THRS_ENHANCED
This parameter is a backing tag that maintains important execution information for each usage of this instruction.
Safety Advisory
ATTENTION:
To avoid unexpected operation do not reuse this backing tag and its members. Do not write to any of the tag members anywhere else in the program.
Discrepancy Time
DINT
The amount of time that the instruction lets the normally-open and normally-closed button contacts be inconsistent before generating a fault.
The inconsistent state occurs when the normally-open contact and the normally-closed contact have the same logical value; that is, both are ON (1) or both are OFF (0).
The valid range is 100 to 3000 ms.
The following table provides the input parameters for the instruction.
Operand
Data Type
Description
Enable
BOOL
ON (1): The device is enabled. Output 1 is energized when both buttons are pressed within 500 ms of one another.
OFF (0): The device is disabled. Output 1 stays de-energized.
Disconnected
BOOL
This input indicates whether the run station is disconnected. When this input is ON (1) and all of the button inputs (Right Button Normally Open, Right Button Normally Closed, Left Button Normally Open, Left Button Normally Closed) are OFF (0), the Station Bypassed output turns ON (1).
ON (1): The run station is disconnected. Output 1 cannot be energized.
OFF (0): The run station is not disconnected. Output 1 may be energized.
Right Button Normally Open
1
BOOL
This is the normally-open contact for the right button.
Right Button Normally Closed
1
BOOL
This is the normally-closed contact for the right button.
Left Button Normally Open
1
BOOL
This is the normally-open contact for the left button.
Left Button Normally Closed
1
BOOL
This is the normally-closed contact for the left button.
Input Status
BOOL
If the instruction inputs are from a safety I/O module, this value is the status from the I/O module or modules (Connection Status or Combined Status). If instruction inputs are derived from internal logic, it is the application programmer's responsibility to determine the conditions.
ON (1): The inputs to this instruction are valid.
OFF (0): The inputs to this instruction are invalid.
Reset
2
BOOL
This input clears instruction and circuit faults provided the fault condition is not present.
OFF (0) -> ON (1): The Fault Present and Fault Code outputs are reset.
1
If this input is from a
Guard I/O
input module, make sure that the input is configured as single, not Equivalent or Complementary.
2
ISO 13849-1 stipulates instruction reset function must occur on falling edge signals. to comply with ISO 13849-1 requirements, add the logic immediately before this instruction. Rename Reset_Signal tag in this example to your reset signal tag name. Then use the OSF instruction Output Bit tag as the reset source of the instruction.
Reset_Signal Example_v31
The following table provides the output parameters for the instruction.
Operand
Data Type
Description
Output 1 (O1)
BOOL
This output is energized when the run station is enabled and connected, and both buttons are pressed within 500 ms of one another.
Output 1 is de-energized when one or more of the following occurs:
  • The right or the left button is released, or any one of the four contacts transitions to the safe state.
  • The Input Status input turns OFF (0), which indicates the inputs have become invalid.
  • The Enable input turns OFF (0).
  • The Disconnected input turns ON (1).
Buttons Released (BR)
BOOL
This output is ON (1) when both buttons are released, the run station is connected and enabled, and no faults are present.
Station Bypassed (SB)
BOOL
This output is ON (1) when the run station has been properly disconnected and no faults are present. See the
Disconnecting the Two-hand Run Station
section
.
Fault Present (FP)
BOOL
ON (1): A fault is present in the instruction.
OFF (0): The instruction is operating normally.
Fault Code
DINT
This output indicates the type of fault that occurred. See the
Fault Codes
section below for the list of fault codes.
This parameter is not safety-related.
Diagnostic Code
DINT
This output indicates the diagnostic status of the instruction. See the
Diagnostic Codes
section below for a list of diagnostic codes.
This parameter is not safety-related.
IMPORTANT:
Do not write to any instruction output tag under any circumstances.
Disconnecting the Two-hand Run Station
To energize the Station Bypassed output (disconnect the Two-hand Run Station), the Disconnected input must be ON (1), and all the button inputs must be OFF (0).
If a fault occurs while disconnecting the Two-hand Run Station, trigger a reset after the inputs are in the correct state.
Connecting the Two-hand Run Station
To de-energize the Station Bypassed output (connect the Two-hand Run Station), the Disconnected input must be OFF (0), and the button inputs must be in the release safe state.
If a fault occurs while connecting the Two-hand Run Station, trigger a reset after the inputs are in the correct state.
Operation
Normal Operation
As shown in the timing diagram, the Buttons Released output turns ON (1) whenever both buttons are released, the run station is connected and enabled, and no faults are present.
Before (A), the left and right buttons are both pressed, but Output 1 has not yet been energized because the Enable input is OFF (0). When the Enable input transitions from OFF (0) to ON (1) at (A), Output 1 is not energized because the buttons must be pressed while the Enable input is ON (1). At (B), the right button is pressed but the left button is still released, which turns OFF (0) the Buttons Released output. At (C), both buttons have been pressed within 500 ms of one another, which energizes Output 1 after a 50 ms delay. Output 1 is de-energized when the left button is released at (D). Output 1 is energized 50 ms after both buttons are pressed at (E). Lastly, at (F),Output 1 is de-energized because the Enable input turns OFF (0).
THRSe Normal Operation
Button Held Down Diagnostic Operation
Output 1 cannot be energized when the right and left buttons are not pressed within 500 ms of one another.
At (A), the right button is pressed while the left button remains released. At (B), the buttons have been in an inconsistent state for 500 ms, which generates a diagnostic signal that requires both buttons be released before Output 1 can be energized again. At (C), the left button is pressed, but Output 1 is not energized because both buttons have not been released after the right button was held down longer than 500 ms. Both buttons are released, which clears the diagnostic signal at (D). Output 1 is energized after a 50 ms delay when both buttons are pressed within 500 ms of one another at (E).
THRSe Button Held down diagnostic operation
Button Glitch Diagnostic Operation
When one button is released while the other button remains pressed, both buttons must be released to the safe state before Output 1 can be energized again.
At (A), Output 1 is de-energized because the right button is released.
At (B), the right button is pressed, but the left button remained released since (A), generating a diagnostic signal that requires both buttons to be released before Output 1 can be energized again. Both buttons are released at (C), which clears the diagnostic signal. At (D), Output 1 is energized after a 50 ms delay when both buttons are pressed within 500 ms of one another.
THRSe Button Glitch Diagnostic Operation
Button Discrepancy Fault (Channel-to-channel) Operation
A discrepancy fault occurs when the two channels of one button are in an inconsistent state for more than the configured Discrepancy Time (250 ms in this example).
At (A), the right button is pressed, but only the normally-open contact of the left button turns ON (1) while the normally-closed contact remains OFF (0). After the Left Button Normally Open and the Left Button Normally Closed inputs have been inconsistent for 250 ms, the fault occurs at (B). At (C), the fault is cleared by a Reset. Lastly, at (D), Output 1 is energized 50 ms after both buttons are pressed.
THRSe Button Discrepency Fault
Run Station Disconnected (Station Bypassed) Operation
When the run station is properly disconnected, Output 1 cannot be energized. The Station Bypassed output is energized whenever the run station is properly disconnected.
At (A), Output 1 is energized 50 ms after both buttons are pressed. At (B), Output 1 is de-energized and a fault occurs when the Disconnected input turns ON (1). To clear the fault, both buttons must be released and a reset triggered at (C). The Station Bypassed output turns ON (1). At (D), the Station Bypassed output turns OFF (0) and a fault occurs when the Right Button Normally Open input turns ON (1) while the Disconnected input is ON (1). At (E), the fault is cleared and the Station Bypassed output is turned ON (1) when a reset is triggered with the Disconnected input ON (1) and all button inputs OFF (0). Lastly, at (F), the Enable input transitions from ON (1) to OFF (0) to ON (1), but has no effect on the Station Bypassed output, which remains ON (1).
THRSe Run Station Disconnected
False Rung State Behavior
When the instruction is executed on a false rung, all instruction outputs are de-energized.
Fault Codes and Corrective Actions
The fault codes are listed in hexadecimal format followed by decimal format.
Fault Code
Description
Corrective Action
00
No fault.
None
16#20
32
The Input Status input transitioned from ON (1) to OFF (0) while the instruction was executing.
  • Check the I/O module connection.
  • Reset the fault.
16#7001
28673
The right button contacts were in an inconsistent state for longer than the Discrepancy Time. At the time of the fault, the Right Button Normally Open was ON (1) and the Right Button Normally Closed was OFF (0).
  • Check the wiring.
  • Bring the right button contacts to a consistent state.
  • Reset the fault.
16#7002
28674
The right button contacts were in an inconsistent state for longer than the Discrepancy Time. At the time of the fault, the Right Button Normally Closed was ON (1) and the Right Button Normally Open was OFF (0).
16#7003
28675
The left button contacts were in an inconsistent state for longer than the Discrepancy Time. At the time of the fault, the Left Button Normally Open was ON (1) and the Left Button Normally Closed was OFF (0).
  • Check the wiring.
  • Bring the left button contacts to a consistent state.
  • Reset the fault.
16#7004
28676
The left button contacts were in an inconsistent state for longer than the Discrepancy Time. At the time of the fault, the Left Button Normally Closed was ON (1) and the Left Button Normally Open was OFF (0).
16#7005
28677
The Right Button Normally Open input transitioned from ON (1) to OFF (0) to ON (1) while the Right Button Normally Closed input remained ON (1).
  • Check the wiring.
  • Released the right button, bringing both contacts to the OFF (0) state.
  • Reset the fault.
16#7006
28678
The Right Button Normally Closed input transitioned from ON (1) to OFF (0) to ON (1) while the Right Button Normally Open input remained ON (1).
16#7007
28679
The Left Button Normally Open input transitioned from ON (1) to OFF (0) to ON (1) while the Left Button Normally Closed input remained ON (1).
  • Check the wiring.
  • Released the left button, bringing both contacts to the OFF (0) state.
  • Reset the fault.
16#7008
28680
The Left Button Normally Closed input transitioned from ON (1) to OFF (0) to ON (1) while the Left Button Normally Open input remained ON (1).
16#7030
28720
The Disconnected input was ON (1), but all of the button inputs were not OFF (0).
  • To disconnect the Two-hand Run Station, set all button inputs to OFF (0) and reset the fault.
  • To connect the run station, set the Disconnected input to OFF (0) and reset the fault.
16#7031
28721
The button inputs were disconnected for longer than the Discrepancy time, but the Disconnected input was OFF (0).
  • To disconnect the Two-hand Run Station, set the Disconnected input to ON (1) and reset the fault.
  • To connect the Two-hand Run Station, set all button inputs to their normal state and reset the fault.
Diagnostic Codes and Corrective Actions
The diagnostic codes are listed in hexadecimal format followed by decimal format.
Diagnostic Code
Description
Corrective Action
00
No fault.
None
16#20
32
The Input Status was OFF (0) when the instruction started.
Check the I/O module connection
16#7001
28673
The device is not in the safe state for start-up.
Release both buttons to OFF (0).
16#7002
28674
The right button is held down. The left and right buttons have been in an inconsistent state for longer than 500 ms.
Release both buttons to OFF (0).
16#7003
28675
The left button is held down. The left and right buttons have been in an inconsistent state for longer than 500 ms.
Release both buttons to OFF (0).
16#7004
28676
The right button was released and then pressed while the left button remained pressed.
Release both buttons to OFF (0).
16#7005
28677
The left button was released and then pressed while the right button remained pressed.
Release both buttons to OFF (0).
16#7060
28768
The run station is not enabled.
Enable or disconnect the run station.
16#7061
28769
The run station is bypassed.
No action required.
Affects Math Status Flags
No
Major / Minor Faults
None specific to this instruction. See
Index Through Arrays
for array-indexing faults.
Execution
Condition/State
Action Taken
Prescan
Same as Rung-condition-in is false.
Enable-in is false
The .O1, .BR, .SB and .FP are cleared to false.
Enable-in is true
The instruction executes as described in the Normal Operation section.
Postscan
Same as Rung-condition-in is false.
Examples
THRSe_LD_ex_v31
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.