Motion Coordinated Shutdown Reset (MCSR)

This information applies to the
CompactLogix
5370,
ControlLogix
5570,
Compact GuardLogix
5370,
GuardLogix
5570,
Compact GuardLogix
5380,
CompactLogix
5380,
CompactLogix
5480,
ControlLogix
5580, and
GuardLogix
5580 controllers.
Use the Motion Coordinated Shutdown Reset (MCSR) instruction to reset all axes in a coordinate system. The MCSR instruction resets the axes from a shutdown state to an axis ready state. This instruction also clears any axis faults.
IMPORTANT:
Tags used for the motion control attribute of instructions should only be used once. Re-use of the motion control tag in other instructions can cause unintended operation. This may result in damage to equipment or personal injury.
Architecture and safety support
Architecture
Standard
Safety
CompactLogix 5370, ControlLogix 5570, Compact GuardLogix 5370, and GuardLogix 5570 controllers
Yes
No
Compact GuardLogix 5380, CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, and GuardLogix 5580 controllers
Yes
No
Available Languages
Ladder Diagram
MCSR_LD_avail_v31
Function Block
This instruction is not available in function block.
Structured Text
MCSR(CoordinateSystem, MotionControl);
Operands
Ladder Diagram and Structured Text
Operand
Type
Format
Description
Coordinate System
COORDINATE_SYSTEM
Tag
Coordinate System on which to perform the Shutdown Reset.
For controllers that support the REF_TO motion data types, the supported axis operand type can be replaced by an equivalent REF_TO type.
Motion Control
MOTION_INSTRUCTION
Tag
Structure used to access instruction status parameters.
See Structured Text Syntax for more information on the syntax of expressions within structured text.
Coordinate System
The Coordinate System operand specifies the set of motion axes that define the dimensions of a Cartesian coordinate system. For this release the coordinate system supports up to three (3) primary axes. Only the axes configured as primary axes (up to 3) are included in the coordinate velocity calculations.
Motion Control
These control bits are affected by the MCSR instruction.
Mnemonic
Description
.EN (Enable) Bit 31
The Enable bit is set when the rung transitions from false to true. It resets when the rung transitions from true to false.
.DN (Done) Bit 29
The Done bit sets when the coordinated shutdown reset is successfully initiated. It resets when the rung transitions from true to false.
.ER (Error) Bit 28
The Error bit sets when the reset of the coordinated shutdown fails to initiate. It resets when the rung transitions from false to true.
This is a transitional instruction:
  • In relay ladder, toggle the Rung-condition-in from false to true each time the instruction should execute.
  • In structured text, condition the instruction so that it only executes on a transition.
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. A major fault can occur if an uninitialized reference or a reference of the incorrect type is passed to the Coordinate System operands. See Common Attributes in operand-related faults.
Execution
Ladder Diagram
Condition/State
Action Taken
Prescan
The .EN, .DN, .ER, and .IP bits are cleared to false.
Rung-condition-in is false
The .EN bit is cleared to false if either the .DN or .ER bit is true.
Rung-condition-in is true
The .EN bit is set to true and the instruction executes.
Postscan
N/A
Structured Text
Condition/State
Action Taken
Prescan
See Prescan in the Ladder Diagram table.
Normal execution
See Rung-condition-in is false, followed by rung is true in the Ladder Diagram table.
Postscan
See Postscan in the Ladder Diagram table.
MCSR Changes to Status Bits:
Status Bits provide a means for monitoring the progress of the motion instruction. There are three types of Status bits that provide pertinent information. They are: Axis Status bits, Coordinate System Status bits, and Coordinate Motion Status bits. When the MCS instruction initiates, the status bits undergo these changes.
Axis Status Bits
Bit Name
Meaning
CoordinatedMotionStatus
No effect
Coordinate System Status Bits
Bit Name
Meaning
ShutdownStatus
Clears the Shutdown status bit.
Coordinated Motion Status Bits
Bit Name
Meaning
MovePendingStatus
Flushes instruction queue and clears status bit.
MovePendingQueueFullStatus
Flushes instruction queue an clears status bit.
Examples
Ladder Diagram
MCSR_LD_ex_v31
Structured Text
MCSR(myMcsrCoordinateSystem,myMcsrMotionControl);
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.