Mitsubishi MELSEC-Q Series Programming Manual
Mitsubishi MELSEC-Q Series Programming Manual

Mitsubishi MELSEC-Q Series Programming Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi MELSEC-Q Series

  • Page 3: Safety Precautions

     SAFETY PRECAUTIONS  (Read these precautions before using this product.) Before using MELSEC-Q, -L, or -QnA 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.
  • Page 4: Conditions Of Use For The Product

    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.
  • Page 5: Revisions

    REVISIONS * The manual number is given on the bottom left of the back cover. Print Date Manual Number Revision Dec., 1999 SH (NA) 080041-A First edition Partial correction May, 2001 SH (NA) 080041-B Chapter 1, Section 3.1, Appendix 2 Partial correction Apr., 2002 SH (NA) 080041-C...
  • Page 6 * The manual number is given on the bottom left of the back cover. Print Date Manual Number Revision Dec., 2008 SH (NA) 080041-K New models of the Universal model QCPU have been added. Model addition Q00UJCPU, Q00UCPU, Q01UCPU, Q10UDHCPU, Q10UDEHCPU, Q20UDHCPU, Q20UDEHCPU Partial correction ABOUT MANUALS, GENERIC TERMS, Section 1.1, 1.2, Chapter 2,...
  • Page 7 This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 8: Table Of Contents

    INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-Q/L/QnA 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/QnA series programmable controllers to handle the product correctly. Please make sure that the end users read this manual.
  • Page 9 4.2.4 Coil HOLD step ........................4- 9 4.2.5 Operation HOLD step (without transition check) ..............4-12 4.2.6 Operation HOLD step (with transition check) ................4-14 4.2.7 Reset step ............................ 4-16 4.2.8 Block START step (with END check) ..................4-17 4.2.9 Block START step (without END check) ..................
  • Page 10 5. SFC PROGRAM PROCESSING SEQUENCE 5- 1 to 5-14 5.1 Whole Program Processing of Basic Model QCPU ................5- 1 5.1.1 Whole program processing sequence .................... 5- 1 5.2 Whole Program Processing of High Performance Model QCPU, Process CPU, Redundant CPU, Universal model QCPU, LCPU, and QnACPU ..................
  • Page 11: About Manuals

    ABOUT MANUALS The manuals related to this product are listed below. Order each manual as needed, referring to the following lists. Relevant manuals Manual number Manual name (model code) GX Developer Version 8 Operating Manual (SFC) SH-080374E Describes how to create SFC programs using the software package for creating SFC (13JU42) programs.
  • Page 12: Generic Terms

    GENERIC TERMS Unless otherwise specified, this manual uses the following generic terms and abbreviations. Generic term Description A generic term for the Basic model QCPU, High Performance model QCPU, QCPU Process CPU, Redundant CPU, and Universal model QCPU QnCPU A generic term for the Q02CPU QnHCPU A generic term for the Q02HCPU, Q06HCPU, Q12HCPU, and Q25HCPU QnPHCPU...
  • Page 13 MEMO A - 11 A - 11...
  • Page 14: General Description

    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.
  • Page 15: Description Of Sfc Program

    1 GENERAL DESCRIPTION 1.1 Description of SFC Program 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. 1 - 2 1 - 2...
  • Page 16 1 GENERAL DESCRIPTION The SFC program performs a series of operations, beginning from the initial step, proceeding to execute each subsequent step as the transition conditions are satisfied, and ending with the END step. (1) When the SFC program is started, the “initial” step is executed first. (2) Execution of the initial step continues until transition condition 1 is satisfied.
  • Page 17: Sfc (Melsap3) Features

    1 GENERAL DESCRIPTION 1.2 SFC (MELSAP3) 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.
  • Page 18 1 GENERAL DESCRIPTION Carriage ADVANCE endpoint Step 5 Carriage ADVANCE Tran As shown in the SFC program at left, the steps require Clamp DOWN no “operation completed” interlock contact with the Step 6 previous step. With a conventional sequence program, carriage FORWARD (Y20) and clamp DOWN (Y21) Clamp DOWN endpoint interlock contacts would be required at the ladder...
  • Page 19 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 (S0 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.
  • Page 20 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. •...
  • Page 21 1 GENERAL DESCRIPTION • Reset step ( • When a HOLD status becomes unnecessary for machine control, or on selective branching to a manual ladder occurs after an error detection, etc., a reset request can be designated for the HOLD step, deactivating the step in question.
  • Page 22 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.
  • Page 23 1 GENERAL DESCRIPTION (8) Displays with comments for easy understanding Comments can be entered at each step and transition condition item. Up to 32 characters can be entered. Ready, waiting for start Mix A Mix B Wait ateSD4 Wait ste Wrt <Ins>...
  • Page 24 1 GENERAL DESCRIPTION (10) Convenient trace function (when using GPPQ with QnACPU) Blocks can be synchronized and traced, enabling the user to check the operation timing of multiple blocks. Moreover, the trace results display screen can be switched to display the trace result details for each block.
  • Page 25: System Configuration

    SYSTEM CONFIGURATION 2. SYSTEM CONFIGURATION (1) Applicable CPU modules MELSAP-3 (SFC programs) runs on the following CPU modules. CPU module type Model name Restriction Modules whose serial number (first five Basic model QCPU Q00JCPU, Q00CPU, Q01CPU digits) is 04122 or later High Performance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU...
  • Page 26 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 Peripheral Basic High Universal be installed in a Remarks Process Redundant device model Performance model LCPU...
  • Page 27 SYSTEM CONFIGURATION CPU module Software package to Peripheral Basic High Universal be installed in a Remarks Process Redundant device model Performance model LCPU personal computer QCPU model QCPU QCPU PC/AT compatible SW2IVD-GPPQ-E personal computer • Display is provided in list representation where an SFC diagram has been replaced by instructions.
  • Page 28 SYSTEM CONFIGURATION MEMO 2 - 4 2 - 4...
  • Page 29: Specifications

    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 Q00JCPU Q00CPU...
  • Page 30 3 SPECIFICATIONS (2) Precautions for creating SFC program (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.
  • Page 31: When The High Performance Model Qcpu, Process Cpu, Redundant Cpu, Universal Model Cpu, Or Lcpu Is Used

    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 Q02CPU, Q06HCPU Q12HCPU Q25HCPU...
  • Page 32 3 SPECIFICATIONS Table 3.2 Performance Specifications Related to SFC Programs Q04UD(E)H Q06UD(E)H Q13UD(E)H Q03UD(E)CPU, Q10UD(E)H Item CPU, CPU, CPU, Q03UDVCPU Q04UDVCPU Q06UDVCPU Q13UDVCPU Max. 30k Max. 40k Max. 60k Max. 100k Max. 130k Capacity steps steps steps steps steps Number of files Scannable SFC program: 1 (normal SFC program only) Number of blocks Max.
  • Page 33 3 SPECIFICATIONS Table 3.2 Performance Specifications Related to SFC programs L26CPU, L02SCPU, L02SCPU-P, L06CPU, L26CPU-P, Item L02CPU, L02CPU-P L06CPU-P L26CPU-BT, L26CPU-PBT Capacity Max. 20k steps Max. 60k steps Max. 260k steps Number of files Scannable SFC program: 1 (normal SFC program only) Number of blocks Max.
  • Page 34 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. (c) More than one SFC program can be set as a stand-by type program.
  • Page 35: Performance Specifications Of Qnacpu

    3 SPECIFICATIONS REMARKS 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.1.3 Performance specifications of QnACPU (1) Table 3.3 indicates the performance specifications related to SFC programs.
  • Page 36 3 SPECIFICATIONS (2) Precautions for creating SFC programs (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. (c) More than one SFC program can be set as a stand-by type program.
  • Page 37: Device List

    3 SPECIFICATIONS 3.2 Device List 3.2.1 Device list of Basic model QCPU Table 3.4 indicates the devices that can be used for the transition conditions and operation outputs of an SFC program. Table 3.4 Device List Default Parameter Classification Type Device name setting range Point...
  • Page 38 3 SPECIFICATIONS Table 3.4 Device List (continued) Default Parameter Classification Type Device name setting range Point Range • R0 to R32767 File register *5 Word device File register Decimal • ZR0 to ZR65535 Nesting Nesting N0 to N14 Decimal Pointer P0 to P299 Decimal Pointer...
  • Page 39: Device List Of High Performance Model Qcpu, Process Cpu, And Redundant Cpu

    3 SPECIFICATIONS 3.2.2 Device list of High Performance model QCPU, Process CPU, and Redundant CPU 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 Classification Type Device name...
  • Page 40 3 SPECIFICATIONS Table 3.5 Device List (continued) Default Parameter Classification Type Device name setting range Point Range SFC block device Bit device BL0 to BL319 Decimal Network No. specification device TR0 to TR511 Decimal Others Hexadecimal I/O No. specification device J1 to J255 Hexadecimal Macro instruction argument device...
  • Page 41: Device List Of Universal Model Qcpu

    3 SPECIFICATIONS 3.2.3 Device list of Universal model QCPU 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 Classification Type Device name setting range Point Range Hexadecimal...
  • Page 42 3 SPECIFICATIONS Table 3.6 Device List (continued) Default Parameter Classification Type Device name setting range Point Range Index register/standard Word device Index register/standard device register Z0 to Z19 Decimal device register File register *7 Word device File register Extended data 0 to 4086k Word device Extended data register...
  • Page 43 3 SPECIFICATIONS *13: The range differs depending on the CPU module: U0 to UF for the Q00UJCPU; U0 to U3F and U3E0 to 3E2 for the Q00UCPU and Q01UCPU; and U0 to U7F and U3E0 to U3E2 for the Q02UCPU. *14: For the Universal model QCPU whose serial number (first five digits) is "12011"...
  • Page 44: Device List Of Lcpu

    3 SPECIFICATIONS 3.2.4 Device list of LCPU Table 3.7 indicates the devices that can be used for the transition conditions and operation outputs of SFC programs. Table 3.7 Device List Default Parameter Classification Type Device name setting range Point Range Input 8192 X0 to X1FFF...
  • Page 45: Device List Of Qnacpu

    3 SPECIFICATIONS 3.2.5 Device list of QnACPU Table 3.8 indicates the devices that can be used for the transition conditions and operation outputs of SFC programs. Table 3.8 Device List Default Parameter Classification Type Device name setting range Point Range Input *3 8192 X0 to X1FFF...
  • Page 46 3 SPECIFICATIONS Table 3.8 Device List (continued) Default Parameter Classification Type Device name setting range Point Range SFC block device BL0 to 319 Decimal Bit device SFC transition device TR0 to TR511 Decimal Others Network No. specification device J1 to J255 Decimal I/O No.
  • Page 47: Processing Time

    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"...
  • Page 48 3 SPECIFICATIONS (2) System processing times for different CPU module models (a) When Basic model QCPU is used Item Q00JCPU Q00CPU Q01CPU Active block processing time coefficient 41.9µs 35.5µs 27.3µs Inactive block processing time coefficient 10.5µs 8.8µs 6.8µs Nonexistent block processing time coefficient 1.1µs 0.9µs 0.7µs...
  • Page 49 3 SPECIFICATIONS (c) When Universal model QCPU is used Universal model QCPU Q04UDHCPU, Q06UDHCPU Q10UDHCPU, Q13UDHCPU Q00UJCPU, Q20UDHCPU, Q26UDHCPU Item Q03UDCPU, Q00UCPU, Q02UCPU Q04UDEHCPU, Q06UDEHCPU Q03UDECPU Q01UCPU Q10UDEHCPU, Q13UDEHCPU Q20UDEHCPU, Q26UDEHCPU, Q50UDEHCPU, Q100UDEHCPU Active block processing time 12.7µs 8.4µs 8.3µs 7.0µs coefficient Inactive block processing time...
  • Page 50 3 SPECIFICATIONS (d) When LCPU is used L06CPU, L06CPU-P L02SCPU, L02CPU, L26CPU, Item L02SCPU-P L02CPU-P L26CPU-P L26CPU-BT, L26CPU-PBT Active block processing time coefficient 12.7µs 8.5µs 7.0µs Inactive block processing time coefficient 5.3µs 3.8µs 3.4µs Nonexistent block processing time coefficient 0.9µs 1.2µs 0.6µs Active step processing time coefficient...
  • Page 51 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. • Designated at initial START • Number of active blocks: 30 (active blocks at SFC program) •...
  • Page 52 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 Whether Transition Presence/Absence Number of Active Number of Active Transition Conditions Are of Continuous...
  • Page 53: Processing Time For S(P).Sfcscomr Instruction And S(P).Sfctcomr Instruction

    3 SPECIFICATIONS 3.3.2 Processing time for S(P).SFCSCOMR 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 • Sequence steps in the SFC step in the SFC program: 1000 sequence steps •...
  • Page 54 3 SPECIFICATIONS Universal model QCPU Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q03UD(E)CPU Instruction Condition Q20UD(E)HCPU, Q26UD(E)HCPU, Q50UDEHCPU, Q100UDEHCPU SRAM SRAM card Flash card Flash card card S(P).SFCSCOMR At END processing (read 1 comment) 3.3ms 4.5ms 2.5ms 4.0ms • Transition condition for serial 3.7ms 5.3ms 3.3ms...
  • Page 55 3 SPECIFICATIONS LCPU L06CPU, L06CPU-P, Instruction Condition L26CPU, L26CPU-P, L26CPU-BT, L26CPU-PBT Min. Max. S(P).SFCSCOMR 97.4μs 99.0μs At instruction execution S(P).SFCTCOMR 97.7μs 98.9μs LCPU L06CPU, L06CPU-P, Instruction Condition L26CPU, L26CPU-P, L26CPU-BT, L26CPU-PBT Standard ROM S(P).SFCSCOMR At END processing (read 1 comment) •...
  • Page 56: Calculating The Sfc Program Capacity

    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 Number of steps where SFC diagram is expressed by SFC dedicated instructions.
  • Page 57 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. Ladder Number of Name Description Required Number of Steps Expression Steps SFCP START...
  • Page 58 3 SPECIFICATIONS MEMO 3 - 30 3 - 30...
  • Page 59: Sfc Program Configuration

    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.
  • Page 60: List Of Sfc Diagram Symbols

    4 SFC PROGRAM CONFIGURATION 4.1 List of SFC Diagram Symbols The symbols used in the SFC program are listed below. SFC Diagram Class Name Remarks Symbol Initial step Dummy initial step Coil HOLD initial step Any of these steps in 1 block When step No.
  • Page 61 4 SFC PROGRAM CONFIGURATION Class Name SFC Diagram Symbol Remarks Serial transition Selection branching Selection coupling Selection coupling - parallel branching Parallel branching Parallel coupling a, b = Transition condition No. Parallel coupling - parallel branching Transition Parallel coupling - selection branching Selection branching - parallel branching Parallel coupling - selection coupling Selection branching - parallel branching...
  • Page 62 4 SFC PROGRAM CONFIGURATION 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...
  • Page 63: Steps

    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 Maximum number of CPU module type steps in one block...
  • Page 64: Step (Without Step Attribute)

    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.
  • Page 65 4 SFC PROGRAM CONFIGURATION (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 if the execution condition contact is always ON. The ladder shown above is actually executed as Execution condition contact shown below.
  • Page 66: Initial Step

    4 SFC PROGRAM CONFIGURATION 4.2.2 Initial step The initial step represents the beginning of a block. Up to 32 initial 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.
  • Page 67: Dummy Step

    4 SFC PROGRAM CONFIGURATION 4.2.3 Dummy step 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.
  • Page 68 4 SFC PROGRAM CONFIGURATION (2) No ladder processing occurs following a transition to the next step. Therefore, the coil output status will remain unchanged even if the input conditions are changed. (ON) (OFF) (ON) (ON) X1:OFF (ON) (ON) Since processing of step n is not performed, Y10 remains ON if X1 turns OFF (3) When a coil ON status (at coil HOLD step) has been maintained to the next step, the coil will...
  • Page 69 4 SFC PROGRAM CONFIGURATION (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 instruction was executed, the device turned ON by the PLS instruction remains ON until the OFF condition in above (3) is satisfied.
  • Page 70: Operation Hold Step (Without Transition Check)

    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.
  • Page 71 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/RESTART bit of the SFC information devices or the block STOP instruction of the SFC control instructions. •...
  • Page 72: Operation Hold Step (With Transition Check)

    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.
  • Page 73 4 SFC PROGRAM CONFIGURATION POINTS (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.
  • Page 74: Reset Step R

    4 SFC PROGRAM CONFIGURATION 4.2.7 Reset step A 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).
  • Page 75: Block Start Step (With End Check)

    4 SFC PROGRAM CONFIGURATION 4.2.8 Block START step (with END check) A block START step (with END check) is the step where the specified block is started, and when the START destination block is then deactivated, the check of the transition condition to the next step is started.
  • Page 76 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 Maximum number of can be executed CPU module type active steps in one simultaneously in all...
  • Page 77: Block Start Step (Without End Check)

    4 SFC PROGRAM CONFIGURATION 4.2.9 Block START step (without END check) 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.
  • Page 78 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.
  • Page 79: End Step

    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.
  • Page 80 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.
  • Page 81: Instructions That Cannot Be Used With Operation Outputs

    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 Class Instruction Symbol Symbol Function Remarks MC N No.1_D Master control set Master control MCR N Master control reset...
  • Page 82: Transition

    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 next step, and execution proceeds to the next step when the condition is satisfied.
  • Page 83: Serial Transition

    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. • When transition condition “b” becomes satisfied at step “n” Step “n”...
  • Page 84 4 SFC PROGRAM CONFIGURATION (2) Serial transition operation flowchart Operation status Initial step Transition condition “a” Initial step operation output executed. Step 1 Transition condition “b” Transition condition “a” satisfied? Step 2 Transition condition “c” Initial step operation output deactivated. Step 3 Step 1 operation output executed.
  • Page 85: Selection Transition

    4 SFC PROGRAM CONFIGURATION 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. • From step “n”, processing will proceed to either Step “n”...
  • Page 86 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 satisfied at the step “n” operation output, processing will Step n proceed in order through steps “n+1”, “n+2” and “n+3”.
  • Page 87 4 SFC PROGRAM CONFIGURATION (4) Selection transition operation flowchart Operation status Initial step Transition condition “a” Operation output of initial step 0 is executed. Step 1 Transition Transition Transition Is transition condition condition “e” condition “h” condition “b” a satisfied? Step 2 Step 4 Step 6...
  • Page 88: Parallel Transition

    4 SFC PROGRAM CONFIGURATION 4.3.3 Parallel transition “Parallel transition” is the transition format in which several steps linked in parallel are processed simultaneously when the relevant transition condition is satisfied. Step “n” (operation output [A]) • From step “n”, processing will proceed Transition condition “b”...
  • Page 89 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 Step “n”...
  • Page 90 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) Jump END step END step Each column ends Jump transition (see Section 4.3.4) at the END step.
  • Page 91 4 SFC PROGRAM CONFIGURATION (6) Parallel transition operation flowchart Operation status Initial step Transition condition “a” Initial step operation output Step 1 executed. Transition condition “b” Transition condition “a” satisfied? Step 2 Step 3 Step 4 Transition Transition Transition condition “c” condition “d”...
  • Page 92: Jump Transition

    4 SFC PROGRAM CONFIGURATION 4.3.4 Jump transition A “jump transition” is a jump to a specified step within the same block which occurs when the transition condition is satisfied. • When condition “b” is satisfied at step “n” execution, step “n” (operation output [A]) is Step “n”...
  • Page 93: Precautions When Creating Sequence Programs For Operation Outputs (Steps) And Transition Conditions

    4 SFC PROGRAM CONFIGURATION 4.3.5 Precautions when creating sequence programs for operation outputs (steps) and transition conditions The points to consider when creating operation output (step) and transition condition sequence programs are described below. (1) Sequence program for operation outputs (steps) (a) Step sequence program expression format A step sequence program using the ladder expression format is shown below.
  • Page 94 4 SFC PROGRAM CONFIGURATION (2) Sequence program for transition condition (a) Transition condition sequence program expression format A transition condition sequence program using the ladder expression format is shown below. Condition [TRAN] is a dummy output TRAN Condition (b) Instructions used Instructions which can be used in a transition condition sequence program are listed below.
  • Page 95 4 SFC PROGRAM CONFIGURATION CPU Module Type High Performance Universal Instruction Model QCPU, Class Symbol Function Basic model model Code Process CPU, QCPU QCPU, Redundant CPU, LCPU QnACPU BIN16 bit data comparison (=, <>, >, >=, <, <=) ANDD ANDD BIN32 bit data comparison Comparison (=, <>, >, >=, <, <=)
  • Page 96: Controlling Sfc Programs By Instructions (Sfc Control Instructions)

    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. An normal SFC program can be controlled by SFC control instructions in a sequence program and SFC program.
  • Page 97 4 SFC PROGRAM CONFIGURATION CPU Module Type High Performance Universal Basic Model QCPU, Name Ladder Expression Function model model Process CPU, QCPU, QCPU Redundant LCPU CPU, QnACPU 1 • A specified block is forcibly started Step START (activated) independently and is instruction BLm\Sn executed from a specified step.
  • Page 98 4 SFC PROGRAM CONFIGURATION POINTS (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. • Instruction that specifies a block: BLOCK EXE. ERROR (error No.: 4621) •...
  • Page 99 4 SFC PROGRAM CONFIGURATION POINT 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 Internal Device Link Direct Intelligent Data SFC Program...
  • Page 100 4 SFC PROGRAM CONFIGURATION Internal Link Direct Intelligent File Device (System, User) Function Index Expansion Register Constant Other Class Module Word Word FX, FY, A, VD, R, ZR BLm\Sn Decimal P, I, S, SM, SD, T, C, BLm\Trm hexadecimal J, U, X, Y,M, D, W, real number...
  • Page 101: Step Operation Status Check Instructions (Ld, Ldi, And, Ani, Or, Ori)

    4 SFC PROGRAM CONFIGURATION 4.4.1 Step operation status check instructions (LD, LDI, AND, ANI, OR, ORI) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent File Expansion Data SFC Program (System, User) Function Index Constant Sequence Transition Type Register Other...
  • Page 102 4 SFC PROGRAM CONFIGURATION (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"...
  • Page 103 4 SFC PROGRAM CONFIGURATION Related Instructions 1) SFC control instructions • Block switching instruction (BRSET) ......See Section 4.4.11 • Step control instruction (SCHG) ........See Section 4.4.10 • Active step batch readout instruction (MOV(P), DMOV(P), BMOV(P)) ........See Sections 4.4.4 and 4.4.5. 4 - 45 4 - 45...
  • Page 104: Forced Transition Check Instruction (Ld, Ldi, And, Ani, Or, Ori)

    4 SFC PROGRAM CONFIGURATION 4.4.2 Forced transition check instruction (LD, LDI, AND, ANI, OR, ORI) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File Expansion (System, User) Function Index Constant Other Sequence Transition Type Register Block Step...
  • Page 105 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"...
  • Page 106: Block Operation Status Check Instruction (Ld, Ldi, And, Ani, Or, Ori)

    4 SFC PROGRAM CONFIGURATION 4.4.3 Block operation status check instruction (LD, LDI, AND, ANI, OR, ORI) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File (System, User) Function Index Constant Expansion Other Sequence Transition Register Type...
  • Page 107 4 SFC PROGRAM CONFIGURATION [Program Examples] (1) The following program turns ON Y20 when block 3 is active. Related Instructions a) SFC control instructions • Block START instruction (SET BLm) and block END instruction (RST BLm) ......See Section 4.4.6 b) SFC diagram symbols •...
  • Page 108: Active Step Batch Readout Instructions (Mov, Dmov)

    4 SFC PROGRAM CONFIGURATION 4.4.4 Active step batch readout instructions (MOV, DMOV) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File Expansion (System, User) Function Index Constant Sequence Transition Register Other Type Block Step Module K, H Program...
  • Page 109 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.
  • Page 110 4 SFC PROGRAM CONFIGURATION [Program Examples] (1) The following program reads 32 active steps, starting from step 0 of block 3, to D0 and D1 when X0 turns ON. When step is designated by operation output of block 3 DMOVP K8S0 When step is designated by operation output of other than block 3 or sequence program DMOVP...
  • Page 111: Active Step Batch Readout (Bmov)

    4 SFC PROGRAM CONFIGURATION 4.4.5 Active step batch readout (BMOV) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File Expansion (System, User) Function Index Constant Other Sequence Transition Type Register Block Step Module K, H Program Condition...
  • Page 112 4 SFC PROGRAM CONFIGURATION (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 D0 K2"...
  • Page 113 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"...
  • Page 114 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 D0 - D2 when X0 turns ON. When step is designated by operation output of block 3 K4S0 BMOVP When step is designated by operation output of other than block 3 or sequence program...
  • Page 115: Block Start & End Instructions (Set, Rst)

    4 SFC PROGRAM CONFIGURATION 4.4.6 Block START & END instructions (SET, RST) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Expansion Data SFC Program File (System, User) Function Index Constant Other Sequence Transition Register Type Block Step Module K, H BLm\Sn...
  • Page 116 4 SFC PROGRAM CONFIGURATION [Program Examples] (1) When X1 switches ON, the following program forcibly activates block1. When X2 switches ON, it ends and forcibly deactivates block1. SET BL1 RST BL1 Related Instructions a) SFC diagram symbols • Block START step ( m ) ........
  • Page 117: Block Stop And Restart Instructions (Pause, Rstart)

    4 SFC PROGRAM CONFIGURATION 4.4.7 Block STOP and RESTART instructions (PAUSE, RSTART) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Expansion Data SFC Program File (System, User) Function Index Constant Other Sequence Transition Register Type Block Step Module K, H BLm\Sn...
  • Page 118 4 SFC PROGRAM CONFIGURATION POINTS The operation of SM325 differs depending on the CPU module. • For the Basic model QCPU, High Performance model QCPU, Process CPU, and QnACPU SM325 turns ON/OFF according to the parameter setting (output mode setting at block stop) at STOP RUN of the CPU module.
  • Page 119 4 SFC PROGRAM CONFIGURATION Related Instructions 1) SFC information device • Block STOP/RESTART bit ..........See Section 4.5.3 4 - 61 4 - 61...
  • Page 120: Step Start And End Instructions (Set, Rst)

    4 SFC PROGRAM CONFIGURATION 4.4.8 Step START and END instructions (SET, RST) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File Expansion (System, User) Function Index Constant Other Sequence Transition Register Type Block Step Module K, H Program...
  • Page 121 4 SFC PROGRAM CONFIGURATION 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.
  • Page 122 4 SFC PROGRAM CONFIGURATION (g) While online change (inactive block) is executed to the specified block when this instruction is executed, the instruction will be ignored (equivalent to the NOP instruction), and the online change processing will continue. (Universal model QCPU whose serial number (first five digits) is "12052"...
  • Page 123 4 SFC PROGRAM CONFIGURATION [Operation Error] • When no specified step is present or the SFC program is in stand-by mode: Error No.4631 • If using the own step as the specification step No. (Basic model QCPU, Universal model QCPU, and LCPU) ..................... Error No.4505 4 - 65 4 - 65...
  • Page 124 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. (Block 1) When step is designated by operation output of block 1 SET S2 When step is designated by operation output of other than block 3 or sequence...
  • Page 125: Forced Transition Execute & Cancel Instructions (Set, Rst)

    4 SFC PROGRAM CONFIGURATION 4.4.9 Forced transition EXECUTE & CANCEL instructions (SET, RST) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File Expansion (System, User) Function Index Constant Other Sequence Transition Type Register Block Step Module K, H...
  • Page 126 4 SFC PROGRAM CONFIGURATION [Operation Error] • When the specified transition condition does not exist or the SFC program is in a wait state ........................... Error No. 4631 [Program Examples] (1) When X1 switches ON, the following program executes a forced transition at transition condition 1 of block 1.
  • Page 127: Active Step Change Instruction (Schg)

    4 SFC PROGRAM CONFIGURATION 4.4.10 Active step change instruction (SCHG) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File (System, User) Function Index Expansion Sequence Transition Type Register Constant Other Block Step Module Program Condition Transition...
  • Page 128: Block Switching Instruction (Brset)

    4 SFC PROGRAM CONFIGURATION 4.4.11 Block switching instruction (BRSET) Usable Devices Programs Using Instructions Execution Site Internal Device Link Direct Intelligent Data SFC Program File (System, User) Function Index Constant Expansion Sequence Transition Register Other Type Block Step Module K, H Program Transition Condition...
  • Page 129 4 SFC PROGRAM CONFIGURATION 2) If the BRSET 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.
  • Page 130: Sfc Information Devices

    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 CPU Module Type High Performance model QCPU, Universal...
  • Page 131: Block Start/End Bit

    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.
  • Page 132 4 SFC PROGRAM CONFIGURATION (4) A block which has been forcibly deactivated is restarted as shown below. Relevant Block Restart Status When the START condition of block 0 is Operation is restarted from the initial "Auto START ON" in the SFC setting of the step following END step processing.
  • Page 133: Step Transition Bit

    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 to the next step) is satisfied.
  • Page 134 4 SFC PROGRAM CONFIGURATION (4) At active parallel branch steps, the transition bit will switch ON when any of the transition conditions are satisfied. S(n+1) S(n+2) Tran Tran Tran “M1” 4 - 76 4 - 76...
  • Page 135: Block Stop/Restart Bit

    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.
  • Page 136 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.
  • Page 137: Block Stop Mode Bit

    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 varies according to the ON/OFF setting of the block STOP mode bit, as shown below.
  • Page 138 4 SFC PROGRAM CONFIGURATION POINTS The operation of SM325 differs depending on the CPU module. • For the Basic model QCPU, High Performance model QCPU, Process CPU, and QnACPU SM325 turns ON/OFF according to the parameter setting (output mode setting at block stop) at STOP RUN of the CPU module.
  • Page 139: Continuous Transition Bit

    4 SFC PROGRAM CONFIGURATION 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".
  • Page 140 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.
  • Page 141: Number Of Active Steps" Register

    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 Number of steps (2) The number of active steps applies to the following steps.
  • Page 142: Step Transition Watchdog Timer

    4 SFC PROGRAM CONFIGURATION 4.6 Step Transition Watchdog Timer The step transition watch dog 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.
  • Page 143 4 SFC PROGRAM CONFIGURATION (4) The method for using a step transition watch dog timer is shown below. Time setting...10 1 sec = 10 s MOVP H010A SD90 Step where time Annunciator (F) No..F1 monitoring occurs H010A SM90 Transition condition “a”...
  • Page 144: Sfc Operation Mode Setting

    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"...
  • Page 145: Sfc Program Start Mode

    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 corresponding operations Set whether "initial start"...
  • Page 146 4 SFC PROGRAM CONFIGURATION 3: 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.
  • Page 147: Block 0 Start Condition

    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.
  • Page 148: Output Mode At Block Stop

    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.
  • Page 149 4 SFC PROGRAM CONFIGURATION (b) SM325 1) The operation of SM325 differs depending on the CPU module.  For the Basic model QCPU, High Performance model QCPU, Process CPU, and QnACPU SM325 turns ON/OFF according to the parameter setting (output mode setting at block stop) at STOP RUN of the CPU module.
  • Page 150: Periodic Execution Block Setting

    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”...
  • Page 151: Operation Mode At Double Block Start

    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 ( m , m )) 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"...
  • Page 152: Operation Mode At Transition To Active Step (Double Step Start)

    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.
  • Page 153 4 SFC PROGRAM CONFIGURATION (3) Operation at double START (a) When transition destination is serial transition 1) When setting is "STOP" ..If the transition destination is active, an error occurs and the processing of the CPU module stops. Transition destination 2) When setting is "WAIT"...
  • Page 154 4 SFC PROGRAM CONFIGURATION (b) When transition destination is parallel branch 1) When setting is "STOP" ..If any one of the transition destinations of the parallel branch is active, an error occurs and the processing of the CPU module stops. Transition destination 2) When setting is "WAIT"...
  • Page 155: Sfc Comment Readout Instruction

    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 instructions to read SFC comment are listed below. Name Ladder Expression Function...
  • Page 156: Sfc Comment Readout Instruction (S(P). Sfcscomr)

    4 SFC PROGRAM CONFIGURATION 4.8.1 SFC comment readout instruction (S(P). SFCSCOMR) Usable Devices Programs Using Instructions Execution Site Internal Device File Link Direct Intelligent Expansion Data SFC Program (System, User) Register R Function Index Constant Other Sequence Transition Type Block Step Module K, H Program...
  • Page 157 4 SFC PROGRAM CONFIGURATION 6: Comments to be read are stored as follows D1 +0 Total number of active steps Number of steps that have Order of comment to be stored D1 +1 read comments (N) Step No. D1 +2 b8 b7 Empty 2nd character ASCII code...
  • Page 158 4 SFC PROGRAM CONFIGURATION [Functions] (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 the device number of after specified at SP.SFCSCOMR K1 D0 K2 K2 M0 [SFC program (block1)] Device specified at Empty...
  • Page 159 4 SFC PROGRAM CONFIGURATION (7) Reading comment 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 1 scan (n3). : For the Universal model QCPU and LCPU, when the standard ROM is selected in corresponding memory in "Comment File Used in a Command"...
  • Page 160 4 SFC PROGRAM CONFIGURATION (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.SFCSCOMR S.SFCSCOMR S.SFCSCOMR Sequence program...
  • Page 161 4 SFC PROGRAM CONFIGURATION (11) 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 ( +0)"...
  • Page 162 4 SFC PROGRAM CONFIGURATION REMARKS (1) Make sure to use comments to be read with S(P).SFCSCOMR after the device specified at turns ON. Comments to be read before the device specified at 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.
  • Page 163 4 SFC PROGRAM CONFIGURATION [Operation Errors] • When a comment file specified at execution of S(P).SFCSCOMR instruction does not existed ...........................Error No. 2410 • When SFC block No. specified at n1 is other than 0 to 319 ...........................Error No. 4100 •...
  • Page 164: Sfc Transition Comment Readout Instruction (S(P). Sfctcomr)

    4 SFC PROGRAM CONFIGURATION 4.8.2 SFC transition comment readout instruction (S(P). SFCTCOMR) Usable Devices Programs Using Instructions Execution Site Internal Device File Link Direct Intelligent Expansion Data SFC Program (System, User) Register R Function Index Constant Other Sequence Transition Type Block Step Module K, H...
  • Page 165 4 SFC PROGRAM CONFIGURATION 6: Comments to be read are stored as follows. D1 +0 Total number of transition conditions Number of transition conditions Order of comment to be stored D1 +1 that have read comments (N) D1 +2 Step No. b8 b7 Transition condition No.
  • Page 166 4 SFC PROGRAM CONFIGURATION [Functions] (1) This function reads comments of the transition condition 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 SP.SFCTCOMR K1 D0 K2 K2 M0 [SFC program (block1)] Device specified at...
  • Page 167 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).
  • Page 168 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.SFCTCOMR S.SFCTCOMR S.SFCTCOMR Sequence program...
  • Page 169 4 SFC PROGRAM CONFIGURATION (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 ( +0)"...
  • Page 170 4 SFC PROGRAM CONFIGURATION REMARKS (1) Make sure to use comments to be read with S(P).SFCTCOMR after the device specified at turns ON. Comments to be read before the device specified at 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.
  • Page 171 4 SFC PROGRAM CONFIGURATION [Operation Errors] • When a comment file specified at execution of S(P).SFCTCOMR instruction does not existed ...........................Error No. 2410 • When SFC block No. specified at n1 is other than 0 to 319 ...........................Error No. 4100 •...
  • Page 172: Sfc Program Processing Sequence

    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.
  • Page 173: Whole Program Processing Of High Performance Model Qcpu, Process Cpu, Redundant Cpu, Universal Model Qcpu, Lcpu, And Qnacpu

    5 SFC PROGRAM PROCESSING SEQUENCE 5.2 Whole Program Processing of High Performance Model QCPU, Process CPU, Redundant CPU, Universal model QCPU, LCPU, and QnACPU This section explains the whole program processing of the High Performance model QCPU, Process CPU, Redundant CPU, Universal model QCPU, LCPU, and QnACPU. Since this manual describes only the outline, refer to the QCPU User's Manual (Function Explanation, Programming Fundamentals) for details.
  • Page 174 5 SFC PROGRAM PROCESSING SEQUENCE Execution Type Description SFC Compatibility • Executed only in one scan when the programmable Initial execution type controller is powered ON or the CPU module is switched program  from STOP to RUN. (Initial) • After that switches to a stand-by program. Max.
  • Page 175: Execution Type Designation By Instructions

    5 SFC PROGRAM PROCESSING SEQUENCE 5.2.2 Execution type 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.
  • Page 176 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.
  • Page 177: Sfc Program For Program Execution Management

    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.
  • Page 178 5 SFC PROGRAM PROCESSING SEQUENCE (3) Example of program execution management SFC programs SFC1, SFC2 and SFC3 are assumed to be SFC program files and SQ is assumed to be a program file for a program other than an SFC program. Condition 1 ...
  • Page 179: Sfc Program Processing Sequence

    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 a SFC program. The program execution status is shown below under the following condition.
  • Page 180 5 SFC PROGRAM PROCESSING SEQUENCE (2) High Performance model QCPU, Process CPU, Redundant CPU, Universal model QCPU, LCPU, and QnACPU The High Performance model QCPU, Process CPU, Redundant CPU, Universal model QCPU, LCPU, and QnACPU 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).
  • Page 181: Block Execution Sequence

    5 SFC PROGRAM PROCESSING SEQUENCE 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.
  • Page 182: Step Execution Sequence

    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. Block 0 Active steps in corresponding block are executed within 1 scan. : Active step : 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.
  • Page 183: Continuous Transition On/Off Operation

    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.
  • Page 184 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) ladder operation (2) Transition condition satisfied/unsatisfied check Tran When transition condition When transition condition is unsatisfied is satisfied (3) END processing...
  • Page 185 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) ladder operation (2) Transition condition satisfied/unsatisfied check Tran When transition condition When transition condition is unsatisfied is satisfied (3) END processing...
  • Page 186: Sfc Program Execution

    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. • Auto START using PLC parameter • Start and stop using the special relay for SFC program start/stop (SM321) •...
  • Page 187: Sfc Program Resumptive Start Procedure

    6 SFC PROGRAM EXECUTION 6.1.1 SFC program resumptive START procedure The SFC program START format 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"...
  • Page 188 6 SFC PROGRAM EXECUTION 4: 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 made, make an initial start once and then return it to a resume start.
  • Page 189: Block Start And End

    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 hand. Other than START Method Operation Description...
  • Page 190: Block End Methods

    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 •...
  • Page 191: Block Temporary Stop And Restart Methods

    6 SFC PROGRAM EXECUTION 6.3 Block Temporary Stop and Restart Methods 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 Remarks...
  • Page 192 6 SFC PROGRAM EXECUTION (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. Operation Held step Setting of Output Operation Active step other than held...
  • Page 193 6 SFC PROGRAM EXECUTION POINT The operation of SM325 differs depending on the CPU module. • For the Basic model QCPU, High Performance model QCPU, Process CPU, and QnACPU SM325 turns ON/OFF according to the parameter setting (output mode setting at block stop) at STOP RUN of the CPU module.
  • Page 194: Restarting A Stopped Block

    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 Remarks...
  • Page 195 6 SFC PROGRAM EXECUTION POINT The operation of SM325 differs depending on the CPU module. • For the Basic model QCPU, High Performance model QCPU, Process CPU, and QnACPU SM325 turns ON/OFF according to the parameter setting (output mode setting at block stop) at STOP RUN of the CPU module.
  • Page 196: Step Start (Activate) And End (Deactivate) Methods

    6 SFC PROGRAM EXECUTION 6.4 Step START (Activate) and END (Deactivate) Methods 6.4.1 Step START (activate) methods There are the following step START (activation) methods. Step START Operation Remarks (Activation) Method • The corresponding step is automatically started when the preceding transition condition is satisfied. Step START by SFC Condition •...
  • Page 197: Step End (Deactivate) Methods

    6 SFC PROGRAM EXECUTION 6.4.2 Step END (deactivate) methods Steps can be ended (deactivated) by the methods shown below. END Method Operation Remarks • The step is automatically ended by the system when the transition condition associated with the • Basic operation of SFC program •...
  • Page 198: Changing An Active Step Status (Not Available For Basic Model Qcpu, Universal Model Qcpu, And Lcpu)

    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 Operation Remarks •...
  • Page 199: Operation Methods For Continuous Transition

    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...
  • Page 200: Operation At Program Change

    6 SFC PROGRAM EXECUTION 6.6 Operation at Program Change SFC programs of the CPU module can be changed by executing any of the following functions. • Write to PLC (write in file unit) • Online change (write in ladder block unit) •...
  • Page 201: Operation At Program Change Made By Write To Plc

    6 SFC PROGRAM EXECUTION CPU module Programming tool Universal model QCPU other than the Q00UJCPU, GX Works2 Q00UCPU, Q01UCPU, and Q02UCPU (serial number Version 1.34L or later (first five digits) is "12052" or later) LCPU other than the L02(S)CPU and L02(S)CPU-P GX Works2 Version (serial number (first five digits) is "15102"...
  • Page 202: Program Change By Online Change

    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.
  • Page 203: Online Change (Inactive Block)

    6 SFC PROGRAM EXECUTION 6.6.3 Online change (inactive block) An inactive SFC block can be changed in units of blocks. (1) Supported program This function can be executed to an SFC program registered in the Program tab of the PLC parameter dialog box. POINT 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.
  • Page 204 6 SFC PROGRAM EXECUTION (3) Area to be overwritten (a) Area to be changed All programs of the target block are overwritten. Multiple 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.
  • Page 205 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 Inactive Online change (inactive block) can be executed. Online change (inactive block) cannot be executed.
  • Page 206 6 SFC PROGRAM EXECUTION POINT 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) 6 - 21...
  • Page 207 6 SFC PROGRAM EXECUTION (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.
  • Page 208 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).
  • Page 209 6 SFC PROGRAM EXECUTION MEMO 6 - 24 6 - 24...
  • Page 210: Appendices

    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.
  • Page 211: Appendix 1.1 Special Relay (Sm) List

    APPENDICES APPENDIX 1.1 Special Relay (SM) List Corresponding CPU Set by Number Name Meaning Explanation (When set) Step transition watch SM90 dog timer START (corresponds to SD90) Step transition watch SM91 dog timer START (corresponds to SD91) Step transition watch SM92 dog timer START (corresponds to SD92)
  • Page 212 APPENDICES Corresponding CPU Set by Number Name Meaning Explanation (When set) Step transition watch OFF: Not started SM98 dog timer START (Watch dog Switched ON to begin the step (corresponds to SD98) timer reset) transition watch dog timer count. ON : Started Watch dog timer is reset when Step transition watch (Watch dog...
  • Page 213 APPENDICES Corresponding CPU Set by Number Name Meaning Explanation (When set) 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 at Operation output at OFF: Coil output OFF...
  • Page 214 APPENDICES Corresponding CPU Set by Number Name Meaning Explanation (When set) • Indicates whether the normal SFC Normal SFC OFF : Not executed program is being executed or not. S (Status  SM331 program  ON : Being executed • Used as an execution interlock of change) execution status the SFC control instruction.
  • Page 215: Appendix 1.2 Special Register (Sd) List

    APPENDICES APPENDIX 1.2 Special Register (SD) List Corresponding CPU Set by Number Name Meaning Explanation (When set) Corresponding • Set the set time of the step transition watch SD90 to SM90 dog timer and the annunciator No. (F No.) that will turn ON at time-out of the watch Corresponding SD91 dog timer.
  • Page 216: Appendix 2 Melsap-Ii And Melsap3 Comparison

    APPENDICES APPENDIX 2 MELSAP-II and MELSAP3 Comparison Compared to MELSAP-II, the improved MELSAP3 has additional functions which facilitate the use of SFC programs. MELSAP-II and MELSAP3 are compared below. MELSAP3 improvements and added functions 1) SFC program control by instructions Using SFC control instructions at a sequence program, the SFC program status can be checked, and blocks/steps can be forcibly started and ended.
  • Page 217 APPENDICES (1) SFC Diagram Symbols Name MELSAP-II MELSAP3 Step Coil HOLD step Operation HOLD step  (without transition check) Operation HOLD step  (with transition check) Reset step Block START step (with END wait) Block START step  (without END wait) Coupling and Branch A dummy step is required when couplings or branches are duplicated at a transition...
  • Page 218 APPENDICES (2) SFC Control Instructions The SFC control instruction shown below are available at MELSAP3. MELSAP-II has no SFC control instructions. Corresponding CPU Name Ladder Expression Function LD, AND, OR, Step status • Executes a check to determine if LDI, ANI, ORI (active/inactive) check a specified step at a specified LD, AND, OR,...
  • Page 219 APPENDICES (3) Block/Step START, END, and STOP Methods MELSAP-II MELSAP3 By SFC Diagram By Block By SFC Diagram By Block By SFC control Symbol Information Symbol Information Instruction Block START    (with END check) Block START Block SET BLm (without END Block active bit ON START/END bit...
  • Page 220 APPENDICES (4) Basic model QCPU (a) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 14k steps Max. 14k steps Capacity Max. 14k bytes (Q01CPU) (A1SHCPU) Number of blocks Max. 256 blocks Max. 128 blocks Max. of 1024 steps (total for all Number of SFC steps Max.
  • Page 221 APPENDICES (5) High Performance model QCPU, Process CPU, Redundant CPU and QnACPU (a) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 124k steps Max. 58k bytes (Q4ACPU) Capacity Max. 252k steps (A3N, A3A, A3U, A4U CPU) (Q25HCPU, Q25PHCPU, (main program only) Q25PRHCPU) Number of blocks Max.
  • Page 222 APPENDICES (6) Universal model QCPU (a) Q00U(J)CPU, Q01UCPU, Q02UCPU 1) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 14k bytes Max. 20k steps Capacity (Q02UCPU) (A1SHCPU) Number of blocks Max. 256 blocks Max. 128 blocks Max. of 1024 steps (total for all Number of SFC steps Max.
  • Page 223 APPENDICES (b) QnUD(E)(H)CPU 1) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 58k bytes (A3NCPU, A3ACPU, A3UCPU, Max. 100k steps Capacity A4UCPU) (Q100UDEHCPU) (main program only) Number of blocks Max. 256 blocks Max. 320 blocks Max. of 8192 steps (total for all Number of SFC steps Max.
  • Page 224 APPENDICES (c) QnUDVCPU 1) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 58k bytes (A3NCPU, A3ACPU, A3UCPU, Max. 260k steps Capacity A4UCPU) (Q26UDVCPU) (main program only) Number of blocks Max. 256 blocks Max. 320 blocks Max. 8192 steps (total for all blocks), Number of SFC steps Max.
  • Page 225 APPENDICES (7) LCPU (a) L02SCPU, L02SCPU-P, L02CPU, L02CPU-P 1) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 14k bytes Capacity Max. 20k steps (A1SHCPU) Number of blocks Max. 256 blocks Max. 128 blocks Max. 1024 steps (total for all blocks), max. 128 Number of SFC steps Max.
  • Page 226 APPENDICES (b) L06CPU, L06CPU-P, L26CPU, L26CPU-P, L26CPU-BT, L26CPU-PBT 1) SFC Program Specifications Item MELSAP-II MELSAP3 Max. 58k bytes Max. 260k steps (A3NCPU, A3ACPU, A3UCPU, Capacity (L26CPU, L26CPU-P, L26CPU-BT, A4UCPU) L26CPU-PBT) (main program only) Number of blocks Max. 256 blocks Max. 320 blocks Max.
  • Page 227: Appendix 3 Restrictions On Basic Model Qcpu, Universal Model Qcpu, And Lcpu And Alternative Methods

    APPENDICES APPENDIX 3 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 High Performance Model QCPU, Basic Mode QCPU, Process CPU, Alternative...
  • Page 228 APPENDICES *1: For the Universal model QCPU and LCPU, the execution type of the program can be set. *2: For the following CPU modules, the operation mode at double block START cannot be set. • Universal model QCPU other than the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU, whose serial number (first five digits) is "12052"...
  • Page 229: Appendix 3.1 Step Transition Watchdog Timer Replacement Method

    APPENDICES APPENDIX 3.1 Step Transition Watchdog Timer Replacement Method (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.
  • Page 230: Appendix 3.2 Periodic Execution Block Replacement Method

    APPENDICES APPENDIX 3.2 Periodic Execution Block Replacement Method (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 and 11 are used and blocks 10 and 11 are set as the periodic execution blocks.
  • Page 231: Appendix 3.3 Forced Transition Bit (Trn) Replacement Method

    APPENDICES APPENDIX 3.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.
  • Page 232: Appendix 3.4 Active Step Change Instruction (Schg) Replacement Method

    APPENDICES APPENDIX 3.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 SCHG K6 X1 turns ON.
  • Page 233 APPENDICES MEMO APP -24 APP -24...
  • Page 234 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.

This manual is also suitable for:

Melsec-l seriesMelsec-qna seriesMelsec q series

Table of Contents