{"id":3267,"date":"2026-11-17T18:39:56","date_gmt":"2026-11-17T10:39:56","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-01\/"},"modified":"2026-11-17T18:39:56","modified_gmt":"2026-11-17T10:39:56","slug":"mplc-m07-en-01","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-01\/","title":{"rendered":"Chapter 1. PLC Ladder Diagram and the Coding Rules of Mnemonic"},"content":{"rendered":"<p>In this chapter, we would like to introduce you the basic principles of ladder diagram.<\/p>\n<h3>1-1  The Operation Principle of Ladder Diagram<\/h3>\n<p>Ladder Diagram is a type of graphic language for automatic control systems it had been used for a long period since World War II. Until today, it is the oldest and most popular language for automatic control systems. Originally there are only few basic elements available such as A-contact (Normally ON), B contact (Normally OFF), output Coil, Timers and Counters.<\/p>\n<p>Not until the appearance of microprocessor-based PLC, more elements for Ladder Diagram, such as differential contact, retentive coil (refer Table 2) and other instructions that a conventional system cannot provide, became available.<\/p>\n<p>The basic operation principle for both conventional and PLC Ladder Diagram is the same. The main difference between the two systems is that the appearance of the symbols for conventional Ladder Diagram are closer to the real devices, while for PLC system, symbols are simplified for computer display. There are two types of logic system available for Ladder Diagram logic, namely combination logic and sequential logic. Detailed explanations for these two logics are discussed below:<\/p>\n<h4>1-1-1  Combination Logic<\/h4>\n<p>Combination logic of the Ladder Diagram is a circuit that combines one or more input elements in series or parallel and then send the results to the output elements, such as Coils, Timers\/Counters, and other application instructions.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\fig1.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-001.png\" \/><\/p>\n<p>Combination logic_Actual wiring diagram<\/p>\n<p>The example illustrated the combination logic using the actual wiring diagram, conventional Ladder Diagram, and PLC Ladder Diagram. Circuit 1 uses a NO (Normally Open) switch that is also called &quot;A&quot; switch or contact. Under normal condition (switch is not pressed), the switch contact is at OFF state and the light is off. If the switch is pressed, the contact status turns ON and the light is on.<\/p>\n<p>In contrast, circuit 2 uses a NC (Normally Close) switch that is also called &quot;B&quot; switch or contact. Under normal condition, the switch contact is at ON state and the light is on. If the switch is pressed, the contact status turns OFF and the light also turns off.<\/p>\n<p>Circuit 3 contains more than one input element. Output Y2 light will turn on under the condition when X2 is closed or X3 switches to ON, and X4 must switch ON too.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.2.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-002.png\" \/><\/p>\n<p>Combination logic_Conventional Ladder Diagram<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.3.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-003.png\" \/><\/p>\n<p>Combination logic_PLC Ladder Diagram<\/p>\n<h4>1-1-2  Sequential Logic<\/h4>\n<p>The sequential logic is a circuit with feedback control; that is, the output of the circuit will be feedback as an input to the same circuit. The output result remains in the same state even if the input condition changes to the original position. This process can be best explained by the ON\/OFF circuit of a latched motor driver as shown in below.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-004.png\" \/><\/p>\n<p>Sequential logic_Actual wiring diagram<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-005.png\" \/><\/p>\n<p>Sequential logic_ Conventional Ladder Diagram<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-006.png\" \/><\/p>\n<p>Sequential logic_ PLC Ladder Diagram<\/p>\n<p>When we first connect this circuit to the power source, X6 switch is ON but X5 switch is OFF, therefore the relay Y3 is OFF. The relay output contacts 1and 2 are OFF because they belong to A contact (ON when relay is ON). Motor does not run. If we press down the switch X5, the relay turns ON as well as contacts 1and 2 are ON and the Motor starts. Once the relay turns ON, if we release the X5 switch (turns OFF), relay can retain its state with the feedback support from contact 1 and it is called Latch Circuit. The following table shows the switching process of the example we have discussed above\uff1a<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>X5 Switch (NO)<\/p>\n<\/td>\n<td>\n<p>X6 Switch (NC)<\/p>\n<\/td>\n<td>\n<p>Motor (Relay) Status<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2460<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>OFF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2461<\/p>\n<\/td>\n<td>\n<p> Pressed<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>ON<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2462<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>ON<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2463<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>Pressed<\/p>\n<\/td>\n<td>\n<p>OFF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2464<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>Released<\/p>\n<\/td>\n<td>\n<p>OFF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Sequential logic_Action<\/p>\n<p>From the above table we can see that under different stages of sequence, the results can be different even the input statuses are the same. For example, X5 and X6 switches are both released, but the Motor is ON (running) at status \u2462 and is OFF (stopped) at status \u2460. This sequential control with the feedback of the output to the input is a unique characteristic of Ladder Diagram circuit. Sometimes we call the Ladder Diagram a &quot;Sequential Control Circuit&quot; and the PLC a &quot;Sequencer\u201d. In this section, we only use the A\/B contacts and output coils as the example. For more details on sequential instructions please refer to Chapter 5 &quot;Introduction of Sequential Instructions\u201d.<\/p>\n<h3>1-1  Differences Between Conventional and PLC Ladder Diagram<\/h3>\n<p>Although the basic operation principle for both conventional and PLC Ladder Diagram are the same, but in reality, PLC uses the CPU to emulate the conventional Ladder Diagram operations; that is, PLC uses scanning method to monitor the statuses of input elements and output coils, then uses the Ladder Diagram program to emulate the results which are the same as the results produced by the conventional Ladder Diagram logic operations. There is only one CPU, so the PLC has to sequentially examine and execute the program from its first step to the last step, then returns to the first step again and repeats the operation (cyclic execution). The duration of a single cycle of this operation is called the scan time. The scan time varies with the program size. If the scan time is too long, then input and output delay will occur. Longer delay time may cause big problems in controlling fast response systems. At this time, PLCs with short scan time are required. Therefore, scan time is an important specification for PLCs. Due to the advance in microcomputer and ASIC technologies nowadays the scan speed has been enhanced a great deal. M PLC takes approximately 1us for IK steps of contact under the condition of continuous address reading. The following diagram illustrates the scanning process of a PLC Ladder Diagram.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.7.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-007.png\" \/><\/p>\n<p>Schematic diagram of PLC ladder diagram program scan<\/p>\n<p>Besides the time scan difference mentioned above, the other difference between the conventional and PLC Ladder Diagram is \u201cReverse Flow\u201d. As shown in the diagram below, if X0, X1, X4 and X6 are ON, and the remaining elements are OFF: In a conventional Ladder Diagram circuit, a reverse flow route for output Y0 can be defined by the dashed line and Y0 will be ON; while PLC scans from left to right and from top to bottom when the PLC CPU is calculating the result of the ladder diagram program. Under the same input conditions, the state of point \u201ca\u201d in this illustration is considered OFF by the CPU because X3 contact is OFF. Although point a is connected to point \u201cb\u201d via X4 and both are ON, because the PLC ladder diagram only scans from left to right, the CPU Unable to detect, so Y0 output is OFF.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-008.png\" \/><\/p>\n<p>Reverse flow of conventional Ladder diagram<\/p>\n<h3>1-2  Ladder Diagram Structure and Terminolog<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-009.png\" \/><\/p>\n<p>Ladder Diagram Program Example<\/p>\n<p>Note: The maximum size of M PLC network is 22 columns X 16 rows.<\/p>\n<p>As shown above, the Ladder Diagram can be divided into many small cells. There is total 88 cells (8 rows X 11 columns) for this example Ladder Diagram. One cell can accommodate one element. A completed Ladder Diagram can be formed by connecting all the cells together according to the specific requirements. The terminologies related to Ladder Diagram are illustrated below\uff1a<\/p>\n<ol>\n<li>Contact<\/li>\n<\/ol>\n<p>Contact is an element with open or short status. One kind of contact is called &quot;Input Contact&quot;(reference number prefix with X) and its status reference from the external signals (the input signal comes from the input terminal block). Another one is called &quot;Relay contact&quot; and its status reflects the status of relay coil (please refer to \u2461). The relation between the reference number and the contact status depends on the contact type. The 6 contact elements provided by M PLC include: A contact, B contact, Up\/Down Differential (TU\/TD) contacts and Open\/Short contacts. Please refer to \u2463.<\/p>\n<ol>\n<li>Relay<\/li>\n<\/ol>\n<p>Same as the conventional relay, it consists of a Coil and a Contact as shown in the diagram below.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.10.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-010.png\" \/><\/p>\n<p>Relay_Coil and Contact<\/p>\n<p>As shown in the figure, the relay must have a coil. To make the relay act, the coil must be driven (by OUT command). After the coil is driven, the state of its contacts will be affected<\/p>\n<p>As shown in the example, if Y0 is driven with 1 (make it ON), then the A contact of the relay is 1, the B contact is 0, the TU contact is only ON for one scan time, and the TD contact is 0.<\/p>\n<p>When Y0 turns OFF, the A contact is 0, the B contact is 1, the TU contact is 0, and the TD contact is only ON for one scan time (for the actions of A, B, TU, and TD contacts, please refer to Chapter 4 &quot;Sequential Instructions&quot;).<\/p>\n<p>There are four types of M PLC relays, namely Y\u25b3\u25b3\u25b3 (output relay), M\u25b3\u25b3\u25b3\u25b3(internal relay), S\u25b3\u25b3\u25b3 (step relay) and TR\u25b3\u25b3 (register relay). The status of output relays will be sent to the output point of terminal block.<\/p>\n<ol>\n<li>Origin<\/li>\n<\/ol>\n<p>The starting line at the left side of the Ladder Diagram.<\/p>\n<ol>\n<li>Element<\/li>\n<\/ol>\n<p>Element is the basic unit of a Ladder Diagram.<\/p>\n<p>An element consists of two parts as shown in the diagram below. One is the element symbol which is called \u201cOP Code\u201d and another is the reference number part which is called \u201cOperand\u201d.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.11.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-011.png\" \/><\/p>\n<p>Element<\/p>\n<p>The components of M PLC have the following 8 types:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Element type<\/p>\n<\/td>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td>\n<p>Note<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>A Contact<\/p>\n<p>(Normally OPEN)<\/p>\n<\/td>\n<td>\n<p>\u25a1\u25b3\u25b3\u25b3\u25b3\u25b3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-012.jpg\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25a1 can be X\u3001Y\u3001M\u3001S \u3001T \u3001C (please refer to <a href=\"#_2-2_Digital_and\">section 2.2<\/a>)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>B Contact<\/p>\n<p>(Normally CLOSE)<\/p>\n<\/td>\n<td>\n<p>\u25a1\u25b3\u25b3\u25b3\u25b3\u25b3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-013.jpg\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Up Differential Contact<\/p>\n<\/td>\n<td>\n<p>\u25a1\u25b3\u25b3\u25b3\u25b3\u25b3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-014.jpg\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25a1 can be X\u3001Y\u3001M\u3001S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Down Differential Contact<\/p>\n<\/td>\n<td>\n<p>\u25a1\u25b3\u25b3\u25b3\u25b3\u25b3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-015.jpg\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Open Circuit Contact<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-016.jpg\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Short Circuit Contact<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-017.jpg\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Output Coil<\/p>\n<\/td>\n<td>\n<p>\u25a1\u25b3\u25b3\u25b3\u25b3\u25b3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-018.jpg\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25a1 can be Y\u3001M\u3001S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Inverse Output Coil<\/p>\n<\/td>\n<td>\n<p>\u25a1\u25b3\u25b3\u25b3\u25b3\u25b3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-019.jpg\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>M PLC Elements<\/p>\n<p>Note: Please refer to <a href=\"#_2-2_Digital_and\">section 2.2<\/a> for the ranges of X, Y, M, S, T and C contacts or coils. Please refer to <a href=\"#_2-2_Digital_and\">section 2.2<\/a> for the element characteristics.<\/p>\n<p>There is a special sequential instruction: FOn, which is also one of the elements. Please refer to section 5.1.4 \u201cFunction Output FO\u201d.<\/p>\n<ol>\n<li>Node<\/li>\n<\/ol>\n<p>The connection point between two or more elements.<\/p>\n<ol>\n<li>Block<\/li>\n<\/ol>\n<p>A circuit consists of two or more elements.<\/p>\n<p>There are two basic types of blocks\uff1a<\/p>\n<ul>\n<li>Serial Block: Two or more elements are connected in series to form a single row circuit.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-020.png\" \/><\/p>\n<p>Serial Block<\/p>\n<ul>\n<li>Parallel Block: A parallel (rectangular) closed circuit composed of components or series blocks connected in parallel.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-021.png\" \/><\/p>\n<p>Parallel Block<\/p>\n<p>Note: Complicated block can be formed by the combination of the single element, serial blocks and parallel blocks. When designing a Ladder Diagram with mnemonic entry, it is necessary to break down the circuits into element, serial, and parallel blocks.<\/p>\n<ol>\n<li>Branch<\/li>\n<\/ol>\n<p>If there are two or more loops connected to the right of the vertical line in any network, this is a branch, and this vertical line is called a branch line.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.14.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-022.png\" \/><\/p>\n<p>Branch<\/p>\n<p>If there is another vertical line on the right side of the branch line to merge the two branch columns of circuits (this vertical line is called the merging line), then this circuit will form a closed circuit (forming a parallel block), and this circuit is a non-branching circuit.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.15.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-023.png\" \/><\/p>\n<p>Branch line and Merge line<\/p>\n<p>If both the right and the left sides of the vertical line are connected with two or more rows of circuits, then it is both a branch line and a merge line as shown in the example below\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Fig.16.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-01\/mplc-m07-en-01-024.png\" \/><\/p>\n<p>For both branch and merge lines <\/p>\n<ol>\n<li>Network<\/li>\n<\/ol>\n<p>A loop that can perform specific functions is composed of elements, branches, and blocks, which is called a network. A network is the basic unit that can perform complete functions in a ladder diagram program, and a ladder diagram program is composed of a series of networks. The beginning of the network must start from the busbar, and any two columns of circuits without a vertical line connection belong to two different networks (the ones connected by a vertical line belong to the same network). According to this rule, such as the ladder diagram program example, it can be divided into three networks: network 1~3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this chapter, we would like to introduce you the bas [&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-3267","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\/3267","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=3267"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3267\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}