{"id":3431,"date":"2026-11-17T21:35:07","date_gmt":"2026-11-17T13:35:07","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/fbs-ins-en-004\/"},"modified":"2026-11-17T21:35:07","modified_gmt":"2026-11-17T13:35:07","slug":"fbs-ins-en-004","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/fbs-ins-en-004\/","title":{"rendered":"Chapter 4 Sequential Instructions"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-001.png\" \/><\/p>\n<p><strong>Chapter 4  Sequential Instructions <\/strong><br \/>The sequential instructions of FBs-PLC shown in this chapter are also listed in section 3.1. Please refer to Chapter 1, <\/p>\n<p>&quot;PLC Ladder diagram and the Coding rules of Mnemonic instruction&quot;, for the coding rules in applying those instructions. In <\/p>\n<p>this chapter, we only introduce the applicable operands, ranges and element characteristics, functionality. <\/p>\n<p>4.1Valid Operand of Sequential Instructions<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Operand <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>M <\/p>\n<\/td>\n<td>\n<p>SM <\/p>\n<\/td>\n<td>\n<p>S <\/p>\n<\/td>\n<td>\n<p>T <\/p>\n<\/td>\n<td>\n<p>C <\/p>\n<\/td>\n<td>\n<p>TR <\/p>\n<\/td>\n<td>\n<p>OPEN <\/p>\n<\/td>\n<td>\n<p>SHORT <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ranges <\/p>\n<\/td>\n<td>\n<p>X0 <\/p>\n<\/td>\n<td>\n<p>Y0 <\/p>\n<\/td>\n<td>\n<p>M0 <\/p>\n<\/td>\n<td>\n<p>M1912<\/p>\n<\/td>\n<td>\n<p>S0 <\/p>\n<\/td>\n<td>\n<p>T0 <\/p>\n<\/td>\n<td>\n<p>C0 <\/p>\n<\/td>\n<td>\n<p>TR0 <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u2014 <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u2014 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>| <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Instruction <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>X255 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Y255 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>M1911 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>M2001<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>S999<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>T255<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>C255<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>TR39 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG NOT <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG TU <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG TD <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LD <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LD NOT <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"22\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LD TU <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LD TD <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AND <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AND NOT <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>AND TU <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"16\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"16\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AND TD <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR NOT <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR TU <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR TD <\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT NOT <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2212<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT L <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ANDLD <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORLD <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u2212<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TU <\/p>\n<\/td>\n<td>\n<p>\u2212<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TD <\/p>\n<\/td>\n<td>\n<p>\u2212<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>NOT <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2212<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUTS <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUTR <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\t\u203b<br \/>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-002.png\" \/><\/p>\n<p>\u203bFor the relays marked with a \u2018\u25e4\u2019 symbol in the special relay table\uff08please refer to section 2.3\uff09is write prohibited. In addition, TU and TD contacts are not supported for those relays as well. The operands marked with a \u2018*\u2018 symbol in the table shown above should exclude those special relays. <\/p>\n<p>4.2Element Description <\/p>\n<h4>4.2.1Characteristics of A,B,TU and TD Contacts<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>\u25cfInput X0 from the input terminal block <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td>\n<p>ON<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OFF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u25cfA contact Element status <\/p>\n<\/td>\n<td>\n<p>X0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>t<\/p>\n<p>t<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>t: scan time <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u25cfB contact Element status <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u25cfTU contact Element status <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u25cfTD contact Element status <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The waveform 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<p>\u0084 TU (Transition Up): This is the \u201cTransition Up Contact\u201d. Only a rising edge (0\u00c61) of the referenced signal will turn on this element for one scan time. <\/p>\n<p>\u0084 TD (Transition Down): This is the \u201cTransition Down Contact\u201d. Only a falling edge (1\u00c60) of the referenced signal will \tturn on this element for one scan time. <\/p>\n<p>\u0084 TU and TD contact will work normally as described above if the change of the status of the valid referenced operands listed in the \u201cValid Range of the Operand of Sequential instructions\u201d table are not driven by the function instructions. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Remark: For TU(TD) elements which operand is of relay will turn on after the first time the corresponding relay get driven from 0 to 1(1 to 0). When the next time the corresponding relay get driven from 1 to 1(0 to 0) the TD(TU) element will turn OFF. Care should be taken while there is a multiple coil usage situation existed in the ladder program. This situation can be best illustrated at below. In the waveform we can see Y0 TU element only turn on between \u25cbb and \u25cbe time which only the Y0 TU elements existed between rung 1 and rung 2 can detect the Y0 rising edge, while other Y0 TU elements out side these two ladder rungs will never aware the occurrence of the rising edge. For the relays do not have the multiple coil usage in ladder program, The ON status of corresponding TU or TD element can be sustained for one scan time, but for relays which contrary to above, the turn on time will shorter than 1 scan time as illustrated at below. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-003.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-004.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-005.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>X0<\/p>\n<\/td>\n<td>\n<p>ORG    X 0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Y1<\/p>\n<\/td>\n<td>\n<p>OUT    Y 0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT    Y 1 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>ORG    X 1 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u25cb<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"5\">\n<p>X1<\/p>\n<\/td>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>OUT    Y 0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>N times scan<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Scan Time t<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>N+1 times scan<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-006.png\" \/><\/p>\n<\/td>\n<td colspan=\"5\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-007.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>a<\/p>\n<\/td>\n<td>\n<p>b<\/p>\n<\/td>\n<td>\n<p>c<\/p>\n<\/td>\n<td>\n<p>d<\/p>\n<\/td>\n<td>\n<p>e<\/p>\n<\/td>\n<td>\n<p>a<\/p>\n<\/td>\n<td>\n<p>b<\/p>\n<\/td>\n<td>\n<p>c<\/p>\n<\/td>\n<td>\n<p>d<\/p>\n<\/td>\n<td>\n<p>e<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>X0<\/p>\n<p>X1<\/p>\n<p>A<\/p>\n<p>Y0<\/p>\n<p>Y0<\/p>\n<p>Y0<\/p>\n<p>Y1<\/p>\n<p>Y1<\/p>\n<p>A: The internal accumulator of PLC<\/p>\n<p>\u0084\tBesides the TU\/TD instructions which can detect the status change of reference operand, FBs-PLC also provides \tthe instructions to detect the change of node status (power flow). For details please refer the descriptions of FUN4 \t(DIFU) and FUN5 (DIFD) instructions. <\/p>\n<h4>4.2.2OPEN and SHORT Contact <\/h4>\n<p>The status of OPEN and SHORT contact 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<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>PSU<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>7.UDCTR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>CUP<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CV :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td>\n<p>LD <\/p>\n<\/td>\n<td>\n<p>SHORT <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>10<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>LD <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>U\/D<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>PV :<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>FUN <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>7 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>CV: R <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CLR<\/p>\n<\/td>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>PV: R <\/p>\n<\/td>\n<td>\n<p>10 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-008.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-009.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-010.png\" \/><\/p>\n<p>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. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>7.UDCTR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>PSU<\/p>\n<\/td>\n<td>\n<p>CV :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>CUP<\/p>\n<\/td>\n<td>\n<p>LD <\/p>\n<\/td>\n<td colspan=\"6\">\n<p>OPEN <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"12\">\n<p>LD <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>U\/D<\/p>\n<\/td>\n<td>\n<p>PV :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>10<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>7 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"12\">\n<p>X1<\/p>\n<\/td>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>CV: R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"12\">\n<p>CLR<\/p>\n<\/td>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>PV: R <\/p>\n<\/td>\n<td>\n<p>10 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"18\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>4.2.3Output Coil and Inverse Output Coil<\/p>\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<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>NOT <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>OUT <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-011.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-012.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y1 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-013.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>4.2.4Retentive Output Coil <\/p>\n<p>The coil element can be categorized into two types, namely Retentive and Non Retentive. For example, M0~M799 can be specified as the Retentive coils and M800~M1399 can be specified as the Non Retentive coils. One way to categorize the relay type is to divide the relays into groups. Though this method is simple but for the most applications the coils needed to be retentive may be in a random order. FBs-PLC allows user to set the retentive status of coil individually. When input the program with mnemonics instructions, if put an \u201cL\u201d after the OUT instruction can declare this specific relay as retentive output. This can be shown in the diagram below. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>X0 \tX0 \tY0 \tORG \tX \t0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"8\">\n<p>L<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>OR <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Y <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"12\">\n<p>AND <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>NOT <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"14\">\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>L <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\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 , Y0 status will be OFF. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-014.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-015.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-016.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-017.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-018.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-019.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-020.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-021.png\" \/><\/p>\n<h4>4.2.5Set 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 <\/p>\n<p>below. <\/p>\n<p>ORG \tX0 <\/p>\n<p>OUTS \tY0 <\/p>\n<p>ORG \tX1 <\/p>\n<p>OUTR \tY0 <\/p>\n<p>X0<\/p>\n<p>SET<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>X1<\/p>\n<\/td>\n<td>\n<p>RST<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y0<\/p>\n<p>4.3Node Operation Instructions <\/p>\n<p>A node is the connection between elements in a ladder diagram consisting of sequential instruction elements (please <\/p>\n<p>refer to Section 1.2). There are four instructions dedicated for node status operation in FBs-PLC. The two instructions, <\/p>\n<p>\u201cOUT TR\u201d and \u201cLD TR\u201d, have been discussed in Section 1.6 of this manual. Using the diagram below, the three node <\/p>\n<p>operation instructions NOT, TU and TD, are illustrated. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Node B<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AND <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>NOT <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TR <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>TU <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Node A<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y1<\/p>\n<\/td>\n<td>\n<p>OUT <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LD <\/p>\n<\/td>\n<td>\n<p>TR <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>TD <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>OUT <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-004\/fbs-ins-en-004-022.png\" \/><\/p>\n<p>X0<\/p>\n<p>X1<\/p>\n<p>Node  A<\/p>\n<p>Incerse \tInverse<\/p>\n<p>Node  B<\/p>\n<p>differential down \tdifferential up<\/p>\n<p>Y0<\/p>\n<p>t<\/p>\n<p>Y1<\/p>\n<p>t<\/p>\n<p>t : Scan time<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chapter 4 Sequential Instructions The sequential instru [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-3431","post","type-post","status-publish","format-standard","hentry","category-en-fbs-ins"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3431","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=3431"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3431\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}