Mitsubishi Electronics FX1S manual Special Diagnostic Auxiliary Relays

Page 79

FX Series Programmable Controllers

Devices in Detail 4

4.3.3Special Diagnostic Auxiliary Relays

A PLC has a number of special auxiliary relays. These relays all have specific functions and are classified into the following two types.

a)Using contacts of special auxiliary relays

-Coils are driven automatically by the PLC. Only the contacts of these coils may be used by a user defined program.

Examples: M8000: RUN monitor (ON during run)

M8002: Initial pulse (Turned ON momentarily when PLC starts)

M8012: 100 msec clock pulse

b)Driving coils of special auxiliary relays

-A PLC executes a predetermined specific operation when these coils are driven by the user.

Examples: M8033: All output statuses are retained when PLC operation is stopped M8034: All outputs are disabled

M8039: The PLC operates under constant scan mode

Available devices:

• Not all PLC’s share the same range, quantity or operational meaning of diagnostic auxiliary relays. Please check the availability and function before using any device. PLC specific diagnostic ranges and meanings are available in chapter 6.

4.3.4Special Single Operation Pulse Relays

FX1S

FX1N

FX2N

FX2NC

When used with the pulse contacts LDP, LDF, etc., M devices in the range M2800 to M3072 have a special meaning. With these devices, only the next pulse contact instruction after the device coil is activated.

 

 

M0 to M2799

 

M2800 to M3072

 

M0

SET

M50

 

M2800

SET

M50

 

 

 

 

1

X0

 

M0

5

X0

 

M2800

 

 

LDP

 

 

LDP

 

 

 

 

 

 

 

 

 

 

M0

 

 

 

M2800

 

 

 

SET

M51

 

SET

M51

 

 

 

 

2

M0

SET

M52

6

M2800

SET

M52

LDP

 

LDP

 

 

 

 

 

 

 

3

M0

SET

M53

7

M2800

SET

M53

 

 

LDP

 

LDP

 

 

 

 

 

 

 

4

 

 

 

8

 

 

 

LD

 

 

 

LD

 

 

 

Turning ON X0 causes M0 to turn ON.

Contacts ￿, ￿ and ￿ are pulse con- tacts and activate for 1 scan.

Contact ￿ is a normal LD contact and activates while M0 is ON.

Turning ON X0 causes M2800 to turn ON.

Contact ￿ is a pulse contact and acti- vates for 1 scan.

Contacts ￿ and ￿ are pulse contacts of the same M device as contact ￿. Contact ￿ has already operated, so contact ￿ and ￿ do not operate.

Contact ￿ is a normal LD contact and activates while M2800 is ON.

4-5

Image 79
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 Outline of Basic Devices Used in Programming What is a Program?Detailed device information Example How to Read Ladder LogicOUT instruction Load, Load InverseProgram example Out Timer and Counter VariationsLast coil effect Use of dual coilsDouble 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 PulseBatch processing limitations Or BlockSequential 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 ResetRetentive timers Timer, Counter Out & Reset16.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?Each step is a program How STL OperatesLook Inside an STL Activating new states How To Start And End An STL ProgramCombined SFC Ladder representation Embedded STL programsTerminating an STL Program Initial StepsReturning to Standard Ladder Moving Between STL Steps Using SET to drive an STL coilOUT is used for loops and jumps Using OUT to drive an STL coilOut is used for distant jumps Basic Notes On The Behavior Of STL programs Rules and Techniques For STL programsT001 K20 K50 Method 1 Using locking devices Single Signal Step ControlMethod 2 Special Single Pulse Flags Using ‘jump’ operations with STL Restrictions Of Some Instructions When Used 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 devices Device Mnemonic Y Outputs Alias O/P Device Mnemonic M Auxiliary RelaysGeneral Stable State Auxiliary Relays External loads Battery Backed/ Latched Auxiliary RelaysSpecial Single Operation Pulse Relays Special Diagnostic Auxiliary RelaysDevice Mnemonic S State RelaysGeneral 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 levelsRules of use Timer InterruptsInput Interrupts Disabling Individual Interrupts Driving special auxiliary relaysDisabling high speed counter interrupts Additional notesExample device usage N/A Constant KConstant H Device Mnemonic KTimer accuracy TimersDevice Mnemonic T Selectable Timers General timer operationDriving 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 countersSelecting the counting direction Battery backed/ latched countersGeneral/ Latched 32bit Bi-directional Counters Further uses None Basic high speed counter operationBasic High Speed Counter Operation Driving high speed counter coilsCounter Speeds Input assignmentAvailability 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 Device Mnemonic D Data RegistersExample device usage None Data retention Data register updatesGeneral 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,ZModifying a Constant Using Multiple Index RegistersMisuse of the Modifiers Bit Devices, Individual and Grouped Bits, Words, BCD and HexadecimalAssigning I/O Moving grouped bit devicesAssigning 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