{"id":3270,"date":"2026-11-17T18:39:58","date_gmt":"2026-11-17T10:39:58","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-04\/"},"modified":"2026-11-17T18:39:58","modified_gmt":"2026-11-17T10:39:58","slug":"mplc-m07-en-04","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-04\/","title":{"rendered":"Chapter 4. Sequential Instruction"},"content":{"rendered":"<p>This chapter only describes the Element features and functions of sequence commands.<\/p>\n<h3>4-1  Element Description<\/h3>\n<h4>4-1-1  Characteristics of A,B,TU and TD Contacts<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<ul>\n<li>Input X0 from the input terminal block<\/li>\n<li>A contact Element status<\/li>\n<li>B contact Element status<\/li>\n<li>TU contact Element status<\/li>\n<li>TD contact Element status<\/li>\n<\/ul>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-001.png\" \/><\/p>\n<p>Characteristics of A,B,TU and TD Contacts<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The\twaveform shown above reveals the function of A, B, TU and TD elements by exercising the external input X0 form OFF to ON then OFF.<\/p>\n<ul>\n<li>TU (Transition Up): This is the \u201cTransition Up Contact\u201d. Only a rising edge (0\ud83e\udc6a1) of                                    the referenced signal will turn on this element for one scan time.<\/li>\n<li>TD (Transition Down): This is the \u201cTransition Down Contact\u201d. Only a falling edge (1\ud83e\udc6a0) of the referenced signal will turn on this element for one scan time.<\/li>\n<li>TU and TD contact will automatically generate the TU or TD pulse corresponding to the contacts or coils for all X, Y, M, S, T, C contact or coil state changes. However, if the state change of the coil is operated by the &quot;application Instruction&quot; in units of 16 or 32 bits\uff08WY\u25b3\u25b3\u25b3\u25b3\uff0cWM\u25b3\u25b3\u25b3\u25b3\u25b3\uff0cWS\u25b3\u25b3\u25b3\u25b3\uff09, TU or TD pulses will not be generated. <\/li>\n<\/ul>\n<p>Note: The &quot;ON&quot; maintenance time of the TU and TD elements of the M PLC relay is the first scan after the &quot;ON&quot; condition of the element is established (for example, the TU element changes from 0 to 1, and the TD element changes from 1 to 0). Set it to &quot;ON&quot; for coil elements. Once it is set to &quot;ON&quot;, it will be cleared to &quot;OFF&quot; immediately when it is scanned again. In most applications, each element will only be scanned once during the CPU problem-solving scan cycle, so the &quot;ON&quot; time of TU and TD elements must be equal to the scan time of the CPU. However, if it is scanned more than once in a CPU scan cycle (such as using &quot;immediate input&quot; or &quot;multiple coil output&quot; in the program), the TU and TD states of its elements will be the first time the &quot;ON&quot; condition is met. Set to &quot;ON&quot; when the scan arrives, and clear to &quot;OFF&quot; immediately when the second scan arrives, and the &quot;ON&quot; time will be less than one CPU scan time. The TU of Y0 in the following illustration is that. Therefore, if the customer needs to capture the TU of Y0 for trigger operation, one must insert the application program in the range of Y0 TU &quot;ON&quot; to &quot;OFF&quot; (in this example, between b and e), otherwise he will not be able to capture any Y0 or TU trigger signal.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder Diagram<\/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-04\/mplc-m07-en-04-002.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Example diagram of the contact and scan time relationship<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-003.png\" \/><\/p>\n<p>PLC contact trigger and scan time relationship<\/p>\n<ul>\n<li>Besides the TU\/TD instructions which can detect the status change of reference operand, M PLC also provides the instructions to detect the change of node <\/li>\n<\/ul>\n<p>status (power flow). For details please refer the descriptions of FUN4 (DIFU) and FUN5 (DIFD) instructions.<\/p>\n<h4>4-1-2  OPEN and SHORT Contact <\/h4>\n<p>The status of OPEN and SHORT contacts are fixed and can\u2019t be changed by any ladder instructions. Those two contacts are mainly used in the places of the Ladder Diagram where fixed contact statuses are required, such as the place where the input of an application instruction is used to select the mode. The sample program shown below gives an example of configuring an Up\/Down counter (UDCTR) to an Up counter by using the SHORT contact.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-004.png\" \/><\/p>\n<p>Up counter using the SHORT contact<\/p>\n<ul>\n<li>FUN7 is the UDCTR function. While rising edge of CK input occur, FUN7 will count up if the U\/D status is 1 or count down if the U\/D status is 0. The example shown above, U\/D status is fixed at 1 since U\/D is directly connected from the origin-line to a SHORT contact, therefore FUN7 becomes an Up counter. On the contrary, if the U\/D input of FUN7 is connected with an OPEN contact from the origin-line, the FUN7 becomes a DOWN counter.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-005.png\" \/><\/p>\n<p>Down counter using the OPEN contact<\/p>\n<h4>4-1-3  Output Coil and Inverse Output Coil<\/h4>\n<p>Output Coil writes the node status into an operand specified by the coil instruction. Invert Output Coil writes the complement status of node status into an operand specified by the coil instruction. The characteristics depicts at below.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-006.png\" \/><\/p>\n<p>Ladder Diagram of Output Coil and Invert Output Coil<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-007.png\" \/><\/p>\n<p>Output Coil and Invert Output Coil<\/p>\n<h4>4-1-4  Retentive Output Coil<\/h4>\n<p>For the internal coil, it can be set as holding or non-holding (it is a dichotomy, such as M0-M8519 of the internal coil M0-M9119 is non-holding, then M8520-M9119 is holding), but for the output point, due to practical It is not suitable to use the dichotomy method to set hold or non-hold, so if most PLCs need to hold the output point, they must first send the result to the internal hold coil, and then send the internal hold coil to the indirect method of the output point, M PLC Then provide you with the method of selecting the output point to be maintained under the page of I\/O Configuration -&gt; Output Power Failure Hold, the following self-protection circuit:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-008.png\" \/><\/p>\n<p>Ladder Diagram of Retentive Output Coil<\/p>\n<p>From the above example, if turn the X0 &quot;ON&quot; then &quot;OFF&quot;, Y0 will keep at &quot;ON&quot;. When change the PLC state from RUN to STOP then RUN or turn the power off then on, the Y0 still keep at ON state. But if use the OUT Y0 instruction instead of the OUT L Y0, need to turn the X0 &quot;ON&quot; again after change the PLC state from RUN to STOP then RUN or turn the power off then on, Y0 status will be ON.<\/p>\n<h4>4-1-5  Set Coil and Reset Coil<\/h4>\n<p>Set Coil writes 1 into an operand specified. Reset Coil writes 0 into an operand specified. The characteristics depicts at below.<\/p>\n<p>.<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-009.png\" \/><\/p>\n<p>Ladder Diagram of Set Coil and Reset Coil<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-04\/mplc-m07-en-04-010.png\" \/><\/p>\n<p>Set Coil and Reset Coil<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This chapter only describes the Element features and fu [&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-3270","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\/3270","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=3270"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3270\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}