Mitsubishi Electronics FX1S manual 13 MPS, MRD and MPP, MPS, MRD and MPP usage

Page 39

FX Series Programmable Controllers

Basic Program Instructions 2

2.13MPS, MRD and MPP

FX1S

FX1N

FX2N

FX2NC

Mnemonic

Function

Format

Devices

Program steps

MPS

Stores the current

 

 

 

result of the

 

N/A

1

(Point Store)

internal PLC

 

MPS

 

 

 

operations

 

 

 

 

 

 

MRD

Reads the current

 

 

 

result of the

 

N/A

1

(Read)

internal PLC

 

MRD

 

 

 

operations

 

 

 

 

 

 

MPP

Pops (recalls and

 

 

 

removes) the

 

N/A

1

(PoP)

currently stored

 

MPP

 

 

 

result

 

 

 

 

 

 

Basic points to remember:

-Use these instructions to connect output coils to the left hand side of a contact.

Without these instructions connections can only be made to the right hand side of the last contact.

-MPS stores the connection point of the ladder circuit so that further coil branches can recall the value later.

-MRD recalls or reads the previously stored connection point data and forces the next contact to connect to it.

-MPP pops (recalls and removes) the stored connection point. First, it connects the next contact, then it removes the point from the temporary storage area.

-For every MPS instruction there MUST be a corresponding MPP instruction.

-The last contact or coil circuit must connect to an MPP instruction.

-At any programming step, the number of active MPS-MPP pairs must be no greater than 11.

MPS, MRD and MPP usage:

• When writing a program in ladder format, programming tools automatically add all MPS, MRD and MPP instructions at the program conversion stage. If the generated instruction program is viewed, the MPS, MRD and MPP instructions are present.

When writing a program in instruction format, it is entirely down to the user to enter all relevant MPS, MRD and MPP instructions as required.

2-13

Image 39
Contents Programming Manual Page Foreword FX Series Programmable ControllersFX Series Programmable Controllers FAX Back Combined Programming Manual J FX Series Programmable Controllers Software Warnings Hardware WarningsFX Series Programmable Controllers Contents STL Programming Applied Instructions Rotation And Shift Functions 30 to External FX Serial Devices Functions 80 to Execution Times And Instructional 10-1 Viii FX Series Programmable Controllers Chapter Contents Overview IntroductionWhat do You Need to Program a PLC? What is a Programmable Controller?Current Generation CPU all versions Special considerations for programming equipmentManual name Number FX Base Unit Hardware Assocciated ManualsManual name Number FX DU, GOT and DM units Memo Basic Program Instructions FX Series Programmable ControllersBasic Program Instructions What is a Program? Outline of Basic Devices Used in ProgrammingDetailed device information Example How to Read Ladder LogicLoad, Load Inverse OUT instructionProgram example Out Timer and Counter VariationsUse of dual coils Last coil effectDouble Coil Designation Peripheral limitations And, And InverseORI Or, Or InverseSingle Operation flags M2800 to M3071 Load Pulse, Load Trailing PulseLDF ANF OUT Pulse, And Trailing PulseORF ORB Or Pulse, Or Trailing PulseOr Block Batch processing limitationsSequential processing limitations ANB BlockMPS, MRD and MPP usage 13 MPS, MRD and MPPMultiple program examples MCR Master Control and ResetNested MC program example Resetting timers and counters Set and ResetTimer, Counter Out & Reset Retentive timers16.1Basic Timers, Retentive Timers And Counters High Speed Counters Bit countersAvailability of devices Normal 32 bit CountersLeading and Trailing Pulse PLFUsages for INV InverseNo Operation No OperationProgram scan 20 EndMemo STL Programming FX Series Programmable ControllersSTL Programming General note What is STL, SFC And IEC1131 Part 3?How STL Operates Each step is a programLook Inside an STL Activating new states How To Start And End An STL ProgramCombined SFC Ladder representation Embedded STL programsInitial Steps Terminating an STL ProgramReturning to Standard Ladder Moving Between STL Steps Using SET to drive an STL coilUsing OUT to drive an STL coil OUT is used for loops and jumpsOut is used for distant jumps Basic Notes On The Behavior Of STL programs Rules and Techniques For STL programsT001 K20 K50 Single Signal Step Control Method 1 Using locking devicesMethod 2 Special Single Pulse Flags Restrictions Of Some Instructions When Used With STL Using ‘jump’ operations with STLRestrictions on using applied instructions STL OUT SET Using STL To Select The Most Appropriate ProgramLimits on the number of branches Using STL To Activate Multiple Flows SimultaneouslyLimits on the number of branches Instruction Format General Rules For Successful STL BranchingGeneral Precautions When Using The FX-PCS/AT-EE Software Simple STL Flow Programming ExamplesSET STL Identification of normally closed contactsSelective Branch/ First State Merge Example Program Points to noteFull STL flow diagram/program Advanced STL Use Devices in Detail FX Series Programmable ControllersDevices in Detail Device Mnemonic Configuration detailsInputs Available devicesOutputs Device Mnemonic YAlias O/P Auxiliary Relays Device Mnemonic MGeneral Stable State Auxiliary Relays External loads Battery Backed/ Latched Auxiliary RelaysSpecial Single Operation Pulse Relays Special Diagnostic Auxiliary RelaysState Relays Device Mnemonic SGeneral Stable State State Relays PLC FX 1S FX 1N FX 2N Battery Backed/ Latched State RelaysIST instruction Assigned statesMonitoring STL programs STL/SFC programmingAnnunciator Flags Device Mnemonic P PointersJumping to the end of the program Device availabilityPointer position Interrupt PointersAdditional applied instructions Nested levelsTimer Interrupts Rules of useInput Interrupts Disabling Individual Interrupts Driving special auxiliary relaysDisabling high speed counter interrupts Additional notesExample device usage N/A Constant KConstant H Device Mnemonic KTimers Timer accuracyDevice Mnemonic T General timer operation Selectable TimersDriving special auxiliary coils Retentive Timers Using timers in interrupt or ‘CALL’ subroutinesCondition Internal timer accuracyTimers Used in Interrupt and ‘CALL’ Subroutines Timer AccuracyDevice Mnemonic C Setting ranges for countersCounters High speed countersGeneral/ Latched 16bit UP Counters Battery backed/latched countersBattery backed/ latched counters Selecting the counting directionGeneral/ Latched 32bit Bi-directional Counters Further uses None Basic high speed counter operationBasic High Speed Counter Operation Driving high speed counter coilsInput assignment Counter SpeedsAvailability of High Speed Counters Calculating the maximum combined counting speed on FX1S Using the SPD instruction Device specificationSetting range Direction settingRST Device size 11.5 2 Phase Bi-directional Counters C246 to C25011.6 A/B Phase Counters C252 to C255 Data Registers Device Mnemonic DExample device usage None Data register updates Data retentionGeneral Use Registers Special Diagnostic Registers Using the FX2-40AW/APUse of diagnostic registers Battery Backed/ Latched RegistersProgram memory registers Special caution when using FX1SWriting to file registers File RegistersUses Externally Adjusted RegistersAvailable forms Index RegistersUse of Modifiers with Applied Instruction Parameters Device Mnemonic V,ZUsing Multiple Index Registers Modifying a ConstantMisuse of the Modifiers Bit Devices, Individual and Grouped Bits, Words, BCD and HexadecimalMoving grouped bit devices Assigning I/OAssigning grouped bit devices Interpreting Word Data Word DevicesFX Series Programmable Controllers Word Data Summary Binary Coded Decimal value= ErrorInverted7 Additional1 14.4 Two’s ComplimentSome useful constants Floating Point And Scientific NotationScientific Notation Floating Point Format FLT