{"id":3274,"date":"2026-11-17T18:40:07","date_gmt":"2026-11-17T10:40:07","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-08\/"},"modified":"2026-11-17T18:40:07","modified_gmt":"2026-11-17T10:40:07","slug":"mplc-m07-en-08","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-08\/","title":{"rendered":"Chapter 8. Step Instruction Description"},"content":{"rendered":"<p>Structured programming design is a major trend in software design. The benefits are high readability, easy maintenance, convenient updating and high quality and reliability. For the control applications, consisted of many sequential tasks, designed by conventional ladder program design methodology usually makes others hard to maintain. Therefore, it is necessary to combine the current widely used ladder diagrams with the sequential controls made especially for machine working flow. With help from step instructions, the design work will become more efficient, time saving and controlled. This kind of design method that combines process control and ladder diagram together is called the step ladder language.<\/p>\n<p>The basic unit of step ladder diagram is a step. A step is equivalent to a movement (step) in the machine operation where each movement has an output. The complete machine or the overall sequential control process is the combination of steps in serial or parallel. Its step-by-step sequential execution procedure allows others to be able to understand the machine operations thoroughly, so that design, operation, and maintenance will become more effective and simpler.<\/p>\n<h3>8-1  The Operation Principle of Step Ladder Diagram<\/h3>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u3010Example\u3011<\/p>\n<\/td>\n<td>\n<p>\u3010Description\u3011<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-001.png\" \/><\/p>\n<\/td>\n<td>\n<ol>\n<li>STP Sxxxx  is the symbol representing a step Sxxxx that can be one of S0\uff5eS3103. When executing the step (status ON), the ladder diagram on the right will be executed and the previous step and output will become OFF.<\/li>\n<li>M9131 is on for a scan time after program start. Hence, as soon as ON, the stop of the initial step S0 is entered (S0 ON) while the other steps are kept inactive, i.e. Y1\uff5eY5 are all OFF. This means M9131 ON\ud83e\udc6aS0 ON\ud83e\udc6aY0 ON and Y0 will remain ON until one of the contacts X1 or X2 is ON.<\/li>\n<li>Assume that X2 is ON first; the path to S21 will then be executed.<\/li>\n<\/ol>\n<p>X2 ON\u21d2  \u21d2 <\/p>\n<p>Y2 will remain ON until X5 is ON.<\/p>\n<ol>\n<li>Assume that X5 is ON, the process will move forward to step S23.<\/li>\n<\/ol>\n<p>i.e. X5 ON\u21d2  \u21d2 <\/p>\n<p>Y4 and Y5 will remain ON until X6 is ON.<\/p>\n<p>\u203bIf X10 is ON, then Y5 will be ON.\u3002<\/p>\n<ol>\n<li>Assume that X6 is ON, the process will move forward to S0.<\/li>\n<\/ol>\n<p>i.e. X6 ON\u21d2  \u21d2 <\/p>\n<p>Then, a control process cycle is completed and the next control process cycle is entered.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>8-2  Basic Formation of Step Ladder Diagram<\/h3>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2780Single path<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-002.png\" \/><\/p>\n<\/td>\n<td>\n<ul>\n<li>Step S20 alone moves to step S21 through X0.<\/li>\n<li>X0 can be changed to other serial or parallel combination of contacts.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2781Selective divergence\/convergence<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-003.png\" \/><\/p>\n<\/td>\n<td>\n<ul>\n<li>Step S20 selects an only one path which divergent condition first met. E.g. X2 is ON first, then only the path of step S23 will be executed.<\/li>\n<li>A divergence may have up to 8 paths maximum.<\/li>\n<li>X1, X2, \u2026.., X22 can all be replaced by the serial or parallel combination of other contacts.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2782Simultaneous divergence\/convergence<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-004.png\" \/><\/p>\n<\/td>\n<td>\n<p>After X0 is ON, step S20 will simultaneously execute all paths below it, i.e. all S21, S22, S23, and so on, are in action.<\/p>\n<ul>\n<li>All divergent paths at a convergent point will be executed to the last step (e.g. S30, S31 and S32). When X1 is ON, they can then transfer to S40 for execution.<\/li>\n<li>The number of divergent paths must be the same as the number of convergent paths. The maximum number of divergence\/convergence path is 8.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2783Jump<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>a. The same step loop<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-005.png\" \/><\/p>\n<\/td>\n<td>\n<ul>\n<li>There are 3 paths below step S20 as shown on the left. Assume that X2 is ON, then the process can jump directly to step S23 to execute without going through the process of selective convergence.\u3002<\/li>\n<li>The execution of simultaneous divergent paths can not be skipped.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>b. Different step loop<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-006.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2784Close Loop and Single Cycle<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>a. Close Loop<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-007.png\" \/><\/p>\n<\/td>\n<td>\n<ul>\n<li>The initial step S1 is ON, endless cycle will be continued afterwards.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-008.png\" \/>S1           S22<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>b. Single Cycle<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-009.png\" \/><\/p>\n<\/td>\n<td>\n<ul>\n<li>When step S20 is ON, if X2 is also ON, then\u201cRST S21\u201dinstruction will let S21 OFF which will stop the whole step process.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>c. Mixed Process<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-010.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u2785Combined Application<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-011.png\" \/><\/p>\n<p> The maximum number of downward horizontal branch loops of an initial step is 16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>8-3  Introduction of Step Instruction\uff1aSTP\u3001FROM\u3001TO\u3001STPEND<\/h3>\n<p>This section will introduce step instructions, and how to call instructions in UpperLogic, and how to use them.<\/p>\n<p>Step instructions can be called by:<\/p>\n<p>Select the function bar Ladder \u2192 Function Instruction\uff1bOr click the component panel icon; or right-click in the ladder diagram program area to display a pop-up menu, Function Instruction \u2192 Function Instruction, click on the position where you want to input the step command in the ladder diagram program area, All categories of function instructions will appear, select[SFC instruction], there are four step instructions [STP], [FROM], [TO], and [STPEND] on the right of the instruction name, as shown in the figure below:\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-012.png\" \/><\/p>\n<h4>8-3-1  STP<\/h4>\n<ul>\n<li> STP Sx  \uff1aS0 \u2266 Sx \u2266 S7\uff08Displayed in UperLogic\uff09or  STP Sx\uff1aS0 \u2266 Sx \u2266 S7<\/li>\n<\/ul>\n<p>This instruction is the initial step instruction, from which the step control of each mechanical process can be derived. M-Series can provide up to 8 initial step points, that is to say, a PLC can control up to 8 processes at the same time. each step process can operate independently or generate operation results for reference by other processes.<\/p>\n<p>\u3010Example 1\u3011Start the initial step point S0 every time when turn on PLC<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-013.png\" \/><\/p>\n<\/td>\n<td>\n<p> UperLogic<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-014.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-015.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Example 2\u3011Every time turn on PLC or press the button, or an abnormality in automatic production occurs and there is no personnel to deal with it within a certain period of time, it will automatically enter the initial step point S0 and stand by. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>   UperLogic<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-016.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-017.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011X0\uff1abutton\uff1bM0\uff1aAbnormal Contact<\/p>\n<ul>\n<li>STP Sxxxx \uff1aS20\u2266Sxxxx\u2266S3103\uff08Displayed in UperLogic\uff09<\/li>\n<\/ul>\n<p>or<\/p>\n<p>STP Sxxxx \uff1a S20\u2266Sxxxx\u2266S3103<\/p>\n<p>This instruction is a step instruction, each step in a process represents a step of sequence. If the status of step is ON then the step is active and will execute the ladder program associate to the step.<\/p>\n<p>\u3010Example\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-018.png\" \/>  UperLogic<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-019.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-020.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011<\/p>\n<p>1. When ON, the initial step S0 is ON and Y0 is ON.<\/p>\n<p>2. When transfer condition X10 is ON (in actual application, the transferring condition may be formed by the serial or parallel combination of the contacts X, Y, M, T and C), the step S20 is activated. The system will automatically turn S0 OFF in the current scan cycle and Y0 will be reset automatically to OFF.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td rowspan=\"3\">\n<p>S20 ON<\/p>\n<p>S0 OFF<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u21d2     <\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p>X1 ON<\/p>\n<p>X2 ON<\/p>\n<p>Y0 OFF<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\ud83e\udc6aY1 ON<\/p>\n<p>\ud83e\udc6aY2 ON<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>i.e.X10 ON\u21d2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>3. When the transfer condition X11 is ON, the step S0 is ON, Y0 is ON and S20, Y1 and Y2 will turn OFF at the same time.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td rowspan=\"3\">\n<p>S0  ON<\/p>\n<p>S20 OFF<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u21d2<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p>Y0 ON<\/p>\n<p>Y1 OFF<\/p>\n<p>Y2 OFF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>i.e.X11 ON\u21d2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Enter step point (STP Insruction)<\/li>\n<\/ul>\n<p>If we want to set an initial step point S0 for each boot, the method is as follows:<\/p>\n<p>Select the A contact component on the component tray, click on the ladder diagram network, and enter &quot;M9131&quot; in the number input box :<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-021.png\" \/><\/p>\n<p>Click on the component panel icon, click after the &quot;M9131&quot; contact, the [Application Command] window will appear, select &quot;SFC Instruction&quot; under [Type], select &quot;TO&quot; for [Instruction Name], and press the &quot;OK&quot; button , the following window appears :<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-022.png\" \/><\/p>\n<p>Enter &quot;S0&quot;, press the &quot;OK&quot; button, and repeat the &quot;SF instruction&quot;, this time select &quot;STP&quot; for [instruction name], and the following figure will appear :<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-023.png\" \/><\/p>\n<p>Input &quot;S0&quot; and press the &quot;OK&quot; button to complete the operation of setting an initial step point S0 for each boot.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-024.png\" \/><\/p>\n<p>You can also add state transition conditions for the initial step point. First, place the cursor on the component panel to select the [vertical line] component, and then click on &quot;STPI S0&quot;; or stop the cursor on &quot;STPI S0&quot;, and then press the shortcut key &quot;V&quot; works too.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-025.png\" \/><\/p>\n<p>After the divergence line appears, add transition conditions, for example, we add two transition conditions &quot;X0&quot; and &quot;Y0&quot;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-026.png\" \/><\/p>\n<p>After adding the state point to be transferred, we assume that when the two transfer conditions of &quot;X0&quot; and &quot;Y0&quot; are satisfied (ON), it will transfer to the state point &quot;S21&quot;. Call out the [SFC function instruction] category, select [TO] for the instruction name; or press the shortcut key \u201c&gt;\u201d, after a dialog box appears, enter \u201cS21\u201d to complete the following example :<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-027.png\" \/><\/p>\n<h4>8-3-2  FROM<\/h4>\n<ul>\n<li>FROM Sxxxx  \uff1aS0 \u2266 Sxxxx \u2266 S3103\uff08Displayed in UperLogic\uff09<\/li>\n<\/ul>\n<p>The instruction describes the source step of the transfer, i.e. moving from step Sxxxx to the next step in coordination with transfer condition.<\/p>\n<p>\u3010Example\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-028.png\" \/>UperLogic<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-029.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-030.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011\uff1a<\/p>\n<p>1. When ON, the initial step S0 is ON. If X0 is ON, then Y0 will be ON.<\/p>\n<p>2. When S0 is ON: a. if X1 is ON, then step S20 will be ON and Y1 will be ON.<\/p>\n<p>b. if X2 is ON, then step S21 will be ON and Y2 will be ON.<\/p>\n<p>c. if X3 is ON, then step S22 will be ON and Y3 will be ON.<\/p>\n<p>d. if X1, X2 and X3 are all ON simultaneous, then step S20 will have the priority to be ON first and either S21 or S22 will not be ON.<\/p>\n<p>e. if X2 and X3 are ON at the same time, then step S21 will have the priority to be ON first and S22 will not be ON.\u3002<\/p>\n<p>3. When S20 is ON, if X5 and X7 are ON at the same time, then step S23 will be ON, Y4 will be ON and S20 and Y1 will be OFF.<\/p>\n<p>4. When S21 is ON, if X4 is ON, then step S0 will be ON and S21 and Y2 will be OFF.<\/p>\n<p>5. When S22 is ON, if X6 and X7 are ON at the same time, then step S23 will be ON, Y4 will be ON and S22 and Y3 will be OFF.<\/p>\n<p>6. When S23 is ON, if X8 is ON, then step S0 will be ON and S23 and Y4 will be OFF.<\/p>\n<ul>\n<li>Enter convergence point (FROM)<\/li>\n<\/ul>\n<ol>\n<li>selective convergence<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-031.png\" \/><\/p>\n<p>If we want to make the above results, we will do the following: We first call the [SFC function instruction] category by referring to the operation method in section 7.4.2, select [FROM] for the instruction name, and press\u201cOK\u201d, and the following window will appear.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-032.png\" \/><\/p>\n<p>Input &quot;S21&quot;, press the &quot;OK&quot; button, move the cursor on the component panel to select the [A contact] component and click it, the following window will appear:<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-033.png\" \/><\/p>\n<p>Input &quot;X5&quot;, press &quot;ENTER&quot;, use the function instruction again, call out the [SFC function instruction] category, select [FROM] for the instruction name, and press &quot;OK&quot;.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-034.png\" \/><\/p>\n<p>Input &quot;S22&quot;, press the &quot;OK&quot; button, move the cursor on the component panel to select the [A contact] component and click it<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-035.png\" \/>, the following window will appear :<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-036.png\" \/><\/p>\n<p>Input &quot;X6&quot;, press &quot;ENTER&quot; , the cursor will select the [vertical line] component in the component panel, click it immediately after the X5 contact; or press the shortcut key &quot;V&quot; after the cursor is placed in X5, a vertical line will appear. line, as shown in the following figure :<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-037.png\" \/><\/p>\n<p>Enter &quot;X7&quot;, as shown in the following image\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-038.png\" \/><\/p>\n<p>Use the function command again, call out the [SFC function instruction] category, select [TO] for the instruction name, and then press &quot;OK&quot; to appear.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-039.png\" \/><\/p>\n<p>Input &quot;S23&quot; and press &quot;OK&quot; to complete an example of selective convergence. As shown below.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-040.png\" \/><\/p>\n<ol>\n<li>Simultaneous convergence<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-041.png\" \/><\/p>\n<p>If we want to make the above result, the method is as follows: We first call the [SFC function instruction] category by referring to the operation method in section 7.4.2, select [FROM] for the instruction name, and press \u201cOK\u201d, and the following window will appear:<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-042.png\" \/><\/p>\n<p>Input &quot;S21&quot;, press &quot;OK&quot;, call out the [SFC function instruction] category again, select [FROM] for the instruction name, and press &quot;OK&quot;, the following window will appear :<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-043.png\" \/><\/p>\n<p>Enter &quot;S22&quot;, press &quot;OK&quot; , select the [vertical line] component with the cursor on the component panel, and then click it; or press the shortcut key &quot;V&quot;, that is, to complete the expression of the parallel and confluent ladder diagram program.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-044.png\" \/><\/p>\n<p>Select the [A Contact] component with the cursor on the component panel, and then click<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-045.png\" \/>:<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-046.png\" \/><\/p>\n<p>Enter &quot;X3&quot; and press &quot;ENTER&quot;. Use the function command again, call out the [SFC function instruction] category, select [TO] for the instruction name and press &quot;OK&quot;, and the following window will appear\uff1a <\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-047.png\" \/><\/p>\n<p>Input &quot;S23&quot; and press &quot;OK&quot; to complete the example of simultaneous convergence. As shown below\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-048.png\" \/><\/p>\n<p>Special attention should be paid to the [vertical line] element in order to complete the simultaneous convergence. It must be next to<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-049.png\" \/>. Once there is a space in the middle, it will become a selective convergence, as shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-050.png\" \/><\/p>\n<h4>8-3-3  TO<\/h4>\n<ul>\n<li> TO Sxxxx  \uff1aS0\u2266Sxxxx\u2266S3103\uff08Displayed in UperLogic\uff09<\/li>\n<\/ul>\n<p>This instruction describes the step to be transferred to.<\/p>\n<p>\u3010Example\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-051.png\" \/>UperLogic<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-052.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-053.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011\uff1a<\/p>\n<ol>\n<li>When ON, the initial step S0 is ON. If X0 is ON, then Y0 will be ON.<\/li>\n<li>When S0 is ON: if X1 is ON, then steps S20 and S21 will be ON simultaneously and Y1 and Y2 will also be ON.<\/li>\n<li>When S21 is ON: if X2 is ON, then step S22 will be ON, Y3 will be ON and S21 and Y2 will be OFF.<\/li>\n<li>When S20 and S22 are ON at the same time and the transferring condition X3 is ON, then step S23 will be ON (if X4 is ON, then Y4 will be ON) and S20 and S22 will automatically turn OFF and Y1 and Y3 will also turn OFF.<\/li>\n<li>When S23 is ON: if X5 is ON, then the process will transfer back to the initial step, i.e. So will be ON and S23 and Y4 will be OFF.<\/li>\n<\/ol>\n<ul>\n<li>Enter divergence point (TO Instruction)<\/li>\n<\/ul>\n<p>Using the UperLogic ladder diagram program are as follows\uff1a<\/p>\n<ol>\n<li>Selective Divergence<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-054.png\" \/><\/p>\n<p>If we wanted to make the above result :<\/p>\n<p>Place the cursor at the desired input position in the program area, call out the [SFC function instruction] category, and select the instruction name [FROM] :<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-055.png\" \/><\/p>\n<p>Input &quot;S30&quot; and press &quot;OK&quot;, the FROM instruction S30 element will appear in the program area. Cursor to select the A contact element and click on it, and enter the &quot;X3&quot; number; or directly enter &quot;AX3&quot; directly after it, as shown in the following window\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-056.png\" \/><\/p>\n<p>Type X0 followed by it,<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-057.png\" \/><\/p>\n<p>Place the cursor at the desired input position in the program area, then call the [SFC function instruction] category, and select [TO] ;<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-058.png\" \/><\/p>\n<p>Enter &quot;S31&quot;, press &quot;OK&quot;, the cursor is placed at the X0 position, enter &quot;V&quot;, and add a vertical line, as shown in the following figure\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-059.png\" \/><\/p>\n<p>Place the cursor below X0 and enter &quot;X1&quot; or &quot;X1A&quot;\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-060.png\" \/><\/p>\n<p>Call the [SFC function instruction] category, and select [TO]\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-061.png\" \/><\/p>\n<p>Input &quot;S32&quot; and press &quot;OK&quot;, an example of selective divergence is completed. As shown below\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-062.png\" \/><\/p>\n<ol>\n<li>Simultaneous Divergence<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-063.png\" \/><\/p>\n<p>If we want to make the above result, the method is as follows : <\/p>\n<p>Place the cursor at the desired input position in the program area, call the [SFC function instruction] category, and select [FROM]\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-064.png\" \/><\/p>\n<p>Input &quot;S30&quot; and press &quot;OK&quot;, the FROM instruction will appear. Cursor to select the A-contact component, click and select it, and enter &quot;X3&quot; or &quot;AX3&quot;, as shown in the following window\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-065.png\" \/><\/p>\n<p>Place the cursor at the desired input position in the program area, call the [SFC function instruction] category, and select [TO]\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-066.png\" \/><\/p>\n<p>Input &quot;S31&quot; and press &quot;OK&quot;, the TO instruction will appear. At the position below the instruction TO command S31, call the [SFC function instruction] category, and select [TO]\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-067.png\" \/><\/p>\n<p>Enter &quot;S32&quot; and press &quot;OK&quot;. Select the vertical line component, click the icon in the program area<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-068.png\" \/>; or press the shortcut key &quot;V&quot;, the following figure will appear:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-069.png\" \/><\/p>\n<p>That is, to complete the example of Simultaneous divergence.<\/p>\n<h4>8-3-4  STPEND <\/h4>\n<ul>\n<li>STPEND \uff1a\uff08Displayed in UperLogic\uff09<\/li>\n<\/ul>\n<p>This instruction represents the end of a process, which is required for all processes to work correctly.<\/p>\n<p>PLC has at most 8 step processes (S0~S7) that can be controlled at the same time, so there are at most 8 STPEND instructions.<\/p>\n<p>\u3010Example\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-070.png\" \/>UperLogic<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-071.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-072.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u30118 step processes are activated at the same time when PLC boot.<\/p>\n<p>\u2018\u2019<\/p>\n<h3>8-4  Notes for Writing a Step Ladder Diagram<\/h3>\n<p>\u3010Notes\u3011<\/p>\n<ul>\n<li>In actual applications, the ladder diagram can be used together with the step ladder.<\/li>\n<li>There are 8 steps, S0\uff5eS7, that can be used as the starting point and are called the \u201cinitial steps\u201d.<\/li>\n<li>When PLC starts operating, it is necessary to activate the initial step. The M9131 (the first scan ON signal) provided by the system may be used to activate the initial step.<\/li>\n<li>Except the initial step, the start of any other steps must be driven by other step.<\/li>\n<li>It is necessary to have an initial step and the final STPEND instruction in a step ladder diagram to complete a step process program.<\/li>\n<li>There are 3085 steps, S20\uff5eS3103, available that can be used freely. However, used numbers cannot be repeated. S2064\uff5eS3103 are retentive(The range can be modified by users), can be used if it is required to continue the machine process after power is off.<\/li>\n<li>Basically, a step must consist of three parts which are control output, transition conditions and transition targets.<\/li>\n<li>MC and SKP instructions cannot be used in a step program and the sub-programs. It\u2019s recommended that JMP instruction should be avoided as much as possible.<\/li>\n<li>If the output point is required to stay ON after the step is divergent to other step, it is necessary to use the SET instruction to control the output point and use RST instruction to clear the output point to OFF.<\/li>\n<li>Looking down from an initial step, the maximum number of horizontal paths is 16. However, a step is only allowed to have up to 8 branch paths.<\/li>\n<\/ul>\n<p>\u3010Example 1\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-073.png\" \/>UpreLogic<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-074.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-075.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011\uff1a1. Input the condition to initial step S0<\/p>\n<p>2. Input the S0 and the divergent conditions of S20, S0 and S21<\/p>\n<p>3. Input the S20<\/p>\n<p>4. Input the S21<\/p>\n<p>5. Input the convergence of S20 and S21<\/p>\n<p>6. Input the S22<\/p>\n<p>\u3010Example 2\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-076.png\" \/>UperLogic<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"8\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-077.png\" \/><\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>\u21d2<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-078.png\" \/><\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>\u21d2<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011\uff1a1. Input the condition to initial step S0<\/p>\n<p>2. Input the S0 and the divergent condition of S20 and S22<\/p>\n<p>3. Input the S20<\/p>\n<p>4. Input the S21<\/p>\n<p>5. Input the S22<\/p>\n<p>6. Input the convergence of S21 and S22<\/p>\n<p>7. Input the S23\u3010Example 3\u3011<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>UperLogic<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"8\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-079.png\" \/><\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>\u21d2<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-080.png\" \/><\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>\u21d2<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p>\u3010Description\u3011\uff1a1. Input the condition to initial step S0<\/p>\n<p>2. Input the S0 and the divergences of S20 and S24<\/p>\n<p>3. Input the S20<\/p>\n<p>4. Input the S20 and the divergences of S21 and S22<\/p>\n<p>5. Input the S21<\/p>\n<p>6. Input the S22 <\/p>\n<p>7. Input the convergences of S21 and S22<\/p>\n<p>8. Input the S23<\/p>\n<p>9. Input the S24<\/p>\n<p>10. Input the convergences of S23 and S24<\/p>\n<h3>8-5  Application Examples<\/h3>\n<p>\u3010Example 1\u3011Grasp an object from tank A and put it in Tank B<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-081.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-082.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-083.png\" \/><\/p>\n<\/td>\n<td>\n<p>Release claw<\/p>\n<p>Return to the left limit<\/p>\n<p>Return to the upper limit<\/p>\n<p>Turn the switch ON before moving to S20<\/p>\n<p>Stretch arm downward<\/p>\n<p>Move to S21 after stretching to the lower limit<\/p>\n<p>Claw grasps (since the SET instruction is used, Y4 should remain ON after departing from STP S21)<\/p>\n<p>Divergent into S22 after 1S<\/p>\n<p>Lift the arm up<\/p>\n<p>Divergent into S23 after reaching the upper limit<\/p>\n<p>Move arm to the right<\/p>\n<p>Divergent into S24 after moving to the right limit<\/p>\n<p>Stretch the arm downward<\/p>\n<p>Divergent into S25 after stretching to the lower limit<\/p>\n<p>Release claw<\/p>\n<p>Delay for 1S<\/p>\n<p>Transfer into S26 after 1S<\/p>\n<p>Lift the arm up<\/p>\n<p>Divergent into S27 after reaching the upper limit<\/p>\n<p>Move the arm to the left<\/p>\n<p>Divergent into S0 after moving to the left limit (a complete cycle)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Example 2\u3011Liquid Stirring Process<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-084.png\" \/><\/p>\n<ul>\n<li>Input Points\uff1aEmpty limit switch X1<br \/>             Noliquid linit switch X2<br \/>             Empty limit switch X3<br \/>             Over-load switch X4<\/li>\n<\/ul>\n<p>Warning clear button X5<\/p>\n<p>Start button X6<\/p>\n<p>Water washing button X7<\/p>\n<ul>\n<li>Warning Indicators: Empty dried material Y1<\/li>\n<\/ul>\n<p>Insufficient liquid Y2<\/p>\n<p>Empty stirring unit Y3<\/p>\n<p>Motor over-load Y4<\/p>\n<ul>\n<li>Output point: dry material feeding valve Y5<\/li>\n<\/ul>\n<p>Dry feed valve Y6<\/p>\n<p>Liquid feed valve Y7<\/p>\n<p>Start motor solenoid valve Y8<\/p>\n<p>Fresh water inlet valve Y9<\/p>\n<p>Finished product feed valve Y100<\/p>\n<ul>\n<li>Weighing Output\uff1aCH0\uff08R3840\uff09<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-085.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-086.png\" \/><\/p>\n<p>Warning indicators<\/p>\n<p>Reset warning<\/p>\n<p>Production start<\/p>\n<p>Water washing start<\/p>\n<p>Input weighing<\/p>\n<p>Status after weighing<\/p>\n<p>Divergent into S21 and S22<\/p>\n<p>Add liquid to stirring unit<\/p>\n<p>Complete dried material and liquid input, transfer the status to S23<\/p>\n<p>Stirring timer<\/p>\n<p>Wash stirring unit<\/p>\n<p>Input clean water<\/p>\n<p>Drain water out<\/p>\n<p>Output finished product<\/p>\n<p>and accumulate the cycle<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u3010Example 3\u3011Pedestrian Crossing Lights<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-087.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<ul>\n<li>Input Point\uff1a<\/li>\n<\/ul>\n<\/td>\n<td>\n<p>Pedestrian Push Button X0<\/p>\n<p>Pedestrian Push Button X1<\/p>\n<\/td>\n<td>\n<ul>\n<li>Output Points\uff1a<\/li>\n<\/ul>\n<\/td>\n<td colspan=\"3\">\n<p>Road Red Light Y0<\/p>\n<p>Road Amber light Y1<\/p>\n<p>Road Green Light Y2<\/p>\n<p>Pedestrian Crossing Red Light Y3<\/p>\n<p>Pedestrian Crossing Green Light Y4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Pedestrian Crossing Lights Control Process Diagram<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-088.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<ul>\n<li>Pedestrian Crossing Lights Control Program<\/li>\n<\/ul>\n<p>UperLogic<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-08\/mplc-m07-en-08-089.png\" \/><\/p>\n<h3>8-6  Syntax Check Error Codes for Step Instruction<\/h3>\n<p>The error codes for the usage of step instruction are as follows:<\/p>\n<p>E51\uff1aTO(S0-S7) must begin with ORG instruction.<\/p>\n<p>E52\uff1aTO(S20-S3103) can&#8217;t begin with ORG instruction.<\/p>\n<p>E53\uff1aTO instruction without matched FROM instruction.<\/p>\n<p>E54\uff1aTo instruction must comes after TO, AND, OR, ANDLD or ORLD instruction.<\/p>\n<p>E56\uff1aThe instructions before FROM must be AND, OR, ANDLD or ORLD<\/p>\n<p>E57\uff1aThe instruction after FROM can\u2019t be a coil or a function<\/p>\n<p>E58\uff1aCoil or function must before FROM while in STEP network<\/p>\n<p>E59\uff1aMore than 8 TO# at same network.<\/p>\n<p>E60\uff1aMore than 8 FROM# at same network.<\/p>\n<p>E61\uff1aTO(S0-S19) must locate at first row of the network. <\/p>\n<p>E62\uff1aA contact occupies the location for TO instruction.<\/p>\n<p>E71\uff1aIncomplete connection (should not happen)<\/p>\n<p>E72\uff1aDuplicated TO Sxxxx instruction.<\/p>\n<p>E73\uff1aDuplicated STP sxxxx instruction.<\/p>\n<p>E74\uff1aDuplicated FROM sxxxx instruction.<\/p>\n<p>E76\uff1aTP(S0~S19) without a matched STPEND or STPEND without a matched STP(S0~S19).<\/p>\n<p>E77\t\uff1aThe previous network of STP(S0~S19) is not the only ORG~S19(S0~S19)<\/p>\n<p>E78\uff1aTO(S20~S3103), STP (S20~S3103) or FROM instructions comes before or without STP(S0~S19).<\/p>\n<p>E79\uff1aSTP Sxxxx or FROM Sxxxx instructions comes before or without TO Sxxxx.<\/p>\n<p>E80\uff1aFROM Sxxxx instruction comes before or without STP Sxxxx.<\/p>\n<p>E81\uff1aThe max level of branches must &lt;=16.<\/p>\n<p>E82\uff1aThe max number of branches with same level must &lt;=16.<\/p>\n<p>E83\uff1aNot place the step instruction with TO-&gt;STP-&gt;FROM sequence.<\/p>\n<p>E84\uff1aThe definition of STP# sequence not follow the TO# sequence.<\/p>\n<p>E85\uff1aConvergence do not match the corresponding divergence.<\/p>\n<p>E86\uff1aIllegal usage of STP or FROM before convergent with TO instruction.<\/p>\n<p>E87\uff1aSTP# or FROM# comes before corresponding TO#.<\/p>\n<p>E88\uff1aDuring this branch, STP# or FROM# comes before the corresponding TO#.<\/p>\n<p>E89\uff1aFROM# comes before corresponding TO# or STP#.<\/p>\n<p>E90\uff1aInvalid To# usage in the simultaneous branch.<\/p>\n<p>E91\uff1aLast STP (S0~S19) has not been processed completely, use ORG, LBL, RTS, RTI, MCE, SKPE, FOR, NEXT, ENDD.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Version<\/p>\n<\/td>\n<td>\n<p>Date<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.3<\/p>\n<\/td>\n<td>\n<p>2025\/12\/17<\/p>\n<\/td>\n<td>\n<p>add Precaution to Disclaimers, Note add on page 7-37,7-39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.4<\/p>\n<\/td>\n<td>\n<p>2026\/1\/29<\/p>\n<\/td>\n<td>\n<p>Basic Function operand range , add description in Timer on page 6-1 ; Add something in Ladder Diagram : Timer , BSHF on page 6-3,6-26 ; Change some number in Example : BCD -&gt; BIN , RST on page 6-63,6-13 .<\/p>\n<p>Advanced Function : Add or change Something in Ladder Diagram : QUEUE , STACK , FADD , FACOS on page 7-167,7-170,7-378,7-404 . Change or add some description : HSCTR , HSCTW , F\u2192I , FDIV on page 7-131,7-129,7-49,7-383.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.5<\/p>\n<\/td>\n<td>\n<p>2026\/2\/5<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Add or change Something in Ladder Diagram : BITMV , BITRD , ROTR , Z-WR , MBCNT on page 7-40,7-44,7-49,7-62,7-179,7-202 . Change or add some description : BITMV,BYMV , ACCUMULATIVE TIMER on page 7-40,7-49,7-179. Make sure Floating point instruction operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.6<\/p>\n<\/td>\n<td>\n<p>2026\/2\/12<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Make sure Artimetucal Operation ~ Shifting\/Rotating , Table , Matrix instruction operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.7<\/p>\n<\/td>\n<td>\n<p>2026\/2\/26<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Change Something in Ladder Diagram :&lt;,&lt;&gt;,&gt;= on page 7-248,7-250,7-252.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.8<\/p>\n<\/td>\n<td>\n<p>2026\/3\/5<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Change In Line Comparison and Data movement instruction operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.9<\/p>\n<\/td>\n<td>\n<p>2026\/3\/12<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Change Zone Write(7-161), IMDIO(7-97,7-98), Communication and Flow Control instruction operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.10<\/p>\n<\/td>\n<td>\n<p>2026\/3\/19<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Change IMDIO(7-98), PID Control, Slow up\/Slow down and NC Positioning Instruction operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.11<\/p>\n<\/td>\n<td>\n<p>2026\/3\/26<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Change Enable\/Disable, NC Positioning II, Other Instruction operand range. Change description or title on page 7-226 and 7-294.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.12<\/p>\n<\/td>\n<td>\n<p>2026\/4\/2<\/p>\n<\/td>\n<td>\n<p>Advanced Function : Change MFSTART~MFSYSRCTW operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.13<\/p>\n<\/td>\n<td>\n<p>2026\/4\/22<\/p>\n<\/td>\n<td>\n<p>Change MOD description. Advanced Function : Change MYSYSCAMR~MFPATHMOV operand range.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V1.0.14<\/p>\n<\/td>\n<td>\n<p>2026\/5\/14<\/p>\n<\/td>\n<td>\n<p>Advanced Function :  Change Something in Ladder Diagram : DIFD(6-23), DECREMENT(6-51); Change ST program : TOGG(6-30), DECREMENT(6-51),=(7-243),&gt;(7-245),&lt;(7-248),&lt;&gt;(7-251),&gt;=(7-253),&lt;=(7-255,7-256).Add FUN57 and FUN58.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Structured programming design is a major trend in softw [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-3274","post","type-post","status-publish","format-standard","hentry","category-en-mplc-m07"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/comments?post=3274"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3274\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}