Mitsubishi Electronics FX1S manual Single Signal Step Control, Method 1 Using locking devices

Page 61

FX Series Programmable Controllers

STL Programming 3

3.5.2Single Signal Step Control

Transferring between active STL steps can be controlled by a single signal. There are two methods the user can program to achieve this result.

Method 1 - Using locking devices

FX1S

FX1N

FX2N

FX2NC

In this example it is necessary to program separate locking devices, and the controlling signal must only pulse ON. This is to prevent the STL programs from running through.

The example shown below identifies the general program required for this method.

- S30 is activated when M0 is first pulsed ON.

-

The operation of M1 prevents the sequence

M0

 

 

 

from continuing because although M0 is ON,

 

 

 

 

 

 

 

the transfer requirements, need M0 to be ON

S 30

PLS

M1

 

and M1 to be OFF.

 

 

 

- After one scan the pulsed M0 and the ‘lock’

M0

 

 

 

device M1 are reset.

M1

 

 

-

On the next pulse of M0 the STL step will

 

 

 

 

transfer program control from S31 to the next

S 31

PLS

M2

 

step in a similar manner. This time using M2 as

 

 

 

 

 

the ‘lock’ device because dual coils in

M0

 

 

 

successive steps is not allowed.

 

 

- The reason for the use of the ‘lock’ devices M1

M2

 

 

 

 

 

 

and M2 is because of the handshaking period

 

 

 

 

when both states involved in the transfer of

 

 

 

 

program control are ON for 1 program scan. Without the ‘locks’ it would be possible to

 

immediately skip through all of the STL states in one go!

 

 

 

Method 2 - Special Single Pulse Flags

FX1S

FX1N

FX2N

FX2NC

Using the pulse contacts (LDP, LDF, ANP, etc.) and a special range of M devices (M2800 to M3071) the same result as method 1 can be achieved. The special feature of these devices prevents run through of the states, as only the first occurrence of the LDP instruction will activate.

The example program below shows the necessary instructions.

- Assume S50 is already active.

X001

 

 

 

- When X01 activates M2800, this in turn

M2800

Do not use the

LAD0

step control

 

activates the LDP M2800 instruction in

M2800

 

 

 

device in a

 

S50 and the flow moves on to step

M2800

 

 

 

pulse contact

 

S51.

 

 

 

 

within the main

 

 

 

 

-

The LDP M2800 instruction in the

 

 

program body.

 

transition part of S51 does not execute

 

 

 

 

 

because this is the second occurrence

S 50

M2800

 

 

 

of M2800 in a pulse contact.

M2800

SET

S51

 

 

- When X01 next activates M2800, the

S 51

M2800

SET

Snn

 

LDP instruction in S51 is the first

M2800

 

 

occurrence because S50 is now

 

 

 

 

 

inactive. Thus, control passes to the

 

 

 

 

 

next step in the same manner.

 

 

 

 

 

 

 

 

 

3-9

Image 61
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 Availability of devices Bit countersNormal 32 bit Counters High Speed 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 Combined SFC Ladder representation How To Start And End An STL ProgramEmbedded STL programs Activating new statesTerminating 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 Inputs Configuration detailsAvailable devices Device MnemonicDevice Mnemonic Y OutputsAlias 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 RelaysMonitoring STL programs Assigned statesSTL/SFC programming IST instructionAnnunciator Flags Jumping to the end of the program PointersDevice availability Device Mnemonic PAdditional applied instructions Interrupt PointersNested levels Pointer positionRules of use Timer InterruptsInput Interrupts Disabling high speed counter interrupts Driving special auxiliary relaysAdditional notes Disabling Individual InterruptsConstant H Constant KDevice Mnemonic K Example device usage N/ATimer accuracy TimersDevice Mnemonic T Selectable Timers General timer operationDriving special auxiliary coils Retentive Timers Using timers in interrupt or ‘CALL’ subroutinesTimers Used in Interrupt and ‘CALL’ Subroutines Internal timer accuracyTimer Accuracy ConditionCounters Setting ranges for countersHigh speed counters Device Mnemonic CGeneral/ 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 Setting range Device specificationDirection setting Using the SPD instructionRST 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 Use of diagnostic registers Using the FX2-40AW/APBattery Backed/ Latched Registers Special Diagnostic RegistersWriting to file registers Special caution when using FX1SFile Registers Program memory registersUses Externally Adjusted RegistersUse of Modifiers with Applied Instruction Parameters Index RegistersDevice Mnemonic V,Z Available formsModifying 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