Home
MELSEC-Q/L Programming Manual (MELSAP-L)
Contents
1. 1 A maximum of 512 1 serial transition steps J L can be described in each block Therefore a maximum of 512 serial transitions can be described However there is a restriction on the number of lines as indicated below depending on the SFC display column setting 1 128 for the Basic model QCPU QOOUJCPU QOOUCPU Q01UCPU Q02UCPU LO2SCPU LO2SCPU P LO2CPU and LO2CPU P When SFC display column When SFC display setting is 1 or 2 column setting is n CJ Max of Mle Max of 512 serial 1536 lines i 7 a transitions Number of lines be EJ E P panas Examples of the permissible number of lines corresponding to a few SFC display column setting values are shown below The SFC display column setting value can be designated freely within a 1 to 32 range Number of columns max of 32 SFC Display Number of Lines Column setting Possible Approx 3000 1 2 1536 Number of lines lt SFC display column setting value n 8 384 16 192 22 138 28 108 32 96 4 SFC PROGRAM CONFIGURATION 2 Serial transition operation flowchart ALA F Initial step Transition condition a Step 1 Transition condition b Step 2 Transition condition c Step 3 HH Transition condition d END step Ope
2. po fon 0 1 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 1 0 4 0 4 THEE S6 S5 S4 None S2 1 S0 S10 S9 None S7 None S5 S4 3 2 nformation of block 2 Information of block 1 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 bO D1 0 0 000 0 0 O O 0 1 0 4 0 1 0 4 0 1 O 1 0 1 Corresponding S12 S11 S10 S9 S8 S7 step No All turn to Os since blocks do not exist Information of block 2 5 If there is a nonexistent block in the data to be read the nonexistent block is omitted and the data of the next existing block are read Example When BMOV BL1 S2 DO K2 is executed in the following case e Block 1 The maximum step No is 10 S10 e Block 2 Nonexistent e Block 3 The maximum step No is 12 S12 e Block 4 The maximum step No is 15 S15 data are stored as shown below b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO DO 0 1 0 1 0 4 0 1 0 4 0 1 0 4 0 4 0 4 0 4 0 4 0 4 0 1 0 1 0 1 O 1 PENE s6 S5 S4 3 S2 S1 SO S10 S9 S6 S7 S4 S5 S4 S3 S2 Information of block 3 Information of block 1 m o a er dee b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO D1 0 1 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 1 0 4 0 1 scarab s9 S8 S7 S6 S5 S4 S3 S2 S1 S01 S12 S11 S10 S9 S8 S7 step No Information of b
3. Block 0 so t0 S2 S4 S6 t2 t4 t6 p l sas hs Active steps in corresponding block are executed within 1 scan 3 S5 p S7 Active step t3 tt tS Inactive step 2 At the end of the operation output execution at each step whether the transition condition to the next step is satisfied or not is checked a When the transition condition is not yet satisfied the operation output of the same step is also executed in the next scan b When the transition condition is satisfied the outputs turned ON by the OUT instruction at the executed steps are all turned OFF When the next scan is executed the operation output of the next step is executed At this time the operation output of the step executed previously is deactivated unexecuted The CPU module processes only the program of the operation output of the currently active step and the transition condition to the next step Example The execution sequence from a program start till a transition from the initial step to step 1 is as shown below CPU module RUN END processing END processing END processing output output output executed executed executed SM321 ON SM321 ON SM321 ON Initial step Initial step Step 1 operation operation operation SFC program Block 0 Transition condition Transition condition Transition condition unsatisfied satisfied unsatisfied e The step whose attr
4. SFC comment eae is Turns on the instructions SFC comment inactivated S P SFCSCOMR to read the System SM735 readout instruction in SFC step comments and S P status SFC comment e Indicates whether the program Program execution execution management SFC SM332 management SFC Not executed program is being executed or S status program execution Being executed not change execution flag SFCTCOMR to read the SFC change readout i Se transition condition comments instruction is activating po Basic model CPU 1 Available with the CPU module whose function version is B or later 2 Available with the CPU module whose serial number first five digits is 04122 or later 3 Available with the CPU module whose serial number first five digits is 07012 or later 4 Available with the CPU module whose serial number first five digits is 07032 or later APP 5 APP 5 APPENDICES APPENDIX 1 2 Special Register SD List Corresponding CPU i Set by Number Name Meaning Explanation When set Basic model QCPU High Performance model QCPU Process CPU Redundant CPU Universal model QCPU LCPU e Set the set time of the step transition watch dog timer and the annunciator No F No that will turn ON at time out of the watch dog timer b15 to b8 b7 to bO 4 4 Step transition monitoring Timer set value F number setting Timer time limit timer setting and F No at 0 to 255 settin
5. Jn Y0 to ___ Link output 16384 14 Hexadecimal Bit device Jn Y3FFF 15 Link direct Link relay 32768 Jn BO to Jn B7FFF Hexadecimal device Link special relay Jn SBO to Jn SB1FF Hexadecimal i Jn WO to 2 Link register 131072 Hexadecimal Word Jn W1FFFF device _ f Jn SWO to Link special register 512 Hexadecimal Jn SW1FF Continued to the next page 3 SPECIFICATIONS Table 3 5 Device List continued EEEN ue Default Parameter assification e evice name Intelligent function module Un G0 to 65536 Decimal N A device Un G65535 2 Module access Word U3En G0 to ka 2 4096 Decimal device device Cyclic transmission area U3En G4095 device 4 U3En G10000 to Setting 14336 Decimal U3En G24335 available Index Word Index register standard device register standard 2 20 ZO to Z19 Decimal N A device register device register File register 7 File register 0 to 4086k Extended data Word Extended data register 0 16 points register 7 device 6 24 Extended link Word Extended link register register 7 par Nesis ts nto Decimal na Panay e317 oe ats Pomer N A Interrupt pointer TE 10 10 to 1255 11 SFC block device 32025 25 BLO to BL319 12 Network No Specification J1 to J255 Decimal device Others E 1 7976931348623157 308 UO to UFF U3E0 to I O No specification device Hexadecimal U3E3 13 Macro instruction argument VDO to VD9 Decimal ae Constant Character s
6. aXi3 Interlock such as emergency stop Clamp DOWN M1 X17 X10 step 6 0M1 gt Hir lt Y22 gt Clamp DOWN endpoint aX17 Interlock such as emergency stop Headstock ADVANCE M2 X12 step 7 QM2 Hrm 20 gt 4 y SFC program Sequence program 1 GENERAL DESCRIPTION i i SSS 3 Ease of division editing of blocks and steps according to control object A total of 320 blocks 1 can be created in a whole SFC program e Up to 512 steps 1 can be created in a single block Up to 2k sequence steps of operation outputs transition conditions can be created in all blocks By dividing blocks and steps as shown below tact time can be shortened and debugging test operation can be performed easily e Blocks are divided properly according to the operation units of machines e Steps in each block are divided properly 320 blocks 1 Block 0 Block 1 Block 319 Initial Operation output transition Initial L nnn J Initial step condition program step step J axo na m Step 1 oY20 oT0 K20 Step 1 Step 1 1 J aT0 ar ae 512 steps Step 2 oY21 Step 2 Step 2 J ax ali i i Operation output transition condition 2k sequence steps in all blocks x1 For the following CPU modules 128 blocks and 128 steps can be created e Basic model QCPU e Universal model QCPU QOOUJCPU QOOUCPU Q01UCPU and Q02UCP
7. x1 The LCPU does not support this function 2 This function can be executed only when a CPU module and programming tool are used in the following combination CPU module Programming tool GX Devel Version 8 High Performance model QCPU se eel iat or later whose first five digits of serial No are 04122 or later GX Works2 Process CPU GX Developer Version 8 whose first five digits of serial No are 07032 or later or later Redundant CPU Version 8 18U or later 3 The Universal model QCPU and LCPU do not support the use of this function in the RUN status 4 This function can be executed only when a CPU module and GX Works2 are used in the following combination CPU module Programming tool Universal model QCPU other than the QOOUJCPU QOOUCPU Q01UCPU and QO2UCPU serial number OK WONSA E T a Version 1 34L or later first five digits is 12052 or later 6 SFC PROGRAM EXECUTION 6 6 1 Operation at program change made by write to PLC 1 When program was written with CPU module in PAUSE STOP status a Program start after write to PLC An initial start is performed independently of the SFC start mode setting initial start resume start Depending on the SFC program change however an initial start is not made but a resume start may be made at the resume start setting Refer to Section 4 7 1 for details of the SFC program start mode b Device status at program start At a program start after write t
8. 2 The contact status changes as described below depending on whether the specified transition condition is specified for a forced transition or not Contact of N O Contact Contact of N C Contact Instruction Instruction When specified for forced ON OFF transition When not specified for forced ae OFF transition 4 SFC PROGRAM CONFIGURATION 3 Specify the transition as described below a In the case of SFC program 1 Use Sn when specifying the step in the current block 2 Use BLm Sn when specifying the step in another block in the SFC program b In the case of sequence program 1 Use BLm Sn when executing the step activation check instruction 2 When the block number is not specified specify the block number with the BRSET instruction 4 If the transition condition in question does not exist in the SFC program it will remain OFF Program Examples 1 The following program turns ON Y20 when transition condition 5 of block 3 is specified for a forced transition When step is designated by operation output of block 3 aTR5 orzo When step is designated by operation output of other than block 3 aBL3 TRS oY20 When step is designated by sequence program BL3 TR5 i Related Instructions 1 SFC control instructions Transition control instructions sTRn sBLm TRn PTR BEMI RI e e a a aa a See Section 4 4
9. Execution SP SFCTCOMR i instruction l i l Execution l Execution I starts to read completes to read comment comment Reading comments 9 For the comment files to be used with S P SFCTCOMR set them in the PLC File tab of the PLC parameter dialog box or at file set instruction QODSET P for comments Executing S P SFCTCOMR without setting of comment file to use 0 is stored to the total number of transition conditions 01 0 and the number of transit condition that have read comments 5 1 At this time the device specified in 02 turns ON for 1 scan 10 With S P SFCTCOMR instruction comments stored in the following memories can be read SRAM card drive 1 e Flash card drive 2 e Standard ROM drive 4 The comments stored in the ATA card or the SD memory card cannot be read If the S P SFCSCOMR instruction is executed to the ATA card or SD memory card where the comments are stored an operation error error code 4130 occurs 4 110 4 110 4 SFC PROGRAM CONFIGURATION 4 111 11 While SFC program is not executed reading comments is not performed even if executing S P SFCTCOMR instruction Executing S P SFCTCOMR at a status of SFC program not being activated 0 is stored to total number of transition conditions 61 0 and the number of transition condition that have read comments 01 1 At this time the device specified in 02 turns ON for 1 scan 12 With S P SFCTCOMR in
10. 4 SFC PROGRAM CONFIGURATION Operation Error e When the specified transition condition does not exist or the SFC program is in a wait state EEE E ha Avia ell awilonwilenwil ign E aie ni bean Error No 4631 Program Examples 1 When X1 switches ON the following program executes a forced transition at transition condition 1 of block 1 The forced transition setting is canceled when X2 switches ON When step is designated by operation When step is designated by operation output of block 1 output of other than block 1 ax ax2 aXx1 sTR1 rTRI E sBL1 TR1 When step is designated by sequence program X1 ax2 rBL1 TR1 SET BL1 TR1 RST BL1 TR1 POINTS This instruction checks from the first sequence step of the specified block in series whether or not the specified transition condition number is existed Because of this processing time of the instruction differs depending on the program capacity of the specified block number of sequence steps a maximum of hundred and several tens ms may be taken In case of occurring WDT error error code 5001 change the WDT setting value with the PLC RAS setting in the PLC parameter 4 SFC PROGRAM CONFIGURATION QCPU ae Oe a Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU 0 o a 4 4 10 Active step change instruction SCHG Usable Devices Programs ea Instruction
11. 4 2 9 4 2 10 4 2 11 4 3 3 4 3 5 4 4 4 4 1 to 4 4 11 4 5 4 5 3 4 6 4 7 4 7 3 4 7 4 4 7 5 4 7 6 4 8 1 4 8 2 5 2 5 2 1 5 2 2 5 2 3 5 3 1 6 1 6 1 1 6 3 1 6 3 2 6 4 3 6 6 Appendix 1 1 1 2 2 CONDITIONS OF USE FOR THE PRODUCT Section 3 2 4 Apr 2010 SH NA 080076 N Dec 2010 SH NA 080076 O New models of the Universal model QCPU have been added Model addition Q50UDEHCPU Q100UDEHCPU Partial correction GENERIC TERMS Chapter 2 Section 3 1 2 3 3 1 4 2 4 2 8 4 3 3 5 2 2 Partial correction Section 4 3 4 Jul 2011 SH NA 080076 P New models of the LCPU have been added Model addition LO2CPU P L26CPU PBT Partial correction GENERIC TERMS Section 1 2 Chapter 2 Section 3 1 2 3 2 4 3 3 1 4 2 4 2 8 4 2 9 4 3 3 5 2 2 Nov 2011 SH NA 080076 Q The serial number first five digits of the Universal model QCPU has been upgraded to 13102 Partial correction SAFETY PRECAUTIONS ABOUT MANUALS Chapter 4 Section 4 4 4 4 1 4 4 8 4 4 9 4 4 10 4 5 6 1 Appendix 1 2 The manual number is given on the bottom left of the back cover Print Date Manual Number Revision Feb 2013 SH NA 080076 R New models of the Universal model QCPU and LCPU have been added Model addition QO3UDVCPU Q04UDVCPU QO6UDVCPU Q13UDVCPU Q26UDVCPU LO2SCPU LO6CPU L26CPU Partial correction GENERIC TERMS
12. coil output e Normal operation is performed until the OFF transition condition is satisfied e Remains ON e When the transition condition is satisfied the coil output STOP after end processing of the corresponding step is held transition performed At the same time the transition destination step becomes active and the block is stopped before execution of the operation output OFF orno e Immediately after a STOP request is made setting the block is stopped with the coil output of the immediate operation output being held e The status remains active e Normal operation is performed until the transition condition is satisfied e When the transition condition is satisfied the end processing of the corresponding step is performed At the same time the transition destination step becomes active and the block is stopped before execution of the operation output e Immediately after a STOP request is made the coil e Immediately after a STOP request is output of the made the coil output of the operation operation output is output is turned OFF and the block is turned OFF and the stopped block is stopped e The status remains active e The status becomes inactive e Immediately after a STOP request is made the block is stopped with the coil output of the operation output being held e The status remains active coil output held STOP after transition The held step indicates the step whose attribute ha
13. 2 Available with the Universal model QCPU whose serial number first five digits is 13102 or later APP 7 APP 7 APPENDICES APPENDIX 2 1 Step Transition Watchdog Timer Replacement Method APP 8 1 Operation of step transition watchdog timer The step watchdog timer measures the ON time of the special relay for step transition watchdog timer start SM90 to SM99 and when it exceeds the time set to the special register for step transition watchdog timer setting SD90 to SD99 the corresponding annunciator F set to any of SD90 to SD99 is turned ON The following figure shows a step transition watchdog timer program sof s b15 b8 b7 bO s2 _ osmo Smee s3 _ ON while active F No setting Timer time limit setting 0 to 255 0 to 255s Turns OFF when transition condition is satisfied 1s unit 2 Step transition watchdog timer replacement method When performing the same operation as that of the step transition watchdog timer create the following program at the operation output S1 _ oTo Km m Watching time unit 10ms t1 aTo t2 S2 _ oFo s3 _ oe 4 APP 8 APPENDICES APPENDIX 2 2 Periodic Execution Block Replacement Method APP 9 1 Operation of periodic execution block A periodic execution block is executed in each scan where the specified execution interval has elapsed The following figure shows the operation performed when blocks 0 1 2 10
14. 2 The output mode at block stop can be changed by turning ON OFF SM325 during the operation of the SFC program During the operation of the SFC program the parameter setting is ignored 4 SFC PROGRAM CONFIGURATION 4 7 4 Periodic execution block setting The periodic execution block setting designates the execution of a given block at specified time intervals rather than at each scan 1 Setting items Designate the first block number and the time of execution for the periodic execution blocks When these settings are designated the first block and all subsequent blocks will become periodic execution blocks The execution time interval setting can be designated in 1 ms units within a 1 to 65535 ms range 2 Periodic execution block operation method Periodic execution block operation occurs as shown below 1 scan Execution interval Execution interval 1 Sequence programs executed at each scan 2 Blocks executed at each scan 3 END processing 4 Periodic execution blocks 1 Until the specified time interval elapses only the sequence programs and blocks designated for execution at each scan will be executed 2 When the specified time interval elapses the periodic execution blocks will be executed following execution of blocks designated for execution at each scan If the specified time interval is shorter than the scan time the periodic execution blocks will be executed at each scan in the same manne
15. BL3 S0 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 bO DO S15 S14 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 SO D1 Step Nos 31 S30 S29 S28 S27 S26 S25 S24 S23 S22 S21 S20 S19 S18 S17 S16 02 EAE L S47 S46 S45 S44 S43 S42 S41 S40 S39 S38 S37 S36 S35 S34 S33 S32 Related Instructions 1 SFC control instructions e Block switching instruction BRSET ceeeeeeeeeeee See Section 4 4 11 e Step operation status check instruction a b amp a amp b la ID eee eeeeeeeeeeteeetees See Section 4 4 1 e Active step batch readout instruction MOV DMOV sses See Section 4 4 4 4 SFC PROGRAM CONFIGURATION QCPU PCP Applicable _Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU ee ee O ae ee O S d oO Jo The serial number first five digits shall be 04122 or later 4 4 6 Block START amp END instructions s r Usable Devices i l Data Type SFC SFC Program Y Sequence Transition Block Step Program Transition Condition Condition Internal Device System User woa R ehel 3 i Device name L sO BLm L r BLm t m is a block No t m is a block No Function 1 Block START instruction sBLm a A specified block is forcibly activated independently and is executed from its initial step When there are multiple initial steps all initial steps become active When the bock ST
16. Link special register 2048 SW0 to SW7FF Function input FXO to FXF i er Bit device Function output FYO to FYF nternal system ee Special relay 2048 SMO to SM2047 N A Word Function register FDO to FD4 device Special register 2048 SDO to SD2047 Module access Word Intelligent function module Un GO to 65536 Decimal N A device device device Un G65535 2 Index register standa Word Index register standard device y Z0 to Z19 Decimal rd device _ device register register Continued to the next page Internal user device 3 SPECIFICATIONS Table 3 6 Device List continued EEEE aes Default Parameter assification e evice name Word File register File register Decimal device 0 to 384K o Extended data Word D12288 to pie i Extended data register 128K Decimal points in total register device D143359 1 3 in 1K units Extended link Word Extended link register Hexadecimal EA iy Eg 5 Notont4 Decimal na poo feo PO to P4095 7 N A 7 Pomer B pointer 256 lo to 1255 BLO to BL319 points Bit device SFC block device Decimal Others E I O No specification device U0 to UFF 5 N A Macro instruction argument 10 VDO to VD9 Decimal device For the LO2SCPU LO2SCPU P LO2CPU LO2CPU P the number of points is 32K D12288 to D45055 2 The number of points that can be actually used varies depending on the intelligent function module Refer to the manual for e
17. Section 1 2 Chapter 2 Section 3 1 2 3 2 4 3 3 1 4 2 4 2 8 4 2 9 4 3 3 5 2 2 Jun 2013 SH NA 080076 S New models of the LCPU have been added Model addition LO2SCPU P LO6CPU P L26CPU P Partial correction GENERIC TERMS Section 1 2 Chapter 2 Section 3 1 2 3 2 4 3 3 1 4 2 4 2 8 4 2 9 4 3 3 5 2 2 Jun 2014 SH NA 080076 T The serial number first five digits of the LCPU has been upgraded to 16042 Partial correction Section 3 2 4 Japanese Manual Version SH 080072 V INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC Q L series programmable controllers Before using the product please read this manual carefully and develop familiarity with the functions and performance of the MELSEC Q L series programmable controllers to handle the product correctly Please make sure that the end users read this manual CONTENTS SAPERY PRECAUTIONS i E T E E tad Revie seca eels Mase Berta cave ced udev atena Paste levies A 1 CONDITIONS OF USE FOR THE PRODUC cccceccceceeceeeeteeeeeeeseeeseeeseeeeeaeeseeeseaeseaeseeeseaeseaeseaeeeaeeeaeeeas A 2 REVISIONS tia Pith eae bie anne An Ae de tee ile tet iets A 3 INTRODUG TION ee sacs ess scadecast fevecth a a caug ede cas leah caue cart sedetee caus sds e aea O Aaa AA aa ATES A 6 CONTENT Sa naeran Ae Setters ae a a eee a aaa vat aieeidek a e ra data A 6 ABOUTMANUAL S saarnasi a a A a E a a
18. While SFC program is not executed reading comments is not performed even if executing S P SFCSCOMR instruction Executing S P SFCSCOMR instruction at a status without SFC program being executed 0 is stored to the total number of steps 01 0 and the number of steps that have read comments 01 1 At this time the device specified in 02 turns ON for 1 scan 12 With S P SFCSCOMR instruction comments for the normal SFC program can be read Comments of a SFC program to control program execution are not read Executing S P SFCSCOMR instruction specifying a SFC program for program execution control 0 is stored to the total number of transit conditions 01 0 and the number of steps that have read comments 01 1 At this time the device specified in 2 turns ON for 1 scan 13 S P SFCSCOMR instruction cannot be executed simultaneously with S P SFCSCOMR instruction or S P SFCTCOMR instruction Executing S P SFCSOMR and if S P SFCSCOMR instruction or S P SFCTCOMR instruction is executed before reading comments completed the 2nd instruction will be deactivated 14 When the S P SFCSCOMR instruction is attempted to be executed while SM721 is on the instruction will not be executed However when the execution condition is met the instruction will be executed in the next scan SM721 turns on in the following operations e The S P SFCSCOMR instruction or the S P SFCTCOMR instruction is executed
19. after the instruction which exists individually and does not require execution conditions __ MELSAP L description Example of proper 579 MOV DO D100 DI MOV DO D100 description Example of improper a DI oY 70 MOV DO D100 Y70 description Ta MOV DO D100 b Up to 24 instructions can be described for one operation output The timer continues measurement while the step is active e The instruction which requires execution conditions cannot be created between FOR and NEXT instructions 4 SFC PROGRAM CONFIGURATION SSS SESS SSS 4 Transition condition program a Transition condition program expression Transition condition programs can be used only for contact or contact equivalent instructions The transition condition program is expressed as the following ladder circuit ane ai TRAN is a dummy output Condition b Instructions used Instructions which can be used in a transition condition program are listed below CPU Module Type High N Performance Instruction f Universal Instruction expression Function Basic model Model QCPU Code model QCPU Process CPU Redundant Operation START N O contact Serial connection N O contact Parallel connection N O contact Operation START N C contact Serial connection N C contact Parallel connection N C contact Leading edge pulse operation START Leading edge pulse serial connection Leading edge pulse parallel connection Trai
20. amp bBLm H m is a block No and is a contact Function 1 Checks whether the specified block is active or inactive 2 The contact status changes as described below depending on whether the specified block is active or inactive Contact of N O Contact Contact of N C Contact Block Status Instruction Instruction 3 The contact is always OFF if the block that does not exist in the SFC program is specified As the BLm device is treated as a virtual device the contact on the monitor of a peripheral device does not turn ON OFF If the internal device is ON the coil instruction is switched ON for operations 4 SFC PROGRAM CONFIGURATION Program Examples 1 The following program turns ON Y20 when block 3 is active aBL3 oY20 Related Instructions a SFC control instructions e Block START instruction sBLm and block END instruction rBLM eceeeeeeeeeeee See Section 4 4 6 b SFC diagram symbols e Block START step Bm H Bm HF cece See Sections 4 2 8 and 4 2 9 c SFC information device Block START END Dit cece ceeeeeeeeeeeeeeneeeeeeeeeens See Section 4 5 1 4 SFC PROGRAM CONFIGURATION QCPU Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU ee a ae se ee ee ee d O ee Ee The serial number first five digits shall be 04122 or later 4 4 4 Active step batch readout instruction
21. and the coil where the OUT instruction is ON is switched OFF v 4 END processing If other blocks exist subsequent the block in question END processing will be executed after those blocks have been processed Y 5 Instruction operation of the step n 1 next to the step which is deactivated at the previous scan END processing is performed after all the program files set to the scan execution type in the program setting of the PLC parameter dialog box have been executed Refer to the QCPU User s Manual Function Explanation Programming Fundamentals for the detailed processing order of the programs other than the SFC program and their processings 5 SFC PROGRAM PROCESSING SEQUENCE 2 Transition processing for continuous transition ON setting The SFC program processing procedure with continuous transition will be explained 1 Active step n instruction operation 2 Transition condition satisfied unsatisfied check When transition condition When transition condition is unsatisfied is satisfied 3 END processing 3 The active step n is deactivated and the coil If other blocks exist subsequent the block where the OUT instruction is ON is switched OFF in question END processing will be executed after those blocks have been processed 4 Step n 1 is activated and its instruction operation is executed 4 Instruction operation for the same step n as that at the prev
22. execution proceeds to step 4 in the same scan since SM324 is ON 1 When a jump transition or selection coupling causes a transition from multiple steps to one step the operation output of one step may be executed twice in a single scan Step 1 Step 2 When the setting is with continuous transition in the case as shown on the left execution passes through Condition Condition step 3 twice in a single scan satisfied satisfied __ step 3 Condition satisfied bee Step 4 2 In the case of with continuous transition a step start end is made within one scan Since the END processing is not executed in this case the coil output turned on by the OUT instruction in the operation output is not reflected on the device When the coil output is the Y output actual output is not provided In addition ON of the step relay cannot be detected 3 In the case of a program that uses a jump transition for looping care must be taken when the transition conditions in the loop are all satisfied during execution at the with continuous transition setting since an endless loop will occur within one scan resulting in WDT Err No 5001 4 SFC PROGRAM CONFIGURATION 4 5 6 Number of active steps register The number of active steps value for a given block is stored at this register 1 The number of active steps value for a given block is stored Specified device _ _tt_ 1 Number of steps 2 Th
23. roz4 coto c1023 device Data register 12288 DO to D12287 Link register 8192 WO to W1FFF Link special register 2048 SW0 to SW7FF Function input FXO to FXF Bit device Function output FYO to FYF Special relay 2048 SMO to SM2047 N A device FS Function register 5s FDO to FD4 FS Special register 2048 SDO to SD2047 Link input 8192 Jn X0 to Jn X1FFF Link output 8192 Jn Y0 to Jn Y1FFF Bit device ae Link relay 16384 Jn BO to Jn B3FFF Link direct Je Link special relay 512 jmsBo to Jn SB1FF N A levice wer Link register 16384 Jn W0 to Jn W3FFF or device i Jn SWO to Link special register 512 Hexadecimal Jn SW1FF Intelligent function module Un GO to 65536 Decimal N A Module access Word _ device Un G65535 2 device device Cyclic transmission area U3En GO0 to Setting i 14336 Decimal device 4 U3En G4095 available Continued to the next page Internal system 3 10 3 10 3 SPECIFICATIONS Table 3 4 Device List continued Classificati Deyi Default Parameter Point Range setting range Word 0 to 1018k File register File register i ee hesin hs Notin to N14 Decimal pone se poe Pons Pomer Interrupt pointer a 10 to 1255 Bit device SFC block device 320 BLO to BL319 Network No specification TRO to TR511 Decimal device Others I O No specification device to J255 Hexadecimal Macro instruction argument U0 to UFF Hexadecimal E Decimal constant HO to HFFFFFFFF Single precision
24. 4 62 4 62 4 SFC PROGRAM CONFIGURATION SSS SESS SSS SS SSS 2 Step END instruction r a A specified step at a specified block is forcibly deactivated Coil HOLD and operation HOLD steps are subject to this instruction b When the number of active steps in the corresponding block reaches 0 due to the execution of this instruction END step processing is performed and the block becomes inactive When the bock START END bit of the SFC information devices has been set the corresponding bit device changes from ON to OFF c If the RST instruction is executed at a step located in a parallel branch the parallel coupling condition will remain unsatisfied d If a specified step is already inactive when this instruction is executed the instruction will be ignored equivalent to the NOP instruction e When the operation output is used to end the step do not specify the current step as the specified step number If the current step is designated as the specified step number normal operation will not be performed sC S1 tS S2 f Specify the step as described below 1 In the case of SFC program e Use Sn when specifying the step in the current block e Use BLm Sn when specifying the step in another block 2 In the case of sequence program e Use BLm Sn when executing the step END instruction in the sequence program e When the block number is not specified specify the block number with t
25. 9 e Block switching instruction BRSET eeeeeeee See Section 4 4 11 POINTS This instruction checks from the first sequence step of the specified block in series whether or not the specified transition condition number is existed Because of this processing time of the instruction differs depending on the program capacity of the specified block number of sequence steps a maximum of hundred and several tens ms may be taken In case of occurring WDT error error code 5001 change the WDT setting value with the PLC RAS setting in the PLC parameter 4 SFC PROGRAM CONFIGURATION QCPU PCP Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU DOA n d O S 6 S O d oO Jo The serial number first five digits shall be 04122 or later 4 4 3 Block operation status check instruction a b amp a amp b la Ib Usable Devices Programs Instructions Execution Site Internal Device Finke Direct Intelligent Data SFC SFC Program System User i i Function Index Constant Expansion aes Type Sequence Block Ste Transition _ woal Mode ZEF KH SFC Program Transition P Condition o r mt r i NGu Condition Device name When expressed in a circuit When expressed in a circuit Py BLm k aBLm La aBLm BLm x aBLm BLm bBLm T bBLm tH KR BLm xk amp aBlm T x amp aBLm L 1 ieee xk BLm x bBLm BLm amp bBLm Te g
26. Block Restart Status Vinen Me START condition of Block O is Operation is restarted from the initial Auto START ON in the SFC setting of the p step following END step processing Block 0 PLC parameter dialog box When the START condition of block 0 is The block is deactivated after END Auto START OFF in the SFC setting of the step processing and processing is PLC parameter dialog box restarted from the initial step when Other than block 0 another START request occurs for that block Program Example Use the contact of the block START END bit when a transition occurs after block 1 ends Block 0 Block 1 Block 2 cof to bMO O i 17 S2 1 Using BL1 instead of block t2 t2 T START END bit as contact the same operation can be performed Related Instructions 1 SFC control instructions e Block START instruction sBLm block END instruction SO S1 S2 BL1 gC acs Aa E i Y AERE ETEN EE IEE ate Aa nea deat See Section 4 4 6 2 SFC diagram symbols Block START step BME BME cccscceseecseeseeeee See Sections 4 2 8 and 4 2 9 4 SFC PROGRAM CONFIGURATION 4 5 2 Step transition bit The step transition bit is designed to check whether the transition condition of the step in execution has been satisfied or not 1 After the operation output at each step is completed the step transition bit automatically switches ON when the transition condition for transition
27. D and extended link register W The device cannot be used on the QOOUJCPU For the QOOUJCPU QOOUCPU and Q01UCPU the number of points is 512 For the QOOUJCPU QOOUCPU and Q01UCPU the range is PO to P511 10 For the QOQOUJCPU QOOUCPU and Q01UCPU the number of points is 128 11 For the QOOUJCPU QOOUCPU and Q01UCPU the range is 10 to 1127 12 13 14 15 16 417 18 19 20 21 22 For the QQOUJCPU QOOUCPU Q01UCPU and QO2UCPU the range is BLO to BL127 The range differs depending on the CPU module UO to UF for the QQOUJCPU UO to U3F and U3E0 to 3E2 for the QOOUCPU and Q01UCPU and UO to U7F and U3E0 to U3E2 for the QOD2UCPU For the Universal model QCPU whose serial number first five digits is 12011 or earlier the number of points is 8192 For the Universal model QCPU whose serial number first five digits is 12011 or earlier the range is Jn X Y0 to Jn 1 FFF For the Q50UDEHCPU and Q100UDEHCPU the number of points is 128k For the Q50UDEHCPU and Q100UDEHCPU the points is 8192 For the Q50UDEHCPU and Q100UDEHCPU the range is PO to P8191 The changeable range differs depending on the CPU module within 30k words for the QO3UDVCPU within 40k words for the QQ4UDVCPU and QO6UDVCPU and within 60k words for the Q13UDVCPU and Q26UDVCPU The number of points differs depending on the CPU module 9216 for the QO3UDVCPU 15360 for the QO4UDVCPU and QO6UDVCPU and 28672 for th
28. HOLD step is a step where the coil output status is maintained in the transition to the next step The coil output is switched ON by the OUT instruction when the transition condition is satisfied 1 During normal SFC program operation the coil ON status switched ON by OUT instruction when transition condition is satisfied is automatically switched OFF before proceeding to the next step By designating an operation output step as a coil HOLD step the coil ON status will remain in effect when proceeding to the next step When designated as a coil HOLD step When not designated as a coil HOLD step SC 0Y10 ON Transition ON ON Transition OFF condition al condition satisfied satisfied e At a designated coil HOLD step Y10 At steps not designated as coil HOLD steps switched ON by OUT instruction will remain Y10 switched ON by OUT instruction is ON even when the transition condition is automatically switched OFF when the satisfied transition condition is satisfied 2 No ladder processing occurs following a transition to the next step 4 SFC PROGRAM CONFIGURATION 3 When a coil ON status at coil HOLD step has been maintained to the next step the coil will be switched OFF at any of the following times a When the end step of the corresponding block is executed Except when SM327 is ON b When an SFC control instruction rBLm designates a forced END at the block in question c When an SF
29. ON for 1 scan S P SFCTCOMR instruction executed END END 0 END END 0 Sequence program Comment readout completed I Comment readout as l Tota number Of transition Previous value 0000H Current value conditions 1 0 i 1 Number of transition i conditions that have Previous value 00001 X Current value read comments 1 i Comment 2 to Previous value X Indefinite value X Current value ON IESE 1 scan iania gt K gt K Specified device at OFF 4 109 4 109 4 SFC PROGRAM CONFIGURATION 8 The operation when a command of S P SFCTCOMR instruction is in ON status at S P SFCTCOMR instruction execution completed is as follows a S SFCTCOMR instruction re executes when a command for S SFCTCOMR instruction is in ON status S SFCTCOMRH END Sequence program I on Command for ON S SFCTCOMR l i l instruction OFF l l i l l 1 l Execution Execution S SFCTCOMR i i instruction l l I Execution Execution Execution I starts to read completes to read starts to read i comment comment comment Reading comments b Even if a command for SP SFCTCOMR instruction turns ON SP SFCTCOMR instruction is not executed S SFCTCOMR S SFCTCOMR H END 0 END 0 jos 0 Sequence program END 0 1 Command for ON SP SFCTCOMR l i l instruction ORF i l ae
30. RUN When the SFC program starts block 0 also starts Q parameter setting PLC name PLC system PLC file PLC RAS 1 PLC RAS 2 Device Program Boot file SFE vo assignment Built in Ethernet port SFC program start mode Initial start C Resume start Start conditions Autostart block 0 C Do not autostart block 0 Output mode when the block is stopped Tum OFF C Keep ON Acknowledge XY assignment Multiple CPU setting 2 Start and stop using the special relay for SFC program start stop SM321 SM321 turns ON when an Auto START is made using the PLC parameter a Turn OFF SM321 to stop the SFC program execution b Turn ON SM321 to start the SFC program 3 Start and stop using the PSCAN POFF instruction except the Basic model QCPU SM321 turns ON when an Auto START is made using the PLC parameter a When the POFF instruction is executed the SFC program in execution turns off the output and then stops The execution type changes to the stand by type b When the PSCAN instruction is executed the stand by type SFC program can be started However when the SFC program has not been set to the scan execution type SM3271 is OFF in the program setting of the PLC parameter dialog box the SFC program is started by turning ON Sm321 The execution type changes to the scan execution type 6 SFC PROGRAM EXECUTION 6 1 1 SFC program resumptive START procedure The SFC program START f
31. Version 8 a SW8D5C GPPW E or later GX Developer Version 8 18U SW8D5C GPPW E or later E SW8D5C GPPW E or later ania SW8D5C GPPW E or later GX Developer Version 8 68W SW8D5C GPPW E or later GX Developer Version 8 78G SW8D5C GPPW E or later GX Developer Version 8 89T SW8D5C GPPW E or later GX Works2 Version 1 24A SW1DNC GXW2 E or later GX Works2 Version 1 25B SW1DNC GXW2 E or later GX Works2 Version 1 56J SW1DNC GXW2 E or later GX Works2 Version 1 98C SW1DNC GXW2 E or later GX Works2 Version 1 492N SW1DNC GXW2 E or later O Available x Not available A Partly available 1 Available only with the QO2UCPU QO3UDCPU QO4UDHCPU and QO6UDHCPU 2 Available only with the Q12PHCPU and Q25PHCPU x3 Available only with the QQ2UCPU QO3UDCPU QO4UDHCPU QO6CDHCPU Q13UDCPU and Q13UDHCPU x4 Available only with the QOQ2UCPU QO3UD E CPU Q04UD E HCPU QO6UD E HCPU Q13UD E HCPU and Q26UD E HCPU x5 Available only with the QOOU J CPU QOOUCPU Q02UCPU Q03UD E CPU Q04UD E HCPU QO6UD E HCPU Q10UD E HCPU Q13UD E HCPU Q20UD E HCPU and Q26UD E HCPU x6 Available only with the QOOUJCPU QOOUCPU Q01UCPU Q02UCPU QO3UDCPU QO3UDECPU QO4UDHCPU Q04UDEHCPU QO6UDHCPU QO6UDEHCPU Q10UDHCPU Q10UDEHCPU Q13UDHCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDEHCPU Q50UDEHCPU and Q100UDEHCPU x7 Available only with the LO2CPU LO2CPU P L26CPU BT and L26CPU PBT 8 Available only with the LO2CP
32. and 11 are used and blocks 10 and 11 are set as the periodic execution blocks Yy 1 scan 1 scan 1 scan 1 scan Pit ED D D D amp amp amp N N N N Blocks 8 Blocks Blocks 8 Blocks 8 Blocks Blocks 8 0 1 2 S 0 1 2 10 11 8 01 2 8 01 2 10 11 executed 2 executed executed executed executed executed 2 z z z z wi wi wi wi Execution interval Execution interval 2 Periodic execution block replacement method When the execution interval measured by the timer in the sequence program reaches the set time the specified block is activated by the STOP RESTART bit When the set time is not reached the block is in a stop status To hold the output also when the block is in a stop status select Change OUT instruction in specified block to SET instruction or Coil output held for stop time output mode SM402 SM400 Corresponding block STOP RESTART bit APP 9 APPENDICES APPENDIX 2 3 Forced Transition Bit TRn Replacement Method 1 Operation by forced transition bit The forced transition bit forcibly satisfies a transition condition When the forced transition bits are used the preset input conditions can be ignored and the transition conditions can be satisfied in due order Sequence program SFC program MO User set transition SET BLO TRO L_ so condition M10 to TRAN HRS BLO TRO M1 st User set transition SET BLO TR1 conditio
33. block No and n is a step No Function 1 A batch readout designated number of words of step operation statuses is executed at the specified block 2 The readout results are stored at the D device as shown below b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO 0 1 0 4 0 1 0 4 0 4 0 1 0 4 0 4 0 1 0 4 0 4 0 14 0 1 0 1 0 1 0 1 Be cath ee EE gt ee Step designated at Sn Step S n 15 Step S n 1 0 Step in question is inactive 1 Step in question is active a S n 16 D A 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Step S n Ax16 15 Step S n A x 16 3 The bit corresponding to the unassigned step No nonexistent step No in the read data turns to o 4 SFC PROGRAM CONFIGURATION SSS SSS SSSA 4 If the read data range exceeds the maximum step No in the block the data of the next block No are read When there are no blocks in and after the block to be read 0 is stored into the remaining bits Example When BMOV BL1 S2 DO K2 is executed in the following case e Block 1 The maximum step No is 10 S10 and step 5 S5 and step 8 S8 do not exist e Block 2 The maximum step No is 12 S12 and step 3 S3 does not exist e Block 3 and later Do not exist data are stored as shown below b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bl bO
34. change unit step 7 Number of steps in step 2 Number of steps of transition condition 2 Increasing the number branches in selection branching Addition 12 Number of steps in step 5 Number of steps of transition condition 6 Number of steps of transition condition 7 Increasing the number of branches in parallel branching Addition 7 Number of steps in step 6 Adding an SFC block No relevant SFC blocks Newly o created 0 10 Number of steps in step 0 Number of steps of transition condition 0 When SFC information device is set further 9 steps are reduced 6 SFC PROGRAM EXECUTION 9 Precautions a Online change from another GX Works2 If GX Works executes online change inactive block while another GX Works2 executes online change or program backup a communication error will occur The same occurs if another GX works executes online change or program backup while GX Works2 executes online change inactive block b Excess of the number of SFC steps After addition of SFC steps if the number of SFC steps exceeds the number of step relay S points set in the Device tab of the PLC parameter dialog box a communication error will occur c Online change inac
35. condition unsatisfied satisfied S n 2 Transition condition unsatisfied M1 k pS Step n Transition condition unsatisfied Step n 1 Transition condition satisfied Step n 2 Transition condition unsatisfied Other program executed Step n 4 SFC PROGRAM CONFIGURATION 4 5 3 Block STOP RESTART bit The block STOP RESTART bit is used to temporarily stop processing while the corresponding block is active 1 When the designated block STOP RESTART bit is switched ON by the sequence program or peripheral device processing will be stopped at the current step of the block in question If a START status is in effect at another block the STOP will still occur but the START destination block will remain active and processing will continue To stop the START destination block at the same time the START destination s block STOP RESTART bit must also be switched OFF 2 When a block is stopped by switching the block STOP RESTART bit ON the STOP timing will be as shown below Operation Setting of Operation Status of Held step Output Mode at Output at Active step other than held ste EASA Stop in ae Stop 2 VOF ime cuak D cs ena naio teen Operation HOLD Operation HOLD Mode Bit Coil HOLD step SC step without step with transition PLC Parameter SM325 is not satisfied transition check SE check ST OFF orno e Immediately after a STOP request is made setti
36. detail e Indicates whether the relay or register is set by the system or user and if it is set by the system when setting is performed lt Set by gt S Set by system U Set by user Sequence programs or test operations from GX Developer S U Set by both system and user lt When set gt Indicated only for relays and registers set by system Initial Set only during initial processing when power supply is turned ON or when going from STOP to RUN Status change Set only when there is a change in status Error Set when error occurs Instruction execution Set when instruction is executed Set by When set Corresponding CPU Indicates the corresponding CPU module type name APP 1 APP 1 APPENDICES APPENDIX 1 1 Special Relay SM List Corresponding CPU Set by Number Name Meaning Explanation When set Step transition watch dog timer START corresponds to SD90 Step transition watch dog timer START corresponds to SD91 Step transition watch dog timer START corresponds to SD92 Step transition watch OFF Not started dog timer START Watch dog timer Switched ON to begin the step corresponds to SD93 reset transition watch dog timer count Step transition watch ON Started Watch dog timer is reset when dog timer START Watch dog timer switched OFF corresponds to SD94 start Step transition watch dog timer START corresponds to SD95 Step transition watch d
37. device after DO The number of comment to be read in a single scan is also set in 2 The interlock ladders to perform batch write of SFC program in RUN status or write of comment file in RUN status are included in the following program LJ oYo 0 aX0 amp bSM735 1 _ sMo 2 aX1 amp bMO 2 __ SP SFCSCOMR K1 DO K2 K2 M1 When step is designated by sequence program Ladder Mode List Mode Write execution command in RUN status Write enable flag in RUN status Steps Instruction Device g Comment readout instruction o iD 10 x0 SH735 executing flag 1 ANI SM735 SET HO 2 SET MO XI NO 3 L 4 ANI MO ae O e e o 5 SP SECSCOMR KI Do K2 K2 M a Execution command of SP SFCSCOMR instruction Procedure for batch writes of SFC program in RUN status or write of comment file in RUN status 1 Turns ON the XO write execution command in RUN status 2 MO write enable flag in RUN status is turned ON when SP SFCSCOMR instruction is deactivated 3 Turns OFF the XO write execution command in RUN status 4 Performs batch write of SFC program in RUN status or write of comment file in RUN status 5 Turns OFF the MO write enable flag in RUN status in the device test of the programming tool 6 SP SFCTCOMR instruction is executed again when MO write enable flag in RUN status is turned OFF 4 105 4 105 4 SFC PROGRAM CONFIGURATION QCPU ee ere Appli
38. in units of blocks Before modification After modification Block 100 Block 100 lt Inactive step gt An inactive SFC block lt Inactive step gt can be modified Addition SFC SFC eae reen mA i Block 0 Block 0 Block 100 Block 100 A sialic Block 200 Block 200 lt Active gt lt Active gt Block 200 Block 200 lt Block 319 Block 319 o Se An SFC block other than the one modified remains active 1 Supported program This function can be executed to an SFC program registered in the Program tab of the PLC parameter dialog box When there are multiple programs in the program memory executing this function to a program not registered in the Program tab will result in a communication error 2 Available operations The following operations can be executed to an inactive block with GX Works2 e An SFC information device for the target SFC block can be changed e An SFC information device can be added to the target SFC block Deleting a block e The specified SFC block can be deleted from the SFC program in the CPU module e An SFC information device for the target SFC block can be deleted e When the target block is not in an SFC program in the CPU module a communication error will occur 6 SFC PROGRAM EXECUTION 3 Area to be overwritten a Area to be changed All programs of the target block are overwritten Multip
39. is used as a user interlock condition 4 SFC PROGRAM CONFIGURATION QCPU ae OO E Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU a Eee eee ee es es eed BE 4 4 2 Forced transition check instruction a b amp a amp b la Ib Expansion ives SE Usable Devices Programs Instructions Execution Site Data Type Internal Device Link Direct Intelligent H SFC src Program i System User i i Function Index Constant Sequence Block Step Transition Word Ld BLm TRn Program Transition Condition U Condition Device name When step in current block is specified When step in another block is specified When step is specified in sequence program When expressed in a circuit When expressed in a circuit TRn BLm TRn C aTRn aBLmM TR aBLm TRn 0 BLm TRn bTRn bBLM TRn T hBLm TRn x k BLm TRn as 1 amp aBLm TRn amp aTRn k amp aBLm TRn ok k BLm TRn amp bBLm TRn amp bBLm TRn x OK aBLm TRn aBLm TRn BLm TRn bBLm TRn xk bTRn bBLm TRn m is a block No n is a transition condition No and is a contact Function 1 Checks whether or not the specified transition condition of the specified block is specified for forced transition by the forced transition EXECUTE instruction SET BLm TRn
40. model QCPU A generic term for the QO3UDVCPU QO4UDVCPU QO6UDVCPU Q13UDVCPU and Q26UDVCPU Programming tool A generic term for GX Developer and GX Works2 MEMO 1 GENERAL DESCRIPTION 1 GENERAL DESCRIPTION SFC an abbreviation for Sequential Function Chart is a control specification description format in which a sequence of control operations is split into a series of steps to enable a clear expression of the program execution sequence and execution conditions This manual describes the specifications functions instructions programming procedures etc used to perform programming with an SFC program using MELSAP L MELSAP L can be used with the following CPU modules e Basic model QCPU whose serial number first five digits is 04122 or later e High Performance model QCPU e Redundant CPU e Process CPU e LCPU e Universal model QCPU MELSAP L conforms to the IEC Standard for SFC In this manual MELSAP L is referred to as SFC program diagram 1 The following functions cannot be executed if a parameter that sets the high speed interrupt cyclic interval is loaded into a High Performance model QCPU of which the first 5 digits of the serial number are 04012 or later Step transition watch dog timer see Section 4 6 e Periodic execution block setting see Section 4 7 4 2 The Qn H CPU A A mode cannot use MELSAP L explained in this manual 1 GENERAL DESCRIPTION 1 When created with
41. module type SFC program e Normal SFC program Multiple programs can be set e SFC program for program execution management Cannot be set e Programs such as a subroutine program and interrupt program e Started by the program START instruction for execution Stand by type program wait Fixed scan execution type program e Program executed in a fixed cycle Fixed scan Pot seca CIN ONE Program executed in the extra time of the constant scan x Cannot be set 1 Only one program is allowed for the Universal model QCPU and LCPU x2 The Universal model QCPU and LCPU do not support SFC programs for program execution management 1 When the SFC program set as a stand by type program is to be started the SFC program in execution must be switched to a stand by type program before it is started Refer to Section 5 2 2 for the method of switching between the scan execution type program and stand by type program 2 Specify the execution type of each program file in Program of the PLC parameter dialog box 3 In the Program of the PLC parameter dialog box set the normal SFC program to the number higher than that of the SFC program for program execution management If the normal SFC program is set to the number lower than that of the SFC program for program execution management an error may occur when the SFC program set as a stand by type program is started 5 SFC PROGRAM PROCESSING SEQUENCE 5 2 2 Execution ty
42. next step and execution proceeds to the next step when the condition is satisfied Table 4 2 Transition Condition Type List Function Outline Serial transition e When the transition condition is satisfied execution proceeds from the current step to the subsequent step Selection transition A single step branches out into multiple transition conditions Among those multiple transition conditions execution proceeds to only the step in the line where the transition condition is satisfied first Parallel transition e Execution simultaneously proceeds to all multiple steps that branch from a single step branch coupling e When all steps immediately before a coupling are activated execution proceeds to the next step when the common transition condition is satisfied Jump transition e When the transition condition is satisfied execution proceeds to the specified step in the same block 4 SFC PROGRAM CONFIGURATION 4 3 1 Serial transition Serial transition is the transition format in which processing proceeds to the step immediately below the current step when the transition condition is satisfied e When transition condition b becomes satisfied at step n Step n operation output A operation output A execution operation output A will Transition condition b be deactivated and processing will proceed to step n 1 Step n 1 operation output B operation output B
43. o JO 01 o 10 1 0 1 0 4 OM o pasa 15 S14 S13 S12 S11 S10 S9 None S7 S6 None S4 S3 S2 S1 SO 4 SFC PROGRAM CONFIGURATION 4 When the block is not specified specify the step number with which the read data range does not exceed the maximum step No in the block a If the maximum number of steps is exceeded data will be undefined For example when the last step of the block to be read is step 10 S10 data in b11 to 15 will be undefined b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 bO p 071 07 1 0 1 0 4 0 4 0 1 0 4 0 4 o 71 074 0 1 074 0 1 0 1 o7 on step No Undefined data Information of corresponding block Corresponding 3 S2 S1 oe s9 88 S7 S6 S5 S4 3 2 S i b When the block has been specified 0 is stored into the remaining bits When block 1 is specified 0 is stored into B11 15 if the last step of block 1 is step 10 S10 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO D 0 1 0 4 0 4 0 4 0 4 0 1 0 4 0 4 0 4 0 4 0 4 0 4 0 4 0 1 0 4 on Corresponding S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 SO step No 0 is stored into all bits nformation of block 1 5 In the activation step batch read instruction do not specify a nonexistent block step An error will not occur if a nonexistent block step is specified However the read data are undefined The OPERATION ERROR error code 4101 will occur in the Universal model QCPU an
44. step within the same block which occurs when the transition condition is satisfied e When condition b is satisfied at step n oh n execution step n operation output A is operation output A Step m deactivated and processing proceeds to step Transition condition b operation output B m mMm 1 There are no restrictions regarding the number of jump transitions within a single block 2 In the parallel transition format only jumps in the vertical direction are possible at each of the branches Example 1 Jump transition program in vertical direction from branch to coupling H A program of a jump transition to another vertically branched ladder a jump transition for exiting from a parallel branch or a jump transition to a parallel branch from outside a parallel branch cannot be created Example 2 Program for exiting from parallel branch cannot be designated O 4 Parallel transition L X 4 Jump transition 3 Do not specify a jump transition to the current step when the transition condition is satisfied as shown below 4 SFC PROGRAM CONFIGURATION SSS SESS SEES SSS SSS 4 3 5 Precautions for creating operation output step transition condition programs This section explains the precautions for creating operation output step and transition condition programs 1 Step program a Step program expres
45. ta070us so7ous 6100s i Universal model QCPU LCPU L26CPU Q03UDVCPU QO4UDVCPU QO6UDVCPU LO2ZSCPU LO2CPU LO6CPU L26CPU P Q13UDVCPU Q26UDVCPU LO2SCPU P LO2CPU P LO6CPU P L26CPU BT QOOUJCPU QO2CPU QnHCPU QnPHCPU QOOUCPU QO2UCPU QO01UCPU L26CPU PBT 5 SFC PROGRAM PROCESSING SEQUENCE 5 2 3 SFC program for program execution management This SFC program can be used to manage the program execution sequence when multiple program file switching is required In addition to a normal SFC program only one block can be created and executed for a single file of an SFC program for program execution management 1 How to create SFC program for program execution management a Number of files and blocks In addition to a normal SFC program only one file of an SFC program for program execution management can be created as a scan execution type program Only one block of the SFC program for program execution management can be created b Usable instructions The SFC diagram symbols except the block START steps BmH BmE and steps that can be used in an SFC program and the sequence instructions that can be used in transition conditions can all be used If block start steps BMH Bm are described a BLOCK EXE ERROR error error No 4621 will occur during SFC program execution and the CPU module will stop the execution 2 Execution procedure The program is started automatically when registered as
46. the initial step is executed first 2 Execution of the initial step continues until transition condition 0 is satisfied When this transition condition is satisfied execution of the initial step is stopped and processing proceeds to the step which follows the initial step Processing of the SFC program continues from step to step in this manner until the END step has been executed 1 3 1 GENERAL DESCRIPTION 1 2 SFC MELSAP L Features 1 Easy to design and maintain systems It is possible to correspond the controls of the entire facility mechanical devices of each station and all machines to the blocks and steps of the SFC program on a one to one basis Because of this capability systems can be designed and maintained with ease even by those with relatively little knowledge of sequence programs Moreover programs designed by other programmers using this format are much easier to decode than sequence programs Station 1 Station 2 Station 3 control unit control unit control unit Step transition control unit for overall process a p Transfer machine Overall system SFC program Step transition control Station 1 Station 2 Station 3 unit for overall process control unit control unit control uni block 0 block 1 block 2 block 3 Transfer machine START 7 START 4 START START i initial step initial step initial step initi
47. timer retentive timer and counter contact coil values are stored in bit devices and current values are stored in word devices 2 The number of points that can be actually used varies depending on the intelligent function module For the points in the buffer memory refer to the manual for the intelligent function module used 3 The value can be changed in the PLC parameter dialog box of GX Developer Except for input output step relay link special relay and link special register Refer to Section 9 2 4 Character strings can be used only for the MOV STR DSTR VAL DVAL ESTR and EVAL instructions They cannot be used for the other instructions 5 Because the QOOJCPU does not have the standard RAM the file register cannot be used 3 SPECIFICATIONS 3 2 2 Device list of High Performance model QCPU Process CPU and Redundant CPU Table 3 4 indicates the devices that can be used for the transition conditions and operation outputs of SFC programs Table 3 4 Device List Point Range setting range mow dt oto Xt FFF Output 8192 YO to Y1FFF Internal relay 8192 MO to M8191 Latch relay 8192 LO to L8191 Bitdevice Annunciator 2048 FO to F2047 Edge relay 2048 VO to V2047 Step relay 8192 S0 to 511 block can he Internal user changed Link relay 8192 BO to B1FFF ane device within 29k Link special relay 2048 SBO to SB7FF ri words 3 Timer feos Toto T2047 Retentive timer 1 Ee T STO to ST2047 Word counter
48. to the next step is satisfied 2 A transition bit which is ON will automatically switch OFF when processing of the block in question occurs again Example Step transition bit M1 Block n iii S a i a E soll OFF Transition condition 0 23 g Ze J p 3 pa 5 5 5 o p o i 3 2 D 2 D n O n oO n O n S1 9 oO wn D N D N y x lt x lt x Oo s o 2 CP 2 o 2 J 7 re E 5 E E S Transition condition 1 S S S S S l D S D D cS S2 kej o 2 o no fe Q Cc Cc o fz 8 os ee te E Transition condition 2 g S Q Q 5 Ss O c O o 5 S O S O s O c s Z 2 2 g z E S z E gt E 3 If a continuous transition is designated continuous transition bit ON the transition bit will remain ON during the next step s operation output after the transition condition is satisfied It will also remain ON following the execution of multiple steps even if the transition condition is unsatisfied In these cases the transition bit will switch OFF when block execution occurs at the next scan Example Step transition bit M1 ON ee o OFF Step 1 Step 1 Step 0 Transition condition 1 unsatisfied Transition condition 0 satisfied Other program executed 4 SFC PROGRAM CONFIGURATION 4 At active parallel branch steps the transition bit will switch ON when any of the transition conditions are satisfied C Js L Transition Transition condition
49. transition watchdog timer starts timing b If transition condition a is not satisfied within the set time 10s after SM90 has turned ON annunciator F1 turns ON However the SFC program continues operation c When transition condition a is satisfied within the set time and SM90 turns OFF the step transition watchdog timer stops timing and is reset 5 If the annunciators FO to F255 turn ON the number of detected annunciators that turned ON and the annunciator numbers are not stored into SD62 SD63 and SD64 SD79 6 The step transition watchdog timers of the same number can be used at different steps if they do not become active simultaneously Example t4 As there is no chance that steps 5 and 6 will be concurrently active the same watch dog timer can be S6 Watchdog timer 2 used at both steps t6 S5 ic Watchdog timer 1 t5 4 SFC PROGRAM CONFIGURATION 4 7 SFC Operation Mode Setting The SFC operation mode setting is used to designate SFC program START conditions or to designate the processing method at a double START Some settings can be made in SFC setting of PLC parameter dialog box in the system common setting and the others can be made in block parameter of the SFC program The SFC operation mode setting items and the resulting operations are shown below High Universal Performance o Default model Item Description Setting Range Model QCPU Value QCPU Process CPU LCPU Redund
50. when online change inactive block is ended e The target block starts after online change inactive block is ended When the transition condition for the step is met the processing moves to the next step Block START step with END check The target block does not start While an instruction contact remains on the SFC control instruction SET BL O SET S O SET BL O S O instructions target block starts after online change inactive block is ended for a program to execute the Block START instruction refer to the program example in Section 6 6 3 7 a The target block does not start even when the block START END bit turns on SFC information device When the block START END bit is on the target block starts after online block START END bit change inactive block is ended The status of the block START END bit does not change until when online change inactive block is ended 6 SFC PROGRAM EXECUTION In the STOP or PAUSE status an active step holds the activated status Therefore when the CPU module is set to STOP or PAUSE while the target block is active online change inactive block cannot be executed to the block a Program example to execute the Block START instruction during online change inactive block M100 SM329 m t SET RST BL10 M100 FEND s M400 p D329 K10 SET SET ui RST BLIO M100 IRET J An i
51. when the rBLmOSn instruction is used to deactivate all the active steps of the corresponding block e The processing of the corresponding block is ended to deactivate it by forcibly turning OFF the block START END bit which was set to each block as the SFC information device in the program or peripheral device POINTS 1 A forced end to block processing is possible using a method which is different from that used to start the block Example 1 A block started by an SFC diagram symbol BmH Bm can be ended by an SFC control instruction nBLm 2 A block started by an SFC control instruction sBLm can be ended by forcibly turning OFF the block START END bit of the SFC information devices e Convenient for debugging and test operations because block processing can be ended from a peripheral device without requiring a program Block END by SFC information device 2 After block END processing is completed the block can be restarted as shown below e After block processing is ended processing is started automatically from the initial step When the Start conditions is e After block processing is ended the designated as Do not autostart block remains inactive until a block 0 START request occurs by one of the methods described in Section 6 2 1 When the Start conditions is designated as Autostart block 0 Other than block 0 6 SFC PROGRAM EXECUTION 6 3 Block Temporary Stop and Restart M
52. 024 SMO to SM1023 levice Word Function register FDO to FD4 device Special register 1024 SDO to SD1023 Link input 8192 Jn X0 to Jn X1FFF ON Link output 8192 Jn YO to Jn Y1FFF it device Link relay 16384 Jn BO to Jn B3FFF Link special relay 512 __ un sBo to Jn SB1FF Link direct device Word Link register 16384 Jn WO to Jn W3FFF Hexadecimal or device i Jn SW0 to Link special register 512 Hexadecimal Jn SW1FF Module access Word Intelligent function module Un GO to 65536 Decimal device device device Un G65535 2 Index register Ea Index register o k to Z9 Continued to the next page 3 SPECIFICATIONS Table 3 3 Device List continued Classificati Deyi Default Parameter Point Range setting range e RO to R32767 File register 5 File register Decimal Ba eed to ZR65535 Nesting Nesting as Notonra to N14 Decimal im pame oo PO to P299 oa ee ointer Interrupt pointer a user _ Decimal Bit device SFC block device 128 fBLotoBLi27 a Network No specification J1 to J239 Deomal device ran get te 1 0 No QOO0JCPU U0 to UF oad specification QOOCPU weur to U3F exacecma device Q01CPU Macro instruction argument yootevon to VDO Deomal a ae Decimal constant constant K 2147483648 to 2147483647 2147483648 to 2147483647 Hexadecimal constant HO to HEFFFFFFF Constant Real constant E 1 17550 38 to E 3 40282 38 Character string constant ABC 123 4 For the
53. 12 oY114 Positioning for material A Positioning for material B ax102 aX103 Positioning complete for material A Positioning complete for material B oY113 oY115 Processing for material A Processing for materialB Read a comment 4 100 ax104 Processing complete for all materials Device specified at DO 2 1 D1 2 2 x D2 2 3 D3 Empty 1st comment information D20 0000H p21 Empty D22 5 1 Dz Empty 2nd comment information D39 D40 0000H D41 Empty C Indicates active steps 1 Indicates the total number of active steps 2 Indicates steps that have read comment 3 Indicates step No 2 Executing S P SFCSCOMR instruction SM735 of the special relay SFC comment readout instruction executing flag turns ON Confirms whether or not S P SFCSCOMR instruction is executed by SM735 3 In case comments are not set into active steps 2DH length of 32 characters is stored to the comment area word 4 Read comments are stored in ascending order of the step No 5 Comments are read from the comment file specified when S P SFCSCOMR instruction is executed 6 Comments to be read with S P SFCSCOMR instruction are those of steps being activated when executing S P SFCSCOMR instruction x As steps retaining coil outputs are not active steps reading comments is not enabled 4 100 4 SFC PROGRAM CONFIGURATION 7 Reading com
54. 324 is ON scan format independently of whether SM324 When execution proceeds to step 1 the is present or absent processing of the first scan is ended since The end step processing is performed in the SM324 turns OFF third scan to deactivate the block In the second scan execution proceeds to step 2 since SM324 turns ON again When execution proceeds to step 2 SM324 turns OFF Since the transition condition of step 2 does not have the contact of SM324 a transition occurs and the end step processing is performed to deactivate the block 6 SFC PROGRAM EXECUTION 6 6 Operation at Program Change The SFC program of the CPU module can be changed in either of the following methods e Write to PLC write in file unit e Online change write in ladder block unit e Online change inactive block 1 The following table indicates SFC program changes that can be made in the above methods CO Possible x Impossible Program Change by Write to PLC Program Online change PAUSE STOP RUN status Change by inactive block Change Type status 2 3 Online Change SFC program addition SFC block addition deletion Step transition addition deletion SFC diagram change Transition destination change Step attribute change Operation output sequence program Change in change SFC diagram Transition condition sequence program change Block data change O Possible x Impossible 6 SFC PROGRAM EXECUTION
55. 8 SH NA 080076 I New models of the Universal model QCPU have been added Model addition Q13UDHCPU Q26UDHCPU Partial correction GENERIC TERMS CHAPTER 2 SECTION 3 1 2 3 2 2 3 3 1 4 2 4 2 8 4 3 3 4 4 5 5 2 2 Print Date Manual Number May 2008 Dec 2008 SH NA 080076 J SH NA 080076 K The manual number is given on the bottom left of the back cover Revision New models of the Universal model QCPU and Process CPU have been added Model addition QO3UDECPU QO4UDEHCPU QO6UDEHCPU Q13UDEHCPU Q26UDEHCPU QO2PHCPU QO6PHCPU Partial correction GENERIC TERMS Chapter 2 Section 3 1 2 3 3 1 4 2 4 2 8 4 3 3 4 7 1 5 2 2 New models of the Universal model QCPU have been added Model addition QOOUJCPU QOOUCPU Q01UCPU Q10UDHCPU Q20UDHCPU Q10UDEHCPU Q20UDEHCPU Partial correction ABOUT MANUALS GENERIC TERMS Section 1 2 Chapter 2 Section 3 1 2 3 2 2 3 3 1 3 4 4 2 4 2 8 4 3 3 5 2 2 Appendix 1 Jul 2009 SH NA 080076 L The serial number first five digits of the Universal model QCPU has been upgraded to 11043 Partial correction Section 4 1 4 7 1 6 1 1 Jan 2010 SH NA 080076 M Descriptions on MELSEC L series modules have been added Partial correction ABOUT MANUALS GENERIC TERMS Chapter 1 Section 1 2 Chapter 2 Section 3 1 2 3 2 1 3 2 2 3 2 3 3 3 1 4 2 4 2 2 4 2 7 4 2 8
56. 9 MITSUBISHI ELECTRIC Mitsubishi Programmable Controller MELSECKL ic MELSECL MELSEC Q L Programming Manual MELSAP L e SAFETY PRECAUTIONS e Read these precautions before using this product Before using MELSEC Q or L series programmable controllers please read the manuals included with each product and the relevant manuals introduced in those manuals carefully and pay full attention to safety to handle the product correctly Make sure that the end users read the manuals included with each product and keep the manuals in a safe place for future reference e CONDITIONS OF USE FOR THE PRODUCT e 1 Mitsubishi programmable controller the PRODUCT shall be used in conditions 2 i where any problem fault or failure occurring in the PRODUCT if any shall not lead to any major or serious accident and ii where the backup and fail safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem fault or failure occurring in the PRODUCT The PRODUCT has been designed and manufactured for the purpose of being used in general industries MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY INCLUDING BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT WARRANTY TORT PRODUCT LIABILITY FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED B
57. 92 steps L26CPU BT L26CPU PBT 1 For the Universal model QCPU whose serial number first five digits is 12051 or earlier the maximum 128 steps 1024 steps 128 steps 1024 steps number of steps for all blocks is 8192 2 Serial step numbers are assigned to the steps in creation order at the time of SFC program creation The user can specify the step numbers to change them within the range of the maximum number of steps in one block The step numbers are used for monitoring the executed step and for making a forced start or end with the SFC control instruction 4 SFC PROGRAM CONFIGURATION 4 2 1 Step _ without step attribute During processing of steps without attributes the next transition condition is constantly monitored with transition to the next step occurring when the condition is satisfied 1 The operation output status of each step n varies after a transition to the next step n 1 depending on the instruction used a When the OUT instruction is used excluding OUT C i When a transition to the next step occurs and the corresponding step becomes inactive the output turned ON by the OUT instruction turns OFF automatically The timer also turns OFF its coil and contact and also clears its present value Example When transition condition n becomes satisfied at the step n operation output where YO is ON in ed Oe oY0 accordance with the OUT instruction YO is Tr
58. ANSFER setting applies to all operations regardless of the setting e At coil HOLD steps The operation output is restarted and a transition condition check begins The PLS instruction for which the input conditions have already been established is non executable until the input conditions are turned on again e Following the double e At operation HOLD steps without transition check START execution of all A transition condition check begins subsequent steps where At operation HOLD steps with transition check transition conditions are Operation continues as is satisfied will occur according Active step Inactive to the step attributes STOP WAIT TRANSFER Transition condition satisfied Coil HOLD step or operation output step nee A a without transition check Transiton condition is checked No transition condition check 4 SFC PROGRAM CONFIGURATION 3 Operation at double START a When transition destination is serial transition 1 When setting is STOP iaeei If the transition destination is active an error occurs and the processing of the CPU module stops Transition destination LJ 2 When setting is WAIT zia Execution waits until the transition destination step becomes inactive When the transition destination step becomes inactive a transition is executed and the transition destination step becomes active In a WAIT status the previous step is deactivated Active Inac
59. ART END bit of the SFC information devices has been set the corresponding bit device changes from OFF to ON b If the specified block is already active when this instruction is executed the instruction will be ignored equivalent to the NOP instruction and processing will continue 2 Block END instruction rBLm a A specified block is forcibly deactivated independently When there are active steps all are deactivated and the coil outputs are turned OFF When the bock START END bit of the SFC information devices has been set the corresponding bit device changes from ON to OFF b If the specified block is already inactive when this instruction is executed the instruction will be ignored equivalent to the NOP instruction and processing will continue Operation Error Error No 4621 occurs when the specified block does not exist or when the SFC program is in the stand by status Program Examples 1 When X1 switches ON the following program forcibly activates block1 When X2 switches ON it ends and forcibly deactivates block1 ax ax2 sBL1 rBL1 Related Instructions a SFC diagram symbols Block START step BME BME eccecceeeeeeeeeees See Sections 4 2 8 and 4 2 9 b SFC information device Block START END Dit ee cee ceeeeeeeeeeeeeeeeeeenreeneeees See Section 4 5 1 4 SFC PROGRAM CONFIGURATION QCPU PCP Applicable Programmable controller CPU Process Redundant LCPU CPU High Perf
60. C control instruction rBLm Sn rSn designates a reset at the block in question d When a reset occurs at the device designated as the SFC information register s block START END device e When a reset step for resetting the step in question becomes active f When the SFC START STOP command SM321 is switched OFF g When the coil in question is reset by the program h When the STOP instruction is executed with the stop time output mode OFF i When S999 is designated at the reset step in the corresponding block 4 Block STOP processing Make a block STOP using the STOP RESTART bit of the SFC information devices or the block STOP instruction of the SFC control instructions The processing of the active step in the block where a block STOP was made is as described below a When the block STOP time operation output flag SM325 is OFF coil output OFF e The step becomes inactive when the processing of the corresponding block is performed first after a block STOP request e All coil outputs turn OFF However the coils turned ON by the SET instruction remain ON b When the block STOP time operation output flag SM325 is ON coil output held The coil outputs remain ON during a block STOP and after a block RESTART 5 Precautions when designating coil HOLD steps a PLS instruction When the execution condition of the PLS instruction is satisfied and the transition condition is satisfied at the same scan where the PLS instruc
61. DHCPU QO6UDVCPU QO6UDEHCPU Q10UDHCPU Q10UDEHCPU Q13UDHCPU 1280 steps 256 steps Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P 1280 steps 256 steps L26CPU BT L26CPU PBT 1024 steps 128 steps 1024 steps 128 steps 4 SFC PROGRAM CONFIGURATION 4 Couplings must be provided when the parallel transition format is used Program creation is impossible without couplings Example Program without couplings Cannot be designated Ea E aa EJ Ea L C sump END step T END step T Each column ends at the END step Jump transition see Section 4 3 4 occurs without coupling 5 As a rule a waiting step must be created prior to the coupling However in cases such as the example below where each of the parallel transition columns consist of only 1 step program without a transition condition between the parallel transition branch and the coupling a waiting step is not required C E 4 SFC PROGRAM CONFIGURATION 6 Parallel transition operation flowchart l Initial step Transition condition a a Step 1 Transition T condition b sez Transition T condition c Waiting step Joes _ Transition C ses Transition T condition a Waiting step condi
62. ENDIX 2 4 Active Step Change Instruction SCHG Replacement Method c cesses APP 11 ABOUT MANUALS The manuals related to this product are listed below Order each manual as needed referring to the following lists Relevant manuals model code GX Developer Version 8 Operating Manual SFC Describes how to create SFC programs using the software package for creating SFC programs Sold separately GX Works2 Version1 Operating Manual Common Describes system configuration parameter settings and online operations common to Simple project and Structured project of GX Works2 Sold separately QnUCPU User s Manual Function Explanation Programming Fundamentals Describes the functions programming procedures devices etc necessary to create programs using the CPU modules Sold separately Qn H QnPH QnPRHCPU User s Manual Function Explanation Program Fundamentals SH 080808ENG Describes the functions programming procedures devices etc necessary to create 13JZ28 programs using the CPU modules Sold separately MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals Describes the functions required for programming programming methods and devices Sold separately SH 080374E 13JU42 SH 080779ENG 13JU63 SH 080807ENG 13JZ27 SH 080889ENG 13JZ35 MELSEC Q L Programming Manual Common instruction Describes how to use sequence instructions basic instructions and application
63. ESTART bit of the SFC information devices or the block STOP instruction of the SFC control instructions e STOP status timing A STOP status is established after the block STOP request output occurs and processing returns to the beginning of the block in question e Coil output A coil output OFF or HOLD status will be established depending on the output mode setting see Section 4 7 3 at the time of the block STOP designated in the SFC operation mode However an ON status will be maintained for coil outputs which were switched ON by the SET instruction 1 When the transition condition immediately before the corresponding step is satisfied or when the step is reactivated by a JUMP transition a transition will occur again when the transition condition is satisfied 2 Double STARTs do not apply to reactivated steps 4 SFC PROGRAM CONFIGURATION 4 2 6 Operation HOLD step with transition check An operation HOLD step with transition check is a step where the operation output processing of the corresponding step continues after a transition to the next step When the transition condition is satisfied again at the corresponding step transition processing to the next step reactivation is executed 1 During normal SFC program operation the coil ON status switched ON by OUT instruction when transition condition is satisfied is automatically switched OFF before proceeding to the next step When an operation output step is d
64. IGURATION 3 An operation HOLD step with transition check becomes inactive when any of the following occur a When the end step of the corresponding block is executed b When an SFC control instruction rBLm designates a forced END at the block in question c When an SFC control instruction rBLm Sn rSn designates a reset at the block in question d When a reset occurs at the device designated as the SFC information register s block START END device e When a reset step for resetting the step in question becomes active f When S999 is designated at the reset step in the same block g When the SFC START STOP command SM321 is switched OFF 4 Block STOP processing Make a block STOP using the STOP RESTART bit of the SFC information devices or the block STOP instruction of the SFC control instructions The processing of the active step in the block where a block STOP was made is as described below a When the block STOP time operation output flag SM325 is OFF coil output OFF The step becomes inactive when the processing of the corresponding block is performed first after a block STOP request e All coil outputs turn OFF e However the coils turned ON by the SET instruction remain ON b When the block STOP time operation output flag SM325 is ON coil output held The coil outputs remain ON during a block STOP and after a block RESTART 4 SFC PROGRAM CONFIGURATION 4 2 7 Reset step R A
65. LCPU the operation mode at double block START cannot be set For these CPU modules only the WAIT mode is available 3 A block START request can start multiple blocks simultaneously by performing a parallel transition refer to Section 4 3 3 The steps in the simultaneously started blocks are processed in parallel 4 SFC PROGRAM CONFIGURATION 4 The following table indicates the number of steps that can be executed simultaneously in all blocks and the maximum number of active steps in a single block Number of steps that can be Maximum number of active CPU module type executed simultaneously in all bic k steps in one block ocks 1280 steps 256 steps Universal model Q00UJCPU QOOUCPU Q01UCPU QO2UCPU QO3UDCPU QO03UDVCPU QO3UDECPU Q04UDHCPU QO04UDVCPU QO4UDEHCPU QO6UDHCPU QO6UDVCPU QO6UDEHCPU Q10UDHCPU Q10UDEHCPU Q13UDHCPU 1280 steps 256 steps Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P 1280 steps 256 steps L26CPU BT L26CPU PBT 1 The block START step with END check cannot be described immediately before the coupling of a parallel coupling The block START step with END check cannot be used for a wait The block START step without END check can be described immediately before the coupling of a parallel coupling 1024 steps 128 steps 1024 ste
66. MELSAP L and ladders a MELSAPLL side b Sequence programs side The flow of operation is easy to understand by The area can be developed into a product by creating the SFC program related to the interlock creating interlock conditions irrelevant to the flow of conditions operation i Upper Emergency f Step aX0 Ascent Descent limit stop 1 Ascent a be created Describe steps Stat aT a asa par and complicated 0M70 _ 77 or Bele eee ed interlock conditions Ascent i Lower Emergency f using a ladder aX1 Descent Ascent limit stop Descent Upper limit Fi i oM80 7 Descent axX2 Lower limit Machine operation sequence Control of machine 2 Description format with MELSAP L The description format in the step and transition MELSAP L display screen conditions with MELSAP L is shown b Example PMELSOFT IE Ewi Ae Step K30 ol e a salele Pom o EEEH OTOK30 seer errr TO DMOV K10 WO DMov K10 wo OMO Bese ee ee acs MO Transition conditions xo aX0ssesesessoooeeo m X1 Hie a sa aa gt e co X11 ACORDX1 ss sev eee ene _ MO CO cuits aMO bT0 amp aCO e of semioa i TO Dawe ES Commands equivalent to contacts cannot be described in the step 1 GENERAL DE
67. MR instruction does not existed EAEE PEATE EATE tees haceen Me Magenta wel Error No 2410 AE NE EAE E a ete Raia Tae cathe asd aaa thee A atta dea OA E a eh cata ata Va N EA ATA Error No 4100 Ria tu atest tune edt aed nat a te deere Aden elena Adana head cata N Error No 4100 e When the number of readout comments in a single scan specified at n3 is other than 0 to 256 TA freed AT P S ene ees A A A E E E Gree sset er tten E T Error No 4100 e When exceeding the maximum value of the device in which stores comment data to be readout eaa e a Rec A AA AG ee AOA A e E E O E Error No 4101 e When the S P SFCTCOMR instruction is executed to the comment file in the ATA card or SD meno CA eegioa rrian n A ER Error No 4130 4 112 4 112 4 SFC PROGRAM CONFIGURATION Program Example 1 This program reads 2 comments associated with steps being activated at the SFC block No 1 when X1 is turned ON and stores those to the storage device after DO The number of comment to be read in a single scan is also set in 2 The interlock ladders to perform batch write of SFC program in RUN status or write of comment file in RUN status are included in the following program 0 LJJovo 0 aX0 amp bSM735 1 __ sMo 2 aX1 amp bMO 2 SP SFCTCOMR K1 DO K2 K2 M1 When step is designated by sequence program Ladder Mode List Mode Write execution command in RUN status Write enable flag Steps instruction D
68. N OFF SM325 in the user program 6 SFC PROGRAM EXECUTION 6 3 2 Restarting a stopped block The methods for restarting a block which has been temporarily stopped during SFC program processing are described below 1 Restarting block processing The methods for restarting a block which has been temporarily stopped are shown below Restart Method Operation Description e Processing of the specified block is restarted by an SFC control instruction at a step operation output or sequence program outside the stopped block e Convenient for returning to automatic operation Restart by SFC when the manual control END signal is output control instruction Condition at the temporary STOP RSTART BLm m is the block No The execution of the corresponding block is e Convenient for confirming operation by step restarted by forcibly turning OFF the block control at debugging and test operations STOP RESTART bit which was set to each because block processing can be restarted block as the SFC information device in the from a peripheral device without requiring a RESTART by SFC information device program or peripheral device program 2 Active step when restart occurs The step which is active when a block is restarted varies according to the status which existed when the STOP occurred as shown below Operation Output at Block RESTART Active step other than Held step held step including HOLD step Operation H
69. OLD step Operation HOLD step whose transition Coil HOLD step SC without transition with transition check condition is not check SE ST satisfied Output Mode Setting at Block STOP e Restart disabled e Restarts the operation Since the step is e Restarts the execution output ina HOLD deactivated at a block of the operation output status STOP in a HOLD status e Also checks the At coil output HOLD e Restarts as held transition condition x The held step indicates the step whose attribute has been set to the HOLD step SC SE ST and which is being held with the transition condition satisfied At coil output OFF e Returns to normal operation 6 SFC PROGRAM EXECUTION The operation of SM325 differs depending on the CPU module e For the Basic model QCPU High Performance model QCPU and Process CPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop at STOP RUN of the CPU module e For the Universal model QCPU and LCPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop when the CPU module is powered ON or is reset Parameter setting SM325 Turns OFF coil output OFF Remains ON coil output held Note that the output mode at block stop can be changed regardless of the parameter setting by turning ON OFF SM325 in the user program 6 SFC PROGRAM EXECUTION 6 4 Step START Activate and END Deactivate Methods 6 4 1
70. PU Q100UDEHCPU S P SFCSCOMR At END processing read 1 comment Transition condition for serial transition 3 7ms 5 3ms e Transition condition after At END selection branching 3 2ms 4 9ms processing Number of S P SFCTCOMR P read 1 Transition parallel 4 0ms 5 7ms comment condition after couplings 2 parallel Number of coupling parallel 18 7ms 21 0ms couplings 32 Universal model QCPU QO4UDVCPU QO6UDVCPU Instructi Conditi O3UDVCPU RENS ae Q13UDVCPU Q26UDVCPU Standard RAM Standard RAM S P SFCSCOMR At instruction execution Transition condition for serial transition 0 66ms 0 44ms Transition condition after AtEND selection branching 0 66ms 0 35ms processing Number of S P SFCTCOMR P read 1 Transition parallel 0 87ms 0 55ms comment condition after couplings 2 parallel Number of coupling parallel 1 28ms 0 75ms couplings 32 3 SPECIFICATIONS 3 4 Calculating the SFC Program Capacity In order to express the SFC diagram using instructions the memory capacity shown below is required The method for calculating the SFC program capacity and the number of steps when the SFC diagram is expressed by SFC dedicated instructions is described in this section 1 Method for calculating the SFC program capacity block 0 capacity block 1 capacity block n capacity ae max created SFC program capacity 2 l 8x block No 1 L Number of blocks being used SFC file he
71. ROGRAM PROCESSING SEQUENCE 2 High Performance model QCPU Process CPU Redundant CPU Universal model QCPU and LCPU The High Performance model QCPU Process CPU Redundant CPU Universal model QCPU and LCPU can store multiple programs in the program memory and execute them Scan execution is enabled for two SFC programs one SFC program for program execution management and one normal SFC program x1 Multiple programs are executed in the order of the program setting in the PLC parameter dialog box The execution status of multiple programs is shown below under the following conditions Condition 1 Program setting in PLC parameter dialog box 1 ABC sequence lt scan gt 2 DEF SFC lt scan gt 3 XYZ sequence lt low speed gt 2 Low speed program time setting in parameter Sms 3 SFC program Set to Auto START ON Program execution STOP RUN Power ON gt RUN l t t t i i i END i m i S i m i processing i an i Da i re ail i i oa root sew Program 9 Scan END i i Scan EN D i i 0 Scan END i i 0 Scan 1 1 1 1 __ 1 1 _ _ ABC T i i i i i 4 Kii oi i oth al Hort 1 1 1 1 1 1 1 1 Program Y Scan Scan y Scan i DEE 1 1 1 1 1 1 SFC program i i SFC program SFC program i execution Low execution Low execution Low speed speed yspeed Program pees ES XYZ i i Li 1 i l Scan time e x1 The number of scannable SFC programs in the Universal model QCPU is only one
72. SCRIPTION 1 1 SFC Program Whole process lt The SFC program consists of steps that represent units of operations in a series of machine operations In each step the actual detailed control is programmed by using a ladder circuit Grouping steps into one block in process units allows to create an SFC program that is capable of tracking all the processes as well as structuring the operation flow in each process Process flow chart SFC diagram Operation output transition condition r Workpiece Initial step detection ee START switch Workpiece detection ransiton aX0 amp aX1 condition 0 Conveyor START step 1 oY20 J operation unit ae Pallet detection Transition x2 condition1 7 m Pallet clamp Workpiece step 2 oY21 1 operation unit loading Transition wa Clamp confirmation condition2 4 Drill rotation Drilling step 3 oY22 PLS MO 1 operation unit operation Transition _ pMO condition 3 P m Drill DOWN step 4 sY23 1 operation unit R Drill DOWN endpoint Transition l ax4 condition 4 Drill Down stop step 5 rY23 oT0 K20 1 operation unit E Workpiece unloaded confirmation Transition aX7 condition n O END step Machining completed S The SFC program performs a sequence of operations beginning from the initial step proceeding to each subsequent step as the transition conditions are satisfied and ending at the END step 1 When the SFC program is started
73. Step START activate methods There are the following step START activation methods Step START e The corresponding step is automatically started when the preceding transition condition is satisfied Transition condition e Basic operation of SFC program Started when condition is satisfied e The specified step is forcibly started by the SFC control instruction at the step operation output of the SFC program or in another sequence program Condition Jump to other blocks can be made e When the block of the destination step is Step START by SFC san inactive a block forced START is made control instruction n is the step No from the specified step e When there are initial steps in multiple Condition blocks a selection START is made sBLm Sn xm is the block No n is the step No 6 SFC PROGRAM EXECUTION 6 4 2 Step END deactivate methods Steps can be ended deactivated by the methods shown below END Method END by SFC diagram symbol END by SFC control instruction e The step is automatically ended by the system when the transition condition associated with the e Basic operation of SFC program corresponding step is satisfied MS Ended when condition is satisfied Transition condition Set the step to a reset step as the step attribute and specify the step number to be ended sigLR Step No to be ended e The specified step is forcibly ended by the SFC control instruction at th
74. T instruction s a A specified step at a specified block is activated forcibly Operation at the block in question varies as follows depending on whether the block is active or inactive 1 When the specified block is inactive The specified block is activated when the instruction is executed and processing starts from the specified step Processing is performed as shown below when step 1 in block 1 is started in the sequence program Block 1 Inactive Block 1 Inactive to active so SO When step 1 S1 is started s1 y S1 Inactive Inactive to active processing starts from S1 S2 Inactive S2 Inactive When the block START END bit of the SFC information devices has been set the corresponding bit device changes from OFF to ON 4 SFC PROGRAM CONFIGURATION SSS SSS SSS SSS 2 When the specified block is active If the step is already active when the SET instruction is executed the step will remain active and processing will continue with another step being designated as active Multiple step activation follow up function Processing is performed as shown below when step 1 in block 1 is started in the sequence program Block 1 Active Block 1 Active so __ sol fi When step 1 S1 S1 il Inactive is started S1 Inactive to active ad ESS Multiple steps active Follow up function S2 Active S2 Active b When multiple initial steps exist an initial s
75. T instruction is executed at an SFC program block switching will be effective only for the step currently being executed Even if the step in question is the same step the BRSET instruction must be executed at each block where the Sn and TRn instructions are used Moreover within a single step block switching will be effective from the point where the BRSET instruction is executed to that step s processing END point When processing is repeated at the next scan following the processing END for that step the block in question will be designated as the current block until the point when the BRSET instruction is executed again Repeated Sequence program Sequence program SFC program A END O B END Block n Block n 1 END Execution f Pil Pil i T T T Program 5 3 i 5 3 5 3 5 3 i Eg END processing END processing Eo E9 0 not performed OOt performed oO So Sn TRn destination gt gt e gt block Block specified Block specified Block specified Block specified Block 0 by instruction by instruction Current block by instruction Current block by instruction gt 1 scan The block No m designated by BLm Sn or BLm TRn becomes valid regardless of whether this instruction is executed or not y A x When multiple steps are active at parallel branch etc only the step where the instruction was executed will be valid When it is desired to designate blocks at multiple steps the in
76. TCOMR instruction and the total number of transition condition associated with the active steps that have actually when reading comments completed are stored e Transition condition step No that has read comment is stored e Comments that have been read are stored Comment area is fixed by a maximum of 32 characters In case the word length to be set for 1 comment i at the comment range setting is set by 32 or less 00004 is stored to the area after the number of characters for 1 comment e 00004 is stored e Transition condition No that has read comment is stored e Not used area 00004 is stored x7 The number of characters for each comment in the comment range setting is set in the programming tool For details refer to the manual for the programming tool With S P SFCTCOMR instruction the points calculated by the following formula are occupied from the device No specified at 01 Points to be used for storing a comment 2 20 x number of comment to read n2 For 01 make sure to set device No that can store the above points successively 4 107 4 107 4 SFC PROGRAM CONFIGURATION Functions 1 This function reads comments of the transition condition 1 associated with steps activated in the SFC block specified at n1 with the number of comments specified at n2 and stores those to the device number of after specified at 0 on sp sFcTcomre K1 DO K2 K2 wo H SFC pro
77. The COMRD P S P FWRITE S P FREAD or SP DEVST instruction is executed A file in the ATA card SD memory card or standard ROM is accessed by the read from PLC or write to PLC function or by other file access operations Universal model QCPU only 15 For the Universal model QCPU when the S P SFCSCOMR instruction is attempted to be executed while online change inactive block is executed to the SFC block of comment read target the instruction will not be executed However when the execution condition is met the instruction will be executed in the next scan 4 103 4 SFC PROGRAM CONFIGURATION 1 Make sure to use comments to be read with S P SFCSCOMR after the device specified at 02 turns ON Comments to be read before the device specified at 02 turns ON become an indefinite value 2 If the number of steps is larger than that of comments n3 read in a single scan the active step comments are divided into the number to be read in a single scan Counting the total number of steps is also performed with the same comment number n3 for 1 scan In case transition conditions are remained without being counted when reading comments completed the counting will be continued for the remained Because of this the number of scans calculated in the following formula is required Comments to be actually stored are the same points stored in 01 1 x It becomes a round up below the decimal point 3 Make sure to pe
78. U e LCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P 1 GENERAL DESCRIPTION 4 Creation of multiple initial steps is possible Multiple processes can easily be executed and combined Initial steps are linked using a selection coupling format When multiple initial steps SO to S3 are active the step where the transition condition t4 to t7 immediately prior to the selected coupling is satisfied becomes inactive and a transition to the next step occurs Moreover when the transition condition immediately prior to an active step is satisfied the next step is executed in accordance with the parameter settings x The Basic model QCPU Universal model QCPU and LCPU cannot be selected in the parameter setting It operates in the default Transfer mode e Wait Transition to the next step occurs after waiting for the next step to become inactive e Transfer Transition to the next step occurs even if the next step is active Default e Pause An error occurs if the next step is active So sO ef s0 t1 t2 t3 S4 S8 1H 0 Linked steps can also be changed at each initial step 0 s e0 to t2 s3 S4 s5 1 GENERAL DESCRIPTION 5 Program design is easy due to a wealth of step attributes A variety of step attributes can be assigned to each step Used singly for a given control operation or in combination these attributes greatly simplify program design procedures e Types
79. U and L26CPU BT 9 Available only with the LO2SCPU LO2CPU LO2CPU P LO6CPU L26CPU L26CPU BT and L26CPU PBT 2 2 2 2 3 SPECIFICATIONS 3 SPECIFICATIONS This chapter explains the performance specifications of SFC programs 3 1 Performance Specifications Related to SFC Programs 3 1 1 When the Basic model QCPU is used 1 Table 3 1 indicates the performance specifications related to SFC programs Table 3 1 Performance Specifications Related to SFC Program Item Max 1024 steps for all blocks Number of concurrently active steps Max 128 steps for one block including HOLD steps Number of operation output sequence Max 2k steps for all blocks 2 steps 512 steps per step hes of transition condition sequence One ladder block only 1 SFC program for program management Section 5 2 3 cannot be created 2 The maximum number of sequence steps per block depends on an instruction used for operation output or a note editing setting The number of steps 2k steps indicated in the table applies when Unite United Note is selected for note editing Note that 2k sequence steps per block may not be secured when Peripheral Peripheral Note is selected If note editing is not set 2k sequence steps or more per block may be secured depending on an instruction used The step transition watchdog timer STEP RUN operation and step trace functions are not available 3 SPECIFICATIONS 2 Precautions for creating SFC p
80. Y INSTRUCTIONS PRECAUTIONS OR WARNING CONTAINED IN MITSUBISHI S USER INSTRUCTION AND OR SAFETY MANUALS TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT Prohibited Application Prohibited Applications include but not limited to the use of the PRODUCT in Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the PRODUCT Railway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User Aircraft or Aerospace Medical applications Train equipment transport equipment such as Elevator and Escalator Incineration and Fuel devices Vehicles Manned transportation Equipment for Recreation and Amusement and Safety devices handling of Nuclear or Hazardous Materials or Chemicals Mining and Drilling and or other applications where there is a significant risk of injury to the public or property Notwithstanding the above restrictions Mitsubishi may in its sole discretion authorize use of the PRODUCT in one or more of the Prohibited Applications provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail safe redundant or other safety features which exceed the general specifications of the PRODUCTs are required F
81. a Pervert free E rere rer rere et eerert rere reer terre steerer a 4 21 4 2 11 Instructions that cannot be used with operation outputs ceeeceeeseeeeeeeeeeeeeeeeeeeteeeeeeneeesneeetaes 4 23 ASS FranSitior e ee era eee daoen 2d Cota ar Pataca Det a aiaa a aaa ae rere hauled Mate ave Teh Rectal ea te8 EA e 4 24 4 3 1 Serial transition neninn e des nest ag a ddan een E ea rE E arene a net E E reee NEE E raa ra 4 25 4 3 2 Selectiomtransitio Ni i ipn a a a a a r a atte adie a a dee ata 4 27 4 3 3 Parallel transition cccccccecscecenceeeeeeeecececeneeeeaeeccaeeceaceeseaeesaeeseaeecsaceesaceseneeseaeeseaeeseeeessineeseaeessaees 4 30 ASA JUMP FANS O r a a a aa r ath E sais 4 34 4 3 5 Precautions for creating operation output step transition condition programs ccceeeeee 4 35 4 4 Controlling SFC Programs by Instructions SFC Control Instructions ceeeeeseeeeseeeeeeeeeeeeeetneeeieees 4 39 4 4 1 Step operation status check instructions a b amp a amp b la ID cece eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeteneeenees 4 43 4 4 2 Forced transition check instruction a b amp a amp b la ID cee eececeeeeeceeeeeeeeeeeeeeeeeaeeeeaeeeseeeesieeenaes 4 46 4 4 3 Block operation status check instruction a b amp a amp D la ID eee eeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeetees 4 48 4 4 4 Active step batch readout instructions MOV DMOV eceeceeecceeeeeeeeeeeeeeeeeeeeeeeeeseetaeeetenaeenas 4 50 4 4 5 Active step b
82. a scan execution type program At end step processing the initial step is reactivated and processing is repeated 1 Use the peripheral device to select between the SFC program for program execution management and the normal SFC program For details regarding the setting procedure refer to the GX Developer Operating Manual MELSAP L 2 Periodic execution block settings see Section 4 7 4 cannot be defined the SFC programs for program execution control If an SFC program for program execution control is set in a periodic execution block the execution of the SFC program will not be performed 3 The Basic model QCPU Universal model QCPU and LCPU do not support SFC programs for program execution management 4 The SFC program for program execution management cannot be set as a standby type program In addition execution designation by POFF or PSCAN instruction cannot be applied to the program 5 The SFC control instructions cannot be executed for the SFC program for program execution management Refer to Section 4 4 5 SFC PROGRAM PROCESSING SEQUENCE 3 Example of program execution management SFC programs In the following example SFC program ABC is executed when condition 1 is satisfied and SFC program XYZ is executed when condition 2 is satisfied so Ol tO Condition 1 When condition 1 is satisfied execution proceeds to S1 t1 Condition 2 When condition 2 is satisfied execution proceeds to S2 t
83. ach intelligent function module 3 For the LO2SCPU LO2SCPU P LO2CPU and LO2CPU P the total number of points is 0 to 64K 4 For the LO2SCPU LO2SCPU P LO2CPU and LO2CPU P the number of points is 128 BLO to B127 5 For the LO2SCPU LO2SCPU P LO2CPU and LO2CPU P the range is UO to U3F 6 For the LCPU whose serial number first five digits is 15101 or earlier either OK point or 8K point can be set for the step relay For the LCPU whose serial number first five digits is 15102 or later the step relay points can be set up to the following points e LO2 S CPU L02 S CPU P 8192 points e Other models 16384 points 7 For the LO6CPU LO6CPU P L26CPU L26CPU P L26CPU BT and L26CPU PBT whose serial number first five digits is 16042 or later the pointer for automatic assign device is extended up to 32768 points in the Device tab of the PLC parameter dialog box For details refer to the MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals 3 SPECIFICATIONS 3 3 Processing Time 3 3 1 Processing time for SFC program The time required to process the SFC program is discussed below 1 Method for calculating the SFC program processing time Calculate the SFC program processing time with the following expression SFC program processing time A B C a A Processing time of operation outputs in all blocks Indicates the total sum of the processing times of the instructions use
84. active steps within active blocks e Active step transition conditions 60 e Steps with satisfied transition conditions 10 active steps no HOLD steps with satisfied transition conditions SFC system process time 14 5 x 30 5 2 x 70 1 8 x 50 10 6 x 60 4 3 x 60 56 2 x 10 46 6 2391 6 us 2 40 ms In this case calculation using the equation shown above results in an SFC system processing time of 2 40 ms The scan time is the total of the following times SFC system processing time main sequence program processing time SFC active step transition condition time and CPU END processing time The scan time is the total of the following times SFC system processing time main sequence program processing time processing time of ladder circuit having transition conditions associated with SFC s active steps and CPU module s END processing time The number of active steps the number of transition conditions and the number of steps with satisfied transition conditions varies according to the conditions shown below e When transition condition is unsatisfied e When transition condition is satisfied without continuous transition e When transition condition is satisfied with continuous transition The method for determining the number of the above items is illustrated in the SFC diagram below Step 1 Transition _ _ condition 1 Step 2 Step 6 Transition _ Tra
85. ade make an initial start once and then return it to a resume start An initial start is always performed in the Basic model QCPU and the Universal model QCPU with serial number first five digits 11042 or earlier 5 In the Universal model QCPU and LCPU a resume start is performed if data other than SFC programs are changed x6 The Basic model QCPU and Universal model QCPU of which the first 5 digits of the serial number are 11042 always makes an initial start 1 When the programmable controller is powered OFF or the CPU module is reset the intelligent function modules and special function modules are initialized When making a resume start create an initial program for the intelligent function module special function module in the block that is always active or in the sequence program 2 When the programmable controller is powered OFF or the CPU module is reset values in the devices without a latch setting are cleared To hold the values in the SFC information devices set a latch range 4 SFC PROGRAM CONFIGURATION 4 7 2 Block 0 START condition The block 0 START condition is designed to set whether block 0 will be automatically activated or not at SFC program START when SM321 turns from OFF to ON Use the block 0 START condition when it is desired to specify the START block at SFC program START according to the product type etc Auto START ON is useful when block 0 is used as described below e Used as a c
86. ader capacity SFC program START SFCP and END SFCPEND instructions operation output total for all steps c ity of blocks 2 number of steps where SFC diagram is Spacy CERN TE expressed by SFC dedicated instructions E total number of transition conditions x As shown below Block START BLOCK BLm and END BEND instructions x Number of steps where SFC diagram is expressed by SFC dedicated instructions pa gt Step LLE E Be eae i 3 sequence steps for step START STEP Sn and END SEND instructions LH e Transition conditions il EE gt 1 For serial transition or selective branching coupling ee eee 4 sequence steps for transition START instruction TRAN _ TRn and transition rte destination instruction TSET Sn foes gt 2 For parallel branching C Total number of steps for the transition START instruction TRAN _ TRn and transition destination instructions TSET Sn for the number of parallel branches in question ieee gt 3 For parallel coupling Total number of steps for the transition START instruction TRAN TRn and the transition destination instructions TSETSn and coupling check instructions TAND Sn for the number of parallel branchings in question 1 se aa gt Jump L end step L Calculated as step 0 because it is included in the previous transition condition e Operation outputs for each step The capacity per step is as follows e Total number of sequen
87. al step i 1 J l I alt _ Station 1 START a C Pallet clamp Pallet clamp m Pallet clamp i block 1 START r step 1 EJ step 1 7 step 1 oO pean 1 1 2 i 1 i amp __ Station2 START____ C Drilling Tapping i Workpiece unloading ve i i i g block 2 START as step 2 T step 2 l JE step 2 I i __ Station 3 START __ 1 Sa C Pallet unclamp Pallet unclamp Pallet unclamp i block 3 START 1 4 step 3 f step 3 i T step 3 I I a a i 1 ot i i t END irni END step END step END step END step jad Is deta a TIONE cs el INCA Rtn i j i 3 1 1 GENERAL DESCRIPTION 2 Program development efficiency is enhanced by dividing control into parts The machine control process can be divided into parts by describing the operation sequence and machine control separately The MELSAP L is used to describe the operation sequence for the machine and a sequence program circuit list is used to describe the machine control including individual interlock Clamp SOL1 SOL2 f LS U 4 Clamp UP endpoint gt MT1 F ds lt lt MTO F utie O yahe Pa 4 Clamp DOWN endpoint ITOE Headstock rotation MT2 R Headstock RETRACT Machining Machining Carriage ADVANCE endpoint START END endpoint Carriage RETRACT endpoint LSO LS1 LS2 LS F LS R Se Interlock such as emergency stop Carriage ADVANCE MO X13 X10 X16 step 5 OMO e Hime Y4 Carriage ADVANCE endpoint
88. am 1000 sequence steps The number of active steps 40 High Performance model p Reduir r a QCPU rocess equnaan Instruction Condition CPU CPU QnHCPU At instruction execution 120us s P sFescoMmR H ASmuoion execut 7 At END processing read 1 comment RON kA Eo At instruction execution 430us 120s 1204s Transition condition for serial transition e Transition condition after felis Thins 11m At END selection branching S P SFCTCOMR processing Number of zoms zone 20s read 1 Transition parallel 2 0ms 2 0ms 2 0ms comment condition after couplings 2 parallel Number of couplings 32 1 Indicates that the sequence steps in SFC steps consist of 800 sequence steps Universal model QCPU QO4UD E HCPU QO6UD E HCPU Q10UD E HCPU ne Q13UD E HCPU 03UD E HCPU Instruction Condition Q E Q20UD E HCPU Q26UD E HCPU Q50UDEHCPU Q100UDEHCPU in S P SFCSCOMR SFCSCOMR 190us 193us 176us 177us At instruction execution S P SFCTCOMR 190us 193us 176us 177us Universal model QCPU aed QO4UDVCPU QO6UDVCPU Instruction Condition QO3UDVCPU Q13UDVCPU Q26UDVCPU S P SFCSCOMR 54 6us 65 0us 51 3us 65 0us S P SFCTCOMR instruction execution S P SFCTCOMR SFCTCOMR 54 8us 65 3us 51 7us 65 3us 3 SPECIFICATIONS Universal model UniversalmodelQCPU si QO4UD E HCPU QO6UD E HCPU Q10UD E HCPU Instruction Condition QO03UD E HCPU Ree ie Q20UD E HCPU Q26UD E HCPU QS50UDEHC
89. anches SFC program prog RE aa Max 1280 steps for all blocks including HOLD steps Max 256 steps for one block Number of operation output Max 2k steps for one block 2 sequence steps 512 steps for on one step Humber ot transition One ladder block only condition sequence steps Step transition watchdog timer function Provided 10 timers Table 3 2 Performance Specifications Related to SFC Programs pa of SFC Max 1024 steps for all blocks max 128 steps for one block branches Max 1024 steps for all blocks ACIIVESTEpS Max 128 steps for one block including HOLD steps Pee ut Max 2k steps for all blocks 1 P P No restriction on one step sequence steps Number of transition condition sequence steps Step transition watchdog timer None function One ladder block only 3 SPECIFICATIONS Table 3 2 Performance Specifications Related to SFC Programs QO3UD E CPU Q04UD E HCPU QO6UD E HCPU Q13UD E HCPU go3upvePu aoaupvcpu aosubvcpu Q10UD EHCPU Qi 3upvcpu Capacity Max 30k steps Max 40k steps Max 60k steps Max 100k steps Max 130k steps A of files Scannable SFC program 1 files normal SFC program only Number of blocks of blocks Max 320 blocks 0 to 319 steps Max 512 steps for one block branches Number of concurrently active steps including HOLD steps bade ut Max 2k steps for all blocks 2 p p No restriction on one step sequence steps Number of transition co
90. and Auto START using PLC parameter Block START by SFC diagram symbol Block START by SFC control instruction Block START by SFC information device e By setting the start condition to block 0 Auto START in the SFC setting of the PLC parameter dialog box block 0 is automatically started at an SFC program start and processing is executed from the initial step e Another block is started by the block START steps BmH BmE at each of the SFC program blocks m Transition condition satisfied n Bm Block m is started eee No to be started i 1 I 1 1 vole e Using an SFC control instruction a specified block is forcibly started from an SFC program step operation output or from another sequence program 1 When specified block is executed from its initial step Condition __ sBLm m is the block No 2 When specified block is executed from specified step Condition sBLm sn xm is the block No n is the step No e The corresponding block is activated by forcibly turning ON the block START END bit which was set to each block as the SFC information device in the program or peripheral device e Convenient when block 0 is used as a control block a preprocessing block or a constant monitoring block for example e Convenient when the sequence control is clear as in automatic operation e There are 2 types of block START The START source st
91. ansition ac automatically switched OFF condition n Step n 1 4 SFC PROGRAM CONFIGURATION b When the SET basic or application instruction is used If a transition to the next step occurs and the corresponding step becomes inactive the device remains ON or the data stored in the device is held To turn OFF the ON device or clear the data stored in the device use the RST instruction etc at another step When transition condition n becomes satisfied at the Example step n operation output where YO is ON by SET Step n dressa sY0 instruction the YO ON status will be maintained even Transition Pe condition ine T after the transition to step n 1 Step c When the oC _ instruction is used 1 The counter counts once every time the transition condition is satisfied and the corresponding step that is inactive is activated Example Transition L condition n Counter CO counts once when transition condition n is Step n as oC0 K10 satisfied and execution proceeds to step n 2 To cause the counter to count once when the input condition turns ON and execution to proceed to the next step when the counter counts up e Create a counter ladder in a sequence program or e Create an SFC diagram using a jump transition on MELSAP L In the program example shown below the counter counts once every time X10 turns ON and execution proceeds to the next step w
92. ant CPU e Designates an Initial start or Resume start when the SFC Initial start Resume start Initial start program is started e Designates whether block 0 is Autostart block 0 Do not Autostart Start conditions to be started automatically autostart block 0 block 0 e Designates the coil output Turn OFF Keep ON Turn OFF mode at a block STOP Designates the first block No of the periodic execution 0 to 319 blocks aa No setting x Designates the time interval for execution of the periodic 1 to 65535 ms execution blocks S A Stop blocks Designates the operation which a block range me occurs when a START request Waiting x x AS ee can be designated multi activated is made for a block which is blocks Wait only Wait only for the stop blocks already active setting f Waiting blocks stop blocks Designates the operation which E a step range occurs when a transition i x i can be designated x follow up is executed to a Transfer Transfer ea f for the stop blocks Wait only step which is already active or eras p only or Waiting blocks when an active step is started setting Can be set xX Cannot be set 4 SFC PROGRAM CONFIGURATION 4 7 1 SFC program start mode The SFC program start mode setting determines whether an SFC program START SM321 OFF ON is executed by an Initial start or by a Resume start from the preceding execution status 1 Settings and co
93. aries according to the ON OFF setting of the block STOP mode bit as shown below e The block is stopped immediately when the block STOP RESTART bit switches from OFF to ON or when a block STOP instruction is executed However if the block STOP RESTART bit is switched ON within the current block the STOP will occur when that block is processed at the next scan or when the instruction is executed e The block is stopped at the step transition which occurs when the transition condition for the current step active step is satisfied However the operation output will not be executed for the step following the transition e When multiple steps are active in a parallel branch the STOP will occur sequentially at each of the steps as their transition conditions are satisfied However the held step stops immediately after a STOP request independently of the block STOP mode 2 When the corresponding block is stopped the stop timing is as described below Seuing sf Operation Status of operation Held step Output Mode at Output at 4 Active step other than held step Block Stop in Block Stop oe including HOLD step whose transition condition OLD step SC a Recah i PLC Parameter SM325 is not satisfied P harean check SE chen ST OFF orno e Immediately after a STOP request is made setting the coil output of the operation output is turned immediate OFF and the block is stopped e Turns OFF e The status remains active
94. at block double START is STOP A BLOCK EXE ERROR error code 4620 occurs and the CPU module stops processing b When the setting of the operation mode at block double START is the default setting of WAIT Processing is not performed and waits until the START destination block ends its execution POINTS 4 For the Basic model QCPU QOOUJCPU QOOUCPU Q01UCPU Q02UCPU Universal model QCPU whose serial number first five digits is 12051 or earlier and LCPU the operation mode at double block START cannot be set For these CPU modules only the WAIT mode is available 3 A block START request can start multiple blocks simultaneously by performing a parallel transition refer to Section 4 3 3 The steps in the simultaneously started blocks are processed in parallel 4 SFC PROGRAM CONFIGURATION 4 The number of steps that can be executed simultaneously is a total of up to 1280 steps 2 for all blocks The number of steps that can be executed simultaneously in a single block is a maximum of 256 steps 3 including those of the HOLD steps 2 Up to 1024 steps for the following CPU modules e Basic model QCPU e Universal model QCPU QOOUJCPU QOOUCPU Q01UCPU and Q02UCPU e LCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P 3 Up to 128 steps for the following CPU modules e Basic model QCPU e Universal model QCPU QOOUJCPU QOOUCPU Q01UCPU and Q02UCPU e LCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P The execution statu
95. atch readout BMOV eceeceseeeeeeeseeeteeeeeeeeieesieesieeeaeeseeseeseesieeseeseesieesieesieetieeeeees 4 53 4 4 6 Block START amp END instructions S r eceeceeceeeeeeeeeeeeee tees sere taee eee see seeseesaeesieeseesieetieesieesieeeieees 4 57 4 4 7 Block STOP and RESTART instructions PAUSE RSTART ecceceeeseneeeeteeeseeteeeenetenteeaees 4 58 4 4 8 Step START and END instructions S 1 ceceecceeceeeeeecneeeeeeeeeeseeeeaeeseeseeseeseeseesieesieesieesieeeneesieees 4 61 4 4 9 Forced transition EXECUTE amp CANCEL instructions S r cceeeceeeceeeeeeeeeeeeteeeteeesneetieeeneesieeeeees 4 65 4 4 10 Active step change instruction SCHG 0 ceccecceceeeeeeeeeeeeeeeeesieesieesieeesaeesieesieeseesieesieesieesieesieees 4 67 4 4 11 Block switching instruction BRSET 2 0 ceeeeceeeceseeeeeeeeeeeeseeeseeesieeseesaeeseesieesieesieesieesieesieesneeseees 4 68 4 5 SFC Information Devices n nresnani dud raaraa a r EA U ens enan raia Tea raitaa rad A Ei atakar aiia 4 70 A 5 1 Block STAR VEND bitis 2 2 28 cet ane id nce Aided noted teed etc 4 72 4 5 2 Step transition biti a a a a a e aa e aE ae aa sand a A aa r te eas aa aaar eta debs EELER 4 74 4 59 35 Block STOP RESTART Dios ie a E A A E A A 4 76 ASA Bock STOP mode Dibeiu sonir A inishecaiies sisaaaieehanieaiiites 4 79 4 5 5 Continuous transition Diten eei eane a aeeie ao ase a a eaae aaea 4 82 4 5 6 Number of active steps register asesssresresrsirsrsirsireirsensinasindtd
96. ated the check of the transition condition to the next step is started 1 The operation of the block START step with END check is described below a When activated the block START step with END check starts the specified block b No processing is performed until the START destination block is deactivated after its execution has ended c When the START destination block is deactivated after its execution has ended only the transition condition check is performed d When the transition condition is satisfied a transition to the next step occurs Block m Bm In 2 A simultaneous start cannot be made for a single block The block that has already started cannot be started either If either of the above starts is made the following processing is performed depending on the setting of the operation mode at block double START 1 Refer to Section 4 7 5 for details of the operation at block double START a When the setting of the operation mode at block double START is STOP A BLOCK EXE ERROR error code 4620 occurs and the CPU module stops processing b When the setting of the operation mode at block double START is the default setting of WAIT Processing is not performed and waits until the START destination block ends its execution POINTS 4 For the Basic model QCPU QOOUJCPU QOOUCPU Q01UCPU Q02UCPU Universal model QCPU whose serial number first five digits is 12051 or earlier and
97. cable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU 1 The serial number first five digits shall be 07012 or later 2 The serial number first five digits shall be 07032 or later 3 The serial number first five digits shall be 12052 or later except for the QOO0U J Q01U QO2UCPU 4 8 2 SFC transition comment readout instruction S P SFCTCOMR Usable Devices Internal Device Link Direc Intelligent A Data SFC SFC Program i p i 3 Function Other Type Sequence Block Ste Transition t wor Module ia Sn Program stn Tension P Condition i i AG Condition x3 Local device cannot be used S SFCTCOMR nmi n2 n3 02 SP SFCTCOMR n1 n2 n3 02 Data Set Data Data Meaning Rane Indicates block No of an SFC program that read comments or device number where 0 to 319 block No is stored Indicates the first number of device that stores comment read o no Indicates the device number where the number of comments to read or the number of 0 to 2564 comments is stored a Indicates the number of comments to read in a single scan or device number where the Oto 256 5 number of comments is stored Indicates a device that turns ON for 1 scan at completion of the instruction Le x4 When specifying 0 it is processed as 256 x5 When specifying 0 it is processed as 1 4 106 4 106 4 SFC PROGRAM CONFIGURATION x6 Comments to be read are stored as foll
98. ce steps for all instructions For details regarding the number of sequence steps for each instruction refer to the QCPU Programming Manual Common Instructions e Transition conditions The capacity per transition condition is as follows e Total number of sequence steps for all instructions For details regarding the number of sequence steps for each instruction refer to the QCPU Programming Manual Common Instructions 3 SPECIFICATIONS 2 Number of steps required for expressing the SFC diagram as SFC dedicated instructions The following table shows the number of steps required for expressing the SFC diagram as SFC dedicated instructions Number of eae Steps Required Number of Steps Ladder Expression SFCP Indicates the SFC program START 1 per program SFCP END instruction SFCPEND Indicates the SFC program END 1 per program Block START instruction BLOCK BLm Indicates the block START 1 per block Block END instruction BEND Indicates the block END 1 per block STEP Si Indicates the step START i varies according to the step attribute 1 per step TRAN TR Indicates the transition START varies according to the step attribute 1 per transition condition TAND Si Coupling completed check occurs at parallel coupling Number of parallel couplings 1 per parallel coupling Transition designati
99. ctive and the block stops immediately Operation HOLD step with transition check ST Coil HOLD step OLP ste SC check SE e Immediately after a STOP request is made the coil e Immediately after a STOP output of the f request is made the coil operation i output of the operation output is turned OFF and the block is stopped output is turned OFF and the block i The status remains active is stopped e The status becomes inactive e Immediately after a STOP request is made the block is stopped with the coil output of the operation output being held The status remains active x The held step indicates the step whose attribute has been set to the HOLD step SC SE ST and which is being held with the transition condition satisfied 6 7 6 SFC PROGRAM EXECUTION The operation of SM325 differs depending on the CPU module e For the Basic model QCPU High Performance model QCPU and Process CPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop at STOP RUN of the CPU module e For the Universal model QCPU and LCPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop when the CPU module is powered ON or is reset Parameter setting SM325 Turns OFF coil output OFF Remains ON coil output held Note that the output mode at block stop can be changed regardless of the parameter setting by turning O
100. cuted Is transition condition b satisfied Is transition condition e satisfied Is transition condition h satisfied Is transition condition NO c satisfied Operation output of initial step 2 is deactivated y Operation output of initial Operation output of initial Operation output of initial step 1 is deactivated step 1 is deactivated step 1 is deactivated es yY Operation output of initial Operation output of Operation output of initial step 2 is executed initial step 4 is executed step 6 is executed Is transition condition f satisfied Operation output of initial step 4 is deactivated Operation output of initial step 3 is executed Is transition condition d satisfied YES Y Operation output of initial step 5 is executed Is transition condition g satisfied Is transition condition i satisfied Operation output of initial step 3 is deactivated Vv Operation output of initial step 7 is executed Is transition condition j satisfied Operation output of initial step 7 is deactivated Block is ended since end step is reached Operation output of initial step 5 is deactivated Operation output of initial step 6 is deactivated 4 SFC PROGRAM CONFIGURATION SSS SSS 4 3 3 Parallel transition Parallel transition is the transition format in which
101. d LCPU if a nonexistent step is specified when the block specification is not performed 6 Specify the step as described below a In the case of SFC program 1 Use K4Sn when specifying the step in the current block 2 Use BLm K4Sn when specifying the step in the SFC program b In the case of sequence program 1 Use BLm K4Sn when executing the step activation check instruction 2 When the block number is not specified specify the block number with the BRSET instruction Note however that the following CPU modules cannot use the BRSET instruction When no block number is specified the block 0 is set e Basic model QCPU e Universal model QCPU whose serial number first five digits is 13101 or earlier e LCPU Operation Error e If exceeding the maximum step No 8191 when block specification is not made for the Universal model QCPU or LCPU 0c eee eee eeeeeeeeeeeeeeeeeees Error No 4101 e If specifying the stop which does not exist when block specification is not made for the Universal model QCPU or LCPU ce eecee ee eee eee eee e eee eeeee ees Error No 4101 4 SFC PROGRAM CONFIGURATION Program Examples 1 The following program reads 32 active steps starting from step 0 of block 3 to DO and D1 when XO turns ON When step is designated by operation output of block 3 ax0 DMOVP K8S0 DO When step is designated by
102. d a WAIT status is established when the transition condition is satisfied The WAIT status continues until the START destination block is deactivated WAIT default A step transition occurs when the START destination block is deactivated and that block is then reactivated e If a transition WAIT occurs the previous step is deactivated the output is switched OFF and the operation output will not be executed Block m Ee started by block START step HOLD step with transition check Transition to step Condition where block START satisfied is being made Bm i 1 When a START request is issued to the block that is already active by execution of the following the START request is ignored and the processing of the SFC program is continued as is e Block START instruction SET BLm of SFC control instructions e ON of Block START END bit of SFC information devices 2 For the Basic model QCPU Universal model QCPU and LCPU setting of the operation mode at block double START is not allowed The operation mode at block double START is fixed to the default WAIT for them 4 SFC PROGRAM CONFIGURATION 4 7 6 Operation mode at transition to active step double step START This mode setting designates the operation mode which is to be effective when a follow up function such as an operation HOLD step with transition check is used to execute a transition to a step which is already active 1 S
103. d for the operation outputs of all steps that are active For the processing times of the instructions refer to the QCPU Programming Manual Common Instructions b B Processing time of all transition conditions Indicates the total sum of the processing times of the instructions used for the transition conditions associated with all steps that are active For the processing times of the instructions refer to the QCPU Programming Manual Common Instructions c C SFC system processing time Calculate the SFC system processing time with the following expression SFC system processing time a b c d e f g Processing Time Time Calculation of Processing Time Unit us a Active block Active block processing time active block processing time coefficient lt number of active blocks processing Active block processing time System processing time required to execute active blocks time e Number of active blocks Number of blocks that are active Inactive block Inactive block processing time inactive block processing time coefficient xX number of inactive blocks processing Inactive block processing time System processing time required to execute inactive blocks time e Number of inactive blocks Number of blocks that are inactive Nonexistent Nonexistent block processing time nonexistent block processing time coefficient number of block nonexistent blocks processing None
104. de in the PLC parameter dialog box when the CPU module switches from STOP to RUN e At initial start setting OFF e At resume start setting ON x2 Operation at resume start At aresume start the SFC program stop position is held but the status of each device used for the operation output is not held Therefore make latch setting for the devices whose statuses must be held in making a resume start e The held coil HOLD step becomes inactive and is not kept held In the Basic model QCPU Universal model QCPU and LCPU the held coil HOLD step restarts in the held status under conditions other than those that turns OFF the coil HOLD step such as turning ON and OFF of SM321 or operating status change RUN to STOP of the CPU module 4 88 4 88 4 SFC PROGRAM CONFIGURATION x3 Depending on the timing a resume start is disabled and an initial start may be made To perform a resume start turn ON and then OFF SM321 or switch the CPU module from RUN to STOP and power OFF and then ON the programmable controller Note that the Basic model QCPU and the Universal model QCPU with serial number 11042 first five digits or earlier always perform an initial start x4 A resume start may be made depending on the SFC program change If a resume start is made as is a start is made from the old step number leading to a malfunction of the mechanical system When any SFC program change SFC diagram correction such as step addition and deletion has been m
105. der Transition condition d 1 Up to 32 steps can processed simultaneously with the parallel transition format Step n Step Step Step Step Step ney 42 43 ned 432 v Up to 32 steps 4 SFC PROGRAM CONFIGURATION 2 If another block is started by the parallel processing operation the START source block and START destination block will be executed simultaneously In the example below processing from step n 1 will be executed simultaneously with block 1 Block 0 E Step n Transition condition b Step lie Vee Block 1 START T Transition T Transition condition condition When condition b is satisfied at step n r Ba execution processing will proceed to step n 1 and block 1 will be started Blocks 0 ak and 1 will then be processed simultaneously 3 The following table indicates the number of steps that can be executed simultaneously in all blocks and the maximum number of active steps in a single block If the number of simultaneously processed steps exceeds the value in the following table an error occurs and the CPU module stops processing eee CPU module type processed simultaneously steps in one block 1280 steps 256 steps Universal model QOOUJCPU QOOUCPU QCPU Q01UCPU QO2UCPU QO3UDCPU QO03UDVCPU QO3UDECPU QO4UDHCPU QO04UDVCPU QO4UDEHCPU QO6U
106. digits is 12051 or earlier the maximum number of SFC steps is 8192 for all blocks x4 For the Universal model QCPU whose serial number first five digits is 12052 or later the maximum number of SFC steps can be changed by changing the step relay S points in the Device tab of the PLC parameter dialog box For settings refer to the QnUCPU User s Manual Function Explanation Program Fundamentals Table 3 2 Performance Specifications Related to SFC Programs L26CPU LO2SCPU LO2SCPU P LO6CPU L26CPU P LO2CPU LO2CPU P LO6CPU P L26CPU BT L26CPU PBT Number of SFC Max 1024 steps for all blocks max 128 Max 8192 steps for all blocks max 512 steps steps for one block steps for one block Number of Max 32 branches Max 1024 steps for all blocks max 128 Max 1280 steps for all blocks max 256 steps for one block steps for one block Item active steps including HOLD steps PANA v ut Max 2k steps for one block 1 p P No restriction on one step sequence steps Number of One ladder block only sequence steps Step transition watchdog timer s None function x1 The maximum number of sequence steps per block depends on the instruction used for operation output or note editing setting The number of steps 2k steps indicated in the table applies when Unite United Note is selected for note editing Note that 2k sequence steps per block may not be secured when Peripheral Peripheral Note is selected If not
107. e Q13UDVCPU and Q26UDVCPU The range differs depending on the CPU module MO to M9215 for the QO3UDVCPU MO to M15359 for the QO4UDVCPU and QO6UDVCPU and MO to M28671 for the Q13UDVCPU and Q26UDVCPU The number of points differs depending on the CPU module 13312 for the QO3UDVCPU 22528 for the QO4UDVCPU and QO6UDVCPU and 41984 for the Q13UDVCPU and Q26UDVCPU 23 The range differs depending on the CPU module DO to D13311 for the QO3UDVCPU DO to D22527 for the QO4UDVCPU and QO6UDVCPU and DO to D41983 for the Q13UDVCPU and Q26UDVCPU 24 The setting range differs depending on the CPU module 0 to 4192k points for the QOD3UDVCPU 0 to 4224k points for the QO4UDVCPU 0 to 4480k points for QQEUDVCPU 0 to 4608k points for the Q13UDVCPU and 0 to 4736k points for the Q26UDVCPU 25 For the QQOQUJCPU QOOUCPU Q01UCPU and QO2UCPU the number of points is 128 3 SPECIFICATIONS 3 2 4 Device list of LCPU Table 3 6 indicates the devices that can be used for the transition conditions and operation outputs of SFC programs Table 3 6 Device List Default Parameter mooo pa XO to X1FFF aes Internal relay Bit device Classification Type Device name setting range Seting Bit device a conciernen o stow sraouy veoma veras oil for the internal Word user device 6 device Counter 1024 CO to C1023 Decimal current Data register 12288 DO to D12287 Word Link register 8192 WO to W1FFF device
108. e editing is not set 2k sequence steps or more per block may be secured depending on the instruction used The STEP RUN operation and step trace functions are not available 3 SPECIFICATIONS 2 Precautions for creating SFC program a The SFC programs that can be created are scan execution type program and stand by type program b Two SFC programs one normal SFC program and one program execution management SFC program can be set as a scan execution type program 2 c More than one SFC program can be set as a stand by type program d The stand by type SFC program is executed in the following procedure The currently executed scan execution type program is switched to the stand by type program e The stand by type program to be executed is switched to the scan execution type program lt More than one program can be set Initial execution SFC program cannot be set type program More than one program can be set Two SFC programs normal and program execution management can be set 2 Stand type program program 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 More than one program can be set More than one SFC program can be set for normal programs lt More than one rogram can be 2 eG f Fixed scan SFC program execution type cannot be set program Low speed execution type program The maximum number of program files changes depending
109. e number of active steps applies to the following steps e Normal active steps e Coil HOLD steps e Operation HOLD steps without transition check e Operation HOLD steps with transition check e Stopping steps e Step double START waiting steps 4 SFC PROGRAM CONFIGURATION 4 6 Step Transition Watchdog Timer The step transition watchdog timers are timers that measure the time from the point when the relevant step is placed in the execution status until the point when a transition to the next step occurs If a transition from the relevant step to the next step fails to occur within the designated time period the preset annunciator F will be turned ON 1 When using the step transition watchdog timer set the set time and the device number of annunciator F that will turn ON at time out to the special register for step transition watchdog timer setting SD90 to SD99 The step transition watchdog timer starts timing when the special relay for step transition watchdog timer start SM90 to SM99 is turned ON in the operation output of the step that performs a time check When any corresponding one of SM90 to SM99 is turned OFF during timing the step transition watchdog timer stops timing and is reset 2 There are 10 step transition watchdog timers watchdog timer 1 to watchdog timer 10 in the whole SFC program The special relay for step transition watchdog timer start and the special register for step transition watchdog timer
110. e step operation output of the SFC program or in another sequence program Condition L rSn n is the step No Condition __ rBLm sn xm is the block No n is the step No When the step attribute has been specified operation is performed according to the attribute e Convenient for ending the HOLD step when the machine operation condition is satisfied during SFC program execution when a transition to the error processing step is performed by selection branch for example The step number to be ended can be specified in only the same block e The steps in different blocks can also be ended e The block is ended when all steps of the corresponding block are deactivated by the RST instruction 6 SFC PROGRAM EXECUTION 6 4 3 Changing an active step status Not available for Basic model QCPU Universal model QCPU and LCPU This section explains the method for ending deactivating an active step and starting activating the specified step Changing Method At the step operation output of the SFC e Convenient when the jump destination program the instruction execution step is ended changes depending on the condition and the specified step is forcibly started The change destination step can be specified within the current block be used to specify the change destination step e When multiple instructions have been described within one step the change destination executed in t
111. ead K Program Transition Condition U Condition Device name Internal Device System User n sOX TRn L rOTRn t n is the transition condition No T t n is the transition condition No m is the block No t m is the block No n s BLm TRn rO BLm TRn Function 1 Forced transition EXECUTE instruction s a A specified transition condition in a specified block is forcibly satisfied and an unconditional transition is executed at the step which precedes the condition User setting Continuous transition prevention Transition condition amp aSM324 Always ON Condition image by instruction execution b After execution of the instruction the forced transition status remains effective until a reset instruction is executed 2 Forced transition CANCEL instruction r a Cancels the forced transition setting designated by SET instruction at a transition condition and restores the transition condition ladder created by the user 3 Specify the transition condition as described below a In the case of SFC program e Use TRn when specifying the transition condition in the current block e Use BLm TRn when specifying the transition condition in another block b In the case of sequence program e Use BLm TRn when executing the forced transition EXECUTE CANCEL instruction in the sequence program e When the block number is not specified specify the block number with the BRSET instruction
112. ed When the special relay for operation output selection at block STOP SM325 is turned ON the PLS or P instruction is not executed if a block STOP is canceled 5 When the SFC control block STOP instruction PAUSE BLm is executed the block in question is stopped and the block STOP RESTART bit switches ON When the block RESTART instruction RSTART BLm is executed while the block is stopped the block in question is restarted and the block STOP RESTART bit switches OFF POINTS 1 Stopping of program processing by a block STOP RESTART bit being switched ON or by a block STOP instruction applies only to the specified block 2 Even if a block stop is executed for the START destination block the START source block will not be stopped 3 Even if a block stop is executed for the START source block the START destination block will not be stopped Related Instructions 1 SFC information device Block STOP mode bitirsin See Section 4 5 4 2 SFC control instructions e Block STOP instruction PAUSE BLm and block RESTART instruction RSTART BLM 3 ccc eea See Section 4 4 7 4 SFC PROGRAM CONFIGURATION 4 5 4 Block STOP mode bit The block STOP mode bit setting determines when the specified block is stopped after the block STOP RESTART bit switches ON or after a stop designation by the block STOP instruction PAUSE BLm 1 The stop timing for a block where a STOP request has occurred v
113. ed and the block ends if SM328 is ON When there is normal active step left When there is HOLD step whose When there is held active step left transition condition is not satisfied which is not held left aa l aa L N ranstion Ny renstion resin When SM328 is turned ON When SM328 is turned ON Block is ended independently processing of active step is processing of HOLD step is continued of whether SM328 is ON or OFF continued 1 For the Basic model QCPU Universal model QCPU and LCPU SM328 can be used to continue execution of active steps other than the one held in the block 4 SFC PROGRAM CONFIGURATION POINTS The following gives the precautions to be taken when SM328 is turned ON 1 When there is only the held step left at arrival at the end step that held step is deactivated if SM328 is ON When the user does not want to turn OFF the coil output of the held step suddenly it can be prevented by turning ON SM327 2 If a block is started at the block START step when SM328 is ON execution returns to the source as soon as there are no non held active steps in the block 3 Do not describe an always satisfied transition condition immediately after the operation HOLD step with transition check Block n Block m y 1 Since the transition condition is always oe satisfied step m 1 remains an active Step n Step m step non held active status DT 1 aSM400 2 If MO turns ON and the transit
114. eeseneeeseeees 5 1 5 1 1 Whole program processing SCQUENCE cecccceccceeeeeeeeeeeeeaeeceaeeeeaneeseneeseaeeseaceseeneesaneeeeeeesineesaes 5 1 5 2 Whole Program Processing of High Performance Model QCPU Process CPU Redundant CPU Universal Model QCPU and LOPU 0 0 cccccceessseeeeeeeceesesseeeeeeeeesessssaeeeeeeeesesssnaeeeeeeeseneeas 5 2 5 2 1 Whole program processing SEQUENCE cceccceeeceeeeeeeeeaeeecaeeeeeeeetaeeseaeeecaeeeseeeseneeesaeeeeueetenseesaas 5 2 A 7 A 7 5 2 2 Execution type designation by instructions cecceeceeceseeeeeeeeeeeeeeeeeieeseeeeieesieesieesieesieesieesieenaeess 5 4 5 2 3 SFC program for program execution management ce eeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeteeeteeteetieetieeteees 5 6 5 3 SFC Program Processing SEQUENCE oesnonsnunorioti iann i RRA 5 8 Sa LoF Program SxGCution eena cee Sete tale eee tee weed eee eee eo ee a 5 8 5 3 2 Block execution SEQUENCE iosita aaa ie eitea aaaea an deea a aaae a aieeaa 5 10 5 3 3 Step execution SEQUENCE cceccccescceencecesceeeneeceaeeseaeecaeecsaneeseneesaeeseaeecsanessaceeseneeseaeeseeessisaeetsnees 5 11 5 3 4 Continuous transition ON OFF operation ccccccecceceseceeeeeeeceeeceeseaeeeeeeeeeeaaeeseaeescaeeeeaeeeseaeessaees 5 12 6 SFC PROGRAM EXECUTION 6 1 to 6 25 6 1 SFC Program START And STOP ceceecceeeeeeceeeeseeeseeeseeeceeeeceeeseesaesaeseeeseneseaeseaeseeeseaeseaeeeneseaseeaeeeats 6 1 6 1 1 SFC program resumpt
115. eetaes 6 14 6 6 Operation at Program Change cccecceeceseceeeeeeeeseeeceeesieesneeeseeeeeeeeseeseesaeesaeeseesaeeseeseesieesieesieeeeesas 6 15 6 6 1 Operation at program change made by write to PLC e eee eeeeeeeeeeeeeeneeeeeeeaeeeaeeeaeeeeeeaeeeaeeeatenas 6 17 6 6 2 Program change by online ChANGe ecceeeceeeeeeeeeneeeeeeeeeeeeeeeaeeeaeeeaeeeeaeeeaeeeaeeeaeeeaeeeaeesaeeeeeeeeeaeeeas 6 18 6 6 3 Online change inactive DIOCK oo riena nenna knaar raK AEAEE REK NERKA KAn E N REKREA RE KEERA R EKEREN Ra KARIA REREN N 6 19 APPENDICES APP 1 to APP 11 APPENDIX 1 Special Relay and Special Register List 0 2 00 ce eecceeeeeeseeseeeeeeeeeeeeneeeneesieesneesneesneesieees APP 1 APPENDIX 1 1 Special Relay SM List c cecceceseeeeeeeeeeeeeeeeeeceeeeeeseeeaeeeeeeaeecaesaeseeseeeseeeaeseeeeeeares APP 2 APPENDIX 1 2 Special Register SD List ee eee eseeeeeeeeeeeeeeeeeeeeeeeeeeeeseeseeeeesieesieesireeeeseeaes APP 6 APPENDIX 2 Restrictions on Basic Model QCPU Universal Model QCPU and LCPU and Alternative Methods ecceeceeseeeeeeeeeneeeeeeeneeeaeeseeseesaeeseesiresieeeieeeaeesas APP 7 APPENDIX 2 1 Step Transition Watchdog Timer Replacement Method ccceeeeeteeeeeeeees APP 8 APPENDIX 2 2 Periodic Execution Block Replacement Method cccccceeeeeeeceeeeteeeeteeteneeees APP 9 APPENDIX 2 3 Forced Transition Bit TRn Replacement Method cceceeeeeceeeeeeeneeeneeeneteeeeaes APP 10 APP
116. el coupling selection occurs Transition condition b Transition condition c Branch Step n 1 Step n 2 operation output B operation output C _ Step n Step n 1 operation output JA operation output B When the transition condition b or c at the Transition condition b Transition condition c executed branch is satisfied the executed step A or B will be deactivated and processing Step n 2 i L operation output C will proceed to step n 2 Coupling 1 Up to 32 steps can be available for selection in the selection transition format Step n Step 432 od Max of 32 steps 2 When two or more selection step transition conditions are satisfied simultaneously the left most condition will take precedence Example If transition conditions c f Step n and d are satisfied imultaneously the ste _ Transition _ Transition _ Transition Transition gt E 9 S y p condition b condition c condition d condition e n 2 operation output will Step Step Step n 43 Step nad be executed 4 SFC PROGRAM CONFIGURATION 3 In a selection transition a coupling can be omitted by a jump transition or end transition When transition condition b is
117. entals for details 5 2 1 Whole program processing sequence The High Performance model QCPU Process CPU Redundant CPU Universal model QCPU and LCPU can store multiple programs in the program memory as files and can execute multiple files concurrently or the specified file only The whole operation image is as shown below CPU module RUN Initial execution type program Started only when necessary 4 Scan execution Stand by type type program program x Low speed Execution time Fixed scan execution monitoring execution type type program program Can be executed by High Performance model QCPU Process CPU or Redundant CPU x The low speed execution type program execution is not available for the Redundant CPU Universal model QCPU and LCPU 5 SFC PROGRAM PROCESSING SEQUENCE Execution Type SFC Compatibility e Executed only in one scan when the programmable controller is powered ON or the CPU module is switched from STOP to RUN e After that switches to a stand by type program Initial execution type program Initial Max 124 programs changes depending on the CPU module type e SFC program Max 2 programs 1 e Normal SFC program 1 program e SFC program for program execution management Scan execution type program e Program executed every scan Scan eee d time or program executed only during preset time Max 124 programs changes depending on the CPU
118. ep remains active until the START destination block is ended The START source transition occurs without waiting for the START destination block to be ended SFC diagram e Convenient when starting an error reset processing block at error detection etc and for executing interrupt processing for example e Convenient for debugging and test operations in 1 block units because the block can be started from a peripheral device without requiring a program Usable x Unusable 6 SFC PROGRAM EXECUTION 6 2 2 Block END methods The methods for ending block operations are described below As shown below there are several block END methods Choose the method which is most suitable for the purpose at hand END Method Operation Description Remarks e Block processing is ended and the block is i e Convenient for cycle stops at automatic deactivated when the block s END step is Block END by SFC d operations etc diagram symbol ee e Multiple END steps are possible within a single L END step block e Using an SFC control instruction a specified block is forcibly ended and deactivated from an SFC program step operation output or from another sequence program Condition Block END by SFC C soln control instruction e Convenient for executing a forced STOP at emergency stops etc without regard to the m is the block No operation status x Block processing is also ended
119. esignated as an operation HOLD step with transition check the corresponding step will remain active after a transition to the next step and operation output processing will continue 2 The transition condition will be checked after the transition condition is satisfied and the next step is activated Hence when the transition condition of the corresponding step is satisfied again a transition to the next step subsequent transition occurs to activate it At this time the current step remains active Transition is executed again Step which is active due to the previous transition condition f being satisfied 1 Convert the transition conditions into pulses If they are not pulsed transition processing to the next step is performed every scan while the condition is satisfied 2 When a double START occurs as the transition condition was satisfied with the transition destination step being active the processing changes depending on the parameter setting The Basic model QCPU does not allow the parameters to be selected It operates in the default Transfer mode Refer to Section 4 7 6 for the parameter setting and the processing performed for each setting 3 The difference between the operation HOLD step with transition check and the operation HOLD step without transition check is whether the next step will be activated or not as a follow up when the transition condition is satisfied again 4 SFC PROGRAM CONF
120. ethods 6 3 1 Block STOP methods The temporary block STOP methods which can be used during SFC program execution are described below 1 Block STOP methods The methods for temporarily stopping a block during SFC program operation are shown below STOP Method Operation Description e Using an SFC control instruction a specified block is temporarily stopped from an SFC program step operation output or from Block STOP by SFC another sequence program control instruction Condition e Convenient for temporarily stopping operation at error detection etc in order to correct the error by manual operation The manual operation control program can be PAUSE BLm placed at another block which is forcibly x mis the block No started when the block STOP occurs e The execution of the specified block is temporarily stopped by forcibly turning ON e Convenient for confirming operation by step STOP by SFC l the block STOP RESTART bit which was control at debugging and test operations information device because block processing can be stopped from ser tosach Blocks the SFC informati n a peripheral device without requiring a program device in the program or peripheral device perip q ae 6 SFC PROGRAM EXECUTION SSS SESS SESS SSS 2 Block STOP timing and coil output status when STOP occurs The STOP timing in response to a block STOP request and the coil output status during the STOP are as shown below Operati
121. ettings and corresponding operations For a transition to an active step set any of STOP WAIT and TRANSFER in the block parameter of the FC setting dialog box in the Tools menu The operations resulting from these settings are shown below Setting e A CPU module operation error BLOCK EXE ERROR e A step range can be occurs and CPU module operation is stopped designated for the STOP e All Y outputs switch OFF setting e CPU module operation continues and a WAIT status is established when the transition condition is satisfied The WAIT status continues until the START destination step is A step range can be deactivated designated for the WAIT e If a transition WAIT occurs the previous step is setting deactivated the output is switched OFF and the operation output will not be executed e CPU module operation continues the transition occurs and the previous step is deactivated and absorbed by the transition destination step TRANSFER default Active step Inactive Condition satisfied Active step gt Active Condition satisfied 2 Transition to HOLD step by double START The following table shows the transition procedure for transitions to coil HOLD steps operation HOLD steps with transition check and operation HOLD steps without transition check which occur when the double START condition is satisfied These transitions occur without regard to the settings described at item 1 above Setting The TR
122. evice Comment readout instruction in RUN status amp th X executing flag 1 ANI SN735 A x0 SH735 ser i 2 A MO M1 WO 4 ANI MO 3 SP SFCTCONR KI vo Ke m 5 SP SFCTCOMR K1 DO K2 K2 M1 Ne Execution command of SP SFCTCOMR instruction Procedure for batch writes of SFC program in RUN status or write of comment file in RUN status 1 Turns ON the XO write execution command in RUN status 2 MO write enable flag in RUN status is turned ON when SP SFCTCOMR instruction is deactivated 3 Turns OFF the XO write execution command in RUN status 4 Performs batch write of SFC program in RUN status or write of comment file in RUN status 5 Turns OFF the MO write enable flag in RUN status in the device test of the programming tool 6 SP SFCTCOMR instruction is executed again when MO write enable flag in RUN status is turned OFF 4 113 4 113 4 SFC PROGRAM CONFIGURATION MEMO 4 114 4 114 5 SFC PROGRAM PROCESSING SEQUENCE 5 SFC PROGRAM PROCESSING SEQUENCE 5 1 Whole Program Processing of Basic Model QCPU This section explains the program processing of the Basic model QCPU Since this manual describes only the outline refer to the QCPU User s Manual Function Explanation Programming Fundamentals for details 5 1 1 Whole program processing sequence The Basic model QCPU can create and execute two programs Sequence program and SFC program in the program memory Two sequence progra
123. evices and is convenient for partial operations such as debugging or trial runs Functions which can be controlled by these 3 methods are shown below Control Method Function SFC Diagram ee Sane SFC Information Devices Instructions Block START Block START t without END wait SPa Gree A Block END L Block START END bit OFF Block STOP PAUSE BLm Block PAUSE RESTART bit ON SSn SET BLm Sn SCHG Kn Restart stopped block RSTART BLm Block PAUSE RESTART bit OFF Sn R RST BLm Sn SCHG Kn 1 In cases where the same function can be executed by a number of methods the first control method which has been designated by the request output to the block or step in question will be the effective control method 2 Functions controlled by a given control method can be canceled by another control method Example For block START The active block started by the SFC diagram Bm can be forcibly ended by executing the SFC control instruction rBLm before the END step or by turning OFF the block START END bit of the SFC information devices 7 The automatic scroll function helps the easy location of the spot where a mechanical problem occurs The execution of an active execution block an active execution step an operation output transition condition can be monitored with the automatic scroll function from peripheral devices Moreover the transition watchdog function enables the detection of the step where tran
124. f the block information devices is forcibly turned ON 4 SFC PROGRAM CONFIGURATION 4 2 11 Instructions that cannot be used with operation outputs Table 4 1 indicates the instructions that cannot be used with operation outputs Table 4 1 Unusable Instruction List Instruction Symbol Symbol Function Remarks Mc __IWCN 1 No Master control set MCRN L_ Master control reset P Main routine program end mo mo Sequence program end Unconditional jump GoEND GOEND jump to END Label cannot be Program control IRET IRET Return from interrupt program used either Repetitive forced end Return from subroutine CHK instruction start Debugging Specific format error check troubleshooting Check pattern change start Check pattern change end SFC program start SFC program end SFC block start SFC block end SFC dedicated N D SC SE ST R C G 7 SFC step start instruction I ID ISC ISE IST IR Master control L O OA OC OCA A C J SFC transition start CA CO COC TAND TAND SFC coupling check TSET TSET SFC transition destination designation SEND SEND SFC step end 1 The Basic model QCPU Universal model QCPU and LCPU do not support the instruction 4 SFC PROGRAM CONFIGURATION 4 3 Transition A transition is the basic unit for comprising a block and is used by specifying a transition condition A transition condition is a condition for execution to proceed to the
125. floating point data Gonetant E 1 17549435 38 to E 3 40282347 38 Real constant Double precision floating point data E 2 2250738585072014 308 to E 1 7976931348623157 308 1 For the timer retentive timer and counter contact coil values are stored in bit devices and current values are stored in word devices 2 The number of points that can be actually used varies depending on the intelligent function module For the points in the buffer memory refer to the manual for the intelligent function module or special function module used 3 The value can be changed in the Device setting in the PLC parameter dialog box Except for input output step relay link special relay and link special register Refer to Section 9 2 3 SPECIFICATIONS 3 2 3 Device list of Universal model QCPU Table 3 5 indicates the devices that can be used for the transition conditions and operation outputs of SFC programs Table 3 5 Device List Default Parameter Bit device Can be changed Internal user F aie words 3 19 Retentivetimer t o Toto 872047 Decimal_ Word device Link special register 2048 Swoto SW7FF__ Hexadecimal Function input fe EXO FXF Hexadecimal Bit device Classification Type Device name setting range Function output he FYOtoFYF Hexadecimal Decimal Word Decimal device Decimal eit Jn XO to Link input 16384 14 Hexadecimal Jn X3FFF 15 N A Internal system device
126. g ___ Indicates a transition condition associated with steps 4 108 4 108 4 SFC PROGRAM CONFIGURATION 2 Executing S P SFCTCOMR instruction SM735 of the special relay SFC comment readout instruction executing flag turns ON Confirms whether or not S P SFCTCOMR instruction is executed by SM735 3 In case comments are not set into active steps 2DH is stored to the comment area word length of 32 characters 4 Read comments are stored in ascending order of the step No 5 Comments are read from the comment file specified when S P SFCTCOMR is executed 6 Comments to read with S P SFCTCOMR comments of transition condition associated with active steps of with when S P SFCTCOMR instruction is executed Because of this step comments to be activated after S P SFCTCOMR execution can not be read x As coil retention step at a status of retaining coil output or operation retention step retaining operation condition without transition check is not active step a comment cannot be read 7 Reading comment is performed at END processing for a scan that has executed S P SFCTCOMR instruction The number of comments specified at n3 is read per END processing Comments that are not read per END processing are followed to the next END processing Reading comments for transition conditions maximum the number specified at n2 associated with active steps is completed the device specified at 02 turns
127. g at error time out 1 to 255 sec occurrence 1 second units e The timer starts when any of SM90 to SM99 is turned ON during an active step and the set annunciator F turns ON if the transition condition following the corresponding step is not satisfied within the timer time limit value The special registers SD90 to SD99 correspond to the following special relays Special register Special relay SD90 SM90 APP 6 APP 6 APPENDICES APPENDIX 2 Restrictions on Basic Model QCPU Universal Model QCPU and LCPU and Alternative Methods This section explains the restrictions on use of SFC programs for the Basic model QCPU Universal model QCPU and LCPU 1 Function comparison A High Performance Model QCPU Basic Mode QCPU Alternative Item Process CPU Universal model QCPU LCPU Method Redundant CPU Not provided Appendix 2 1 Operation mode at block Not provided i Provided double START Fixed to WAIT Operation mode for ne i Not provided transition to active step f Provided Fixed to TRANSFER at step double START Periodic execution block y Not provided Provided Appendix 2 2 7 aa a SFC program for program execution Not provided Provided management i S Not provided 1 p Program execution type setting Provided Fixed to scan execution type 1 For the Universal model QCPU and LCPU the execution type of the program can be set
128. g CPU modules cannot use the BRSET instruction e Basic model QCPU e Universal model QCPU whose serial number first five digits is 13101 or earlier e LCPU x2 Can be used at the step of an SFC program An error occurs if it is executed in a sequence program other than an SFC program x3 The Universal model QCPU whose serial number first five digits is 13102 or later can execute this instruction 1 Either of the following errors occurs if the SFC control instruction is executed from the sequence program when the special relay for SFC program start stop SM321 is OFF e Instruction that specifies a block BLOCK EXE ERROR error No 4621 e Instruction that specifies a step STEP EXE ERROR error No 4631 2 The SFC block BL and step relay S in the Basic model QCPU High Performance model QCPU Process CPU Redundant CPU and Universal model QCPU except for High speed Universal model QCPU cannot be index modified 3 The SFC block BL and step relay S in the High speed Universal model QCPU can be index modified within the following range e BLO to BL319 for the SFC block BL e Range that is set in the Device tab of the PLC parameter dialog box for the step relay S Note that the range will be SO to S511 when the step relay S in SFC blocks is index modified 4 Do not use the SFC control instructions in interrupt programs or fixed scan execution type programs If used operation of the SFC program cannot be guaran
129. gram block1 C oY110 Device specified at 2 2 e 0 aX100 1 oY111 4 axio1 Read a comment J Le Process ready complete 1st comment o information 2 0Y112 ONTIA 6 ue we Hia a EEES EA EE AS Positioning for material A Positioning for material B 2 ax102 aX108 aaa Positioning complete for material A Positioning complete for material B 3 0Y113 0Y115 L Processing for material A Processing formaterialB Pot 4 aX104 Processing complete for all materials 2nd t Read Processing for material B gt ae cll a comment Indicates active steps 2 Indicates the total number of transition condition following to active steps Maximum of 256 3 Indicates the number of transition condition that have read comments 4 Indicates step No 5 Indicates transition condition No x1 Transition condition associated with active steps is shown below e Serial transition is a transition condition for right under a step Selection branching is a transition condition for all branches Comment of transition condition is read from left to right in the SFC diagram e Parallel coupling is a transition condition for after parallel coupling Comments are read only when steps with parallel coupled are all activated Step No described at the most right edge is stored for transit condition to be read Serial transition Selection branching Parallel couplin
130. he BRSET instruction Note however that the following CPU modules cannot use the BRSET instruction When no block number is specified the block 0 is set e Basic model QCPU e Universal model QCPU whose serial number first five digits is 13101 or earlier e LCPU Operation Error e When no specified step is present or the SFC program is in stand by mode Error No 4631 e If using the own step as the specification step No Basic model QCPU Universal model QGP and LOPUT sin acca tila a aia til ea a a ate A E ceation Error No 4505 4 SFC PROGRAM CONFIGURATION Program Examples 1 When X1 switches ON the following program will select and start step 2 of block 1 which contains multiple initial steps s s4 When step is designated by sequence aXx1 sS2 ax sBL1 S2 Block 1 When step is designated by operation so J s s2 output of block 1 S6 When step is designated by operation output of other than block 3 program X1 RST BL1 S2 2 The following program deactivates held step 5 when step 10 is activated ss eE se sio rss 4 SFC PROGRAM CONFIGURATION QCPU ae Oe a Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU a Ee ee ee ee a ee BE 4 4 9 Forced transition EXECUTE amp CANCEL instructions s r Usable Devices SFC src Program i B Sequence Transition Block Step Bi
131. he same can will be valid control instruction Change by SFC I e Indirect designation DO K4MO etc ange by Esche kn ndirect designation DO etc can also Instruction execution gt Specified step is step is deactivated activated 6 SFC PROGRAM EXECUTION 6 5 Operation Methods for Continuous Transition If with continuous transition is set whether a continuous transition will be performed or not can be selected at each step using the continuous transition disable flag SM324 1 Processing performed when continuous transition disable flag is not used SFC Program With Continuous Transition Without Continuous Transition When the corresponding block becomes active e When the corresponding block becomes the processings of all steps are executed in the active steps are executed in a 1 step per same scan and end step processing is scan format performed to deactivate the block The end step processing is performed in the third scan to deactivate the block Block n So 2 Processing performed when continuous transition disable flag is used SFC Program With Continuous Transition Without Continuous Transition Block n So aSM400 amp aSM324 aSM400 amp aSM324 aSM400 amp aSM324 e When the corresponding block becomes e When the corresponding block becomes active execution proceeds to step 1 since active steps are executed in a 1 step per SM
132. hen CO counts up axX0 X10 K5 gt lt Waiting for count up gt 4 C co H L aco Ladder described in other scan execution program file other than SFC aco i bX10 amp bCO i n 4 SFC PROGRAM CONFIGURATION 3 When counter is reset When a transition to the next step occurs before the reset instruction of the counter is executed the present value of the counter and the ON status of the contact which is ON are held if the corresponding step becomes inactive To reset the counter the RST instruction etc must be executed at another step Example Stepn oC0 K10 Transitio When counter CO is reset at step n 1 or later the conditioni n present value is cleared and the contact turns OFF Step n 1 rco 2 The PLS or _P instruction used for the operation output of any step is executed every time the corresponding step turns from an inactive to an active status The program shown on the left is actually executed ina ladder as shown below Because the step conditions contact Example is ON when the step is active and OFF when the step is Step n C PO PLS YO inactive the PLS or LP instruction will be executed every time the corresponding step becomes active Step conditions contact Saed Ba one Step n 1 Ea en inactive Ib PLs oH 4 SFC PROGRAM CONFIGURATION 4 2 2 Initial step The initial step represents the beginning of a block Up to 32 i
133. i instruction l h h 1 Execution Execution Execution 1 starts to read 1 completes to read starts to read i comment comment comment Reading comments b Even if a command for SP SFCSCOMR instruction turns ON SP SFCSCOMR instruction is not executed SFCSCOMR S SFCSCOMR H END 0 END 0 ie 0 Sequence program m m I o Command for ON SP SFCSCOMR l H l instruction OFF l ae Execution SP SFCSCOMR i instruction l l l Execution f Execution starts to read completes to read comment comment Reading comments 9 For the comment files to be used with S P SFCSCOMR set them in the PLC File tab of the PLC parameter dialog box or at file set instruction QODSET P for comments Executing S P SFCSCOMR without setting the comment file to use 0 is stored to the total number of steps 01 0 and the number of steps that have read comments 01 1 At this time the device specified in 2 turns ON for 1 scan 10 With S P SFCSCOMR instruction comments stored in the following memories can be read e SRAM card drive 1 e Flash card drive 2 e Standard ROM drive 4 The comments stored in the ATA card or SD memory card cannot be read If the S P SFCSCOMR instruction is executed to the ATA card or SD memory card where the comments are stored an operation error error code 4130 occurs 4 102 4 SFC PROGRAM CONFIGURATION 4 103 11
134. ibute has been set to a HOLD step is not deactivated unexecuted Processing continues according to the set attribute 5 SFC PROGRAM PROCESSING SEQUENCE 5 3 4 Continuous transition ON OFF operation There are two types of SFC program transition processing with continuous transition and without continuous transition Set with continuous transition or without continuous transition using the continuous transition bit of the SFC information devices When the device set to the continuous transition bit is turned ON OFF by the user operation is performed as described below Continuous m SM323 Operation Transition Bit When the transition condition is satisfied the operation Without continuous B aat P OFF x output of the transition destination step is executed in the transition next scan When the transition condition is satisfied the operation No settin output of the transition destination step is executed within the same scan With continuous a a ON i i When the transition conditions of the steps are satisfied ransition continuously the operation outputs are executed within the same scan until the transition condition is not satisfied or the end step is reached f When the transition condition is satisfied the operation Without continuous a ey OFF ON OFF E output of the transition destination step is executed in the transition next scan When the transition condition is satisfied the operat
135. instructions Sold separately SH 080809ENG 13JW10 GENERIC TERMS Unless otherwise specified this manual uses the following generic terms and abbreviations Generic term Description QCPU A generic term for the Basic model QCPU High Performance model QCPU Process CPU Redundant CPU and Universal model QCPU QnCPU A generic term for the QOD2CPU QnHCPU A generic term for the QO2HCPU QO6HCPU Q12HCPU and Q25HCPU QnPHCPU A generic term for the QO2PHCPU QO6PHCPU Q12PHCPU and Q25PHCPU QnPRHCPU A generic term for the Q12PRHCPU and Q25PRHCPU LCPU A generic term for the LO2SCPU LO2SCPU P LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P L26CPU BT and L26CPU PBT Basic model QCPU Basic A generic term for the QOOJCPU QO0CPU and Q01CPU High Performance model QCPU High Performance A generic term for the QO2CPU QO2HCPU QO6HCPU Q12HCPU and Q25HCPU Process CPU A generic term for the QO2PHCPU QO6PHCPU Q12PHCPU and Q25PHCPU Redundant CPU A generic term for the Q12PRHCPU and Q25PRHCPU Universal model QCPU Universal A generic term for the QOOUJCPU QOOUCPU Q01UCPU QO2UCPU Q03UDCPU QO3UDVCPU QO3UDECPU Q04UDHCPU Q04UDVCPU QO04UDEHCPU QO6UDHCPU QO6UDVCPU QO6UDEHCPU Q10UDHCPU Q10UDEHCPU Q13UDHCPU Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU and Q100UDEHCPU High speed Universal
136. ion Step n 1 __ rep m 1 a condition is satisfied block m cannot T N be ended N 1 i l 3 Since block m is not ended execution Nor cannot proceed to step n 1 w 2 aMo a When the transition condition immediately after the operation HOLD step with transition check is always satisfied the next step is kept in a non held active status Therefore the block cannot be ended when SM328 is ON Further if this block has been started at the block START step with END check processing cannot be returned to the START source step b When it is desired to describe an always satisfied transition condition immediately after the operation HOLD step with transition check make provision so that the block can be forcibly ended from outside 3 After end step execution a restart is performed as described below START condition of block 0 is set to Auto START ON in the Execution automatically returns to the initial step again and SFC setting of the PLC processing is executed repeatedly parameter dialog box START condition of block O is A restart is made when any of the following is executed set to Auto START OFF in the 1 When another START request is received from another block SFC setting of the PLC when the block START step is activated parameter dialog box 2 When the block START instruction of the SFC control instructions is executed All blocks other than block 0 3 When the block START END bit o
137. ion output of the transition destination step is executed within 5 the same scan With continuous a a ON ON OFF t iti When the transition conditions of the steps are satisfied ransition continuously the operation outputs are executed within the same scan until the transition condition is not satisfied or the end step is reached The tact time can be shortened by setting with continuous transition This resolves the problem of waiting time from when the transition condition is satisfied until the operation output of the transition destination step is executed However when with continuous transition is set the operations of the other blocks and sequence program may become slower Refer to Section 4 5 5 for details of continuous transition 5 SFC PROGRAM PROCESSING SEQUENCE 1 Transition processing for continuous transition OFF setting The SFC program processing procedure without continuous transition will be explained 1 Active step n instruction operation m v v When transition condition is unsatisfied y 3 END processing If other blocks exist subsequent the block in question END processing will be executed after those blocks have been processed Y 4 Instruction operation for the same step n as that at the previous scan 2 Transition condition satisfied unsatisfied check y When transition condition is satisfied v 3 The active step n is deactivated
138. ious scan 5 Transition condition satisfied unsatisfied check Subsequent processing is executed in a continuous manner up to a step with an unsatisfied transition condition END processing If other blocks exist subsequent the block in question END processing will be executed after those blocks have been processed Instruction operation is executed for the step activated by the unsatisfied transition condition at the previous scan END processing is performed after all the program files set to the scan execution type in the program setting of the PLC parameter dialog box have been executed Refer to the QCPU User s Manual Function Explanation Programming Fundamentals for the detailed processing order of the programs other than the SFC program and their processings 6 SFC PROGRAM EXECUTION 6 SFC PROGRAM EXECUTION 6 1 SFC Program START and STOP There are the following four types of SFC program start and stop methods e Auto START using PLC parameter e Start and stop using the special relay for SFC program start stop SM321 Start and stop using the PSCAN POFF instruction except the Basic model QCPU Start and stop using the programming tool except the Basic model QCPU Universal model QCPU and LCPU 1 Auto START using PLC parameter Set the start condition in the SFC setting of the PLC parameter dialog box to Block 0 Auto START The SFC program is started when the CPU module switches from STOP to
139. ive START procedure cccecccceeceeeeeceseceeseaeeeeaeeeeeeeeceeeseaeeeeeessaeeeeineesaes 6 2 6 2 Block START and END cc da2hin te aie ite ited tei th E eE e a EEE AEA tee tect 6 4 6 2 1 Block START methods 22 n0icewiien liga ilies license all cain gaan ace elig 6 4 02 2 BIOCKiEND Me thOGS 205 205 a r aae a aa del paaa aa ee ale anea dies Ratbel cpus aa aE dai pends easranvecs eters 6 5 6 3 Block Temporary Stop and Restart Methods c cccceeeeceeeeeeeeeeeeeeeceseaeeeeaeeeeaeeeceeeseneeeeaeesseeeeieeees 6 6 6 35 Block S1LOP methods E raa din Geka Aiea ieee eee he 6 6 6 3 2 Restarting a Stopped block cceeccececceeeneeeeeeeeeeeeceneeceaeeceaeeecaaeeseaeeseaeeecaeeeeaceeseaeesceessaseesineeeaes 6 9 6 4 Step START Activate and END Deactivate Methods oe eeeeceeeceeeeeeeeeneeeeneeeeeeseeeeesaeeeeeeeeetesas 6 11 6 4 1 Step START activate Methods ec ecceeeeeeeeneeeneeeeeeeeeeaeeeaeeeaeeeaaeecaeeeaeeeaeeeaeeeaeeeaeeeaeeeeeeeeeaeesas 6 11 6 4 2 Step END deactivate Methods ee eeceeeeeeeeneeeneeeeeeeeeeaeeeaeeeaeeeeaeseaeeeaeeeaeeeaeesaeeeaeesaeeeeeeeeeeeeas 6 12 6 4 3 Changing an active step status Not available for Basic model QCPU Universal model QCPU and LOPU ccccecccescssesseseeesseesseeeecesseeseeseeseeeseseseeesseesesesseesesessaeseaes 6 13 6 5 Operation Methods for Continuous Transition cccecceeecceeeeeeeeeeeeeeeeeeeeeeseaeeseaaeeesaneeseaeeseaeessueeesan
140. k STOP in PLC parameter dialog box or the special register for setting operation output at block STOP SM325 The operation of the SFC program changes depending on the combination of the output mode at block STOP in PLC parameter dialog box setting and the SM325 setting Operation Setting of Operation Status of Held step Output Mode at Output at Active step other than held step z x STOP time a Operation HOLD Operation HOLD Block Stop in Block Sto luding HOLD step SC SE ST wh CVSO ck StoP Mode pit Cnoluding step SC SE ST whose Soil HOLD step SC step without step with transition PLC Parameter SM325 transition condition is not satisfied transition check SE check ST OFF orno e Immediately after a STOP request is made setting the coil output of the operation output is turned immediate OFF and the block is stopped e Turns OFF e The status remains active eal oulpust i i Normal operation a performed Gem the output of the made the coil output of the operation OFF transition condition is satisfied h ar FERNE d operation outputis output is turned OFF and the block is e Remains ON e When the transition condition is satisfied the coil output d fth di ten i turned OFF and the stopped Pp STOP after PR POSETA Ohne Cones ROTIA 1S block is stopped e The status remains active held se performed The status transition At the same time the transition destination R L i becomes inacti
141. ld have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user 2 Onerous repair term after discontinuation of production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not available after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ 4 Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation of damages ca
142. ld step number leading to a malfunction of the mechanical system When any SFC program change SFC diagram correction such as step addition and deletion has been made make an initial start once and then return it to a resume start An initial start is always performed in the Basic model QCPU and the Universal model QCPU with serial number first five digits 11042 or earlier 5 In the Universal model QCPU and LCPU a resume start is performed if data other than SFC programs are changed 6 The Basic model QCPU and Universal model QCPU of which the first 5 digits of the serial number are 11042 always makes an initial start 1 When the programmable controller is powered OFF or the CPU module is reset the intelligent function modules and special function modules are initialized When making a resume start create an initial program for the intelligent function module special function module in the block that is always active or in the sequence program 2 When the programmable controller is powered OFF or the CPU module is reset values in the devices without a latch setting are cleared To hold the values in the SFC information devices set a latch range 6 SFC PROGRAM EXECUTION 6 2 Block START and END 6 2 1 Block START methods The block START methods during SFC program execution are described below As shown below there are several block START methods Choose the method which is most suitable for the purpose at h
143. le blocks cannot be batch written In online change inactive block a program before change in a programming tool is not verified with the program in the CPU module Therefore verifying an SFC program in the programming tool with that in the CPU module beforehand is recommended b Change in signal flow memory Signal flow memories of the target block all turn off c SFC information devices The following SFC information devices can be added changed deleted 1 Block START END bit 2 Step transition bit 3 Block PAUSE RESTART bit 4 Pause mode bit 5 Number of active steps register 6 Continuous transition bit Before an SFC program is changed devices specified in 1 to 6 are checked if they are within the device range If any of them are outside the device range a communication error will occur 4 Available execution type Online change inactive block can be executed to a scan execution type program cannot be executed to a standby type program 5 Changing the execution type of a program during online change inactive block The execution type of a program being written by online change inactive block cannot be changed with Program control instructions POFF and PSCAN instructions 6 SFC PROGRAM EXECUTION 6 Availability depending on block status The following table shows availability of online change inactive block depending on the block status at the start of writing Block status Availability Online cha
144. ling edge pulse operation START Trailing edge pulse serial connection Trailing edge pulse parallel connection Operation results converted to leading edge pulse step memory Operation results converted to trailing edge pulse step memory Operation results converted to leading edge pulse memory Operation results converted to trailing edge pulse memory O Usable X Unusable 4 SFC PROGRAM CONFIGURATION CPU Module Type High Performance Universal Instruction expression Function Basic model Model QCPU Code model QCPU Process CPU Redundant Instruction BIN16 bit data comparison BIN32 bit data comparison Floating decimal point data comparison Character string data comparison O Usable x Unusable 5 Serial and parallel connections being mixed When serial and parallel connections exist in the same transition condition a serial connection amp has priority Use to give a parallel connection higher priority Example Example of serial and parallel connections bein ak Ladder example a Est ae er MO x1 X0 x1 MO XO X1 m aX0 amp aX1 aMO amp aM1 aX0 amp aX1 aM0 amp aM1 4 SFC PROGRAM CONFIGURATION 4 4 Controlling SFC Programs by Instructions SFC Control Instructions SFC control instructions can be used to check a block or step operation status active inactive or to execute a forced START or END etc Using
145. lock 4 Information of block 3 6 In the activation step batch read instruction do not specify a nonexistent block step An error will not occur if a nonexistent block step is specified However the read data are undefined 4 SFC PROGRAM CONFIGURATION 7 Specify the step as described below a In the case of SFC program 1 Use K4Sn when specifying the step in the current block 2 Use BLm K4Sn when specifying the step in the SFC program b In the case of sequence program 1 Use BLm K4Sn when executing the step activation check instruction 2 When the block number is not specified specify the block number with the BRSET instruction Note however that the following CPU modules cannot use the BRSET instruction When no block number is specified the block 0 is set e Basic model QCPU e Universal model QCPU whose serial number first five digits is 13101 or earlier e LCPU Operation Error e When the step relay S range is exceeded eeeee Error No 4101 4 SFC PROGRAM CONFIGURATION Program Examples 1 The following program reads the active step status of 48 steps 3 words starting from step 0 of block 3 to DO D2 when X0 turns ON When step is designated by operation output of block 3 ax0 BMOVP K4S0 DO K3 When step is designated by operation output of other than block 3 ax0 BMOVP BL3 S0 DO K3 When step is designated by sequence program xo DMOVP
146. lock of comment read target the instruction will not be executed However when the execution condition is met the instruction will be executed in the next scan 4 111 4 SFC PROGRAM CONFIGURATION 1 Make sure to use comments to be read with S P SFCTCOMR after the device specified at 02 turns ON Comments to be read before the device specified at D2 turns ON become an indefinite value 2 If the number of transition conditions associated with active steps is larger than that of comments to be read in a single n3 the active step comments are divided into the number to be read in a single scan Counting the total number of steps is also performed with the same comment number n3 for 1 scan In case transition conditions are remained without being counted when reading comments completed the counting will be continued for the remained Because of this the number of scans calculated in the following formula is required Comments to be actually stored are the same points stored in 01 1 It becomes a round up below the decimal point 3 Make sure to perform batch write of SFC program in RUN status or write of comment file in RUN status with a status of S P SFCTCOMR instruction not being executed In addition make sure not to execute S P SFCTCOMR during batch write of SFC program in RUN status or write of comment file in RUN status Operation Errors e When a comment file specified at execution of S P SFCTCO
147. m is designated by the PSCAN instruction while scanning is in progress at another SFC program error No 2412 e When the specified SFC program is in scan execution or not can be confirmed with the PCHK instruction For the Basic model QCPU Universal model QCPU and LCPU the PCHK instruction is not available For details of the PCHK instruction refer to the QCPU Programming Manual Common Instructions 2 Instruction format instruction Program name Character string or word device where character string is stored POFF PSCAN 5 SFC PROGRAM PROCESSING SEQUENCE 3 Processing time required to switch SFC program from WAIT status to scan status The processing time required to switch an SFC program from a WAIT status to a scan status is shown below Although the scanning time is extended by the amount of the processing time this will not result in a watch dog timer error detection No system processing time is required when switching from a scan status to a WAIT status Switching time number of created programs x Km number of created steps x Kn SFC program capacity x Kp Kq High Performance model Process QCPU CPU Universal model QCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU QO4UDHCPU Q26UDHCPU QO3UDCPU QO6UDHCPU Q10UDEHCPU QO3UDECPU QO4UDEHCPU Q13UDEHCPU QO6UDEHCPU Q20UDEHCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU wigs 1st teats ites ita 106m ral 1 1 e eeroye
148. mains ON while the corresponding block is active b The block START END bit turns OFF when the corresponding block becomes inactive The block START END bit remains OFF while the corresponding block is inactive Block 0 Block 1 So Block START END bit of block 1 MO S1 S2 B1 HHH 2 When the corresponding block is inactive it can be started independently by forcibly turning ON the block START END bit While the corresponding block is active the processing of the corresponding block can be forcibly ended by forcibly turning OFF the block START END bit The block START END bit can also be turned ON OFF in the test mode of the peripheral device 3 When a forced OFF is executed by the block START END bit and the block in question becomes inactive processing will occur as follows a Execution of the block in question will stop together with all outputs from the step which was being executed Devices switched ON by the SET instruction will not switch OFF b If another block is being started by the block START step in the corresponding block the corresponding block stops However the start destination block remains active and continues processing To also end the start destination block simultaneously the block START END bit of the start destination must also be turned OFF 4 SFC PROGRAM CONFIGURATION 4 A block which has been en Sseseeme deactivated is restarted as shown below RelewvantBlock sis
149. ment is performed at END processing for a scan that has executed S P SFCSCOMR instruction With per END processing this function reads the number of comments specified at the number of comments in a single scan n3 Comments that are not read in per END processing are followed to the next scan Reading comments for active steps maximum the number specified at n2 is completed the device specified at 02 turns ON for 1 scan S P SFCSCOMR instruction executed END 0 END 0 END 0 END 0 Sequence program memm SS I l l Comment readout completed 1 Comment readout I Total number of active F steps 07 0 Previous value 00001 Current value Number of steps that have read comments Previous value 01 1 0000H Current value Indefinite value Current value x Comment 2 to Previous value gt K gt K ON Specified device at OFF L isan 4 101 4 101 4 SFC PROGRAM CONFIGURATION 4 102 8 The operation when a command of S P SFCSCOMR instruction is in ON status at S P SFCSCOMR instruction execution completed is as follows a S SFCSCOMR instruction re executes when a command for S SFCSCOMR instruction is in ON status S SFCSCOMRH Sequence program I on Command for ON S SFCSCOMR i l l instruction OFF l l i l H I l l Execution Execution S SFCSCOMR i
150. module STOP write a program and Initial then RUN 7 Initial Initial start Resume Resume start 1 SM322 is turned ON OFF by the system according to the setting of the SFC program start mode in the PLC parameter dialog box when the CPU module switches from STOP gt RUN e At initial start setting OFF e At resume start setting ON 2 Operation at resume start The held coil HOLD step SC becomes inactive and is not kept held In the Basic model QCPU Universal model QCPU and LCPU the held coil HOLD step SC restarts in the held status However the output is not held To hold the output make latch setting for the devices desired to be held At a resume start the SFC program stop position is held but the status of each device used for the operation output is not held Therefore make latch setting for the devices whose statuses must be held in making a resume start x3 Depending on the timing a resume start is disabled and an initial start may be made To perform a resume start turn ON and then OFF SM321 or switch the CPU module from RUN to STOP and power OFF and then ON the programmable controller An initial start is always performed in the Basic model QCPU and the Universal model QCPU with serial number first five digits 11042 or earlier 6 SFC PROGRAM EXECUTION x4 A resume start may be made depending on the SFC program change If a resume start is made as is a start is made from the o
151. ms or two SFC programs cannot be created A SFC program for program execution management cannot be created either CPU module RUN Sequence program MAIN Executed every scan Execution order cannot be changed SFC program MAIN SFC a The execution types of the sequence program and SFC program are fixed to the scan execution type The execution types of the sequence program and SFC program are fixed b The Basic model QCPU executes the SFC program after execution of the sequence program The execution order of the sequence program and SFC program is fixed c The file name of the sequence program is fixed to MAIN Also the file name of the SFC program is fixed to MAIN SFC When both the sequence program and SFC program exist in the program memory both programs are executed Delete the programs which will not be executed from the program memory When ROM operation is performed delete the programs which will not be executed from the standard ROM 5 SFC PROGRAM PROCESSING SEQUENCE 5 2 Whole Program Processing of High Performance Model QCPU Process CPU Redundant CPU Universal Model QCPU and LCPU This section explains the whole program processing of the High Performance model QCPU Process CPU Redundant CPU Universal model QCPU and LCPU Since this manual describes only the outline refer to the QCPU User s Manual Function Explanation Programming Fundam
152. n M11 1 H n HRS BLO TR1 2 Forced transition bit replacement method Describe any bit device in the transition condition where it is desired to cause a forced transition under the OR condition and turn ON the bit device described under the OR condition to cause a forced transition SFC program S0 User set transition to Condition S1 User set transition t1 Condition APP 10 APP 10 APPENDICES APPENDIX 2 4 Active Step Change Instruction SCHG Replacement Method 1 Operation of active step change instruction The active step change instruction deactivates the instruction executed step and forcibly activates the specified step in the same block Activates step 6 when X1 turns ON 2 Active step change instruction replacement method Using a jump transition and selection branching create a program that will cause a jump to the specified step when the transition condition is established S5 S6 o Jump transition destination step te th aX2 t8 ax s7 beet S6 Causes jump to step 6 when X1 turns ON t7 APP 11 APP 11 WARRANTY Please confirm the following product warranty details before using this product 1 Gratis Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the sales represen
153. n condition sonaton is again operation output is continued put in is satisfied satisfied HOLD status ST ti oa Operation is continued a vite ST gee When the transition condition is 1 i Timer continues counting M satisfied again transition is executed and the next step is reactivated The operation of the operation output is executed at the reactivated next step and when the transition ak condition is satisfied transition Step which is active 3 occurs and the step is deactivated Z E previous transition condition being satisfied to transition condition Step which is active due being satisfied 1 GENERAL DESCRIPTION e Reset step Sn R NA e When a HOLD status becomes ADS unnecessary for machine control or on selective branching to a manual ladder 4 occurs after an error detection etc a reset request can be designated for the HOLD step deactivating the step in uestion Sn R si the reset step is q activated a designated step will become inactive e Types of block START steps and their operations 1 Block START step with END check Bm H m In the same manner as for a subroutine a CALL RET a START source block transition will not occur until the end of the START destination block is reached e Convenient for starting the same block several times or to use several blocks together etc e A convenient way to return to the START source block and pr
154. ndition sequence steps Max 1280 steps for all blocks Max 256 steps for one block One ladder block only Step transition watchdog timer None function Table 3 2 Performance Specifications Related to SFC Programs Q26UD E HCPU Q20UD E HCPU Q26UDVCPU QS0UDEHCPU Q100UDEHCPU Capacity Max 200k steps Max 260k steps Max 500k steps Max 1000k steps Number of files Scannable SFC program 1 files normal SFC program only Number of blocks Max 320 blocks 0 to 319 Number of SFC Max 16384 steps for all blocks 3 4 steps Max 512 steps for one block Number of Max 32 branches Max 1280 steps for all blocks active steps Max 256 steps for one block including HOLD steps ee ns a ut Max 2k steps for all blocks 2 P P No restriction on one step sequence steps Number of One ladder block only x1 Refer to Section 5 2 3 for the program execution management SFC program x2 The maximum number of sequence steps per block depends on the instruction used for operation output or a note editing setting The number of steps 2k steps indicated in the table applies when Unite United Note is selected for note editing Note that 2k sequence steps per block may not be secured when Peripheral Peripheral Note is selected If note editing is not set 2k sequence steps or more per block may be secured depending on the instruction used 3 SPECIFICATIONS 3 For the Universal model QCPU whose serial number first five
155. ng selection coupling Selection branching parallel branching Parallel coupling selection coupling Jump transition a b Transition condition No a Transition condition No j jump destination step No 4 SFC PROGRAM CONFIGURATION G e Class Name SFC Diagram Symbol Remarks End step transition Selection coupling Jump Selection coupling Selection branching Jump a b Transition condition No Transition j jump destination step No Selection coupling Selection coupling Jump Selection branching Jump Selection coupling Jump 4 SFC PROGRAM CONFIGURATION 4 2 Steps Steps are the basic units for comprising a block and each step consists of operation outputs 1 The following table indicates the number of steps that can be used in one block Maximum number of steps Maximum number of steps CPU module type in one block for all blocks 512 steps 8192 steps Universal model QOOUJCPU QOOUCPU QCPU Q01UCPU Q02UCPU QO3UDCPU Q03UDVCPU QO3UDECPU Q04UDHCPU Q04UDVCPU Q04UDEHCPU QO6UDHCPU QO6UDVCPU QO6UDEHCPU Q10UDHCPU Q10UDEHCPU Q13UDHCPU 512 steps 16384 steps 1 Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P 512 steps 81
156. ng the coil output of the operation output is turned immediate OFF and the block is stopped e Turns OFF e The status remains active coil output e Normal operation is performed until the OFF transition condition is satisfied e Remains ON e When the transition condition is satisfied the coil output end processing of the corresponding step is held performed At the same time the transition destination step becomes active and the block stops immediately OFF orno e Immediately after a STOP request is made setting the block is stopped with the coil output of the immediate operation output being held e The status remains active e Normal operation is performed until the transition condition is satisfied e When the transition condition is satisfied the end processing of the corresponding step is performed At the same time the transition destination step becomes active and the block stops immediately e Immediately after a STOP request is made the coil e Immediately after a STOP request is output of the made the coil output of the operation operation output is output is turned OFF and the block is turned OFF and the stopped block is stopped e The status remains active e The status becomes inactive STOP after transition e Immediately after a STOP request is made the block is stopped with the coil output of the operation output being held e The status remains active e Remains ON coil outpu
157. nge inactive block can be executed Online change inactive block cannot be executed However while SM321 Start stop SFC program is off even when the block is active immediately before the relay turns off online change inactive block can be executed x1 For how to end processing of a block and set it to inactive refer to Section 6 2 2 2 While SM321 is off online change inactive block can be executed regardless of the target block status immediately before the relay turns off Note when online change inactive step is executed while SM321 is off the SFC program always starts in initial start mode regardless of settings configured in SFC Program Start Mode in the SFC tab of the PLC parameter dialog box and SM322 SFC program start status 7 Operation when the target block is attempted to be started while online change inactive block is executed The target block does not start The following table shows operations depending on block start method Start method activation method Operation at block start e The target block does not start until when online change inactive block is Block START step ended Even when the transition condition for the step is met the processing does not move to the next step without END check e The target block starts after online change inactive block is ended When the transition condition is met the processing moves to the next step e The target block does not start until
158. nitial steps per block can be designated When there are more than one initial step the coupling enabled is only a selective coupling Execute the initial steps in the same way as executing the steps other than the initial step 1 Active steps at block START When the block that has more than one initial step is started the active steps change depending on the starting method as described below 7 All initial steps become active e When the block START step makes a start using BMH Bm e When a start is made using the block START instruction sBLm of the SFC control instructions e When a forced start is made using the block START END bit of the SFC information devices 1 1 1 1 A 1 1 1 1 1 1 e When any of the initial steps is specified using the step 77 77 77 Only the specified step control instruction SsBLm Sn sSn of the SFC control becomes active instructions 2 Transition processing performed when multiple initial steps become active sif s2 __ ss 2 tt ss se S7 t5 gt t7 S8 If steps are selectively coupled in the block that has more than one active initial steps the step immediately after the coupling becomes active if any of the transition conditions immediately before the coupling is satisfied In the above program example step 8 S8 becomes active when any of transition conditions t4 to
159. nsition condition 2 condition 5 Step 3 Step 7 Transition Transition _ _ condition 3 condition 6 Step 4 Step 8 Transition _ _ Transition _ _ condition 4 condition 7 Step 5 Step 9 Transition F condition 8 Step 10 3 SPECIFICATIONS The following table indicates the number of active steps number of active transitions and number of transition condition satisfied steps when Step 2 and Step 6 are active Number of Number of Active Number of Active Transition Steps Transitions Condition Satisfied Steps e Transition conditions 2 ae tion not satisfied Steps 2 6 conditions 2 5 s 2 e Transition conditions Absence Transition t 2 6 t 2 6 2 5 satisfied Sei saa conditions 2 5 Sola gee ae Whether Transition Presence Absence Conditions Are of Continuous Satisfied or Not Transition 2 e Transition conditions 4 4 2 3 6 not satisfied Presence Transition t 2 3 6 7 t 2 CEPR Er i e egpdiiane 225 6 eet 2 St 2 6 A St 2 6 e Transition conditions CNRS conditions 2 5 aN 2 3 5 6 satisfied 6 6 4 Presence Transition Steps 2 to 4 6 to 8 conditions 2 to 7 Steps 2 3 6 7 3 SPECIFICATIONS 3 3 2 Processing time for S P SFCSCOMER instruction and S P SFCTCOMR instruction Processing time for S P SFCSCOMR instruction and S P SFCTCOMR instruction is shown below Condition The number of comments to be stored in the comment file 1000 e Sequence steps in the SFC step in the SFC progr
160. nstruction and _ P instruction after block STOP cancellation change e When SM325 is ON coil output held eee Not executed e When SM325 is OFF coil output OFF 0 0 eee Executed again c When the block STOP RESTART bit of the SFC information devices has been set the block STOP RESTART bit also turns OFF Operation Error Error No 4621 occurs when the specified block does not exist or when the SFC program is in the stand by status Program Examples 1 Block 1 is stopped when X1 switches ON and is restarted when X2 switches ON s ax ax2 PAUSE BL1 PSTART BL1 4 SFC PROGRAM CONFIGURATION Related Instructions 1 SFC information device e Block STOP RESTART bit See Section 4 5 3 4 SFC PROGRAM CONFIGURATION QCPU PCP Applicable _Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU i A oO The serial number first five digits shall be 04122 or later 4 4 8 Step START and END instructions s r Usable Devices i Data Type Expansion SFC SFC Program Y Sequence Transition SFC Block Step Bi n Program Transition Condition U Condition Device name Only step relay S can be used L s Sn L rO Sn a nis a step No t n is a step No Internal Device System User bal i oe ona BLm Sn s BLm sn L rO BLmSn a m is a block No m is a block No Function 1 Step STAR
161. nterrupt is enabled When M100 is on and online change inactive block is not executed the target block is started and M100 y turns off J When 10 Block 10 start request interrupt occurs M100 Block start requested turns on 3 When online change inactive block is not executed the block is started and M100 turns off 6 SFC PROGRAM EXECUTION Description Adding an SFC step in serial transition 8 Reserved area for online change Secure reserved area for online change by the amount to be added changed by online change inactive block a Adding changing an SFC information device When all SFC information devices are not set for the target block SFC information device area will not be created in the program file The device area will be added to the program file when an SFC information device is added to the block by online change inactive block Then free area in reserved area for online change will be reduced When the target block has already contained SFC information devices changing the SFC information device will not reduce free area in reserved area for online change b Amount used in reserved area for online change by adding an SFC diagram symbol The following table shows the amount used in reserved area for online change by adding an SFC diagram symbol by online change inactive block Before addition After addition Amount used in reserved area for online
162. ntinuous A i iG transition will be performed or F transition enabled All blocks continuous not for the block where the SM323 rA ON Continuous 5 i ag transition status continuous transition bit of transition the SFC information devices disabled has not been set e OFF during operation in the with continuous transition mode or during continuous System SM324 Continuous transition OFF After transition transition and ON when not for disable flag ON Before transition during continuous transition instruction e Always ON during operation in execution the without continuous transition mode D 2 8 Ole 2 oc 2 alles X x1 Available with the CPU module whose function version is B or later APP 3 APP 3 APPENDICES E Operation output at block STOP OFF Coil output OFF ON Coil output ON SM326 SFC device clear mode OFF C ear device ON Preserves device SM327 SM328 APP 4 OFF HOLD step output OFF ON HOLD step output held Output mode at end step execution OFF Clear processing is performed ON Clear processing is not performed Clear processing mode at arrival at end step Corresponding CPU Set by When set Basic model QCPU High Performance model QCPU Process CPU Redundant CPU Select whether the coil output of the active step will be held or not at a block STOP As the default value OFF when coil output OFF is selected for the output mode a
163. nts is stored a3 Indicates the number of comments to read in a single scan or device number where the Oto 256 5 number of comments is stored Indicates a device that turns ON for 1 scan at completion of the instruction as 4 When specifying 0 it is processed as 256 x5 When specifying 0 it is processed as 1 4 SFC PROGRAM CONFIGURATION x6 Comments to be read are stored as follows b15 to bO 0 Total number of active steps 1 Number of steps that have Order of comment to be stored read comments N 2 Step No b15 to b8 b7 to bO 3 Empty 2nd character ASCII code 1st character ASCII code 4 pn 4th character ASCII code 3rd character ASCII code Comment gt 1st comment 32nd character ASCII code 31st character ASCII code information 19 20 End of comment 21 Empty Order of comment to be stored N 1 x20 2 Step No b15 to b8 b7 to bO N 1 x20 3 Empty 2nd character ASCII code 1st character ASCII code N 1 x20 4 4th character ASCII code 3rd character ASCII code S Nth Comment comment 32nd character ASCII code 31st character ASCII code information ee N 1 x 20 19 N 1 x 20 20 End of comment N 1 x 20 21 Empty Data to be stored e 0000h is stored at S P SFCSCOMR instruction and the total number Total number of steps of steps are stored at completion of comment readout Number of steps that have 00004 is stored a
164. o tt S1 POFF XYZ SFC program XYZ is changed into a stand by type program sf S2 POFF ABC SFC program ABC is changed into a stand by type program t2 t3 t2 PCHK XYZ amp INV When SFC program XYZ is deactivated execution proceeds sC sC pS t3 PCHK ABC amp INV When SFC program ABC is deactivated execution proceeds Haf t5 T to S4 S3 PSCAN ABC SFC program ABC is changed into a scan execution type program S4 PSCAN XYZ SFC program XYZ is changed into a scan execution type program t4 PCHK ABC When SFC program ABC is activated execution proceeds to the end step t5 PCHK XYZ When SFC program XYZ is activated execution proceeds to the end step 5 SFC PROGRAM PROCESSING SEQUENCE 5 3 SFC Program Processing Sequence 5 3 1 SFC program execution The SFC program is executed once per scan 1 Basic model QCPU The Basic mode QCPU executes a sequence program and then executes an SFC program The program execution status is shown below under the following condition Condition 1 SFC program Set to Auto START ON Program execution STOP RUN Power ON RUN END F FA processing i i i 1 1 i 1 1 I i Program 0 Scan END Scan END Scan END MAIN m i tt 1 y 1 i ae Program Scan Scan Scan MAIN SFC 1 SS A SFC program i SFC program i SFC program execution i execution r execution Scan time 5 SFC P
165. o PLC the CPU module devices operate as described in the following table depending on the setting of the SFC device clear mode setting flag SM326 Operation SM326 Step relay Other than step relay SFC program is executed after all OFF Turned ON OFF by the system devices have been cleared SFC program is executed with all devices ON Turned ON OFF by the system held eld The setting of SM326 is valid only when an SFC program exists after write to PLC When sequence program and or parameter write is performed the setting of SM326 is also valid The setting of SM326 is ignored when only the data other than the SFC program sequence program and parameters are written 2 When program was written with CPU module in RUN status a Program start after write to PLC An initial start is performed independently of the SFC start mode setting initial start resume start Refer to Section 4 7 1 for details of the SFC program start mode b Device status at program start The SFC program is executed with all devices held 6 SFC PROGRAM EXECUTION 6 6 2 Program change by online change 1 Program start after write to PLC When program change is made by online change a resume start is performed independently of the SFC start mode setting 2 Device status at program start The SFC program is executed with all devices held 6 SFC PROGRAM EXECUTION 6 6 3 Online change inactive block An inactive SFC block can be changed
166. o the next step and operation output processing will continue After a transition therefore the timer continues timing 2 The transition conditions have been satisfied so no transition condition check is performed after the next step becomes active Therefore no step transition subsequent transition will occur even if the transition conditions for the relevant step are satisfied again executed again after the transition condition is satisfied F TO 1 to 100 few which is active l Transition is not z5 JLIK100 Operation is continued to transition condition being satisfied 3 An operation HOLD step without transition check becomes inactive when any of the following occur a When the END step of the block in question is executed b When an SFC control instruction rBLm designates a forced END at the block in question c When the corresponding step is reset by the SFC control instruction rBLm Sn rSn Except when SM327 is ON d When the device designated as the block START END device of the SFC information devices is reset e When a reset step for resetting the step in question becomes active f When S999 is designated at the reset step in the same block g When the SFC START STOP command SM321 is switched OFF 4 SFC PROGRAM CONFIGURATION 4 Block STOP processing The following processing is performed when a block STOP request is issued to the corresponding block using the STOP R
167. oceed to the next process block when a given process is completed in a processing line for example 2 Block START step Without END check Bm H m Even if the START destination block is active a START source block transition Bm occurs when the transition condition associated with the block START step is aX0 Transition condition satisfied is satisfied C At this time the processing of the male START destination block will be JE continued unchanged until the end step is reached e By starting another block at a given step the START destination block can be controlled independently and asynchronously with the START source block until processing of the current block is completed 1 GENERAL DESCRIPTION 6 A given function can be controlled in a variety of ways according to the application in question Block functions such as START END temporary stop restart and forced activation and ending of specified steps can be controlled by SFC diagram symbols SFC control instructions or by SFC information registers e Control by SFC diagram symbols Salita te cet Convenient for control of automatic operations with easy sequential control e Control by SFC instructions arane ni Enables requests from program files other than the SFC and is convenient for error processing for example after emergency stops and interrupt control e Control by SFC information devices TEET E Enables control of SFC peripheral d
168. of HOLD steps and their operations 1 Coil HOLD step Transition condition e After transition the operation of the S palstiod operation output is continued put in Coil output is maintained SC oY10 Timer maintains the count HOLD status and the coil output i i status when the transition condition ax1 T L eae ee is satisfied is maintained SlepWhich is active due e Transition will not occur if the to transition condition t iti diti tisfied being satisfied ransition condition is satisfied again e Convenient for maintaining an output until the corresponding block is completed hydraulic motor output pass confirmation signal etc e When the output mode at block stop is OFF it remains OFF after a block restart 2 Operation HOLD step no transition check Transition condition e After transition the operation of the is satisfied i operation output is continued put in ovito a Operation is continued HOLD status 1 Timer continues counting axd I e Transition will not geeur i me transition condition is satisfied again i Step which is active due n LZ orae cono When the output mode at block stop being satisfied is OFF the operation is continued after a block restart and therefore the output is provided as a result of the operation that has been performed 3 Operation HOLD step with transition check seat Transition e After transition the operation of the Transitio
169. og timer START corresponds to SD96 Step transition watch dog timer START corresponds to SD97 Process CPU APP 2 APP 2 APPENDICES Corresponding Set by Number Name Meaning Explanation When set Step transition watch OFF Not started SM98 dog timer START Watch dog timer Switched ON to begin the step corresponds to SD98 reset transition watch dog timer count Step transition watch ON Started Watch dog timer is reset when SM99 dog timer START Watch dog timer switched OFF corresponds to SD99 start SFC program ORF Without SEG al a Pei i System SM320 prog program 9 y U an High Performance model QCPU aaa Basic model QCPU presence absence ON With SFC program OFF if an SFC program has initial value not been registered The same value as in SM320 is set as the default value Automatically switches ON OFF SFC program not when the SFC program exists System SM321 SFC program executed stop e When this relay is switched initial START STOP ON SFC program from ON to OFF the SFC value executed start program execution is stopped User e When this relay is switched from OFF to ON the SFC program execution is restarted e The SFC program start mode SFC program START OFF nitial START a o oc eo rie SM322 prog ON Resumptive P 9 status set as the default value value START At initial start OFF User At resume start ON Set whether a continuous OFF Co
170. oller CPU Process Redundant LCPU CPU High Performance CPU CPU a ee OS eee ee ee ee ee ea ly The serial number first five digits shall be 13102 or later 4 4 11 Block switching instruction BRSET Usable Devices Internal Device i i i perang Data SFC SFC Program System User tw i Constant Expansion Other Type Sequence Block Ste Transition Lij KH SFC Program Transition P Condition i AGi i EEJ O OT Function 1 Switches the target block number of the SFC control instruction that specifies only a step Sn and transition condition TRn to the number set for the device designated by 2 Although BLm Sn or BLm TRn may be used as the instruction device when designating the destination block number only a constant K H may be designated at the m of BLm thereby fixing the designation destination When block switching is executed by this BRSET instruction a word device can be used for indirect designation index modification etc 3 The effective operation range when block switching occurs by BRSET instruction varies according to the program being run at the time as shown below 1 When this instruction is executed in a sequence program target block switching is valid from instruction execution to SFC execution At the next scan the target block is block 0 as the default until the instruction is executed again 4 SFC PROGRAM CONFIGURATION 2 If the BRSE
171. on Active step other than held Held step gt Status of STOP step Operation Setting of Output Mode at Block Operation Output at Stop in PLC time Mode Bit Parameter Block Stop SM325 OFF e No setting immediate stop e Turns OFF coil output OFF e Remains ON e OFF coil output OFF coil output held ON STOP after transition e OFF e No setting immediate stop ON coil output held e Remains ON coil output held ON STOP after transition including HOLD step whose transition condition is not satisfied e Immediately after a STOP request is made the coil output of the operation output is turned OFF and the block is stopped The status remains active Normal operation is performed until the transition condition is satisfied When the transition condition is satisfied the end processing of the corresponding step is performed At the same time the transition destination step becomes active and the block stops immediately Immediately after a STOP request is made the block is stopped with the coil output of the operation output being held The status remains active Normal operation is performed until the transition condition is satisfied When the transition condition is satisfied the end processing of the corresponding step is performed At the same time the transition destination step becomes a
172. on instruction TSET Si Designates the transition destination step For serial transitions and selection transitions 1 per transition condition for parallel branching transitions the number of steps is the same as the number of parallel couplings Step END instruction Indicates the step transition END 1 per step 3 SPECIFICATIONS MEMO 26 4 SFC PROGRAM CONFIGURATION 4 SFC PROGRAM CONFIGURATION This chapter explains the SFC program symbols SFC control instructions and SFC information devices that comprise an SFC program When applying the program examples introduced in this manual to an actual system ensure the applicability and confirm that it will not cause system control problems 1 As shown below an SFC program consists of an initial step transition conditions intermediate steps and an END step The data beginning from the initial step and ending at the END step is referred to as a block Step 0 S0 i lt Initial step Transition condition 0 t0 Transition condition Step 1 S1 lt Step Transition condition 1 t1 Transition condition gt Block Step 2 S2 Step End step 2 An SFC program starts at an initial step executes a step following a transition condition in due order every time that transition condition is satisfied and ends a series of operations at an end step a When the SFC
173. on the CPU module type For details refer to the User s Manual Function Explanation Programming Fundamentals for the CPU module used 1 The Redundant CPU Universal model QCPU and LCPU do not support the low speed execution type programs 2 For the Universal model QCPU and LCPU program execution management cannot be set 3 SPECIFICATIONS Use the PSCAN or POFF instruction to switch the execution type of the program For details on the PSCAN and POFF instructions refer to the Programming Manual Common Instructions for the CPU module used 3 SPECIFICATIONS 3 2 Device List 3 2 1 Device list of Basic model QCPU Table 3 3 indicates the devices that can be used for the transition conditions and operation outputs of an SFC program Table 3 3 Device List ati or ae Point Range setting range mot 2048 owxrF Output 2048 YO to Y7FF Internal relay 8192 MO to M8191 Latch relay 2048 LO to L2047 Bitdevice Annunciator 1024 Foto F1023 Edge relay 1024 VO to V1023 Step relay 2048 S0 to 127 block Can be Internal user 7 changed Link relay 2048 BO to B7FF oe device within 16 4k Link special relay 1024 SBO to SB3FF words 3 Time 2 foomu Retentive timer 1 o STO to ST511 Word counter s2 cowcsu device Data register 11136 DO to D11135 Link register 2048 WO to W7FF Link special register 1024 SW0 to SW3FF Function input FXO to FXF Bit device Function output FYO to FYF Internal system devi Special relay 1
174. one normal SFC program For the Universal model QCPU and LCPU only one SFC program one normal SFC program can be scanned e Refer to Section 6 1 for the SFC program start stop method 5 SFC PROGRAM PROCESSING SEQUENCE SSS 5 3 2 Block execution sequence 1 In the SFC program the step in the active block is executed every scan 2 When there are multiple blocks the blocks are processed in order of lower to higher block numbers a In the active block the active step in that block is executed b The inactive block is checked for a START request and if there is a START request the block is activated and the step in that block is executed 1 BlockO 3 Block1 5 Block2 6 gt S0 4 So tO to 1 St BLT2 t1 t1 S2 S2 t2 t2 Active step Inactive step HLHH The SFC program is executed in order of 1 to 6 1 Whether block 0 is active or inactive is checked 2 Since block 0 is active the active step S2 is executed 3 Whether block 1 is active or inactive is checked 4 Since block 1 is active the active step SO is executed 5 Whether block 2 is active or inactive is checked 6 Since block 2 is inactive whether the next block is active or inactive is checked 5 SFC PROGRAM PROCESSING SEQUENCE 5 3 3 Step execution sequence 1 In the SFC program the operation outputs of all active steps are processed within one scan
175. ontinuous transition ON e No continuous transition bit setting P 3 R e Operation occurs with continuous transition e Continuous transition bit ON e Continuous transition bit OFF i F iss a e Operation occurs without continuous transition e No continuous transition bit setting e Continuous transition bit ON e Operation occurs with continuous transition The tact time can be shortened by setting with continuous transition This resolves the problem of waiting time from when the transition condition is satisfied until the operation output of the transition destination step is executed However when with continuous transition is set the operations of the other blocks and sequence program may become slower 4 SFC PROGRAM CONFIGURATION 3 The continuous transition disable flag SM324 is always ON turned ON automatically by the system at SFC program execution normally but is OFF during continuous transition Use of SM324 under the AND condition in a transition condition disables a continuous transition Example SFC program s1 i aMo s2 aMo s3 aM0 amp aSM324 s Operation 1 When MO is ON step 1 to step 4 are the targets of continuous transition 2 Since SM324 is added as the AND condition to the transition condition following step 3 the transition condition following step 3 is not satisfied after execution of step 3 3 When step 3 is executed in the next scan
176. ontrol block e Used as a preprocessing block e Used as an always watched block 1 Settings and corresponding operations Set block 0 to Auto START ON or Auto START OFF At SFC program START and END step execution operations are performed as described below Settin Operation At SFC Program START At end step execution in block 0 Autostart block 0 e Block 0 is automatically activated and is e When the end step is reached the initial step default executed from its initial step is automatically activated again e Block 0 is activated by a START request resulting from an SFC control block START instruction or a block START step in the same manner as other blocks e When the end step is reached block 0 is deactivated and waits for another START request to be issued again Do not autostart block 0 4 SFC PROGRAM CONFIGURATION 4 7 3 Output mode at block STOP The output mode at block STOP is designed to set whether the coil outputs turned ON by the OUT instruction will be held at the time of a stop coil output held or all coil outputs will be forcibly turned OFF coil output OFF when the corresponding block is stopped temporarily Stop the corresponding block temporarily using the stop RESTART bit of the SFC information devices or the block STOP instruction PAUSE BLm of the SFC control instructions 1 Settings and corresponding operations Set the output mode at block STOP in the output mode at bloc
177. operation output of other than block 3 ax0 DMOVP BL3 K8S0 DO When step is designated by sequence program X0 DMOVP BL3 K8SO DO b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO DO S15 14 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 SO D1 st 31 S30 S29 S28 S27 S26 S25 S24 23 S22 S21 S20 S19 S18 S17 S16 Related Instructions 1 SFC control instructions e Block switching instruction BRSET ceeeeeeeeeeee See Section 4 4 11 e Step operation status check instruction a b amp a amp b la ID ee eeeeeeeeeteeeeees See Section 4 4 1 e Active step batch readout Instruction BMOV ceceeeeeeeeeeeeeeeeeeeeeeeeeeteeeeeneeeaes See Section 4 4 5 4 SFC PROGRAM CONFIGURATION QCPU PCP Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU 0 O S O d oO Jo The serial number first five digits shall be 04122 or later 4 4 5 Active step batch readout BMOV Usable Devices Data Type Internal Device Link Direct Intelligent SFC SFC Program Program ho aa 2 S Conon BLmi sn g ransition Condition System User i Function Index Constant i n o Jeme o Jo Po Expansion Module SF Only step relay S can be used ee k4Ssn le BLm K4sn nis a step No m is a
178. or details please contact the Mitsubishi representative in your region REVISIONS The manual number is given on the bottom left of the back cover Print Date_ Manual Number Feb 2000 SH NA 080076 A First edition May 2001 SH NA 080076 B Partial correction Chapter 1 Section 3 1 5 1 1 5 2 4 Appendix 1 2 Appendix 2 Apr 2002 SH NA 080076 C Partial correction Chapter 1 2 Section 3 1 5 1 5 1 2 5 2 4 Appendix 1 2 M ar 2003 SH NA 080076 D Descriptions on use of MELSAP L with the Basic model QCPU whose serial number first five digits is 04122 or later have been added Overall reexamination Jun 2004 SH NA 080076 E Descriptions on the Redundant CPU have been added Partial correction ABOUT MANUALS Chapter 1 2 Section 3 12 3 2 2 3 3 4 2 4 2 8 4 3 3 4 3 5 4 4 4 4 1 to 4 4 11 4 5 4 7 5 2 5 2 1 5 2 2 5 3 1 Appendix 1 1 1 2 2 May 2005 SH NA 080076 F Partial correction ection 3 3 2 4 8 4 8 1 4 8 2 ection number change Section 3 3 Section 3 3 1 Apr 2007 SH NA 080076 G New models of the Universal model QCPU have been added Model addition QO2UCPU QO3UDCPU QO4UDHCPU QO6UDHCPU Partial correction ABOUT MANUALS GENERIC TERMS Chapter 1 2 Section 3 1 2 3 2 2 3 3 1 4 2 4 4 1 to 4 4 11 4 5 to 4 7 5 2 5 2 1 5 2 2 5 3 1 6 6 Appendix 1 1 1 2 2 3 Dec 2007 SH NA 080076 H Partial correction Section 6 3 2 Mar 200
179. ormance CPU CPU i A i The serial number first five digits shall be 04122 or later 4 4 7 Block STOP and RESTART instructions PAUSE RSTART Usable Devices Programs Instructions Execution Site Internal Device Link Direct Intelligent Expansion Data SEC SFC Program 7 System User i Function Index Constant SFC ee Type Sequence Block Ste Transition _ wog Module Z 3 KH BLmsn Program Transition P Condition dj UGE BLm TRn Condition Device name _ PAUSE BLm L PSTART BLm m is a block No m is a block No Function 1 Block STOP instruction PAUSE a Executes a temporary stop at the specified block b As shown below processing varies depending on when the stop occurs and on the coil output status setting designated by OUT instruction a erm etting o eratio re ng peration Status of Held step Output Mode at Output at STOpP time ___ Active step other than held step Operation HOLD Operation HOLD Block Stop in Block Stop including HOLD step whose transition condition z 3 a PLC Parameter SM325 Mode Bit is not satisfied Coil HOLD step SC step without step with transition transition check SE check ST OFF orno e Immediately after a STOP request is made setting the coil output of the operation output is turned immediate OFF and the block is stopped e Turns OFF e The status remains active coil output e OFF e Normal operation is performed un
180. ormat can be designated as initial START or resumptive START The resumptive START setting procedure as well as some precautions regarding the resumptive START format are described below 1 Resumptive START setting procedure Make the resume START setting of the SFC program in the SFC program start mode of the SFC setting in the PLC parameter dialog box 2 Block operation status resulting from SFC program START mode setting At an SFC program start whether an initial start or resume start will be made is determined by the combination of the setting of the SFC program start mode in the PLC parameter dialog box and the ON OFF status of the special relay for setting SFC program start status SM322 SFC Program Start Mode Initial Start Resume Start SM322 OFF SM322 ON SM322 ON SM322 OFF When changed When changed Ae Initial status py user Initial status by user SM321 Tuned ON Programmable controller Powered ON Resume lnitial 3 Programmable controller Powered OFF and then ON after SM321 is switched from Resume 2 Initial ON to OFF or the CPU module is switched Initial Initial from RUN to STOP CPU module Reset and RUN Resume lnitial 6 CPU module Reset and RUN after SM321 is switched from ON to OFF or the CPU Resume 2 Initial module is switched from RUN to STOP CPU module Switched from STOP to RUN module Switched from STOP to RUN booo 1 ERS ei mode Selec Fon STOR te RUN
181. ows 07 0 0 1 07 2 07 3 07 4 07 19 07 20 07 21 N 1 x20 2 N 1 x20 3 N 1 x20 4 N 1 x 20 19 N 1 x 20 20 b15 to bO Total number of transition conditions Number of transition conditions that have read comments N Step No Transition condition No Comment End of comment Empty Step No Transition condition No Comment N 1 x 20 21 End of comment Empty ist comment information Nth comment information Order of comment to be stored b15 to b8 b7 to bO 2nd character ASCII code 1st character ASCII code 4th character ASCII code 3rd character ASCII code 32nd character ASCII code 31st character ASCII code Order of comment to be stored b15 to Ath character ASCII code b8 b7 to bO 3rd character ASCII code 2nd character ASCII code 1st character ASCII code 32nd character ASCII code 31st character ASCII code Data to be stored 00004 is stored at S P SFCTCOMR instruction and the total number Total number of transition conditions Number of transition conditions that have read comments N Step No Transition condition No Comment End of comment Empty of transition conditions associated with the steps activated when reading comments completed are stored Maximum of up to 256 detected e 00004 is stored at S P SFC
182. pe designation by instructions The execution designation by instruction function enables the execution type set in the program setting of the PLC parameter dialog box to be changed by the instruction This function can be applied to normal SFC programs only Inapplicable to the SFC programs for program execution management Execution designation by instruction will be explained Instructions and corresponding operations ii Switches the program of the specified file name to a standby status beginning in the FATOR next scan 4 e Executes the end processing of all blocks in the next scan in the SFC program of the specified file name and switches the program to a standby status in the second scan after execution of the instruction e Switches the program of the specified file name to a scan execution type beginning in the next scan e The execution order of multiple programs changes depending on the program setting order in the PLC parameter dialog box e Switches the program of the specified file name to a low speed execution type beginning in the next scan e The execution order of multiple programs changes depending on the program setting order in the PLC parameter dialog box O Compatible X Incompatible The following conditions will result in an operation error e When the specified program does not exist error No 2410 e When the PSTOP or PLOW instruction is executed error No 2412 e When an SFC progra
183. program is started the initial step is executed first While the initial step is being executed whether the transition condition following the initial step transition condition O0 tO in the figure has been satisfied or not is checked b Only the initial step is executed until transition condition 0 t0 is satisfied When transition condition 0 t0 is satisfied the execution of the initial step is stopped and the step following the initial step step 1 S1 in the figure is executed While step 1 S1 is being executed whether the transition condition following step 1 transition condition 1 t1 in the figure has been satisfied or not is checked c When transition condition 1 t1 is satisfied the execution of step 1 S1 is stopped and the next step step 2 S2 in the figure is executed d Every time the transition condition is satisfied in order the next step is executed and the block ends when the end step is executed 4 SFC PROGRAM CONFIGURATION 4 1 List of SFC Diagram Symbols The symbols used in the SFC program are listed below SFC Diagram Reniarks Initial step 0 O Dummy initial step 0 Coil HOLD initial step 0 Ba _ Any of these steps in 1 block Operation HOLD step without When step No Initial step at top left column 1 of is 0 0 SFC diagram is fixed to No 0 transition check initial step Operation HOLD step with 0 transition check initial step n reset des
184. ps 128 steps 2 The execution status of each block can be checked at another block using the block START END bit refer to Section 4 5 1 of the SFC information devices or the block activation check instruction refer to Section 4 4 3 of the SFC control instructions 4 SFC PROGRAM CONFIGURATION 4 2 9 Block START step without END check E A block START step without END check is the step where the specified block is started and if the START destination block is active the check of the transition condition to the next step is performed 1 The operation of the block START step without END check is described below a When activated the block START step without END check starts the specified block b After starting the specified block the step performs only the check of the transition condition c When the transition condition is satisfied execution proceeds to the next step without waiting for the START destination block to end Block m ee Bm gt When transition condition 1 is satisfied ES E 2 A simultaneous start cannot be made for a single block The block that has already started cannot be started either If either of the above starts is made the following processing is performed depending on the setting of the operation mode at block double START 1 Refer to Section 4 7 5 for details of the operation at block double START a When the setting of the operation mode
185. r as the other blocks 3 The specified time interval countdown is executed in a continuous manner 1 When the parameter where the High speed interrupt 149 fixed scan interval has been set is written to the High Performance model QCPU whose first five digits of serial No are 04012 or later the fixed cycle execution block setting cannot be used If the fixed cycle execution block setting is made no processing is performed and the block remains unchanged from the every scan execution block 2 To execute the periodic execution block the block to be executed periodically must be activated 3 The fixed cycle execution block setting is not available for the Basic model QCPU Universal model QCPU and LCPU 4 SFC PROGRAM CONFIGURATION 4 7 5 Operation mode at double block START This mode setting designates the operation mode which is to be effective when a block START request occurs by block START step Hm EXm for a block which is already started 1 Settings and corresponding operations Set the operation mode at block double START to either STOP or WAIT in the block parameter of the SFC setting dialog box in the Tools menu The operations resulting from these settings are shown below Setting A CPU module operation error BLOCK EXE ERROR e A block range can be occurs and CPU module operation is stopped designated for the STOP All Y outputs switch OFF setting e CPU module operation continues an
186. ram cceccceeceeeeeeeeeeeeeeneseeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeeaeeeaeesaeeeeenaeeeatesas 3 17 3 3 2 Processing time for S P SFCSCOMR instruction and S P SFCTCOMR instruction 4 3 22 3 4 Calculating the SFC Program Capacity cceceecececeesceeeeeeeeeeeneeeneeseeeseesereseeseeseeseesieesieesieesiteeeeeeesas 3 24 4 SFC PROGRAM CONFIGURATION 4 1to 4 114 AT Ceto SFG Diagram Sybo Sienn instock A E E E 4 2 A2 STEPS dinana e e a i aa i a i e 4 5 4 2 1 Step without step attnbitle 2 cataucicn ocala tienndancdcanlndad cal nad canload 4 6 A 2 2 Nini SUS oa ied esate cn eee ve ect eee cs eee eee or ent een Nn hice Rees nd ts A A aes 4 9 ADS D mmy Step Xl cena ee a he ented ieee saat ennai aia Sis ay eae a neat 4 10 4 2 4 Coll HOLD Step SC a r atten eee gehen sae ase asa 4 10 4 2 5 Operation HOLD step without transition Check SE ec eee eeeeeeeeeeseeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeesas 4 12 4 2 6 Operation HOLD step with transition check ST ceceeceeeeeeeeeeeeeeeeeeeeeeeseeeseeeseeeseaeeeeeeeeeeeenees 4 14 A 6 A 6 A421 RESEt steps Ri i tccs tate atin hess teas she ted E A SA th te te TAS esta ead aes 4 16 4 2 8 Block START step with END check EX cceececeeceeeeeeeeeeeeeeereseeseeseeseeseeseesieesieesieesieeesieetieesieees 4 17 4 2 9 Block START step without END check H a aisxdsctneenadinihiGekauee haais cache Weadiends 4 19 42 A0 1 10 ci gt Pere erst ny eevee Pree rere errr
187. ration status Initial step operation output executed Transition condition a satisfied Initial step operation output deactivated Step 1 operation output executed ransition condition b satisfied YES x1 Step 1 operation output deactivated A A Step 2 operation output executed Transition condition c satisfied x1 Step 2 operation output deactivated Step 3 operation output executed Transition condition d satisfied Step 3 operation output deactivated END step executed operation completed x1 For steps with attribute designations processing occurs in accordance with the attributes 4 SFC PROGRAM CONFIGURATION SSS SSeS 4 3 2 Selection transition A selection transition is the transition format in which several steps are coupled in a parallel manner with processing occurring only at the step where the transition condition is satisfied first a e From step n processing will proceed to either B Step n step n 1 or step n 2 depending on which operation output A transition condition b or c is satisfied first e If both transition conditions are satisfied simultaneously the condition to the left will take precedence L Step n will then be deactivated e Subsequent processing will proceed from step to step in the selected column until another parall
188. reset step is a step which designates a forced deactivation of another specified step operation output The reset step deactivates the designated step in the current block before execution of the operation output every scan Except the deactivation of the specified step the reset step execute the operation output with the same functions as a normal step without step attributes When a reset step is Sn R activated a specified step is deactivated reset 1 When deactivating only the designated step Set the step number to be deactivated to the specified step number Sn 2 When deactivating all the held steps Set 999 to the specified step number Sn When the number of the specified step is 999 all held steps of the coil HOLD steps operation HOLD steps without transition check and operation HOLD steps with transition check in the current block are batch deactivated 1 Only held steps can be deactivated by the reset step The following steps are not the targets of the reset step e HOLD steps that are active but not held e Steps that are not specified as the HOLD steps 2 For the Basic model QCPU Universal model QCPU and LCPU a step of the CPU itself cannot be specified as a reset step 4 SFC PROGRAM CONFIGURATION 4 2 8 Block START step with END check H A block START step with END check is the step where the specified block is started and when the START destination block is then deactiv
189. rform batch write of SFC program in RUN status or write of comment file in RUN status with a status of S P SFCSCOMR instruction not being executed In addition make sure not to execute S P SFCSCOMR during batch write of SFC program in RUN status or write of comment file in RUN status Operation Errors e When a comment file specified at execution of S P SFCSCOMR instruction does not existed spuds Siete Aiea ios beng A Mohn isese acted mete atone Mae hina Peal tena EE AEA Error No 2410 gd aie EE oan ha gn he Racial tak Ra eaae waica cataatar aan ata kane otaaaaak a tims kom Ah Error No 4100 bis aah deat ated tris bate Aa ee Dee hd tare tre Sy niet okt ie seat OEN Error No 4100 e When the number of readout comments in a single scan specified at n3 is other than 0 to 256 SoA Peete A E Cee E E A E N E E tee tesatsGiuetescrecriat verter E T Error No 4100 e When exceeding the maximum value of the device in which stores comment data to be readout bites eM ere Matus Meta aeh omitted erat E Te A tee Miata ta Reet atau Meet td teste Mette Error No 4101 e When the S P SFCSCOMR instruction is executed to the comment file in the ATA card or SD menory SCAN ates iaitate states ccbeddeviaeeshiildcnatelaeeelebagobercubagtstetsdebeltslathi ie Error No 4130 4 104 4 104 4 SFC PROGRAM CONFIGURATION Program Example 1 This program reads 2 comments being activated at the SFC block No 1 when X1 is turned ON and stores those to the storage
190. rm the end processing of SFC time program oe end SFC end processing time SFC end processing time 3 17 3 17 3 SPECIFICATIONS 2 System processing times for different CPU module models a When Basic model QCPU is used Active step processing time coefficient 31 6us 26 7us 20 5us Active transition processing time coefficient 10 2us Transition condition satisfied With HOED step 216 0us 182 8us 140 6s step processing time designation coefficient Normal step designation 263 5us 222 9us 171 5us SFC end processing time 66 8us 56 5us 43 5us b When High Performance model QCPU Process CPU or Redundant CPU is used High Performance model QCPU Process CPU a Transition condionselisfed with ROLD step 130 4us 56 2us 56 2us 56 2us step processing time designation coefficient Normal step designation 119 4us 51 5us 51 5us 51 5us SFC end processing time 108 2us 46 6us 46 6us 46 6us c When Universal model QCPU is used Q04UDHCPU QO6UDHCPU Q10UDHCPU Q13UDHCPU QOOUJCPU Q20UDHCPU Q26UDHCPU e QOOUCPU Q02UCPU See QO4UDEHCPU QO6UDEHCPU QO01UCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU 34us 21s 20us onas O With HOLD st Transition condition satisfied 86 7us 69 6us 60 3us 42 7us step processing time oraa X coefficient orma step SFC end processing time 67 5us 38 4us 36 6us 26 26s O O x The HOLD step includes all of the coil hold steps and operation hold step
191. rogram a Only one SFC program can be created The created SFC program is a scan execution type program b The Basic model QCPU allows creation of a total of two program files one SFC program and one sequence program Two sequence programs or two SFC programs cannot be created Scan execution type program Sequence program MAIN QPG SFC program MAIN SFC QPG c The created sequence program and SFC program have the following file names The file names cannot be changed e Sequence program MAIN QPG e SFC program MAIN SFC QPG d The SFC program and sequence program are processed in order of sequence program and SFC program The processing order of the SFC program and sequence program cannot be changed 3 SPECIFICATIONS 3 1 2 When the High Performance model QCPU Process CPU Redundant CPU Universal model CPU or LCPU is used 1 Table 3 2 indicates the performance specifications related to SFC programs Table 3 2 Performance Specifications Related to SFC Programs QO02CPU PCA aE ze za Q02PHCPU QO6PHCPU Q12PHCPU Q25PHCPU Ps 12PRHCPU Q25PRHCPU Max 28k steps Max 60ksteps Max 124k steps Max 252k steps Number of files Scannable SFC program 2 files ae normal SFC program and 1 program execution management SFC program Number of blocks of blocks Max 320 blocks 0 to 319 Number of SFC steps Max 8192 steps for all blocks max 512 steps for one block Number of br
192. rom an initial step A specified block is forcibly ended deactivated A specified block is temporarily stopped The temporary stop status ata specified block is canceled with operation resuming from the STOP step e A specified block is forcibly started activated independently and is executed from a specified step e A specified step in a specified block is forcibly ended deactivated e The instruction execution step is deactivated and a specified step is x activated Block START 5 f BLm instruction Block END instruction jr BLm Block STOP instruction PAUSE BLm Block restart instruction RSTART BLm s Sn Step START instruction BLm Sn Sn x1 BLm Sn TR BLm TRn TRn BLm TRn Block switching ferion e RET Step END instruction 2 e A specified transition condition at a a specified block is forcibly satisfied Transition control instruction x41 The forced transition at a specified transition condition in a specified block is canceled e Blocks subject to the 1 SFC control instruction are designated yg Cc O Usable x Unusable 4 39 4 SFC PROGRAM CONFIGURATION x1 In a sequence program block 0 is the instruction execution target block In an SFC program the current block is the instruction execution target block The instruction execution target block can be changed with the block switching instruction BRSET Note however that the followin
193. rresponding operations Set whether initial start or resume start will be selected for the SFC program a Initial start The program is started after the active status at a previous stop is cleared The operation after a start is performed according to the setting of block O START condition b Resume start The program is started with the active status at a previous stop ON to OFF of SM321 or RUN to STOP of CPU module held The SFC program start mode changes depending on the combination of the setting of the SFC program start mode in the PLC parameter dialog box and the ON OFF status of the special relay for setting SFC program start status SM322 as indicated below SFC Program Initial Start Resume Start Start M art Mode SM322 OFF SM322 ON SM322 OFF SM322 ON When changed by When ch db Initial status 1 oben changed By Initial status 1 SM321 is switched from ON to OFF or the CPU module is switched from RUN to STOP Ee eee module Switched from STOP to Ee eee CPU module STOP write a program Initial and then RUN Initial Initial start Resume Resume start eee E controller Powered ON Programmable controller Powered OFF and then ON after SM321 is switched from ON to OFF or the CPU module is aie a from RUN to STOP Initial Initial CPU module ResetandRUN sd CPU module Reset and RUN after o Resume 1 SM322 is turned ON OFF by the system according to the setting of the SFC program start mo
194. ruction Note however that the following CPU modules cannot use the BRSET instruction When no block number is specified the block 0 is set e Basic model QCPU e Universal model QCPU whose serial number first five digits is 13101 or earlier e LCPU 4 If the step does not exist in the SFC program is specified the contact remains OFF As the Sn device is treated as a virtual device the contact on the monitor of a peripheral device does not turn ON OFF If the internal device is ON the coil instruction is switched ON for operations Program Examples 1 The following program checks the status of step 5 in block 3 and turns ON Y20 when step 5 becomes active When step is designated by operation output of block 3 aS5 oY20 When step is designated by operation output of other than block 3 gt aBL3 s5 zal oY20 When step is designated by sequence program BL3 S5 von Y20 4 SFC PROGRAM CONFIGURATION 2 The following program executes a step synchronously with another step of a parallel branch aS20 amp bXO 20 Related Instructions 1 SFC control instructions e Block switching instruction BRSET ceeeeeeeeeeee See Section 4 4 11 Step control instruction SCHG s es See Section 4 4 10 e Active step batch readout instruction MOV P DMOV P BMOV P ceeeereeeteeeeees See Sections 4 4 4 and 4 4 5 x Indicates that XO
195. s MOV DMOV Usable Devices Data Type Int Devi Link Direct i nternal Device ink Direct Intelligent Expansion SFC SFC Program g Sequence Transition Block Step Ka Program Transition Condition Condition System User i i Sy i Function Index Constant SFC emer Module BLm Sn BINie Bms amp Only step relay S can be used When step in another block is specified When step is specified in sequence program T k4sn mowP BLm K4sn m is a block No and n is a step No When step in current block is specified nis a step No i DMOV P K8Sn pbmMowP 6 BLm K8Sn Function 1 Executes a batch readout of the operation statuses active inactive of steps in a specified block 2 The readout results are stored at the O device as shown below b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO 0 1 0 1 0 1 0 4 0 1 0 4 0 4 0 1 0 4 0 4 0 1 0 14 0 1 0 1 0 1 0 1 4 I lt a gt Step designated at Sn Step S n 15 Step S n 1 0 Step in question is inactive 1 Step in question is active 3 The bit corresponding to the unassigned step No nonexistent step No in the read data turns to 0 When step 5 and step 8 do not exist in the read block b5 and b8 turn to 0 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO p 01 0 1 0 1 Of fot Jo 101
196. s with or without transition check The Normal step represents steps other than the above Item 3 SPECIFICATIONS Universal model QCPU Item QO04UDVCPU QO6UDVCPU Q9SUDYCEU Q13UDVCPU Q26UDVCPU Active block processing time coefficient With HOLD st step processing time coefficient Ege WSN Normal step designation SFC end processing time 25 5us 25 5us d When LCPU is used LO6CPU LO6CPU P LO2SCPU LO2CPU L26CPU LO2SCPU P LO2CPU P L26CPU P L26CPU BT L26CPU PBT ctive transition processing time coefficient With HOLD step designation 86 7us 66 1us 42 7us t ing ti fficient SIPE seks ANG CSETE Normal step designation 106 9us 79 4us 52 0us SFC end processing time 67 5us 44 Tus 26 9us x The HOLD step includes all of the coil hold steps and operation hold steps with or without transition check The Normal step represents steps other than the above Transition condition satisfied 3 19 3 19 3 SPECIFICATIONS SFC system processing time calculation example Using the Q25HCPU as an example the processing time for the SFC system is calculated as shown below given the following conditions e Designated at initial START e Number of active blocks 30 active blocks at SFC program e Number of inactive blocks 70 inactive blocks at SFC program e Number of nonexistent blocks 50 number of blocks between 0 and the max created block No which have no SFC program e Number of active steps 60
197. s Execution Site Internal Devi i i i nternal Device ae Data SFC SFC Program System User LM Constant Expansion Other Type Sequence Bibek late Transition rl SFC Program Transition P Condition AGi i Condition am wH a Function 1 Deactivates the step that executed an instruction and forcibly activates the specified step set with the device designated by in the same block 2 When the destination step is already active the step that executed the SCHG instruction is deactivated and the destination step continues processing as is 3 The step where this instruction is executed is deactivated when processing proceeds to the transition condition status check following the completion of that step s program operation 4 This instruction can only be used at SFC program steps Operation Error e Error No 4631 occurs when the specified destination step does not exist e Error No 4001 occurs when this instruction is used at a sequence program other than an SFC program error is activated on switching from STOP to RUN Program Examples 1 The following program causes a transition as is when X10 has turned ON before X1 turns ON and deactivates step 5 and activates step 6 when X1 has turned ON before X10 turns ON The program created with MELSAP3 is as shown below mam SS s6 s5 E SCHG Ke ue HI 4 SFC PROGRAM CONFIGURATION QCPU PCP Applicable _Programmable contr
198. s active a transition is executed and the previous step becomes inactive Transition condition C satisfied om ma E ma ea LJ 7 E T Transition HH et ea When the transition destination steps are all inactive normal transition processing is performed and all the transition destination steps become active POINTS 1 The operation mode for transition to active step at step double START applies to a transition to be executed when a transition condition is satisfied or to a forced transition set using the transition control instruction SET TRn of the SFC control instructions When the step control instruction SET Sn of the SFC control instructions is used to issue a START request to the step that is already active the request is ignored and the processing continues 2 For the Basic model QCPU Universal model QCPU and LCPU setting of the transition to active step at step double START is not allowed The transition to active step at step double start is fixed to the default Transition for them 4 SFC PROGRAM CONFIGURATION 4 8 SFC Comment Readout Instruction SFC comment readout instruction can read comments of steps being activated in the specified blocks or those of the transition condition associated with active steps The ins
199. s been set to the HOLD step SC SE ST and which is being held with the transition condition satisfied 4 SFC PROGRAM CONFIGURATION POINTS The operation of SM325 differs depending on the CPU module e For the Basic model QCPU High Performance model QCPU and Process CPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop at STOP RUN of the CPU module e For the Universal model QCPU and LCPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop when the CPU module is powered ON or is reset Parameter setting SM325 Turns OFF coil output OFF Remain ON coil output held Note that the output mode at block stop can be changed regardless of the parameter setting by turning ON OFF SM325 in the user program 4 SFC PROGRAM CONFIGURATION Related Instructions 1 SFC information device e Block STOP RESTART bit 0 0 0 eee eee See Section 4 5 3 2 SFC control instruction e Block STOP instruction PAUSE BLm cee See Section 4 4 7 4 SFC PROGRAM CONFIGURATION SSS SSS SSS 4 5 5 Continuous transition bit The continuous transition bit specifies whether the operation output of the next step will be executed in the same scan or not when the transition condition is satisfied 1 There are two types of SFC program transition processing with continuous transition and without continuous transition The user specifies either of
200. s of each block can be checked at another block using the block START END bit refer to Section 4 5 1 or the block activation check instruction refer to Section 4 4 3 of the SFC control instructions 4 SFC PROGRAM CONFIGURATION 4 2 10 End step An end step indicates that a series of processings in the corresponding block is all ended 1 When the end step is reached the following processing is performed to end the block a All steps in the block are deactivated The held step are also deactivated b The coil outputs turned ON by the OUT instruction are all turned OFF When the special relay for output mode at end step execution SM327 is ON however the coil outputs of the held steps all remain ON POINTS 1 SM327 is valid only when the end step is reached When a forced end is made by the block END instruction etc the coil outputs of all steps are turned OFF 2 SM327 is valid for only the HOLD steps being held The outputs of the HOLD steps that are not held as the transition conditions are not satisfied are all turned OFF 2 When the special relay for clear processing mode at arrival at end step SM328 is turned ON the execution of the active step other than the one held in the block can be continued when the end step is reached 1 The block is not ended if the end step is executed However when there is only the held step left in the block at arrival at the end step the held step is deactivat
201. s the step whose attribute has been set to the HOLD step SC SE ST and which is being held with the transition condition satisfied 4 SFC PROGRAM CONFIGURATION POINTS The operation of SM325 differs depending on the CPU module e For the Basic model QCPU High Performance model QCPU and Process CPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop at STOP RUN of the CPU module e For the Universal model QCPU and LCPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop when the CPU module is powered ON power or is reset Parameter setting SM325 Turns OFF coil output OFF Remain ON coil output held Note that the output mode at block stop can be changed regardless of the parameter setting by turning ON OFF SM325 in the user program c The STOP RESTART bit switches ON when the SFC control block STOP instruction PAUSE BLm is executed 2 Block RESTART instruction RSTART a The block in question is restarted from the step where a STOP occurred An operation HOLD status step with transition check or without transition check which has been stopped will be restarted with the operation HOLD status in effect A coil output HOLD step cannot be restarted after being stopped as it becomes deactivated at that time b Depending on the ON OFF status of the block STOP time operation output flag SM325 the operations of the PLS i
202. satisfied at the z step n operation output processing will s ep n l ee ae ey proceed in order through steps n 1 n 2 _ Transition Transition and n 3 When transition condition d is condition b condition c icf ATER unn Step Step satisfied processing will jump to step n For n 1 n 4 details on jump transitions see Section T 4 3 4 Step Step oma na m Step 43 Transition T condition d gt n In a selective transition the number of branches and the number of couplings may be different However a selection branch and parallel coupling or a parallel branch and selection coupling cannot be combined 4 SFC PROGRAM CONFIGURATION 4 Selection transition operation flowchart inital step E a condition a sen 1 _ _ Transition Transition _ _ Transition T condition condition e condition h Step 2 Step 4 Step 6 _ Transition _ Transition T condition c T condition f C jes O pos _ Transition _ Transition _ Transition T condition d condition g condition i C se7 _ Transition T condition j 4 29 Operation status Operation output of initial step 0 is executed Is transition condition a satisfied YES yY Operation output of initial step 0 is deactivated Y Operation output of initial step 1 is exe
203. sensnndtantaiudanneaaaaenaaadaanaaanannanaaaa 4 84 4 6 Step Transition Watchdog Timer ececcceceeceseceseceeeeseeeeeeeeseeeseeeseeeseaeseeseaeseeeseeeseeeseeeseeeseaseeaeseaeeeaeeeaes 4 85 4 of SEG Operation Mode Seng oiera aA R EAA A 4 87 ATA SFC program Start Mode aea a Ani ae a nae ia as a ee aa 4 88 4 7 2 Block O S TART Condition eve ists oetiticeeed ieteaeieatds O eee ere tee eet 4 90 4 7 3 Output mode at block STOP ecccccccceceneceeneceeeeeeeceeeaeeeseaeeecaeeesaeeceaeescaeeeceeeeseeeseaeessaeessueeesineenaas 4 91 4 7 4 Periodic execution block setting ee eeeeeceeeeeeeeeneeeneeenee sees sees tee eee seesaeesieesieesieesieesieetieeeieesieeeieees 4 92 4 7 5 Operation mode at double block START 0 2 ccccccceseceeeeeeeeeeeeeeeeeaeeceaeeseaeeecaeeesaeeseaeeseaeeseueeesineenaas 4 93 4 7 6 Operation mode at transition to active step double step START ccecceeeeeeeeeeeeeeeeeeeseeetees 4 94 4 8 SFC Comment Readout Instruction 0 02 2 cccccceececeecceenceeeeeeeeeeeceneeeeeaeeeeaneesaeeceaeeseaeeseaceseneeteaeeeseeteeeees 4 97 4 8 1 SFC comment readout instruction S P SECSCOMR eeceeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeas 4 98 4 8 2 SFC transition comment readout instruction S P SFCTCOMR ceeeceeeceeeeeeeeeereetreenteeeeeas 4 106 5 SFC PROGRAM PROCESSING SEQUENCE 5 1 to 5 14 5 1 Whole Program Processing of Basic Model QCPU cc cccccceceeceeeeeeeeeeeeeeeeeeeaeeseaeeeeneeesea
204. setting are assigned to each watchdog timer as indicated below atchdog Watchdog Watchdog Watchdog Watchdog Watchdog Watchdog Watchdog Watchdog Watchdog Timer 1 Timer 2 Timer 3 Timer 4 Timer 5 Timer 6 Timer 7 Timer 8 Timer 9 Timer 10 aa SM90 SM91 SM92 SM93 SM94 SM95 SM96 SM97 SM98 SM99 Special register SP2 SD91 SD92 SD93 SD94 SD95 SD96 SD97 SD98 SD99 3 The method of setting to SD90 SD99 is as shown below b15 b8 b7 bO EN ae lea on aes A Time setting 1 to 255 setting value x1 s Annunciator F ON when time over status occurs device No setting 0 to 255 1 When the parameter where the High speed interrupt 149 fixed scan interval has been set is written to the High Performance model QCPU whose first five digits of serial No are 04012 or later the step transition watchdog timers cannot be used No processing is performed if the step transition watchdog timers are executed 2 The step transition watchdog timers are not available for the Basic model QCPU Universal model QCPU and LCPU 4 SFC PROGRAM CONFIGURATION 4 The method for using a step transition watch dog timer is shown below oe ae 7 MOVP H010A SD60 oSM90 Time setting 10 x 1s 10s Renan eee re Annunciator F No F1 HO10A all Transition condition a T 10 s F1 annunciator a When SM90 is turned ON in the operation output of the step that performs a time check as shown below the step
205. several steps linked in parallel are processed simultaneously when the relevant transition condition is satisfied Step n operation output A Transition condition b e From step n processing will proceed simultaneously to steps n 1 and n 3 when Step n 1 Step n 3 transition condition b is satisfied operation operation e Processing will proceed to step n 4 when output B output D transition condition c is satisfied and to step Transition condition c T Transition condition d n 4 when transition condition d is satisfied Step n 2 Step n 4 operation operation output C output E E Step n p Step n 1 When transition conditions b and c are operation operation satisfied at step n and step n 1 execution output A Transition condition b T Transition condition c output B steps n and n 1 will be deactivated and processing will proceed to the waiting steps 2 Pi e Waiting steps are used to synchronize parallel Waiting step Waiting step processing operations Parallel processing steps always proceed to a waiting step When condition d is satisfied at the waiting steps Step n 2 processing will proceed to step n 2 operation e Waiting steps are dummy steps which require output C no operation output lad
206. sion method Since a step program cannot use contacts and instructions equivalent to contacts the operation output of an active step is executed when the transition condition is satisfied Also a step attribute is used to hold the output or continue operation when the step is activated A step program is expressed as a ladder circuit as shown below Output instruction If a program is not created at a step an error will not occur In this case no processing is performed until the transition condition immediately following the corresponding step is satisfied 4 SFC PROGRAM CONFIGURATION 2 MELSAP L program description The MELSAP L describes step programs in the following format Example of MELSAP L Example of list format Ano of circuit symbol format m K100 High speed timer h hTO K100 OUTH TO K100 The instructions other than 7 above o h s r are the MOV K100 DO MOV K100 DO A MOV K100 DO H same as the list To arrange several operation outputs in parallel in the same step separate them with comma MELSAP L format oY70 sM100 MOV K100 DO MOV K100 DO 3 Precautions on description a Describe the instructions which do not require execution conditions e g DI or El at the last of each operation output With the MELSAP L execution conditions like contacts cannot be created as the operation output Therefore the instruction which requires execution conditions cannot be created
207. sition Block Step a Program Transition Condition BLm Sn Step a Condition Device name Internal Device i Intelligent System User Function Expansion When step in current block is specified When step in another block is specified When step is specified in sequence program When expressed in a circuit When expressed in a circuit Sn BLm Sn aBLm Sn aBLm Sn H BLm Sn bBLm Sn bBLm Sn BLm Sn amp aBLm Sn x amp aBLm Sn BLm Sn amp bBLm Sn k amp bDBLm Sn aBLm Sn BLm Sn x aBLm Sn bBLm Sn LA bBLm Sn BLm Sn m is a block No nis a step No and is a contact Functions 1 Checks a specified step in a specified block to determine if the step is active or inactive 2 The contact status changes as described below depending on whether the specified step is inactive or active Contact of N O Contact Contact of N C Contact Instruction Instruction 4 SFC PROGRAM CONFIGURATION SSS SEES SSS 3 Specify the step as described below a In the case of SFC program 1 Use Sn when specifying the step in the current block 2 Use BLm Sn when specifying the step in another block in the SFC program b In the case of sequence program 1 Use BLm Sn when executing the step activation check instruction 2 When the block number is not specified specify the block number with the BRSET inst
208. sition does not occur after the designated time elapses These monitoring functions allow you to track down the spot where a problem occurs without a broad knowledge about sequence programs 1 10 1 10 2 SYSTEM CONFIGURATION 2 SYSTEM CONFIGURATION 1 Applicable CPU modules MELSAP L SFC programs runs on the following CPU modules CPU module type Basic model QCPU Modules whose serial number first five digits is 04122 or later QOOJCPU QO0CPU Q01CPU High Performance model QCPU Q02CPU QO2HCPU QO6HCPU Q12HCPU 25HcPU sid Process CPU Q02PHCPU QO6PHCPU Q12PHCPU Q25PHCPU i ee Redundant CPU Q12PRHCPU Q25PRHCPU Universal model QCPU QOOUJCPU QOOUCPU Q01UCPU Q02UCPU QO3UDCPU QO3UDVCPU Q03UDECPU Q04UDHCPU QO4UDVCPU Q04UDEHCPU QO6UDHCPU QO6UDVCPU QO6UDEHCPU Q10UCHCPU Q10UDEHCPU Q13UDHCPU Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU LO2SCPU LO2SCPU P LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P L26CPU BT L26CPU PBT 2 SYSTEM CONFIGURATION 2 Peripheral devices for SFC programs The following peripheral devices can be used to create edit and monitor SFC programs CPU module Software package to be High installed in a personal Basic model ie Redundant Universal Performance Process CPU computer QCPU CPU model QCPU model a SWA4D5C GPPW Eoriater x o SW7D5C GPPW E or later GX Developer
209. struction comments for the normal SFC program can be read Comments of an SFC program to control program execution are not read Executing S P SFCTCOMR instruction specifying the SFC program to control execution 0 is stored to the total number of transit conditions 01 0 and the number of transient conditions 01 1 At this time the device specified in 02 turns ON for 1 scan 13 S P SFCTCOMR instruction cannot be executed simultaneously with S P SFCTCOMR instruction or S P SFCTCOMR instruction Executing S P SFCTOMR and if S P SFCSCOMR instruction or S P SFCTCOMR instruction is executed before reading comments completed the 2nd instruction will be deactivated 14 When the S P SFCTCOMR instruction is attempted to be executed while SM721 is on the instruction will not be executed However when the execution condition is met the instruction will be executed in the next scan SM721 turns on in the following operations e The S P SFCSCOMR instruction or the S P SFCTCOMR instruction is executed e The COMRD P S P FWRITE S P FREAD or SP DEVST instruction is executed A file in the ATA card SD memory card or standard ROM is accessed by the read from PLC or write to PLC function or by other file access operations Universal model QCPU only 15 For the Universal model QCPU when the S P SFCTCOMR instruction is attempted to be executed while online change inactive block is executed to the SFC b
210. struction must be executed at each step Operation Error Error No 4621 occurs when the specified block does not exist or when the SFC program is in the stand by status Program Examples 1 When X1 switches ON the following program switches the Sn or TRn block number to the block number stored at the DO data register MOV Kn DO aX1 BRSET DO 2 When X2 switches ON the following program switches the Sn or TRn block number according to the constant at the Z1 index register ax2 BRSET K0Z1 4 SFC PROGRAM CONFIGURATION 4 5 SFC Information Devices This section explains the SFC information devices set in each block Table 4 2 indicates the SFC information device types and usable devices Table 4 3 SFC Information Device List SFC Information Function Cutline Usable QCPU Device Device LCPU e Device designed to forcibly start or forcibly end the specified block by a sequence program or the test operation of the peripheral device e Can also be used to confirm the active status of the specified block e Device that checks whether or not a step transition Step transition bit occurred in the corresponding scan in the specified block RESTART bit corresponding block that is active e Device used to specify whether all steps will be Block STOP mode immediately stopped or the block will be stopped bit after the transition of the corresponding step when the block is stopped temporarily e Device
211. t held STOP after transition The held step indicates the step whose attribute has been set to the HOLD step SC SE ST and which is being held with the transition condition satisfied 4 SFC PROGRAM CONFIGURATION POINTS The operation of SM325 differs depending on the CPU module e For the Basic model QCPU High Performance model QCPU and Process CPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop at STOP RUN of the CPU module e For the Universal model QCPU and LCPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop when the CPU module is powered ON or is reset Parameter setting SM325 Turns OFF coil output OFF Remain ON coil output held Note that the output mode at block stop can be changed regardless of the parameter setting by turning ON OFF SM325 in the user program 4 SFC PROGRAM CONFIGURATION 3 The execution of the corresponding block is restarted from the step where it had stopped when the block STOP RESTART bit is turned OFF in the sequence program SFC program or peripheral device An operation HOLD status step with transition check or without transition check which has been stopped will be restarted with the operation HOLD status in effect A coil output HOLD step cannot be restarted after being stopped as it is deactivated at that time 4 When a block STOP is canceled the PLS or P instruction is execut
212. t parameter block STOP and ON when coil output held is selected e When this relay is OFF the coil outputs are all turned OFF e When this relay is ON the coil outputs are held Select the device status when the CPU is switched from STOP to program write to RUN All devices except the step relay e When this relay is OFF the SC SE or ST step that was held when a transition condition had been satisfied turns OFF the coil output when the end step is reached Select whether clear processing will be performed or not when active steps other than those held exist in the block at the time of arrival at the end step e When this relay is OFF the active steps are all ended forcibly to end the block e When this relay is ON the execution of the block is continued as is When no active steps other than those held exist at the time of arrival at the end step the held steps are all ended to end the block System initial value User APP 4 APPENDICES Corresponding i Set by Number Name Meaning Explanation When set Indicates whether the normal SFC program is being executed Normal SFC program Not executed S status SM331 or not execution status Being executed change High Performance model QCPU Pp XPress CPU Redundant CPU Universal model QCPU Used as an execution interlock of the SFC control instruction status Used as an execution interlock of the SFC control instruction
213. t S P SFCSCOMR instruction and the total number read comments N of steps that have actually read comments are stored Step No e Active step No that has read comment is stored e Comments that have been read are stored Comment area is fixed by a maximum of 32 characters Comment e In case the word length to be set for 1 comment a at the comment range setting is set by 32 or less 00004 is stored to the area after the number of characters for 1 comment End of comment e 00004 is stored Empty e Not used area 00004 is stored x7 The number of characters for each comment in the comment range setting is set in the programming tool For details refer to the manual for the programming tool With S P SFCSCOMR instruction the points calculated by the following formula are occupied from the device No specified at 01 Points to be used for storing a comment 2 20 x number of comment to read n2 For 01 make sure to set device No that can store the above points successively 4 SFC PROGRAM CONFIGURATION Functions SFC program block1 of 0 1 a 1 This function reads step comments being activated in the SFC block specified at n1 by the number of comment specified at n2 and stores those to on y sP sFescomR K1 DO K2 K2 MO the device number of after specified at H See oY110 aX100 oY111 ax101 Process ready complete Read a comment oY1
214. t7 is satisfied When after the step immediately after the coupling S8 in the above program example becomes active another transition condition immediately before the coupling any of t4 to t7 in the above program example is satisfied reactivation processing is performed as a follow up function The processing which will be performed when another transition condition is satisfied with the step immediately after coupling being active can be selected between STOP WAIT and TRANSFER in the Operation mode at transition to active step double step START refer to Section 4 7 6 in the block parameter setting of the SFC setting dialog box in the Tools menu For the Basic model QCPU Universal model QCPU and LCPU the operation mode cannot be selected It operates in the default TRANSFER mode 3 The operation of the initial steps with step attributes is the same as that of the other steps Refer to Section 4 2 4 to Section 4 2 7 4 9 4 SFC PROGRAM CONFIGURATION 4 2 3 Dummy step X A dummy step is a waiting step etc which contains no operation output program 1 The transition condition following the corresponding step is always checked during execution of a dummy step and execution proceeds to the next step when the transition condition is satisfied 2 The dummy step changes to a step without step attribute indication when an operation output program is created 4 2 4 Coil HOLD step A coil
215. tative or Mitsubishi Service Company However if repairs are required onsite at domestic or overseas location expenses to send an engineer will be solely at the customer s discretion Mitsubishi shall not be held responsible for any re commissioning maintenance or testing on site that involves replacement of the failed module Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs Gratis Warranty Range 1 The range shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that cou
216. teasGat evita rad A 9 GENERIC TERMS 2 1 2 ccn avai i iene dink deere Gen i ibe dae A 10 1 GENERAL DESCRIPTION 1 1to 1 10 11SEC Programs ischraie inated on eee a pines dare hae ee ee ee erate 1 3 T2 SFC MELSAP L Features 2 04430 utenti a eal Oat adie wel ie tee ld Ys 1 4 2 SYSTEM CONFIGURATION 2 1to2 2 3 SPECIFICATIONS 3 1 to 3 26 3 1 Performance Specifications Related to SFC Programs ecccecceceeseseceseneseeeeeeeeeeseeeseaeeeeaeseneeeneeeaes 3 1 3 1 1 When the Basic model QCPU iS used c ccceecceeeeeeeeeeeeeeeeeeaeeeeaeeeeecaeeecaeeseaeesteaeeteaeeteeeseaneesaes 3 1 3 1 2 When the High Performance model QCPU Process CPU Redundant CPU Universal model CPU or LCPU iS used 0 0 0 0 ccccccesssceeeeeeecessesseesaceeeeeeecessesaueeeeeeesensesaeeteneesenee 3 3 3 2 Device List neran u e an a a e ges cae Se ee eee E E EE 3 8 3 2 1 Device list of Basic model QCPU eeccceeccecescceeeccececeececeeseaeeceaeeeeaeeesaeesecaeeseneeseaeeeeaeeesueeeenneesaas 3 8 3 2 2 Device list of High Performance model QCPU Process CPU and Redundant CPU 3 10 3 2 3 Device list of Universal model QCPU ccccececccceeceeeeeeeeeeeeeeceneecneeseaeeseaaeseaneeseaeeseaeessueeeseneesenees 3 12 3 2 4 Devicellist Of LORU sc n 2 tensrsisceheltee ste seiestek a a a a ge atasaaeetioi a a 3 15 3 3 Processing TIME 2 cca evi ied hele teed id ek eed a ee ee id ed eed ce eee ei 3 17 3 3 1 Processing time for SFC prog
217. teed 5 The step relay S can be used only in the following instructions e Step activation check instruction e Active step batch read instruction e Step START instruction e Step END instruction 6 The following instructions are described as follows when used in the format other than the MELSAP L e s SET er RST 4 SFC PROGRAM CONFIGURATION Beginning from Section 4 4 1 of this manual the following table is used in the explanations of the various instructions The table contents are explained below Usable Devices Programs Using Instructions Execution Site Intelligent Expansion Data SFC Program be i Function Index Constant Sequence Transition es SFC Other Type Block Step sg i KH Program Transition Condition r r BLm Sn Step es t AGi i Condition BIN16 BIN32 BIN16 O BIN32 Pa XR KR j 3 4 5 I 1 Ladder symbols are indicated in this area 1OH Destination Source Instruction code Destination cceeceeeeeeeneeteee Data destination following the operation SOUC sittings inane Where data is stored prior to the operation 2 Usable devices are indicated at this area e Devices indicated by a circle mark O can be used with the instruction in question The device application classifications are shown below 4 SFC PROGRAM CONFIGURATION Internal Link Direct Intelligent Device System User 1 oN Function Class Module Decimal he
218. tep selection START will occur when a given step is specified and activated c When designating a step located in a parallel branch all the parallel steps should be activated An inactive parallel branch ladder at such a time will prevent the parallel coupling condition from being satisfied d If a specified step is already active when this instruction is executed the instruction will be ignored equivalent to the NOP instruction and processing will continue To hold a specified step with the HOLD step see Transition to HOLD step by double START in Section 4 7 6 e When the operation output is used to start the step do not specify the current step number as the specified step number If the current step is designated as the specified step number normal operation will not be performed so f Specify the step as described below 1 In the case of SFC program e Use Sn when specifying the step in the current block e Use BLm Sn when specifying the step in another block 2 In the case of sequence program e Use BLm Sn when executing the step START instruction in the sequence program e When the block number is not specified specify the block number with the BRSET instruction Note however that the following CPU modules cannot use the BRSET instruction When no block number is specified the block 0 is set e Basic model QCPU e Universal model QCPU whose serial number first five digits is 13101 or earlier e LCPU
219. the SFC control instructions with an SFC program created with SFC program symbols the SFC program can be usually controlled easily A program execution management SFC program cannot be controlled by using SFC control instructions The types and functions of the SFC control instructions will be explained CPU Module Type High Performance Universal Model QCPU Process CPU Redundant Instruction Expression Function amp a la b amp b Ib a amp a la 1 e Checks a specified step in a specified block to determine if the step is active J sn Step operation status check instruction 0 b amp b Ib amp a la fi amp b Ib amp a la Forced transition check instruction BLm Sn or inactive TR xal Checks a specified step in a specified J n block to determine if the transition condition by transition control instruction for that step was satisfied BLn TRn BLm b amp b Ib amp a la b amp b Ib MOV P K4Sn MOV P BLm K4Sn DMOV P K8Sn D DMOV P BLm K8Sn BMOV P K4Sn D Kn 1 BMOV P BLm K4Sn Kn forcibly or not e Checks a specified block to determine if it is active or inactive Block operation status check instruction x41 Active steps in a specified block are read to a specified device as bit information Active steps batch readout instruction A specified block is forcibly started activated independently and is executed f
220. them by turning ON OFF the continuous transition bit e Continuous transition ON Continuous transition bit ON When the transition conditions at contiguous steps are satisfied all the steps transition conditions will be executed at once within a single scan e Continuous transition OFF Continuous transition bit OFF externa at Steps are executed in a 1 step per scan format Example Sample program processing Bleck Continuous transition ON L When the corresponding block becomes active the aSM400 Always ON processings of all steps are executed in the same scan and end step processing is performed to deactivate the block e Continuous transition OFF ay aeRO Always ON When the corresponding block becomes active steps are executed in a 1 step per scan format and end step processing is performed in the third scan to deactivate the block aSM400 Always ON 2 A continuous transition can be designated for individual blocks by the continuous transition bit ON OFF setting or for all blocks using the batch setting special relay As indicated below whether a continuous transition is executed or not changes depending on the combination of the continuous transition bit and the special relay that sets whether continuous transition of all blocks is executed or not SM323 SM323 status Continuous Transition Bit Status SFC Program Operation e Continuous transition bit OFF e Operation occurs without c
221. til the OFF coil transition condition is satisfied e Remains ON output e When the transition condition is satisfied the coil output OFF STOP after end processing of the corresponding step is held transition performed At the same time the transition destination step becomes active and the block is stopped before execution of the operation output OFF orno e Immediately after a STOP request is made setting the block is stopped with the coil output of the immediate operation output being held stop e The status remains active ON e Normal operation is performed until the coil transition condition is satisfied output e When the transition condition is satisfied the held e Immediately after a STOP request is made the coil e Immediately after a STOP request is output of the made the coil output of the operation operation output is output is turned OFF and the block is turned OFF and the stopped block is stopped e The status remains active e The status becomes inactive e Remains ON coil output held e Immediately after a STOP request is made the block is stopped with the coil output of the operation output being held ON f e The status remains active end processing of the corresponding step is performed At the same time the transition destination step becomes active and the block is stopped before execution of the operation output STOP after transition The held step indicate
222. tination step No Reset initial step S Initial step i 4 Dummy initial step i x Pare i Ke Coll HOLD initial step When initial step Up to 31 steps in 1 block Operation HOLD step without _ No is other than i Sa i step No 1 to 511 transition check initial step o n reset destination step No Operation HOLD step with Step transition check initial step Reset initial step Sh Step i L Dummy step i Xx Coil HOLD step i i Up to 512 steps in 1 block includin Operation HOLD step without i S af ae p g transition check initial step i Operation HOLD step with l 128 steps for Basic model QCPU A i oe transition check Steps other than i step No 1 to 511 initial step i n reset destination step No Reset step sn R m movement destination block No Block START step with END i check E Block START step without END i check pm End step More than one step can be used in 1 block 4 SFC PROGRAM CONFIGURATION Transition Serial transition SFC Diagram Symbol Remarks Selection branching Selection coupling Selection coupling parallel branching Parallel branching Parallel coupling Parallel coupling parallel branching Parallel coupling selection branching Selection branching parallel branching Parallel coupli
223. tion e Waiting step L Transition condition f Step 5 _ _ Transition condition g Parallel processing a Operation status Initial step operation output executed Transition condition a satisfied YES x1 Initial step operation output deactivated Step 1 operation output executed Transition condition b satisfied 4 YES x1 Step 1 operation output deactivated Step 4 operation output executed Step 3 operation output executed Step 2 operation output executed Transition condition e satisfied Transition condition d satisfied Transition condition c satisfied Step 4 operation output deactivated Step 3 operation output deactivated Step 2 operation output deactivated Waiting step executed Waiting step executed Waiting step executed All waiting steps executed Transition condition f satisfied YES tt Step 5 operation output executed Transition condition g satisfied YES 4 X Step 5 operation output END step executed deactivated operation completed x1 For steps with attribute designations processing occurs in accordance with the attributes 4 SFC PROGRAM CONFIGURATION 4 3 4 Jump transition A jump transition is a jump to a specified
224. tion was executed the device turned ON by the PLS instruction remains ON until the OFF condition in above 3 is satisfied b PLF instruction When the execution condition of the PLF instruction is satisfied and the transition condition is satisfied at the same scan where the PLF instruction was executed the device turned ON by the PLF instruction remains ON until the OFF condition in above 3 is satisfied c Counter If the count input condition turns ON OFF after a transition to the next step the counter does not start counting d Timer When a step transition occurs after the transition condition is satisfied with the coil of the timer ON the timer stops timing and holds the then present value 4 SFC PROGRAM CONFIGURATION 4 2 5 Operation HOLD step without transition check An operation HOLD step without transition check is a step where the operation output processing of the corresponding step continues after a transition to the next step However transition processing to the next step is not executed if the transition condition is satisfied again at the corresponding step 1 During normal SFC program operation the coil ON status switched ON by OUT instruction when transition condition is satisfied is automatically switched OFF before proceeding to the next step When an operation output step is designated as an operation HOLD step without transition check the corresponding step will remain active after a transition t
225. tive WAIT Inactive WAIT Inactive Transition Transition condition E condition L Transition L satisfied WAIT status satisfied executed wE gt Cl L E 3 When setting is TRANSFER PEES A transition is executed and the previous step becomes inactive L Transition C condition satisfied E E L L Ea Active LJ T ed Transition 4 SFC PROGRAM CONFIGURATION b When transition destination is parallel branch 1 When setting is STOP ER If any one of the transition destinations of the parallel branch is active an error occurs and the processing of the CPU module stops lt Transition destination 2 When setting is WAIT ree Execution waits until all the transition destination steps of the parallel branch become inactive When the transition destination steps all become inactive a transition is executed and all the first steps of the parallel branch become active Ina WAIT status the previous step is deactivated Active Inactive Transition sil Inactive oe Inactive Transition condition Transition conditions Conditions WAIT Prensa satisfied WAIT status satisfied satisfied executed mm Ld Eta L E All active ea Mm LI CL T F Lo I Ea T T T Lo I L m E 3 When setting is TRANSFER fee When any one of the transition destination steps of the parallel branch i
226. tive block during boot operation When online change inactive block is executed during boot operation from a memory card the original program in the memory card will not be changed d Operation if the CPU module is powered off and then on or is reset before termination of online change inactive block The changes in the target program will not be reflected e Online change inactive block immediately after writing to the CPU module When the CPU module is set to STOP and an SFC program is written to the CPU module online change inactive block cannot be executed to the SFC program until when the CPU module is set to RUN If executed a communication error will occur f Online change inactive block while CAN T EXE PRG error code 2504 occurs When multiple SFC programs of scan execution type are registered and CAN T EXE PRG error code 2504 occurs online change inactive block cannot be executed If executed a communication error will occur 6 SFC PROGRAM EXECUTION MEMO 25 APPENDICES APPENDICES APPENDIX 1 Special Relay and Special Register List This section lists the special relays and special registers that can be used in SFC programs For the special relays and special registers for other programs refer to the user s manual for the CPU module used The heading descriptions in the lists are shown in the table below Explanation Discusses contents of special relay and special register in more
227. tring constant ABC 123 1 For the timer retentive timer and counter contact coil values are stored in bit devices and current Single precision floating point data E 1 17549435 38 to E 3 40282347 38 Real constant Double precision floating point data 5 E 2 225073858507201 4 308 to Decimal constant constant K 2147483648 to 2147483647 Hexadecimal constant HO to HEFFFFFFF values are stored in word devices 2 The number of points that can be actually used varies depending on the intelligent function module For the points in the buffer memory refer to the manual for the intelligent function module used 3 SPECIFICATIONS 3 4 5 6 ot 8 9 The number of points can be changed except for input output and step relay in the Device tab of the PLC parameter dialog box Note that the step relay points can be changed to 0 point for the Universal model QCPU whose serial number first five digits is 10042 or later For the Universal model QCPU whose serial number first five digits is 12052 or later the step relay points can be set in increments of 1k points and up to the following points e QOOUJCPU QOOUCPU Q01UCPU and QO02UCPU 8192 points e Universal model QCPUs other than the QQQUJCPU QOOUCPU Q01UCPU and QO2UCPU 16384 points Available only in a multiple CPU system configuration Up to 15 digits can be entered in GX Developer The total of the points for the file register extended data register
228. tructions to read SFC comment are listed below Ladder Expression Instruction to read SFC step S SFCSCOMR Reads comment of an active step in the specified comment SP SFCSCOMR block Instruction to read comment of S SFCTCOMR Reads comment of transition condition associated SFC transition condition SP SFCTCOMR with an active step in the specified block 4 SFC PROGRAM CONFIGURATION QCPU Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU 1 The serial number first five digits shall be 07012 or later 2 The serial number first five digits shall be 07032 or later 3 The serial number first five digits shall be 12052 or later except for the QO0U J Q01U Q02UCPU 4 8 1 SFC comment readout instruction S P SECSCOMR System User i i Function Module Usable Devices Programs a Instructions Execution Site Data Type Internal Device ink Dire Intelligent a SFC Program Sequence Transition Block Step Program Transition Condition Condition 3 Local device cannot be used S SFCSCOMR m1 n2 n3 62 LH SP SFCSCOMR n1 n2 n3 62 Data Set Data Data Meaning Range o Indicates block No of an SFC program that read comments or device number where 0 to 319 block No is stored Indicates the first number of device that stores comment read TE j2 Indicates the device number where the number of comments to read or the number of Oto 256 4 comme
229. used by any cause found not to be the responsibility of Mitsubishi loss in opportunity lost profits incurred to the user by Failures of Mitsubishi products special damages and secondary damages whether foreseeable or not compensation for accidents and compensation for damages to products other than Mitsubishi products replacement by the user maintenance of on site equipment start up test run and other tasks 5 Changes in product specifications The specifications given in the catalogs manuals or technical documents are subject to change without prior notice SH NA 080076 T SH NA 080076 T 1406 MEE MODEL QCPU P E SAP L MODEL CODE 13JF61 MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
230. used to specify whether the operation output of the next step will be executed within the same scan or not when the transition condition is satisfied Number of active e Device that stores the number of steps currently D W steps register active in the specified block R ZR O Usable Continuous transition bit When using the SFC information devices set them in Block information setting at the input editing of the SFC diagram When the SFC information devices are not used they need not be set Block information setting Block No 0 Block title Operation start preparation bloc a Block START END bit t Step transition bit s Block PAUSE RESTART bit m Pause mode bit r Number of active steps register c Continuous transition bit r cee 4 SFC PROGRAM CONFIGURATION POINTS The following cannot be specified for the SFC information devices e Indirect designation e Digit designation K e Index modification Z e Word device bit designation 4 SFC PROGRAM CONFIGURATION 4 5 1 Block START END bit The block START END bit is used to confirm the active status of the specified block by a sequence program or the test operation of the peripheral device It can also be used as a device to forcibly start or forcibly end the specified block 1 Operation of block START END bit a The block START END bit turns ON when the corresponding block starts The block START END bit re
231. ve step becomes active and the block stops immediately OFF orno e Immediately after a STOP request is made setting the block is stopped with the coil output of the immediate operation output being held e The status remains active e Normal operation is performed until the transition condition is satisfied e When the transition condition is satisfied the end processing of the corresponding step is performed At the same time the transition destination step becomes active and the block stops immediately e Immediately after a STOP request is made the coil e Immediately after a STOP request is e Immediately after a STOP request is made the block is stopped with the coil output of the operation output being held e The status remains active coil output held STOP after transition The held step indicates the step whose attribute has been set to the HOLD step SC SE ST and which is being held with the transition condition satisfied a Output mode at block STOP in PLC parameter dialog box Set the status of the output mode at block STOP when the programmable controller is powered ON or the CPU module is reset b SM325 e For the Universal model QCPU and LCPU SM325 turns ON OFF according to the parameter setting output mode setting at block stop when the CPU module is powered ON or is reset Parameter setting SM325 Turns OFF coil output OFF oF O O Remain ON coil output held oN O O
232. xadecimal Usable devices character string constant e When a device name is indicated in the constant expansion SFC or the other column only that device may be used Example If K H is indicated in the constant column only a decimal K or hexadecimal H constant may be used Real number constants E and character string constants may not be used 3 The data type for the designated device is indicated here S Bitte eie a aoe Indicates a bit data operation BINIG aiotaan Indicates 16 bit binary value processing 1 word used BINS2 tects cnt aciicaeah Indicates 16 bit binary value processing 2 words used e Character string Indicates character Variable string processing number of words e Device Indicates device name and Variable first device processing number of words 4 The type of program which can be used with the instruction in question is indicated here 5 The request destination for the instruction in question is indicated here 4 SFC PROGRAM CONFIGURATION QCPU Applicable Programmable controller CPU Process Redundant LCPU CPU High Performance CPU CPU eee O d ee ee ee ee ee The serial number first five digits shall be 04122 or later 4 4 1 Step operation status check instructions a b amp a amp b la Ib Usable Devices Programs Using Instructions Execution Site Data SFC Other Type SFC Program i Sequence Tran
233. xistent block processing time System processing time required to execute blocks that have not time been created e Number of nonexistent blocks Number of blocks where programs have not been created within the number of blocks set in the parameter Active step Active step processing time active step processing time coefficient xX number of active steps processing Active step processing time Time required to execute active steps time e Number of active steps Number of steps that are active in all blocks Active Active transition processing time active transition processing time coefficient x number of active transition transitions processing Active transition processing time System processing time required to execute active transitions time e Number of active transitions Number of transition conditions associated with all steps that are active in all blocks Transition Transition condition satisfied step processing time transition condition satisfied step processing condition time coefficient x number of transition condition satisfied steps satisfied step Transition condition satisfied step processing time Time required to perform OFF execution of active processing steps time e Number of transition condition satisfied steps Number of steps where operation outputs are turned OFF since transition conditions were satisfied in all blocks processing SFC end processing time System processing time required to perfo
Download Pdf Manuals
Related Search
Related Contents
Empire Comfort Systems CIVF-25-2 User's Manual PROFIBUS CONNECT dual 1214 - KA Home Page enhanced right side handlebar mount star/stop switch p/n 11-0098 Wisp PONG.The ELCOM net-watch procedure for TCP/IP networks Dahle 50044 scissor HMIS APR Questions H2 and H3 Copyright © All rights reserved.
Failed to retrieve file