Five Position Mode Selector (FPMS)

This instruction applies to the Compact GuardLogix 5370, GuardLogix 5570, Compact GuardLogix 5380, and GuardLogix 5580 controllers.
The basic purpose of the Five Position Mode Selector (FPMS) instruction is to provide an interface from a programmable controller to a three-to-five position selector switch.
Available Languages
Ladder Diagram
FPMS_LD_avail_v31
Function Block
This instruction is not available in function block.
Structured Text
This instruction is not available in structured text.
Operands
This table explains the instruction inputs.
Parameter
Data Type
Description
Safe, Active, and Initial Values
FPMS
FIVE_POS_MODE_SELECTOR
This parameter is a backing tag. As such, it maintains important execution information for each usage of this instruction. Do not attempt to reuse this backing tag or write to any of its members anywhere else in your program.
-
Input 1
BOOL
Mode 1 Selected Input
Safe = 0
Active = 1
Input 2
BOOL
Mode 2 Selected Input
Safe = 0
Active = 1
Input 3
BOOL
Mode 3 Selected Input
Safe = 0
Active = 1
Input 4
BOOL
Mode 4 Selected Input
Safe = 0
Active = 1
Input 5
BOOL
Mode 5 Selected Input
Safe = 0
Active = 1
Fault Reset
BOOL
After fault conditions are corrected for the instruction, the Fault Present output for the instruction is cleared when this input transitions from OFF to ON.
Initial = 0
Reset = 1
This table explains the instruction outputs.
Parameter
Data Type
Description
Safe, Active, and Initial Values
Output 1
BOOL
Output associated with Input 1
Safe = 0
Active = 1
Output 2
BOOL
Output associated with Input 2
Safe = 0
Active = 1
Output 3
BOOL
Output associated with Input 3
Safe = 0,
Active = 1
Output 4
BOOL
Output associated with Input 4
Safe = 0
Active = 1
Output 5
BOOL
Output associated with Input 5
Safe = 0
Active = 1
No Mode
BOOL
No Mode Selected Fault
Initial = 0
Fault = 1
Multiple Modes Selected
BOOL
More than One Mode Selected Fault
Initial = 0
Fault = 1
Fault Present
BOOL
This value is set whenever a fault is present in the instruction. An output cannot enter the Active state when Fault Present is set. Fault Present is cleared when all faults are cleared and the Fault Reset input transitions from OFF to ON.
Initial = 0
Fault = 1
IMPORTANT:
Do not write to any instruction output tag under any circumstances.
Operation
Normal Operation
The Five-Position Mode Selector Instruction has five outputs that are associated with five inputs. Its main job is to enable one of the five outputs when its associated input goes active.
It has a fault for more than one input active, and another for no inputs active. These faults occur when the associated inputs conditions exist for more than 250 ms. During this 250 ms, if one of the fault conditions is detected, the outputs temporarily remain in their last state. If the fault condition is still present after the 250 ms, the Fault Present bit is set to one and the instruction's outputs are set to zero.
Faults may be cleared by the rising edge of the Fault Reset signal, but only after the input fault condition has been cleared.
False Rung State Behavior
When the instruction is executed on a false rung the behavior is exactly the same as true rung state except all outputs, including prompts and fault indicators, will be zero. When the rung state becomes true the outputs will be set as determined by the instruction logic.
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
The .O1, .O2, .O3, .O4, .O5, .NM, .NMS and .FP are cleared to false.
Rung-condition-in is false
The instruction executes as described in the False Rung State Behavior section.
Rung-condition-in is true
The instruction executes as described in the Normal Operation section.
Postscan
The instruction executes as described in the False Rung State Behavior section.
Example
Wiring Example
The following wiring diagram is one example of how to wire a five-position selector switch to a 1791DS safety I/O module to comply with ISO 13849-1 Category 4.
FPMS Wiring diagram
Programming Example
The following programming example shows how the Five Position Mode Selector (FPMS) instruction can be applied to the wiring diagram shown in the following diagram.
FPMS_Other_Pg397_v31
Logix Designer
programming software is used to configure the following I/O module parameters.
Input Configuration
Point
Type
Point Mode
0 (IN0)
Single
Safety
1 (IN1)
Single
Safety
2 (IN2)
Single
Safety
3 (IN3)
Single
Safety
4 (IN4)
Single
Safety
5 (IN5)
Single
Safety
Output
Point
Point Made
0
Power Supply
1
Power Supply
2
Not Used
3
Not Used
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.