{"id":3433,"date":"2026-11-17T21:35:21","date_gmt":"2026-11-17T13:35:21","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/fbs-ins-en-006\/"},"modified":"2026-11-17T21:35:21","modified_gmt":"2026-11-17T13:35:21","slug":"fbs-ins-en-006","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/fbs-ins-en-006\/","title":{"rendered":"Chapter 6 Basic Function Instruction"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-001.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-002.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-003.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-004.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-005.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>T <\/p>\n<\/td>\n<td>\n<p>TIMER <\/p>\n<\/td>\n<td>\n<p>T <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-006.png\" \/>Operand <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-007.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-008.png\" \/><\/p>\n<p>Tn: Timer Number <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-009.png\" \/><\/p>\n<p> TB: Time Base (0.01S, 0.1S, 1S) <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-010.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-011.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-012.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-013.png\" \/>\t<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-014.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-015.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-016.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-017.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-018.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-019.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-020.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-021.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>HR<\/p>\n<\/td>\n<td colspan=\"8\">\n<p>PV:  Preset value of the timer. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Range <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WX <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WY <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>TMR<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>CTR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>R0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3840<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3904<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3968<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>R5000 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>T0 <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>C0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>WS984<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>T255<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R8071 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D4095 <\/p>\n<\/td>\n<td>\n<p>32767 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>Tn <\/p>\n<\/td>\n<td colspan=\"7\">\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>\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 colspan=\"3\" rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>PV <\/p>\n<\/td>\n<td colspan=\"2\">\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 colspan=\"4\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The total number of timers is 256 (T0\uff5eT255) with three different time bases, 0.01S, 0.1S and 1S.The default number and allocation of timers is shown as below (Can be adjusted according to user\u2019s actual requirements by the \u201cConfiguration\u201d function): <br \/>\tT0\uff5eT49\uff1a0.01S timer\uff08default as 0.00\uff5e327.67S\uff09\u3002<\/p>\n<p>\tT50\uff5eT199\uff1a0.1S timer\uff08default as 0.0\uff5e3276.7S\uff09\u3002<\/p>\n<p>T200\uff5eT255\uff1a1S timer\uff08default as 0\uff5e32767S\uff09\u3002<\/p>\n<p>\tFBs-PLC programming tool will lookup the timer\u2019s time base automatically according to the \u201cMemory \tConfiguration\u201d after the timer number is keyed in. Timer\u2019s time = Time base x Preset value. In the example \t1 below, the time base T0 = 0.01S and the PV value = 1000, therefore the T0 timer\u2019s time = 0.01S x 1000 = 0S. <\/p>\n<p>\tIf PV is a register, then Timer\u2019s time = Time base x register content. Therefore, you only need to change \tthe register content to change the timer\u2019s time. Please refer to Example 2. <\/p>\n<p>\tThe maximum error of a timer is a time base plus a scan time. In order to reduce the timing error in the \tapplication, please use the timer with a smaller time base. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>n the time control \u201cEN\u201d is 1, the timer will start timing (the current value will accumulate from 0) until e Up\u201d (i.e. CV\u2267PV), then the Tn contact and TUP (FO0) will change to 1. As long as the timer control  input is kept as 1, even the CV of Tn has reached or exceeded the PV, the CV of the timer will nue accumulating (with M1957 = 0) until it reaches the maximum limit (32767). The Tn contact status flag will remain as 1 when CV\u2267PV, unless the \u201cEN\u201d input is 0. When \u201cEN\u201d input is 0, the CV of Tn will set to 0 immediately and the Tn contact and \u201cTime Up\u201d flag TUP will also change to 0 (please refer to \tthe diagram c below). <\/p>\n<p>e FBS-PLC OS version is higher than V3.0 (inclusive), the M1957 can be set to 1 so the CV will not mulate further after \u201cTime Up\u201d and stops at the PV value. The default value of the M1957 is 0, fore the status of M1957 can be set before executing any timer instruction in the program to idually set the timer CV to continue accumulating or stop at the PV after \u201cTime Up\u201d (please refer to the \tdiagram d below). <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-022.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>T <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Constant preset value <\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TIMER <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>X1<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Key operations <\/p>\n<\/td>\n<td>\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>ORG    X  1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>.01S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>1000<\/p>\n<\/td>\n<td>\n<p>TUP<\/p>\n<\/td>\n<td>\n<p>T0    PV:   1000 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>P<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>SET<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1957<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>TUP<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>OUT<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FO       0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>.01S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1000<\/p>\n<\/td>\n<td>\n<p>OUT     Y  0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>ORG SHORT <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>SET      M1957 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>An example of taking <\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>ORGX1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u201cTime-Up\u201d signal directly from FO0. <\/p>\n<p>X1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"10\">\n<p>Example 2 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>c<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>or<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1000<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>CV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(CV)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>M1957=0 <\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>1000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(Defaulted) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(CV)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>M1957=1 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Time Start<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Time-Up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Variable PV <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The preset value (PV) shown in example 1 is a constant which is equal to 1000. This value is fixed and can not be changed once programmed. In many circumstances, the preset time of the timers needs to be varied while PLC running. In order to change the preset time of a timer, can first use a register as the PV operand (R or WX, WY&#8230;) and then the preset time can be varied by changing the register content. As shown in this example, if set R0 to100, then T becomes a 10S Timer, and hence if set R0 to 200, then T becomes a 20S Timer. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-023.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>T <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td>\n<p>TIMER <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Mnemonic code <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Key operations <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>.1S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R      0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TUP<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>ORG     X 1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>T50<\/p>\n<\/td>\n<td>\n<p>T50<\/p>\n<\/td>\n<td>\n<p>T  50   PV:  R  0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>ORG       T50 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>An example of applying <\/p>\n<\/td>\n<td>\n<p>OUT  Y  0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>the \u201ctime-up\u201d status by <br \/>using the T50 contact. <\/p>\n<p>X1<\/p>\n<p>\t\t\t\t200 \t\t\t100 <br \/>\tT50 0 <br \/>(current value)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>c<\/p>\n<\/td>\n<td>\n<p>When R0=100<\/p>\n<\/td>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>10.0S<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>c<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>20.0S<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>d<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Time-Up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>When R0=200<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Time Start<\/p>\n<\/td>\n<td>\n<p>Time-Up<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><strong>Remark:<\/strong> If the preset value of the timer is equal to 0, then the timer&#8217;s contact status and FO0 (TUP) become 1 (&quot;EN&quot; input must be at 1) immediately after the PLC finishes its first scan because &quot;Time-Up&quot; has occurred. (TUP) stays at 1 until &quot;EN&quot; input changes to 0. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-024.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-025.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-026.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-027.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-028.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-029.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-030.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>C <\/p>\n<\/td>\n<td>\n<p>COUNTER <br \/>\uff0816-Bit: C0\uff5eC199\uff0c32-Bit: C200\uff5eC255\uff09<\/p>\n<\/td>\n<td>\n<p>C <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-031.png\" \/>Operand <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-032.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-033.png\" \/><\/p>\n<p>Cn: The Counter number <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-034.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-035.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>WY<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>WM <\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-036.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-037.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-038.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-039.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-040.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-041.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-042.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-043.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-044.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>IR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>PV: Preset value<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>DR <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>K <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-045.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-046.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS <\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>HR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ROR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>C0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000 <\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>e- <\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>d <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>C255<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071 <\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<td>\n<p>2147483647<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Cn <\/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 colspan=\"4\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\" 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>\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 colspan=\"2\">\n<p>PV <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>e are total 200 16-Bit counters (C0~C199). The range of preset value is between 0~32767. C0~C139 Retentive Counters and the CV value will be retained when the PLC turns on or RUN again after a er failure or a PLC STOP. For Non Retentive Counters, if a power failure or PLC STOP occurs, the CV value will be reset to 0 when the PLC turns on or RUN again. <\/p>\n<p>e are total 56 32-Bit counters (C200~C255). The range of the preset value is between 0~2147483647. \tC200~C239 are Retentive Counters and C240~C255 are Non Retentive Counters. <\/p>\n<p>\tdefault number and assignment of the counters are shown below, if necessary can use the \t&quot;CONFIGURATION&quot; function to change the settings. <\/p>\n<p>\tTo insure the proper counting, the sustain time of input status of CLK should greater than 1 scan time. <\/p>\n<p>\tmax. counting frequency with this instruction can only up to 20Hz, for higher frequency please use the \thigh-speed soft\/hardware counter. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>\tn &quot;CLR&quot; is at 1, all of the contact Cn, FO0 (CUP), and CV value of the counter CV are cleared to 0 and \tthe counter stops counting. <\/p>\n<p>n &quot;CLR&quot; is at 0, the counter is allowed to count up. The Counter counts up every time the clock &quot;CK\u2191&quot; ges from 0 to 1 (adds 1 to the CV) until the cumulative current value is equal to or greater than the et value (CV&gt;=PV), the counter &quot;Count-Up&quot; and the contact status of the counter Cn and FO0 (CUP) ges to 1. If the input status of clock continues to change, even the cumulative current value is equal greater than the preset value, the CV value will still accumulate until it reaches the up limit at 32767 or 483647. The contact Cn and FO0 (CUP) stay at 1 as long as CV&gt;=PV unless the &quot;CLR&quot; input is set to \t1.\uff08please refer the diagram c below\uff09\u3002<\/p>\n<p>e FBS-PLC OS version is higher than V3.0 (inclusive), the M1973 can set to 1 so the CV will not mulate further after  \u201cCount Up\u201d and stops at the PV. M1973 default value is 0, therefore the status of 73 can be set before executing any counter instruction in the program to individually set the counter \tCV to continue accumulating or stops at the PV after \u201cCount Up\u201d (please refer to the diagram d below). <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-047.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>C <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>COUNTER <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>C <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>\uff0816-Bit: C0\uff5eC199, 32-bit: C200\uff5eC255\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Example 1 <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>16-Bit Fixed Counter <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td>\n<p>Key operations <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>SHORT <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>RST<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>M1973<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>RST <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>M1973 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Y1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>X <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>C    1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CUP<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PSU<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PV :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>LD<\/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=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CLR<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>C    1   PV:  5 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>X0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SET<\/p>\n<\/td>\n<td>\n<p>M1973<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>OUT<\/p>\n<\/td>\n<td>\n<p>FO <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>X1<\/p>\n<\/td>\n<td>\n<p>PSU<\/p>\n<\/td>\n<td>\n<p>C     2<\/p>\n<\/td>\n<td>\n<p>CUP<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Y<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>PV :<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>CLR<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>SHORT <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>An example of applying <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>SET <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>M1973 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\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 colspan=\"3\">\n<p>the \u201cCount-Up\u201d status by <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>LD<\/p>\n<\/td>\n<td>\n<p>LD <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>using FO0 directly. <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>C    2   PV:  5 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>X0<\/p>\n<p>X1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>c<\/p>\n<\/td>\n<td>\n<p>C1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>32766<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>32767<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\" rowspan=\"2\">\n<p>32767 times<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>M1973=0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\" rowspan=\"2\">\n<p>5 times<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>(Defaulted) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\">\n<p>Y1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>C2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>3<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>(CV)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>M1973=1 <\/p>\n<\/td>\n<td colspan=\"10\">\n<p>C2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Example 2 <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Count Start<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Count-Up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\">\n<p>32-Bit counter with variable preset value <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Like a timer, if the PV of a counter is changed to a register (such as R, D, and so on), the counter will use the register contents as the counting PV. Therefore, only need to change the register contents to change the PV of the counter while PLC is running. Below is an example of a 32-bit counter that uses the data register R0 as the PV (in fact it is the 32-bit PV formed by R1 and R0). <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-048.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"10\">\n<p>C <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>COUNTER <\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"3\">\n<p>Mnemonic code <\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>C <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>\uff0816-Bit: C0\uff5eC199, 32-Bit: C200\uff5eC255\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td>\n<p>Key operations <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>C200<\/p>\n<\/td>\n<td>\n<p>CUP<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"2\">\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>X1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CLR<\/p>\n<\/td>\n<td>\n<p>PV :<\/p>\n<\/td>\n<td>\n<p>R      0<\/p>\n<\/td>\n<td>\n<p>LD<\/p>\n<\/td>\n<td>\n<p>LD<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>C200<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Y1<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>C200 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"3\">\n<p> PV:  R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>C<\/p>\n<\/td>\n<td>\n<p>200 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>OUT<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Y<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>An example of applying <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>the \u201ctime-up\u201d status by <br \/>using the C200 contact. <\/p>\n<p>X0<\/p>\n<p>X1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>c<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>(R1=0)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>C200<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>1<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>4<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>5<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>6<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>7<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>8<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>9<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>10<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>11<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>12<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>13<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>14<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>4 times<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Y1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>When R0=4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>d<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>When R0=9<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y1<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Count Start<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>9 times<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Count-Up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Count-Up<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><strong>Remark:<\/strong> If the preset value of the counter is 0 and &quot;CLR&quot; input also at 0, then the Cn contact status and FO0 (CUP) becomes 1 immediately after the PLC finishes its first scan because the &quot;Count-Up&quot; has occurred. It will stay at 1 regardless how the CV value varies until &quot;CLR&quot; input changes to 1. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-049.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-050.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-051.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-052.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-053.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-054.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-055.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-056.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-057.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\"><\/td>\n<td colspan=\"2\">\n<p>SET DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-058.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>SET <br \/>(Set coil or all the bits of register to 1) <\/p>\n<\/td>\n<td>\n<p>SET DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-059.png\" \/><\/p>\n<\/td>\n<td rowspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\" rowspan=\"2\">\n<p>Symbol <\/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\/fbs-ins-en-006\/fbs-ins-en-006-060.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-061.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-062.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-063.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>D: destination to be set <\/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\/fbs-ins-en-006\/fbs-ins-en-006-064.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-065.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SM <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WY<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TMR<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>(the number of a coil or a register) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>M<\/p>\n<\/td>\n<td>\n<p>CTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR <\/p>\n<\/td>\n<td>\n<p>ROR <\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>pe- <\/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>WY0<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968 <\/p>\n<\/td>\n<td>\n<p>R5000 <\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>nd <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Y255 <\/p>\n<\/td>\n<td>\n<p>M1911 <\/p>\n<\/td>\n<td>\n<p>M2001 <\/p>\n<\/td>\n<td>\n<p>S999 <\/p>\n<\/td>\n<td>\n<p>WY240<\/p>\n<\/td>\n<td>\n<p>WM1896<\/p>\n<\/td>\n<td>\n<p>WS984<\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167 <\/p>\n<\/td>\n<td>\n<p>R8071 <\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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>\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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"6\" rowspan=\"2\">\n<p>Description <\/p>\n<p>he set control &quot;EN&quot; =1 or from 0 \u2192 1 ( P instruction ), sets the bit of a coil or all bits of a register to 1.<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td rowspan=\"4\"><\/td>\n<td colspan=\"6\"><\/td>\n<td rowspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Example 1 <\/p>\n<\/td>\n<td>\n<p>Single Coil Set <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Ladder Diagram <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>P<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>SET<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>P<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>RST<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td>\n<p>am Key Operations <\/p>\n<p>ORG<\/p>\n<p>Y     0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Y     0<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td>\n<p>Mnemonic C<\/p>\n<p>ORG \tX <\/p>\n<p>SET   P \tY <\/p>\n<p>ORG \tX <\/p>\n<p>RST   P \tY <\/p>\n<\/td>\n<td>\n<p>odes <\/p>\n<p>0 <\/p>\n<p>0 <\/p>\n<p>1 <\/p>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>X0 <br \/>\tSET<\/p>\n<p>X1<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>RST<\/p>\n<p>Y0<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-066.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>SET DP<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>Set 16-Bit Register <\/p>\n<\/td>\n<td>\n<p>SET <\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"3\">\n<p>SET DP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(Set coil or all the bits of register to 1) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>P<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SET<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R      0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>B15 <\/p>\n<\/td>\n<td>\n<p>SET   P <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"13\">\n<p>Example 3 <\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"4\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"8\" rowspan=\"2\">\n<p>\u00d8X0\uff1d\u2022<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>32-Bit Register Set <\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>R1 <\/p>\n<\/td>\n<td colspan=\"8\" rowspan=\"2\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>D<\/p>\n<\/td>\n<td colspan=\"8\" rowspan=\"5\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\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>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SET<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R      0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>SET  D <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>B31 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>1 0 1 10 1 1 0 1 0111011111101011 0 1 1 0 0 0 1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d1 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>1 1 1 11 1 1 1 1 1111111111111111 1 1 1 1 1 1 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-006\/fbs-ins-en-006-067.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-068.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-069.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-070.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-071.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-072.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-073.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-074.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-075.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-076.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"7\"><\/td>\n<td colspan=\"2\">\n<p>RST DP<\/p>\n<\/td>\n<td>\n<p>RESET <br \/>(Reset the coil or the register to 0) <\/p>\n<\/td>\n<td>\n<p>RST DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-077.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-078.png\" \/>Operand <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-079.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-080.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-081.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>D: Destination to be reset <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WY<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TMR<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>(the number of a coil or a register) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>M <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SM <\/p>\n<\/td>\n<td>\n<p>CTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR <\/p>\n<\/td>\n<td>\n<p>ROR <\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Y0 <\/p>\n<\/td>\n<td>\n<p>M0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1912 <\/p>\n<\/td>\n<td>\n<p>S0 <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<\/td>\n<td>\n<p>T0 <\/p>\n<\/td>\n<td>\n<p>C0 <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3904 <\/p>\n<\/td>\n<td>\n<p>R3968 <\/p>\n<\/td>\n<td>\n<p>R5000 <\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>&#8211; <\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>d <\/p>\n<\/td>\n<td>\n<p>Y255 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1911<\/p>\n<\/td>\n<td>\n<p>M2001 <\/p>\n<\/td>\n<td>\n<p>S999 <\/p>\n<\/td>\n<td>\n<p>WY240<\/p>\n<\/td>\n<td>\n<p>WM1896<\/p>\n<\/td>\n<td>\n<p>WS984<\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3967 <\/p>\n<\/td>\n<td>\n<p>R4167 <\/p>\n<\/td>\n<td>\n<p>R8071 <\/p>\n<\/td>\n<td>\n<p>D4095<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\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>\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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>\u25cfWhen the reset control &quot;EN&quot; =1 or from 0 \u2192 1 ( P instruction ), resets the coil or register to 0. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example 1 <\/p>\n<p>Single Coil Reset <\/p>\n<p>Please refer to example 1 for the SET instruction shown in page 6-8. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"4\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example 2 <\/p>\n<p>16-Bit Register Reset <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>RST  P <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-082.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>RST DP<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>R0 <\/p>\n<\/td>\n<td colspan=\"10\">\n<p>RESET <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>B0 <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>RST DP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\">\n<p>(Reset the coil or register to 0) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\">\n<p>B15 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\">\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>Example 3 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>0 0<\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>32-Bit Register Reset <\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>Key Operations <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>D<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>WM1368<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>ORG<\/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 colspan=\"3\" rowspan=\"2\">\n<p>RST   D WM1368 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>RST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>M1399 <\/p>\n<\/td>\n<td>\n<p>WM1384 <\/p>\n<\/td>\n<td>\n<p>WM1368 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>M1368 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM1368 <\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>0 1 10 1 1 1 0 00001101110111011 1 0 1 1 1 01<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>WM1368 <\/p>\n<\/td>\n<td>\n<p>0 0 00 0 0 0 0 00000000000000000 0 0 0 0 0 00<\/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-006\/fbs-ins-en-006-083.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-084.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MASTER CONTROL LOOP START <\/p>\n<\/td>\n<td>\n<p>FUN 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MC <\/p>\n<\/td>\n<td>\n<p>MC <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>Symbol <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Master control<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-085.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ladder symbol <\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-086.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>0.<\/p>\n<\/td>\n<td>\n<p>N: Master Control Loop number (N=0~127) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MC<\/p>\n<\/td>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>the number N cannot be used repeatedly. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>Description <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cf<\/p>\n<\/td>\n<td>\n<p>There are a total of 128 MC loops (N=0~127).  Every Master Control Start instruction, MC N, must <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>correspond to a Master Control End instruction, MCE N, which has the same loop number as MC N. They must always be used in pairs and you should also make sure that the MCE N instruction is after the MC N instruction. <\/p>\n<p>\u25cf\tWhen the Master Control input &quot;EN\/&quot; is 1, then this MC N instruction will not be executed, as it does not \texist. <\/p>\n<p>\u25cf\tWhen the Master Control input &quot;EN\/&quot; is 0, the master control loop is active, the area between the MC N \tand MCE N is called the Master Control active loop area. All the status of OUT coils or Timers within \tMaster Control active loop area will be cleared to 0. Other instructions will not be executed. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>0.<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"9\"><\/td>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>MC<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>X1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> N\uff1a<\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>X2<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>1S<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Y1<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>ORG <\/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 rowspan=\"2\">\n<p>OUT<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"3\">\n<p>T201<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T201<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>T201  PV\uff1a<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>1.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MCE<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y2<\/p>\n<\/td>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>T <\/p>\n<\/td>\n<td>\n<p>201<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT<\/p>\n<\/td>\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<tr>\n<td rowspan=\"4\"><\/td>\n<td rowspan=\"4\"><\/td>\n<td rowspan=\"4\"><\/td>\n<td rowspan=\"4\"><\/td>\n<td rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>FUN <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> N\uff1a<\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT<\/p>\n<\/td>\n<td>\n<p>OUT <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>2<\/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-006\/fbs-ins-en-006-087.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MASTER CONTROL LOOP START <\/p>\n<\/td>\n<td>\n<p>FUN 0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MC <\/p>\n<\/td>\n<td>\n<p>MC <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>X0<\/p>\n<p>X1<\/p>\n<p>X2<\/p>\n<p>10<\/p>\n<p>T201 \t0<\/p>\n<p>Y0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Y1<\/p>\n<\/td>\n<td>\n<p>10S<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y2<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Remark1:MC\/MCE instructions can be used in nesting or <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>MC<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0.<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>interleaving as shown to the right: <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MC<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Remark2:\u2027When M1918=0 and the master input changes from <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>0\u21921, and if pulse type function instructions exist in <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>MC<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0.<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>the master control loop, then these instructions will <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MC<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>have a chance to be executed only once (when the <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>first time the master control input changes from 0\u21921). <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X2<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MC<\/p>\n<\/td>\n<td>\n<p>0.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Afterwards, no matter how many times the master <\/p>\n<\/td>\n<td>\n<p>MC<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>control input changes from  0\u21921, the pulse type <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>function instructions will not be executed again.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MC<\/p>\n<\/td>\n<td>\n<p>1.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2027 When M1918=1 and the master control input <\/p>\n<\/td>\n<td>\n<p>MC<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>changes from 0 \u21921, and if pulse type function <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>instructions  exist in the master control loop, then <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MC<\/p>\n<\/td>\n<td>\n<p>1.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>each time the master control input changes from 0\u2192<\/p>\n<\/td>\n<td>\n<p>MC<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>1 the pulse type function instructions in the master <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>control loop will be executed as long as the action <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>MC<\/p>\n<\/td>\n<td>\n<p>1.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>conditions are satisfied.<\/p>\n<\/td>\n<td>\n<p>MC<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2027When a counting instruction exists in the master <\/p>\n<p>control loop, set M1918 to 0 can avoid counting error. <\/p>\n<p>\u2027When the pulse type function instructions in the <\/p>\n<p>master control loop must act upon the 0\u21921 input <\/p>\n<p>change by the master control, the flag M1918 should <\/p>\n<p>be set to 1. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-088.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 1 <br \/>MCE <\/p>\n<\/td>\n<td>\n<p>MASTER CONTROL LOOP END <\/p>\n<\/td>\n<td>\n<p>FUN 1 <br \/>MCE <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-089.png\" \/>Ladder symbol <\/p>\n<p>1.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-090.png\" \/>Operand <\/p>\n<p>N: Master Control End number (N=0~127) N <\/p>\n<p>can not be used repeatedly. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MCE<\/p>\n<\/td>\n<td>\n<p>N<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>y MCE N must correspond to a Master Control Start instruction. They must always be used as a pair you should also make sure that the MCE N instruction is after the MC N instruction. After the MC N uction has been executed, all output coil status and timers will be cleared to 0 and no other instructions e executed. The program execution will resume until a MCE instruction which has the same N number \tas MC N instruction appears. <\/p>\n<p> instruction does not require an input control because the instruction itself forms a network which other uctions can not connect to it. If the MC instruction has been executed then the master control operation e completed when the execution of the program reaches the MCE instruction. If MC N instruction has \tnever been executed then the MCE instruction will do nothing. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>\tPlease refer to the example and explanations for MC instruction. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-091.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-092.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 2 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SKIP START<\/p>\n<\/td>\n<td>\n<p>FUN 2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SKP<\/p>\n<\/td>\n<td>\n<p>SKP<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Symbol <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Skip control<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-093.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ladder symbol <\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-094.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>2.<\/p>\n<\/td>\n<td>\n<p>N: Skip loop number (N=0~127), <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SKP<\/p>\n<\/td>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>N can not be used repeatedly. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>Description <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cf<\/p>\n<\/td>\n<td>\n<p>There are total 128 SKP loops (N=0~127). Every skip start instruction, SKP N, must correspond to a skip <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>end instruction, SKPE N, which has the same loop number as SKP N. They must always be used as a pair and you should also make sure that the SKPE N instruction is after the SKP N instruction. <\/p>\n<p>\u25cf\tWhen the skip control &quot;EN&quot; is 0, then the Skip Start instruction will not be executed. <\/p>\n<p>\u25cf\tWhen the skip control &quot;EN&quot; is 1, the range between the SKP N and SKPE N which is so called the Skip \tactive loop area will be skipped, that is all the instructions in this area will not be executed. Therefore the \tstatuses of the discrete or registers in this Skip active loop area will be retained. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example <\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"13\"><\/td>\n<td rowspan=\"3\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>2.<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"13\"><\/td>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>SKP<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>X2<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>1S<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Y1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td>\n<p> N\uff1a<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>T201<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>10<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OUT<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>T201<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>X1<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>3.<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Y2<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T201  PV\uff1a<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"8\">\n<p>SKPE<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>T <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>201<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\"><\/td>\n<td rowspan=\"5\"><\/td>\n<td rowspan=\"5\"><\/td>\n<td rowspan=\"5\"><\/td>\n<td rowspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>3 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> N\uff1a<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OUT<\/p>\n<\/td>\n<td>\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td>\n<p>2<\/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-006\/fbs-ins-en-006-095.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 2 <br \/>SKP<\/p>\n<\/td>\n<td>\n<p>SKIP START<\/p>\n<\/td>\n<td>\n<p>FUN 2 <br \/>SKP <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>X0<\/p>\n<p>X1<\/p>\n<p>X2<\/p>\n<p>10<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>T201<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y0<\/p>\n<p>10S<\/p>\n<p>Y1<\/p>\n<p>Y2<\/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-006\/fbs-ins-en-006-096.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 3 <br \/>SKPE <\/p>\n<\/td>\n<td>\n<p>SKIP END <\/p>\n<\/td>\n<td>\n<p>FUN 3 <br \/>SKPE <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol <\/p>\n<p>Operand <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Ladder symbol <br \/>3.<\/p>\n<\/td>\n<td>\n<p>N\uff1a SKIP END Loop number (N=0~127) N <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>can not be used repeatedly. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SKPE<\/p>\n<\/td>\n<td>\n<p>N<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>y SKPE N must correspond to a SKP N instruction. They must always be used as a pair and you \tshould also make sure that the SKPE N instruction is behind the SKP N instruction. <\/p>\n<p>E instruction does not require an input control because the instruction itself forms a network which r instructions can not connect to it. If the SKP N instruction has been executed then the skip operation e completed when the execution of the program reaches the SKPE N instruction. If SKP N instruction \thas never been executed then the SKPE instruction will do nothing.<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example <\/p>\n<p>\u25cf Please refer to the example and explanations for SKP N instruction. <\/p>\n<p>SKP\/SKPE instructions can be used by nesting or interleaving. The coding rules are the same as for <\/p>\n<p>the MC\/MCE instructions. Please refer to the section of MC\/MCE instructions. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-097.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-098.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-099.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-100.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-101.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-102.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-103.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-104.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-105.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>FUN 4 <br \/>DIFU<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>DIFFERENTIAL UP<\/p>\n<\/td>\n<td>\n<p>FUN 4 <br \/>DIFU<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"7\"><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"8\" rowspan=\"2\">\n<p>Symbol <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-106.png\" \/>Operand <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-107.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-108.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-109.png\" \/><\/p>\n<p>D: a specific coil number where the result of <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-110.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-111.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Range<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SM <\/p>\n<\/td>\n<td>\n<p>the Differential Up operation is stored. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Y0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1912<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>Y255<\/p>\n<\/td>\n<td>\n<p>M1911<\/p>\n<\/td>\n<td>\n<p>M2001<\/p>\n<\/td>\n<td>\n<p>S999<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"8\" rowspan=\"2\">\n<p>Description <\/p>\n<p>DIFU instruction is used to output the up differentiation of a node status (status input to &quot;TGU&quot;) and the e signal resulting from the status change at the rising edge of the &quot;TGU&quot; for one scan time is stored to a coil specified by D. <\/p>\n<p>\tThe functionality of this instruction can also be achieved by using a TU contact. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"8\" rowspan=\"2\">\n<p>Example <\/p>\n<p>The results of the following two samples are exactly the same <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder Diagram <\/p>\n<\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<td>\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"8\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td rowspan=\"4\"><\/td>\n<td><\/td>\n<td>\n<p>Exam \tX1<\/p>\n<\/td>\n<td>\n<p>ple<\/p>\n<p>T<\/p>\n<\/td>\n<td>\n<p> 1<\/p>\n<p>G<\/p>\n<\/td>\n<td>\n<p>\t4P.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>U<\/p>\n<\/td>\n<td>\n<p>DIFU<\/p>\n<\/td>\n<td>\n<p>Y      0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td>\n<p>ORG ORG <\/p>\n<p>FUN \tFUN <\/p>\n<p> D\uff1a<\/p>\n<\/td>\n<td>\n<p>X 4 <br \/>Y <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<p>0 <\/p>\n<\/td>\n<td rowspan=\"4\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Exam<\/p>\n<\/td>\n<td>\n<p>ple<\/p>\n<\/td>\n<td>\n<p> 2<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>ORG \tORG  TU <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>X<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>OUT OUT <\/p>\n<\/td>\n<td>\n<p>Y <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>X1 <br \/>t<\/p>\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>t : scan time<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"4\"><\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-112.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-113.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-114.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-115.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-116.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-117.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-118.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-119.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-120.png\" \/><\/p>\n<p>Basic Function Instruction<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\"><\/td>\n<td colspan=\"4\">\n<p>FUN 5 <strong>P<\/strong><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-121.png\" \/><\/p>\n<p>DIFD <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>DIFFERENTIAL DOWN <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN 5 P<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-122.png\" \/><\/p>\n<p>DIFD <\/p>\n<\/td>\n<td rowspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"10\" rowspan=\"2\">\n<p>Symbol <\/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\/fbs-ins-en-006\/fbs-ins-en-006-123.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-124.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-125.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-126.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>N: a specific coil number where the result of <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-127.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-128.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-129.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-130.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-131.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Range<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SM<\/p>\n<\/td>\n<td>\n<p>the Differential Down operation is stored. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M1912<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>Y255<\/p>\n<\/td>\n<td>\n<p>M1911<\/p>\n<\/td>\n<td>\n<p>M2001<\/p>\n<\/td>\n<td>\n<p>S999<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"10\" rowspan=\"2\">\n<p>Description <\/p>\n<p>DIFD instruction is used to output the down differentiation of a node status (status input to &quot;TGD&quot;) and pulse signal resulting from the status change at the falling edge of the&quot;TGD&quot; for one scan time is stored to a coil specified by D. <\/p>\n<p>\tThe functionality of this instruction can also be achieved by using a TD contact. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td rowspan=\"8\"><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"8\"><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Example <\/p>\n<\/td>\n<td colspan=\"7\" rowspan=\"2\">\n<p>The results of the following two samples are exactly the same <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>le 1 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>ORG<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>X1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TGD<\/p>\n<\/td>\n<td>\n<p>5P.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y      0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p> D\uff1a Y <\/p>\n<\/td>\n<td>\n<p>5 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DIFD<\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td rowspan=\"6\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p>E<\/p>\n<\/td>\n<td>\n<p>xam<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>E<\/p>\n<\/td>\n<td>\n<p>xam<\/p>\n<\/td>\n<td>\n<p>p<\/p>\n<\/td>\n<td>\n<p>le <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>X<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>OUT \tOUT <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\" rowspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td colspan=\"5\"><\/td>\n<td colspan=\"2\">\n<p>X1<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>t<\/p>\n<\/td>\n<td>\n<p>t : scan time<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y0<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-132.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-133.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-134.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-135.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-136.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-137.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-138.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-139.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-140.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-141.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-142.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-143.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-144.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-145.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-146.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-147.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-148.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-149.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-150.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-151.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-152.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-153.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-154.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-155.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-156.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-157.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-158.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-159.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-160.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-161.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-162.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-163.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-164.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-165.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 6 DP <\/p>\n<\/td>\n<td>\n<p>BIT SHIFT <\/p>\n<\/td>\n<td>\n<p>FUN 6 DP <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BSHF<\/p>\n<\/td>\n<td>\n<p>(Shifts the data of the 16-bit or 32-bit register to left or to right by one bit)<\/p>\n<\/td>\n<td>\n<p>BSHF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Symbol <\/p>\n<p>Operand <\/p>\n<p>D: The register number for shifting <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM<\/p>\n<\/td>\n<td>\n<p>WS<\/p>\n<\/td>\n<td>\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR <\/p>\n<\/td>\n<td>\n<p>OR <\/p>\n<\/td>\n<td>\n<p>SR <\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<\/td>\n<td>\n<p>T0 <\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3904 <\/p>\n<\/td>\n<td>\n<p>R3968 <\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>rand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>WY240<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM1896<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS984<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T255<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>C255<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3839 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3967 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R4167 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R8071<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D4095<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D <\/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<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<\/table>\n<\/div>\n<p>Description <\/p>\n<p>\u25cf\tWhen the status of clear control &quot;CLR&quot; is at 1, then the data of register D and FO0 will all be cleared to 0. <\/p>\n<p>Other input signals are all in effect. <\/p>\n<p>\u25cf\tWhen the status of clear control is &quot;CLR&quot; at 0, then the shift operation is permissible. When the shift control <\/p>\n<p>&quot;EN&quot; = 1 or from 0 \u21921 ( P instruction), the data of the register will be shifted to right (L\/R=0) or to left <\/p>\n<p>(L\/R=1) by one bit. The shifted-out bit (MSB when shift to left and LSB when shift to right) for both cases <\/p>\n<p>will be sent to FO0. The vacated bit space (LSB when shift to left and MSB when shift to right) due to shift <\/p>\n<p>operation will be filled in by the input status of fill-in bit &quot;INB&quot;. <\/p>\n<p>Example \tShifts the 16-bit register data <\/p>\n<p>Ladder diagram \tKey Operations \tMnemonic Codes <\/p>\n<p>ORG ORG \tX 1 <\/p>\n<p>X1 \t6P.BSHF \tY0 \tLD \tLD \tX \t2 <\/p>\n<p>EN \tD  : \tR \t3 \tOTB<\/p>\n<p>LD LD \tX \t3 <\/p>\n<p>X2<\/p>\n<p>INB \tLD \tLD \tX \t4 <\/p>\n<p>X3 \tFUN \tFUN \t6P <\/p>\n<p>L\/R<\/p>\n<p> D\uff1a R \t3 <\/p>\n<p>X4<\/p>\n<p>CLR \tFO \t0 <\/p>\n<p>OUT OUT \tY 0 <\/p>\n<p>B15 \tB0<\/p>\n<p>X3=1 <\/p>\n<p>\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190\u2190<\/p>\n<p>(Left shift) Y0 Shifts the 16-bit data to left by one bit \tX2 <\/p>\n<p>B15 \tB0<\/p>\n<p>X3=0 <\/p>\n<p>\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192\u2192<\/p>\n<p>(Right shift) X2 \tShifts the 16-bit data to right by one bit \tY0 <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-166.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-167.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-168.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-169.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-170.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-171.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-172.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-173.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-174.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-175.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-176.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-177.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-178.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-179.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-180.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-181.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-182.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-183.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-184.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-185.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-186.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-187.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-188.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-189.png\" \/><\/p>\n<p>Basic Function Instruction<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 7 DP <\/p>\n<\/td>\n<td>\n<p>UP\/DOWN COUNTER <\/p>\n<\/td>\n<td>\n<p>FUN 7 DP <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>UDCTR <\/p>\n<\/td>\n<td>\n<p>(16-bit or 32-bit up and down 2-phase Counter) <\/p>\n<\/td>\n<td>\n<p>UDCTR <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Symbol <\/p>\n<p>Operand <\/p>\n<p>CV: The number of the Up\/Down Counter <\/p>\n<p>PV: Preset value of the counter or it&#8217;s <\/p>\n<p>register number <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td>\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR <\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR <\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000 <\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>16\/32-bit <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>+\/\u2212 number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071 <\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CV <\/p>\n<\/td>\n<td rowspan=\"2\">\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=\"2\">\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=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PV <\/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>\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<\/table>\n<\/div>\n<p>Description <\/p>\n<p>\u25cf\tWhen the clear control \u201cCLR\u201d is 1, the counter\u2019s CV will be reset to 0 and the counter will not be able to \tcount. <\/p>\n<p>\u25cf\tWhen the clear control \u201cCLR\u201d is 0, counting will then be allowed. The nature of the instruction is a P \tinstruction. Therefore, when the count-pulse \u201cPLS\u201d is from 0\u21921 (rising edge), the CV will increased by 1 (if \tU\/D=1) or decreased by 1 (if U\/D=0). <\/p>\n<p>\u25cf\tWhen CV=PV, FO0(\u201cCount-Up) will change to 1\u201d. If there are more clocks input, the counter will continue \tcounting which cause CV\u2260PV. Then, FO0 will immediately change to 0. This means the \u201cCount-Up\u201d signal \twill only be equal to 1 if CV=PV, or else it will be equal to 0 (Care should be taken to this difference from \tthe \u201cCount-Up\u201d signal of the general counter). <\/p>\n<p>\u25cf\tThe upper limit of up count value is 32767 (16-bit) or 2147483647 (32-bit). After the upper limit is reached, \tif another up count clock is received, the counting value will become \u201332768 or -2147483648 (the lower \tlimit of down count). <\/p>\n<p>\u25cf\tThe lower limit of down count value is -32767 (16-bit) or -2147483647 (32-bit). After the lower limit is \treached, if another down count clock is received, the counting value will become 32768 or 2147483648 \t(the upper limit of up count). <\/p>\n<p>\u25cf\tIf U\/D is fixed as 1, the instruction will become a single-phase up count counter. If U\/D is fixed as 0, the \tinstruction will become a single-phase down count counter. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-190.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-191.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-192.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-193.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-194.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-195.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-196.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-197.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 7 DP UDCTR <\/p>\n<\/td>\n<td>\n<p>UP\/DOWN COUNTER <br \/>(16-bit or 32-bit up\/down 2-phase Counter) <\/p>\n<\/td>\n<td>\n<p>FUN 7 DP UDCTR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>X18<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>18 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>7P.UDCTR<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>LD<\/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=\"2\">\n<p>17 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PSU<\/p>\n<\/td>\n<td>\n<p>CV :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>CUP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>X17<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>U\/D<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>PV :<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>&#8211;<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>3<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>LD<\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>Down(subtract)<\/p>\n<\/td>\n<td>\n<p>LD <\/p>\n<\/td>\n<td>\n<p>X <\/p>\n<\/td>\n<td>\n<p>16 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>7 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"7\">\n<p>X16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p> CV\uff1a R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"4\">\n<p>CLR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>OUT<\/p>\n<\/td>\n<td>\n<p> PV\uff1a<\/p>\n<\/td>\n<td>\n<p>\u2212<\/p>\n<\/td>\n<td>\n<p>3 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FO <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>OUT <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>Up(add)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>X16<\/p>\n<p>X17<\/p>\n<p>X18<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>-1<\/p>\n<\/td>\n<td>\n<p>-2<\/p>\n<\/td>\n<td>\n<p>-3<\/p>\n<\/td>\n<td>\n<p>-4<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y0<\/p>\n<p><strong>Remark 1<\/strong>: Since the counting operation of UDCTR is implemented by software scanning, therefore if the clock speed is faster than the scan speed, lose count may then happen (generally the clock should not exceed 20Hz depending on the size of the program). Please use the software or hardware high-speed counter in the PLC. Refer to the \u201cHigh Speed Counter Application\u201d in the Advanced Manual. <\/p>\n<p><strong>Remark 2<\/strong>: In order to ensure the proper counting, the sustain time of the status of clock input should greater than 1 scan time. <\/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-006\/fbs-ins-en-006-198.png\" \/><\/p>\n<p>Basic Function Instruction<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 8 DP<\/p>\n<\/td>\n<td>\n<p>MOVE <\/p>\n<\/td>\n<td>\n<p>FUN 8 DP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MOV <\/p>\n<\/td>\n<td>\n<p>(Moves data from S to D) <\/p>\n<\/td>\n<td>\n<p>MOV <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p>Move control<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Ladder symbol <\/p>\n<\/td>\n<td>\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>8DP.MOV<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S: Source register number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D: Destination register number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>The S, N, D may combine with V, Z, P0~P9 to serve <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>indirect addressing <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR <\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>16\/32-bit <\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>+\/\u2212 number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S <\/p>\n<\/td>\n<td rowspan=\"2\">\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=\"2\">\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=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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>\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<\/table>\n<\/div>\n<p>Description <\/p>\n<p>\u25cf\tMove (write) the data of S to a specified register D when the move control input &quot;EN&quot; =1 or from 0 to 1 ( P \tinstruction). <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>Example <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Writes a constant data into a 16-bit register. <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ladder Diagram <\/p>\n<\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>ORG<\/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<\/table>\n<\/div>\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>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>8P.MOV<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>S <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>K <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>10 <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>FUN <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>8P <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>10 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R      0<\/p>\n<\/td>\n<td>\n<p> S\uff1a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p> D\uff1a R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R0<\/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-006\/fbs-ins-en-006-199.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 9 DP<\/p>\n<\/td>\n<td>\n<p>MOVE INVERSE <\/p>\n<\/td>\n<td>\n<p>FUN 9 DP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MOV\/<\/p>\n<\/td>\n<td>\n<p>(Inverts the data of S and moves the result to a specified device D)<\/p>\n<\/td>\n<td>\n<p>MOV\/<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Symbol <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p>Move control<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Ladder symbol <\/p>\n<\/td>\n<td>\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>9DP.MOV\/<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>S: Source register number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D: Destination register number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S, N, D may combine with V, Z, P0~P9 to serve <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>indirect addressing <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>16\/32-bit <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>V\u3001Z<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>+\/\u2212 number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3847<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<td>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S <\/p>\n<\/td>\n<td rowspan=\"2\">\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=\"2\">\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=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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>\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<\/table>\n<\/div>\n<p>Description <\/p>\n<p>\u25cf\tInverts the data of S (changes the status from 0 to 1 and from 1 to 0) and moves the results to a specified \tregister D when the move control input &quot;EN&quot; =1 or from 0 to1 ( P instruction). <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"8\">\n<p>Example <\/p>\n<\/td>\n<td colspan=\"8\">\n<p>Moves the inverted data of a 16-bit register to another 16-bit register. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"2\">\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 rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>9.MOV\/<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td>\n<p>R      0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>WY      8<\/p>\n<\/td>\n<td colspan=\"3\">\n<p> S\uff1a R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p> D\uff1a WY <\/p>\n<\/td>\n<td>\n<p>8 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>B15 <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>S <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>0 1 0 1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>5555H <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>WY8 <\/p>\n<\/td>\n<td>\n<p>Y23 <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>\u00d8X0\uff1d1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>1<\/p>\n<\/td>\n<td>\n<p>Y8 <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>AAAAH <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2193<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 0 1 0<\/p>\n<\/td>\n<td>\n<p>0<\/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-006\/fbs-ins-en-006-200.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-201.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-202.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-203.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-204.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-205.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-206.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 10 TOGG <\/p>\n<\/td>\n<td>\n<p>TOGGLE SWITCH <br \/>(Changes the output status when the rising edge of control input occur) <\/p>\n<\/td>\n<td>\n<p>FUN 10 TOGG <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-207.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-208.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-209.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-210.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>D: the coil number of the toggle switch <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-211.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-212.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>SM<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>S <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/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<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>Y255<\/p>\n<\/td>\n<td>\n<p>M1911<\/p>\n<\/td>\n<td>\n<p>M2001<\/p>\n<\/td>\n<td>\n<p>S999<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>coil D changes its status (from 1 to 0 and from 0 to 1) each time the input &quot;TGU&quot;is triggered from 0 to ing edge).<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>X0<\/p>\n<\/td>\n<td>\n<p>Ladder Diagram <\/p>\n<\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>10P.<\/p>\n<\/td>\n<td>\n<p>ORG<\/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<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>TGU<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TOGGY      0<\/p>\n<\/td>\n<td>\n<p>FUN <\/p>\n<\/td>\n<td>\n<p>10 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0<\/p>\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-006\/fbs-ins-en-006-213.png\" \/><\/p>\n<\/td>\n<td>\n<p> D\uff1a Y <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-214.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-215.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-216.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-217.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-218.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-219.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-220.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-221.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-222.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-223.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-224.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-225.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-226.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-227.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-228.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-229.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-230.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-231.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 11 DP <\/p>\n<\/td>\n<td>\n<p>ADDITION<\/p>\n<\/td>\n<td>\n<p>FUN 11 DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-232.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\uff08\uff0b\uff09<\/p>\n<\/td>\n<td>\n<p>(Performs addition of the data specified at Sa and Sb and stores the result in D)<\/p>\n<\/td>\n<td>\n<p>\uff08\uff0b\uff09<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"8\">\n<p>Symbol <\/p>\n<\/td>\n<td colspan=\"12\" rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-233.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-234.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-235.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"7\" rowspan=\"3\">\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"5\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-236.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-237.png\" \/><\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"5\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-238.png\" \/><\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>IR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-239.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\"><\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-240.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-241.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-242.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-243.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-244.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-245.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-246.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-247.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-248.png\" \/><\/p>\n<\/td>\n<td rowspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-249.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>Sa: Augend <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>Sb: Addend <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>D : Destination register to store the results <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-250.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-251.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-252.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-253.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-254.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-255.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-256.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-257.png\" \/><\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-258.png\" \/><\/p>\n<\/td>\n<td colspan=\"7\">\n<p>of the addition <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>Sa, Sb, D may combine with V, Z, P0~P9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\" rowspan=\"2\">\n<p>to serve indirect addressing <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>WY<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>WS <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-259.png\" \/>TMR<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>CTR<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>HR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Range <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>WX <\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"8\">\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>C0<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>R0<\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>16\/32-bit <\/p>\n<\/td>\n<td>\n<p> V\u3001Z<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>+\/\u2212 number <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>rand <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240<\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>C255<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sa <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"5\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sb <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>\u25cb<\/p>\n<\/td>\n<td rowspan=\"2\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"8\">\n<p>D <\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"5\">\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 colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>Description <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cf<\/p>\n<\/td>\n<td>\n<p>Performs the addition of the data specified at Sa and Sb and writes the results to a specified register D <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>when the add control input &quot;EN&quot; =1 orfrom 0 to 1 ( P instruction). If the result of addition is equal to 0 then set FO0 to 1. If carry occurs (the result exceeds 32767 or 2147483647) then set FO1 to 1. If borrow occurs (adding negative numbers resulting in a sum less than -32768 or -2147483648), then set the FO2 to 1. All the FO statuses are retained until this instruction is executed again and overwritten by a new result.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>16-bit addition <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"11\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>Y0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>11P.(+)<\/p>\n<\/td>\n<td colspan=\"2\">\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>EN<\/p>\n<\/td>\n<td>\n<p>Sa :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>OUT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>11P <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p> Sa\uff1a R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>CY<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> Sb\uff1a R <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"3\">\n<p>BR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> D\uff1a<\/p>\n<\/td>\n<td>\n<p>R <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>FO <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\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 colspan=\"3\">\n<p>Sa<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>12345 <\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>R0\uff0bR1\uff1d32770 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R1 <\/p>\n<\/td>\n<td>\n<p>20425 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>R2 <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<td>\n<p>32768+2=32770 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Y0\uff1d1  (carry 1 represents \uff0b32768) <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-260.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-261.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-262.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-263.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-264.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-265.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-266.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-267.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-268.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 12DP \uff08\u2212\uff09<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SUBTRACTION <br \/>(Performs subtraction of the data specified at Sa and Sb and stores the result in D)<\/p>\n<\/td>\n<td>\n<p>FUN 12DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-269.png\" \/><\/p>\n<p>\uff08\u2212\uff09<\/p>\n<\/td>\n<td rowspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>Symbol <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder symbol <\/p>\n<\/td>\n<td>\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>12DP.(-)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>ntrol<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Sa  :<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Sa: Minuend<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td rowspan=\"5\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-270.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-271.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Difference=0(FO0)<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>\/Sign<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Sb  :<\/p>\n<\/td>\n<td>\n<p>Sb: Subtrahend<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>CY<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Carry(FO1)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D : Destination register to store the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D   :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>results of the subtraction<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Sa, Sb, D may combine with V, Z, P0~P9<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>nge <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WX <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WY<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Borrow(FO2)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>IR<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>OR<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>to serve indirect addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>16\/32-bit <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p> V\u3001Z<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>&#8211; <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"3\">\n<p>+\/\u2212 number <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td rowspan=\"2\">\n<p>WX240 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WY240<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM1896 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS984 <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>T255<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>C255<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3839<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3903<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3967<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R4167<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R8071<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>a <\/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 colspan=\"2\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>b <\/p>\n<\/td>\n<td rowspan=\"2\">\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 colspan=\"2\">\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=\"2\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/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 colspan=\"2\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td>\n<p>Description <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cf\tPerf<\/p>\n<p>whe<\/p>\n<p>0 the<\/p>\n<\/td>\n<td>\n<p>orm n th n <\/p>\n<\/td>\n<td>\n<p>s the subtraction of th e subtract control inpu set FO0 to 1. If carry <\/p>\n<\/td>\n<td>\n<p>e data specified at Sa and Sb and writes the results to a specifie t &quot;EN&quot; =1 orfrom 0 to 1 ( P instruction). If the result of subtractio occurs (subtracting a negative number from a positive number a<\/p>\n<\/td>\n<td>\n<p>d register D n is equal to nd the result <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>exce <br \/>nega <br \/>the F<\/p>\n<\/td>\n<td>\n<p>ed tiv O <\/p>\n<\/td>\n<td>\n<p>s 32767 or 214748364 e number and the res statuses are retained <\/p>\n<\/td>\n<td>\n<p>7), then set FO1 to 1. If borrow occurs (subtracting a positive nu ulted difference is less than -32768 or -2147483648), then set F until this instruction is executed again and overwritten by a new re<\/p>\n<\/td>\n<td>\n<p>mber from a O2 to 1. All sult.<\/p>\n<\/td>\n<td rowspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>16-bit subtraction <\/p>\n<p>Ladder Diagram <\/p>\n<p>12P.(-)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Sa :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>U\/S<\/p>\n<\/td>\n<td>\n<p>Sb :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Sb R1 <\/p>\n<p>D R2 <\/p>\n<p>Y2\uff1d1\uff08<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>Y2<\/p>\n<\/td>\n<td>\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>12 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p> Sa\uff1a R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>CY<\/p>\n<\/td>\n<td colspan=\"4\">\n<p> Sb\uff1a R <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> D\uff1a<\/p>\n<\/td>\n<td>\n<p>R <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>BR<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>OUT<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>FO <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"4\">\n<p>OUT <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"4\">\n<p>Y <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\uff0d5 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>R0\uff0dR1\uff1d\uff0d32772 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>32767 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ladder Diagram <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"5\">\n<p>X0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>12P.(-)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>U\/S<\/p>\n<\/td>\n<td>\n<p>Sb :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D  :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sa<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Sb R1 <\/p>\n<p>D R2 <\/p>\n<p>Y2\uff1d1\uff08<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-272.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-273.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-274.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-275.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-276.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-277.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-278.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-279.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-280.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-281.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-282.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 13 DP \uff08\uff0a\uff09<\/p>\n<\/td>\n<td>\n<p>MULTIPLICATION <br \/>(Performs multiplication of the data specified at Sa and Sb and stores the result in D) <\/p>\n<\/td>\n<td>\n<p>FUN 13 DP \uff08\uff0a\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>n contro<\/p>\n<\/td>\n<td rowspan=\"3\"><\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Ladder symbol <\/p>\n<\/td>\n<td rowspan=\"3\"><\/td>\n<td rowspan=\"3\"><\/td>\n<td rowspan=\"3\">\n<p>Product=0(FO0)<\/p>\n<\/td>\n<td>\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>13DP.(*)<\/p>\n<\/td>\n<td>\n<p>Sa: Multiplicand<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa  :<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td rowspan=\"6\"><\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"6\"><\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>Sb: Multiplier<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>ign\/Sign<\/p>\n<\/td>\n<td rowspan=\"5\"><\/td>\n<td rowspan=\"4\">\n<p>Sb  :<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Product is negative<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D: Destination register to store the <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>D&lt;0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>results of the multiplication.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>Sa, Sb, D may combine with V, Z, <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(FO1)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>P0~P9 to serve indirect addressing<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>ge <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td>\n<p>TMR<\/p>\n<\/td>\n<td>\n<p>CTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"6\"><\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>16\/32-bit <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p> V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>+\/\u2212 number <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>WX240 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WY240<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WM1896 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>WS984 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>T255<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>C255<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3839<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3903<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R3967<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R4167<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R8071<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u25cb<\/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<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\"><\/td>\n<td rowspan=\"2\">\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=\"2\">\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=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/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<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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>orms the multiplication of the data specified at Sa and Sb and writes the results to a specified register en the multiplication control input &quot;EN&quot; =1 or from 0 to 1( P instruction). If the product of multiplication is equal to 0 then set FO0 to 1. If the product is a negative number, then set FO1 to 1. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example 1 <\/p>\n<p>16-bit multiplication <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>Sa<\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"5\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>13P.(*)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>13P <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Sa :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>D&lt;0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R0 <br \/>12345 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Multiplicand <\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Sa\uff1a R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Sb\uff1a R <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p> D\uff1a<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>\u00d7<\/p>\n<\/td>\n<td>\n<p>Sb<\/p>\n<\/td>\n<td>\n<p>R1 <br \/>4567 <\/p>\n<\/td>\n<td>\n<p>Multiplier <\/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-006\/fbs-ins-en-006-283.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R3 <\/p>\n<\/td>\n<td>\n<p>56379615 <\/p>\n<\/td>\n<td>\n<p>R2 <\/p>\n<\/td>\n<td>\n<p>Product <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-284.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-285.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-286.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-287.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-288.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-289.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-290.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>FUN 13 DP \uff08\uff0a\uff09<\/p>\n<\/td>\n<td>\n<p>MULTIPLICATION <br \/>(Performs multiplication of the data specified at Sa and Sb and stores the result in D) <\/p>\n<\/td>\n<td>\n<p>FUN 13 DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-291.png\" \/><\/p>\n<p>\uff08\uff0a\uff09<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\"><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Example 2 <\/p>\n<p>32-bit multiplication <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"6\" rowspan=\"2\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>Key Operations <\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>R0 <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>ORG <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>X <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\" rowspan=\"2\">\n<p>13D.(*)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>13D <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Sa :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>D&lt;0<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>R1 <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p> Sa\uff1a R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>R<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Sb\uff1a R <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p> D\uff1a R <\/p>\n<\/td>\n<td>\n<p>4 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\">\n<p>\u00d7<\/p>\n<\/td>\n<td>\n<p>Sa <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>12345678 <\/p>\n<\/td>\n<td>\n<p>Multiplicand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sb <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R3 <\/p>\n<\/td>\n<td>\n<p>R2 <\/p>\n<\/td>\n<td>\n<p>Multiplier <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R7 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R6 <\/p>\n<\/td>\n<td>\n<p>R5 <\/p>\n<\/td>\n<td>\n<p>R4 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Product <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>5629629168 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-292.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-293.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-294.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-295.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-296.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-297.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-298.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-299.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-300.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-301.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-302.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 14DP \uff08\uff0f\uff09<\/p>\n<\/td>\n<td>\n<p>DIVISION <br \/>(Performs division of the data specified at Sa and Sb and stores the result in D) <\/p>\n<\/td>\n<td>\n<p>FUN 14DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-303.png\" \/><\/p>\n<p>\uff08\uff0f\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Symbol <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>trol<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-304.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Ladder symbol <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-305.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Quotient=0 (FO0)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-306.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>14DP.(\/)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa  : <\/p>\n<\/td>\n<td>\n<p>Sa: Dividend <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>ign<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-307.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Sb  :<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>ERR<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-308.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Divisor is 0 (FO1)<\/p>\n<\/td>\n<td>\n<p>Sb: Divisor <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D : Destination register to store the results <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D   :<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>of the division. <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 <\/p>\n<p>to serve indirect addressing <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>nge <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\"><\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>16\/32-bit <\/p>\n<\/td>\n<td>\n<p> V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>+\/\u2212 number <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240<\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>a <\/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>\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>b <\/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>\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<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/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><\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>orms the division of the data specified at Sa and Sb and writes the quotient and remainder to registers ified by register D when the division control input &quot;EN&quot; =1 or from 0 to 1 ( P instruction). If the quotient of ion is equal to 0 then set FO0 to 1. If the divisor Sb=0 then set the error flag FO1 to 1 without executing nstruction.<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example 1 <\/p>\n<p>16-bit division <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"6\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>Sa<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\" rowspan=\"2\">\n<p>14P.(\/)<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>ORG<\/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 rowspan=\"2\">\n<p>FUN <\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>14 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa:<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sb:<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>ERR<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>R0 <br \/>256 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Dividend <\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Sa\uff1a R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>U\/S<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>D :<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>R<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Sb\uff1a R <\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p> D\uff1a<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u00f7<\/p>\n<\/td>\n<td>\n<p>Sb<\/p>\n<\/td>\n<td>\n<p>R1 <br \/>12 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Divisor <\/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-006\/fbs-ins-en-006-309.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td>\n<p>R3 <\/p>\n<\/td>\n<td>\n<p>R2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4 <\/p>\n<\/td>\n<td>\n<p>21 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Remainder<\/p>\n<\/td>\n<td>\n<p>Quotient <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-310.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-311.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-312.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-313.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-314.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-315.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-316.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-317.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 14DP <\/p>\n<\/td>\n<td colspan=\"12\">\n<p>DIVISION <\/p>\n<\/td>\n<td>\n<p>FUN 14DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-318.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\uff08\uff0f\uff09<\/p>\n<\/td>\n<td colspan=\"12\">\n<p>(Performs division of the data specified at Sa and Sb and stores the result in D) <\/p>\n<\/td>\n<td>\n<p>\uff08\uff0f\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2 <\/p>\n<\/td>\n<td colspan=\"13\">\n<p>32-bit division <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"8\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Ladder Diagram <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Key Operations <\/p>\n<\/td>\n<td colspan=\"4\">\n<p>Mnemonic Codes <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>14D.(\/)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"4\">\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 colspan=\"2\">\n<p>Sa:<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>FUN <\/p>\n<\/td>\n<td>\n<p>14D <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sb:<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"5\">\n<p> Sa\uff1a R <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>U\/S<\/p>\n<\/td>\n<td>\n<p>D :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ERR<\/p>\n<\/td>\n<td colspan=\"5\">\n<p> Sb\uff1a R <\/p>\n<\/td>\n<td>\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"11\">\n<p> D\uff1a<\/p>\n<\/td>\n<td>\n<p>R <\/p>\n<\/td>\n<td>\n<p>4 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\" rowspan=\"2\">\n<p>Sa <\/p>\n<\/td>\n<td>\n<p>R1 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R0 <\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Dividend <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>2147483647 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u00f7<\/p>\n<\/td>\n<td>\n<p>Sb <\/p>\n<\/td>\n<td>\n<p>R3 <\/p>\n<\/td>\n<td>\n<p>1234567 <\/p>\n<\/td>\n<td>\n<p>R2 <\/p>\n<\/td>\n<td>\n<p>Divisor <\/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-006\/fbs-ins-en-006-319.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td>\n<p>R7 <\/p>\n<\/td>\n<td>\n<p>R6 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R5 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1739 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R4 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>571634 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Remainder <\/p>\n<\/td>\n<td>\n<p>Quotient <\/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-006\/fbs-ins-en-006-320.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-321.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-322.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-323.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-324.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-325.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-326.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-327.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-328.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-329.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-330.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-331.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-332.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\"><\/td>\n<td colspan=\"3\">\n<p>FUN 15DP \tINCREMENT <\/p>\n<p>\uff08\uff0b1\uff09\t(Adds 1 to the D value) <\/p>\n<\/td>\n<td>\n<p>FUN 15DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-333.png\" \/><\/p>\n<p>\uff08\uff0b1\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\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\/fbs-ins-en-006\/fbs-ins-en-006-334.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-335.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-336.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>D : The register to be increased <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-337.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-338.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-339.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>WM <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>WS <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-340.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-341.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-342.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-343.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-344.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-345.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-346.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>SR<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>D may combine with V, Z, P0~P9 to <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>serve indirect addressing <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> Range <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>TMR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>OR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>DR <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Ope- <br \/>rand<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"3\">\n<p>WY0 <br \/>\u2223<br \/>WY240 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>V \u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984<\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>C255<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R3839<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R8071<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D4095 <\/p>\n<\/td>\n<td>\n<p>P 0 ~ P 9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td colspan=\"3\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>\u25cf\tAdds 1 to the register D when the increment control input &quot;EN&quot; =1 orfrom 0 to 1( P instruction). If the value <\/p>\n<p>of D is already at the upper limit of positive number 32767 or 2147483647, adding one to this value will <\/p>\n<p>change it to the lower limit of negative number -32768 or -2147483648. At the same time, the overflow flag <\/p>\n<p>FO0 (OVF) is set to 1. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td colspan=\"4\" rowspan=\"3\">\n<p>Example <\/p>\n<p>16-bit increment register <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>OVF<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Key operations <\/p>\n<\/td>\n<td>\n<p>Mne<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>15P.<\/p>\n<\/td>\n<td>\n<p>ORG TU<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN    <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>(+1)<\/p>\n<\/td>\n<td>\n<p>R      0V<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> D <\/p>\n<p>When V\uff1d100\uff0c0\uff0b100\uff1d100 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R100<\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<p>Mnemonic code <\/p>\n<p>    X     0 \t   15 <br \/> D  :  R   0V <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>OVF<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Key operations <\/p>\n<\/td>\n<td>\n<p>Mne<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>15P.<\/p>\n<\/td>\n<td>\n<p>ORG TU<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>FUN    <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>(+1)<\/p>\n<\/td>\n<td>\n<p>R      0V<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> D <\/p>\n<p>When V\uff1d100\uff0c0\uff0b100\uff1d100 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R100<\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-347.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-348.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-349.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-350.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-351.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-352.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-353.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-354.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 16DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-355.png\" \/><\/p>\n<p>\uff08\uff0d1\uff09<\/p>\n<\/td>\n<td>\n<p>DECREMENT <br \/>(Subtracts 1 from the D value) <\/p>\n<\/td>\n<td>\n<p>FUN 16 DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-356.png\" \/><\/p>\n<p>\uff08\uff0d1\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td colspan=\"2\">\n<p>Ladder symbol <\/p>\n<\/td>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\"><\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-357.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>16DP.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>Decrement control<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-358.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>UDF<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-359.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Underflow(FO0)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D : The register to be decreased <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>(-1)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D may combine with V, Z, P0~P9 to <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>serve indirect addressing<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p> V \u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>rand <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>P 0 ~ P 9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984<\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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>\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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Description <\/p>\n<p>racts 1 from the register D when the decrement control input &quot;EN&quot; =1 orfrom 0 to 1 ( P instruction). If alue of D is already at the lower limit of negative number -32768 or -2147483648, subtracting one from value will change it to the upper limit of positive number 32767 or 2147483647. At the same time, the underflow flag FO0 (UDF) is set to 1. <\/p>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example <\/p>\n<p>16-bit decrement register <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>ORG<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Key operations <\/p>\n<\/td>\n<td>\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ORG        X     0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>16P.<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R      0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>UDF<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>FUN        16P <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>(-1)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p> D  :  R     0 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>\uff0d1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-360.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"7\">\n<p>FUN 17DP CMP <\/p>\n<p>Compare control<\/p>\n<p>Unsign\/Sign<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>COMPARE <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN 17DP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>(Compares the data of Sa and Sb and outputs the results to function Outputs) <\/p>\n<\/td>\n<td>\n<p>CMP <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Ladder symbol <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>17DP.CMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Sa  :<\/p>\n<\/td>\n<td>\n<p>a = b<\/p>\n<\/td>\n<td>\n<p>Sa=Sb (FO0)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa: The register to be compared <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Sb  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sb: The register to be compared <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>U\/S<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>a &gt; b<\/p>\n<\/td>\n<td>\n<p>Sa&gt;Sb (FO1)<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa, Sb may combine with V, Z, P0~P9 to <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>serve indirect addressing<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"9\">\n<p>\u25cf<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>a &lt; b<\/p>\n<\/td>\n<td colspan=\"9\">\n<p>Sa&lt;Sb (FO2)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td>\n<p>TMR<\/p>\n<\/td>\n<td>\n<p>CTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0 <\/p>\n<\/td>\n<td>\n<p>C0 <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>16\/32 bit <\/p>\n<\/td>\n<td>\n<p>V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>+\/-number <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>P0~P9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>rand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa <\/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>\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>Sb <\/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>\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 colspan=\"15\">\n<p>Compares the data of Sa and Sb when the compare control input &quot;EN&quot; =1 or from 0 to 1 ( P instruction). If the <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>data of Sa is equal to Sb, then set FO0 to 1. If the data of Sa&gt;Sb, then set FO1 to 1. If the data of Sa&lt;Sb, <\/p>\n<p>then set FO2 to 1. If the data of Sa &lt; Sb, then set the FO2 to 1. <\/p>\n<p>Example \tCompares the data of 16-bit register <\/p>\n<p>Ladder diagram \tKey operations \tMnemonic code <\/p>\n<p>X0 \t17.CMP \t\tORG \tORG \tX \t0 <\/p>\n<p>EN Sa : \tR 0 a=b \tFUN \t17 <\/p>\n<p>Sb : \tR \t1<\/p>\n<p> Sa :  R 0 <\/p>\n<p>U\/S \ta&gt;b<\/p>\n<p> Sb :  R 1 <\/p>\n<p>Y0<\/p>\n<p>a&lt;b \tFO \t2 <\/p>\n<p>OUT \tOUT \tY \t0 <\/p>\n<p>\u25cf\tFrom the above example, we first assume the data of R0 is 1 and R1 is 2, and then compare the data by <\/p>\n<p>executing the CMP instruction. The FO0 and FO1 are set to 0 and FO2 (a&lt;b) is set to 1 since a&lt;b. <\/p>\n<p>\u25cf\tIf you want to have the compound results, such as\u2267\u3001\u2266\u3001&lt; &gt; etc., please send =\u3001&lt; and &gt; results to relay first <\/p>\n<p>and then combine the result from the relays. <\/p>\n<p>\u25cf\tM1919=0, when this command in not executed, FO0, FO1, FO2 will remain in the status at last execution. <\/p>\n<p>\u25cf\tM1919=1, when this command in not executed, FO0, FO1, FO2 are all cleared to 0. <\/p>\n<p>\u25cf\tControl M1919 properly to obtain memory-holding function for functional command output. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-361.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-362.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-363.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-364.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-365.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-366.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-367.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-368.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-369.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-370.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-371.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-372.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-373.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-374.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-375.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-376.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-377.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-378.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-379.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-380.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-381.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 18DP <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>LOGICAL AND <\/p>\n<\/td>\n<td>\n<p>FUN 18DP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AND <\/p>\n<\/td>\n<td>\n<p>AND <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Operand <\/p>\n<p>Sa: The register to be ANDed <br \/>Sb: The register to be ANDed <br \/>D : The register to store the result of AND <br \/>The Sa, Sb, D may combine with V, Z, P0~P9 to <br \/>serve indirect addressing application<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"8\">\n<p>\u25cf<\/p>\n<\/td>\n<td>\n<p> Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>16\/32 bit <\/p>\n<\/td>\n<td>\n<p>V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>+\/-number <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>P0~P9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa <\/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>\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sb <\/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>\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td colspan=\"2\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"17\">\n<p>Performs logical AND operation for the data of Sa and Sb when the operation control input &quot;EN&quot; =1 or from 0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>to 1( P instruction). This operation compares the corresponding bits of Sa and Sb (B0~B15 or B0~B31). The bit in the D is set to 1 if both of the corresponding bits data of Sa and Sb is 1. The bit in the D is set to 0 if one of the corresponding bits is 0. <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"14\">\n<p>Example <\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Operation of 16-bit logical AND <\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"3\">\n<p>Key operations <\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"13\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>Ladder diagram <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>ORG       X     0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>18P.AND<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>FUN       18P <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Sa :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>D=0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p> Sa :   R    0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Sb :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"4\">\n<p> Sb :   R    1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p> D :   <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>B15 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sa <\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>1 0 1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sb <\/p>\n<\/td>\n<td>\n<p>R1 <\/p>\n<\/td>\n<td>\n<p>1 1 1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R2 <\/p>\n<\/td>\n<td>\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 0 1<\/p>\n<\/td>\n<td>\n<p>0 <\/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-006\/fbs-ins-en-006-382.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-383.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-384.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-385.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-386.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-387.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-388.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-389.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-390.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-391.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-392.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-393.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-394.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-395.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN 19DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-396.png\" \/><\/p>\n<p>OR <\/p>\n<\/td>\n<td>\n<p>LOGICAL OR <\/p>\n<\/td>\n<td>\n<p>FUN 19DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-397.png\" \/><\/p>\n<p>OR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-398.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-399.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-400.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-401.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-402.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-403.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\"><\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-404.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-405.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-406.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-407.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-408.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-409.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-410.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-411.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-412.png\" \/><\/p>\n<\/td>\n<td>\n<p>Sa: The register to be ORed <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sb: The register to be ORed <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D : The register to store the result of OR <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The Sa, Sb, D may combine with V, Z, P0~P9 to <\/p>\n<p>serve indirect addressing<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR <\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>16\/32 bit <\/p>\n<\/td>\n<td>\n<p>V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>+\/-number <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>P0~P9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sa <\/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>\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>Sb <\/p>\n<\/td>\n<td rowspan=\"2\">\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=\"2\">\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=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/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>\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<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>\u25cf\tPerforms logical OR operation for the data of Sa and Sb when the operation control input &quot;EN&quot; =1 or from 0 <\/p>\n<p>to 1( P instruction). This operation compares the corresponding bits of Sa and Sb (B0~B15 or B0~B31). <\/p>\n<p>The bit in the D is set to 1 if one of the corresponding of Sa or Sb is 1. The bit in the D is set to 0 if both of <\/p>\n<p>the corresponding bits of Sa and Sb is 0. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"2\">\n<p>Example <\/p>\n<p>Operation of 16-bit logical OR <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"12\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>D=0<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Key operations <\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"11\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>19.OR<\/p>\n<\/td>\n<td colspan=\"6\" rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>ORG       X <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>FUN       19 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Sb :<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"3\">\n<p> Sa :  R <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"3\">\n<p>D  :<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>R<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"3\">\n<p> Sb :  R <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p> D :  <\/p>\n<\/td>\n<td>\n<p>R <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>2 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\" rowspan=\"3\">\n<p>Sa <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 0 1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Sb <\/p>\n<\/td>\n<td>\n<p>R1 <\/p>\n<\/td>\n<td>\n<p>1 1 1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d1 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R2 <\/p>\n<\/td>\n<td>\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td>\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 1 1<\/p>\n<\/td>\n<td>\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr><\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-413.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-414.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-415.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-416.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-417.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-418.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-419.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-420.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-421.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-422.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-423.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-424.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-425.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-426.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 20DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-427.png\" \/><\/p>\n<\/td>\n<td colspan=\"10\">\n<p>BIN TO BCD CONVERSION <\/p>\n<\/td>\n<td>\n<p>FUN 20DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-428.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2192BCD <\/p>\n<\/td>\n<td colspan=\"10\">\n<p>(Converts BIN data of the device specified at S into BCD and stores the result in D)<\/p>\n<\/td>\n<td>\n<p>\u2192BCD <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-429.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-430.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-431.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-006\/fbs-ins-en-006-432.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-433.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-434.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-435.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-436.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-437.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-438.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-439.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-440.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-441.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-442.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-443.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-444.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S : The register to be converted <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>D : The register to store the converted data <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>(BCD code) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>The S, D may combine with V, Z, P0~P9 to serve <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>indirect addressing<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\"><\/td>\n<td>\n<p>Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DR <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td>\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0 <\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3940<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R5000<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>16\/32 bit <\/p>\n<\/td>\n<td>\n<p>V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>+\/- number <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>P0~P9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td>\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240<\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984 <\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D4095 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S <\/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>\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D <\/p>\n<\/td>\n<td colspan=\"2\">\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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cf<\/p>\n<\/td>\n<td colspan=\"17\">\n<p>FB-PLC uses binary code to store and to execute calculations. If want to send the internal PLC data to the <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>external displays such as seven-segment displays, it is more convenient for us to read the result on screen by converting the BIN data to BCD data. For example, it is more clear for us to read the reading &quot;12&quot; instead of the binary code &quot;1100.&quot; <\/p>\n<p>\u25cf\tConverts BIN data of the device specified at S into BCD and writes the result in D when the operation \tcontrol input &quot;EN&quot; =1 orfrom 0 to 1 ( P instruction). If the data in S is not a BCD value (0~9999 or \t0~9999999), then the error flag FO0 is set to 1 and the old data of D are retained.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example <\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>16-bit BIN to BCD conversion <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"3\">\n<p>Key operations <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"12\"><\/td>\n<td rowspan=\"12\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"6\" rowspan=\"2\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"12\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>ORG       X     0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>20.<\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"2\">\n<p>BCD<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>FUN       20 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>S  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>9999<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>ERR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p> S  :  9999 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p> D  :  R   <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\" rowspan=\"2\">\n<p>B15 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>S <\/p>\n<\/td>\n<td>\n<p>K <\/p>\n<\/td>\n<td>\n<p>0 0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d1 <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td>\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1 0<\/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-006\/fbs-ins-en-006-445.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-446.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-447.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-448.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-449.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-450.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-451.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-452.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-453.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-454.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-455.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-456.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-457.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-458.png\" \/><\/p>\n<p>Basic Function Instruction <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN 21DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-459.png\" \/><\/p>\n<\/td>\n<td colspan=\"9\">\n<p>BCD TO BIN CONVERSION <\/p>\n<\/td>\n<td>\n<p>FUN 21DP<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-460.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2192BIN <\/p>\n<\/td>\n<td colspan=\"9\">\n<p>(Converts BCD data of the device specified at S into BIN and stores the result in D) <\/p>\n<\/td>\n<td>\n<p>\u2192BIN <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-461.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-462.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-463.png\" \/><\/p>\n<\/td>\n<td colspan=\"7\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-464.png\" \/>Operand <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-465.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-466.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-467.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-468.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-469.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-470.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-471.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-472.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-473.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-474.png\" \/><\/p>\n<\/td>\n<td rowspan=\"4\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/fbs-ins-en-006\/fbs-ins-en-006-475.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S : The register to be converted <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>D : The register to store the converted data <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>(BIN code) <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>The S, D may combine with V, Z, P0~P9 to <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>serve indirect addressing<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\"><\/td>\n<td colspan=\"3\">\n<p> Range <\/p>\n<\/td>\n<td>\n<p>WX <\/p>\n<\/td>\n<td>\n<p>WY <\/p>\n<\/td>\n<td>\n<p>WM <\/p>\n<\/td>\n<td>\n<p>WS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TMRCTR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>IR <\/p>\n<\/td>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>ROR <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>DR <\/p>\n<\/td>\n<td>\n<p>XR <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>WX0 <\/p>\n<\/td>\n<td>\n<p>WY0 <\/p>\n<\/td>\n<td>\n<p>WM0 <\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<\/td>\n<td>\n<p>R0 <\/p>\n<\/td>\n<td>\n<p>R3840<\/p>\n<\/td>\n<td>\n<p>R3904<\/p>\n<\/td>\n<td>\n<p>R3968<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>R5000 <\/p>\n<\/td>\n<td>\n<p>D0 <\/p>\n<\/td>\n<td>\n<p>V\u3001Z <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ope- <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td>\n<p>\u2223<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u2223<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>rand <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>WX240 <\/p>\n<\/td>\n<td>\n<p>WY240 <\/p>\n<\/td>\n<td>\n<p>WM1896 <\/p>\n<\/td>\n<td>\n<p>WS984<\/p>\n<\/td>\n<td>\n<p>T255<\/p>\n<\/td>\n<td>\n<p>C255<\/p>\n<\/td>\n<td>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R3903<\/p>\n<\/td>\n<td>\n<p>R3967<\/p>\n<\/td>\n<td>\n<p>R4167<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R8071 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D4095 <\/p>\n<\/td>\n<td>\n<p>P0~P9 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>S <\/p>\n<\/td>\n<td colspan=\"2\">\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>\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 colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>D <\/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 colspan=\"2\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb* <\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25cf<\/p>\n<\/td>\n<td colspan=\"18\">\n<p>The decimal (BCD) data must be converted to binary (BIN) data first in order for PLC to accept the data <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>which is originally in decimal unit (BCD code) inputted from external device such as digital switch because the BCD data can not be accepted by PLC for its operations. <\/p>\n<p>\u25cf\tConverts BCD data of the device specified at S into BIN and writes the result in D  when the operation \tcontrol input &quot;EN&quot; =1 or from 0 to 1 ( P instruction). If the data in S is not in BCD, then the error flag FO0 is \tset to 1 and the old data of D are retained. <\/p>\n<p>\u25cf\tConstant is converted to BIN automatically when store in program and can not be used as a source \toperand of this function.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example <\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"5\">\n<p>16-bit BCD to BIN conversion <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\" rowspan=\"10\">\n<p>ORG<\/p>\n<\/td>\n<td colspan=\"5\" rowspan=\"2\">\n<p>Key operations <\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"3\" rowspan=\"2\">\n<p>Mnemonic code <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"10\"><\/td>\n<td rowspan=\"10\">\n<p>X0<\/p>\n<\/td>\n<td colspan=\"5\">\n<p>Ladder diagram <\/p>\n<\/td>\n<td rowspan=\"9\">\n<p>1 <\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>21P.   BIN<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>2 <\/p>\n<\/td>\n<td colspan=\"4\" rowspan=\"8\">\n<p>3 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ORG      X <\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\" rowspan=\"2\">\n<p>FUN      21P <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>S  :<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>WX    0<\/p>\n<\/td>\n<td>\n<p>ERR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>D  :<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>R<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"3\">\n<p> S  :  WX  0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p> D  :  R <\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>1 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\" rowspan=\"2\">\n<p>X15 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>X0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>4 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>S WX0 0 0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u00d8X0\uff1d\u2022<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>D <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>R1 <\/p>\n<\/td>\n<td>\n<p>B15 <\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>1<\/p>\n<\/td>\n<td>\n<p>B0 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<td>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0 0<\/p>\n<\/td>\n<td>\n<p>0 <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Basic Function Instruction T TIMER T Symbol Operand Tn: [&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-3433","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\/3433","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=3433"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3433\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}