{"id":3273,"date":"2026-11-17T18:40:06","date_gmt":"2026-11-17T10:40:06","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-07\/"},"modified":"2026-11-17T18:40:06","modified_gmt":"2026-11-17T10:40:06","slug":"mplc-m07-en-07","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m07-en-07\/","title":{"rendered":"Chapter 7. Advanced Function Instructions"},"content":{"rendered":"<h3>7-1  Arithmetical Operation Instructions\uff08FUN24\uff5e33\uff09<\/h3>\n<h4>7-1-1  Summation of Block Data\uff08SUM\uff09<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN24 D P<\/p>\n<p>SUM<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SUM   <\/p>\n<p>(Summation of block data)<\/p>\n<\/td>\n<td>\n<p>FUN24 D P<\/p>\n<p>SUM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-001.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting number of source register<\/p>\n<p>N: Number of registers to be summed<br \/>(successive N data units starting from S)<\/p>\n<p>D: The register which stored the result (summation)<\/p>\n<p>S, N, D, can associate with V, Z, P0~P9 index register to serve the indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<p>\u2223<\/p>\n<p>511<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control \u201cEN\u201d=1 or changes from 0\u21921 ( P instruction), it puts the successive N units of 16bit or 32 bit ( D instruction) registers for addition calculation to get the summation, and stores the result into the register which is designated by D.<\/li>\n<li>When the value of N is 0 or greater than 511, the operation will not be performed.<\/li>\n<li>If the data error detecting method is Checksum, this instruction can be used to generate the sum value for sending data or ot use this instruction to check if the received data is error or not.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td>\n<p>When X0 changes from OFF\u2192ON, following instruction will calculates the summation for 16-bit data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-002.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>SUM( S:= R0, N:= 6, D:= R100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-003.png\" \/>        R0=0030H<\/p>\n<p>        R1=0031H<\/p>\n<p>        R2=0032H   <\/p>\n<p>        R3=0033H<\/p>\n<p>        R4=0034H<\/p>\n<p>        R5=0035H<\/p>\n<ul>\n<li>The above illustrates that 6 16-bit registers starting from R0 is calculated for summation, and the result is stored into the R100 register.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td>\n<p>When X0 is ON, it calculates the summation for 32-bit data.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-004.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>SUM_D( S:= R0, N:= 6, D:= R100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>R1\uff5eR0=00310030H<\/p>\n<p>R3~R2=00330032H    \ud83e\udc7a R101\uff5eR100=00A5009BH<\/p>\n<p>R5\uff5eR4=00410039H<\/p>\n<ul>\n<li>The above illustrates that three 32-bit registers starting from DR0, is calculated for their summation, and the result is stored into the DR100 register.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-1-2  Average of Block Data (MEAN)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN25 D P<\/p>\n<p>MEAN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MEAN<\/p>\n<p>(Average of the block data)<\/p>\n<\/td>\n<td>\n<p>FUN25 D P<\/p>\n<p>MEAN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-005.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source register number<\/p>\n<p>N: Number of registers to be averaged<\/p>\n<p>(N units of successive registers starting from S)<\/p>\n<p>D: Register number for storing result (mean value)<\/p>\n<p>The S, N, D may combine with V, Z, P0~P9 <\/p>\n<p>to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>\u2223<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), add the N successive 16-bit or 32-bit (D instruction) numerical values starting from S, and then divided by N. Store this mean value (rounding off numbers after the decimal point) in the register specified by D.<\/li>\n<li>While the N value is derived from the content of the register, if the N value is not between 1 and 256, then the N range error &quot;ERR&quot; will be set to 1, and do not execute the operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN25 D P<\/p>\n<p>MEAN<\/p>\n<\/td>\n<td>\n<p>MEAN<\/p>\n<p>(Average of the block data)<\/p>\n<\/td>\n<td>\n<p>FUN25 D P<\/p>\n<p>MEAN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-006.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= X0 ) THEN<\/p>\n<p>MEAN( S:= R0, N:= 3, D:= R10);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The example program gets the mean value of the 3 successive 16-bit registers starting from R0, and stores the results into the 16-bit register R10<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>S<\/p>\n<p>\uff08N\uff1d3\uff09<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>123<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>788<\/p>\n<\/td>\n<td>\n<p>  123\uff0b9\uff0b788  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u21e9X0\uff1d\ue000<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>3<\/p>\n<p>\uff1d306(Rouding off the remainder)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>306<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-1-3  Take the Negative Value (NEGATION)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN27 D P<\/p>\n<p>NEG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>NEGATION<\/p>\n<p>(Take the negative value)<\/p>\n<\/td>\n<td>\n<p>FUN27 D P<\/p>\n<p>NEG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-007.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D : Register to be negated<\/p>\n<p>D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM<\/p>\n<\/td>\n<td>\n<p>WSM<\/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>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>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), negate (ie. calculate 2&#8217;s complement) the value of the content of the register specified by D, and store it back in the original D register.<\/li>\n<li>If the value of the content of D is negative, then the negation operation will make it positive.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-008.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= X0 ) THEN<\/p>\n<p>R0 := &#8211; R0;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction at left negates the value of the R0 register, and stores it back to R0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\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>12345<\/p>\n<\/td>\n<td>\n<p>\u261e3039H<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u21e9X0\uff1d<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>\u221212345<\/p>\n<\/td>\n<td>\n<p>\u261eCFC7H<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-1-4  Take the Absolute Value (ABSOLUTE)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN28 D P<\/p>\n<p>ABS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ABSOLUTE<\/p>\n<p>(Take the absolute value)<\/p>\n<\/td>\n<td>\n<p>FUN28 D P<\/p>\n<p>ABS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-009.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D : Register to be taken absolute value.<\/p>\n<p>D may combine with V, Z, P0~P9 to serve indirect address application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM<\/p>\n<\/td>\n<td>\n<p>WSM<\/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>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>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), calculate the absolute value of the content of the register specified by D, and write it back into the original D register.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-010.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>ABS_D( D:= R0 );<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction at left calculates the absolute value of the DR0 register, and stores it back in DR0(R1, R0).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>R1\u3000R0<\/p>\n<\/td>\n<td>\n<p>\u221212345<\/p>\n<\/td>\n<td>\n<p>\u261eCFC7H<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u21e9X0\uff1d<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>R1\u3000R0<\/p>\n<\/td>\n<td>\n<p>12345<\/p>\n<\/td>\n<td>\n<p>\u261e3039H<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-1-5 Linear Conversion (LCNV)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-011.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Md: Operation mode, 0~3<\/p>\n<p>S: Starting address of the source data<\/p>\n<p>Ts: Starting address of the parameter table for conversion<\/p>\n<p>D: Starting address to store the result<\/p>\n<p>L: Quantity of conversion entry, 1~64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Md<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-3<\/p>\n<\/td>\n<td><\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-64<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When the analog input module being used for the analog measurement, the raw reading value of the analog input can be converted into the engineering range through this instruction for display or for proceeding control operation.<\/li>\n<li>When using temperature or analog modules for temperature or analog measurement applications, if the temperature or engineering readings measured by the PLC deviate from the results measured by standard thermometers or related standard instruments, this command can be used to make a linear correction as a correction for the actual measured value.<\/li>\n<li>When execution control &quot;EN&quot;=1 or from 0\u21921(P instruction), this instruction will perform the linear conversion operation according to the mode selection, where S is the starting address of the source data, Ts is the starting address of the conversion parameter table, D is the starting address to store the converted result, and L is the quantity of conversion entry.<\/li>\n<li>There are two expressions to meet the suitable application:<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Expression 1: Two points calibration method<\/p>\n<p>Fill the conversion parameter table with the low value of measurement(VML), high value of measurement (VMH), and the corresponding low value of standard (VSL), high value of standard (VSH); the converted result (Dn) will be generated from the source data(Sn) through the formula shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-012.png\" \/><\/p>\n<p>A = (VSL\uff0dVSH\uff0fVML\uff0dVMH)\u00d710000<\/p>\n<p>B = VSL\uff0d(VML\u00d7A\uff0f10000)<\/p>\n<p>Dn = (Sn\u00d7A\uff0f10000)\uff0bB<\/p>\n<ul>\n<li>The range of operands VSL, VSH, VML, VMH, Sn and Dn are between -32768 ~ 32767.<\/li>\n<li>For analog input scaling, where:<\/li>\n<\/ul>\n<p>VML=Minmum of analog input<\/p>\n<p>VMH=Maximum of analog input<\/p>\n<p>VSL=Minmum of engineering range<\/p>\n<p>VSH=Maximum of engineering range<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Expression 2 : Multiplicator\uff0bOffset method<\/p>\n<p>Fill the conversion parameter table with the values of multiplier(A), divisor(B) and offset(C);<\/p>\n<p>The converted result (Dn) will be generated from the source data (Sn) through the formula shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-013.png\" \/><\/p>\n<p>Dn =[(Sn\u00d7A)\uff0fB]\uff0bC<\/p>\n<p>The range of each operand as below:<\/p>\n<p>A = 1~65535<\/p>\n<p>B = 1~65535<\/p>\n<p>C = -32768~32767<\/p>\n<p>Sn = 0~65535<\/p>\n<p>Dn = -32768~32767<\/p>\n<p>Description of operation mode <\/p>\n<ol>\n<li>When Md = 0, the linear conversion works by expression 1, and all source data share the same parameters VML, VMH, VSL and VSH for conversion.<\/li>\n<li>When Md = 1, the linear conversion works by expression 1, and each source data has the independent corresponding parameters VML, VMH, VSL, VSH for conversion; if there are N entries of source data, the conversion parameter table should have N groups of VML, VMH, VSL, VSH for working, there are N\u00d74 registers in the conversion parameter table.<\/li>\n<li>When Md = 2, the linear conversion works by expression 2, and all source data share the same parameters A, B and C for conversion.<\/li>\n<li>When Md = 3, the linear conversion works by expression 2, and each source data has the independent corresponding parameters A, B, C for conversion; if there are N entries of source data, the conversion parameter table should have N groups of A, B, C for working, there are N\u00d73 registers in the conversion parameter table.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Mode 0 of linear conversion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-014.png\" \/><\/p>\n<\/td>\n<td>\n<p>LCNV( EN:= M0, Md:= 0, S:= R100, Ts:= R1000, D=&gt; R2000, L:= 6);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 = 1, it will perform the mode 0 operation of linear conversion, where R100 is the starting address of the source data, R1000 is the starting address of the table of the conversion parameters VML, VMH, VSL, VSH, the quantity is 6, and R2000~R2005 will store the converted results.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>                                     Ts<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"4\">\n<p>        R1000<\/p>\n<p>        R1001<\/p>\n<p>        R1002<\/p>\n<p>        R1003<\/p>\n<\/td>\n<td>\n<p>282<\/p>\n<\/td>\n<td>\n<p>VML<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3530<\/p>\n<\/td>\n<td>\n<p>VMH<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>260<\/p>\n<\/td>\n<td>\n<p>VSL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3650<\/p>\n<\/td>\n<td>\n<p>VSH<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>                          S                    D                   <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R100<\/p>\n<\/td>\n<td>\n<p>282<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p> \u21e8<\/p>\n<\/td>\n<td>\n<p>R2000<\/p>\n<\/td>\n<td>\n<p>260<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R101<\/p>\n<\/td>\n<td>\n<p>3530<\/p>\n<\/td>\n<td>\n<p>R2001<\/p>\n<\/td>\n<td>\n<p>3650<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R102<\/p>\n<\/td>\n<td>\n<p>1906<\/p>\n<\/td>\n<td>\n<p>R2002<\/p>\n<\/td>\n<td>\n<p>1955<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R103<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R2003<\/p>\n<\/td>\n<td>\n<p>-34<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R104<\/p>\n<\/td>\n<td>\n<p>5000<\/p>\n<\/td>\n<td>\n<p>R2004<\/p>\n<\/td>\n<td>\n<p>5184<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R105<\/p>\n<\/td>\n<td>\n<p>-115<\/p>\n<\/td>\n<td>\n<p>R2005<\/p>\n<\/td>\n<td>\n<p>-154<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Mode 1 of linear conversion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-015.png\" \/><\/p>\n<\/td>\n<td>\n<p>LCNV( EN:= M0, Md:= 1, S:= R100, Ts:= R1000, D=&gt; R2000, L:= 3);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description:\t\t<\/p>\n<ul>\n<li>When M0 = 1, it will perform the mode 1 operation of linear conversion, where R100 is the starting address of the source data, R1000 is the starting address of the table of the conversion parameters VML, VMH, VSL, VSH, the quantity is 3, and R2000~R2002 will store the converted results.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Ts<\/p>\n<p>VML_0<\/p>\n<p>VMH_0<\/p>\n<p>VSL_0<\/p>\n<p>VSH_0<\/p>\n<p>VML_1<\/p>\n<p>VMH_1<\/p>\n<p>VSL_1<\/p>\n<p>VSH_1<\/p>\n<p>VML_2<\/p>\n<p>VMH_2<\/p>\n<p>VSL_2<\/p>\n<p>VSH_2<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"12\">\n<p>R1000<\/p>\n<p>R1001<\/p>\n<p>R1002<\/p>\n<p>R1003<\/p>\n<p>R1004<\/p>\n<p>R1005<\/p>\n<p>R1006<\/p>\n<p>R1007<\/p>\n<p>R1008<\/p>\n<p>R1009<\/p>\n<p>R1010<\/p>\n<p>R1011<\/p>\n<\/td>\n<td>\n<p>282<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3530<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>260<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3650<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-52<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1208<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-38<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1101<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>235<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4563<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>264<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4588<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>S                           D<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R100<\/p>\n<\/td>\n<td>\n<p>282<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>R2000<\/p>\n<\/td>\n<td>\n<p>260<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R101<\/p>\n<\/td>\n<td>\n<p>1208<\/p>\n<\/td>\n<td>\n<p>R2001<\/p>\n<\/td>\n<td>\n<p>1100<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R102<\/p>\n<\/td>\n<td>\n<p>2399<\/p>\n<\/td>\n<td>\n<p>R2002<\/p>\n<\/td>\n<td>\n<p>2426<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Mode 2 of linear conversion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-016.png\" \/><\/p>\n<\/td>\n<td>\n<p>LCNV( EN:= M0, Md:= 2, S:= R100, Ts:= R1000, D=&gt; R2000, L:= 6);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description:<\/p>\n<p>When M0 = 1, it will perform the mode 2 operation of linear conversion, where R100 is the starting address of the source data, R1000 is the starting address of the table of the conversion parameters A, B, C, the quantity is 6, and R2000~R2005 will store the converted results.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-017.png\" \/>                                   Ts<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"3\">\n<p>      R1000<\/p>\n<p>      R1001<\/p>\n<p>      R1002<\/p>\n<\/td>\n<td>\n<p>985<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>20<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>                          S                       D                   <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R100<\/p>\n<\/td>\n<td>\n<p>1000<\/p>\n<\/td>\n<td rowspan=\"6\">\n<p>  \u21e8<\/p>\n<\/td>\n<td>\n<p>R2000<\/p>\n<\/td>\n<td>\n<p>1005<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R101<\/p>\n<\/td>\n<td>\n<p>2345<\/p>\n<\/td>\n<td>\n<p>R2001<\/p>\n<\/td>\n<td>\n<p>2329<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R102<\/p>\n<\/td>\n<td>\n<p>3560<\/p>\n<\/td>\n<td>\n<p>R2002<\/p>\n<\/td>\n<td>\n<p>3526<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R103<\/p>\n<\/td>\n<td>\n<p>401<\/p>\n<\/td>\n<td>\n<p>R2003<\/p>\n<\/td>\n<td>\n<p>415<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R104<\/p>\n<\/td>\n<td>\n<p>568<\/p>\n<\/td>\n<td>\n<p>R2004<\/p>\n<\/td>\n<td>\n<p>579<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R105<\/p>\n<\/td>\n<td>\n<p>2680<\/p>\n<\/td>\n<td>\n<p>R2005<\/p>\n<\/td>\n<td>\n<p>2659<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> Mode 3 of linear conversion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-018.png\" \/><\/p>\n<\/td>\n<td>\n<p>LCNV( EN:= M0, Md:= 3, S:= R100, Ts:= R1000, D=&gt; R2000, L:= 4);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description:<\/p>\n<ul>\n<li>When M0 = 1, it will perform the mode 3 operation of linear conversion, where R100 is the starting address of the source data, R1000 is the starting address of the table of the conversion parameters A, B, C, the quantity is 4, and R2000~R2003 will store the converted results.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<td>\n<p>Linear Conversion<\/p>\n<p>(LCNV)<\/p>\n<\/td>\n<td>\n<p>FUN33 P<\/p>\n<p>LCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-019.png\" \/>                                   Ts<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"12\">\n<p>    R1000<\/p>\n<p>    R1001<\/p>\n<p>    R1002<\/p>\n<p>    R1003<\/p>\n<p>    R1004<\/p>\n<p>    R1005<\/p>\n<p>    R1006<\/p>\n<p>    R1007<\/p>\n<p>    R1008<\/p>\n<p>    R1009<\/p>\n<p>    R1010<\/p>\n<p>    R1011<\/p>\n<\/td>\n<td>\n<p>5000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>16380<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>10000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>16383<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2200<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>16380<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-200<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1600<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>16383<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-100<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>                    S                   D                   <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>  R100<\/p>\n<\/td>\n<td>\n<p>8192<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>  \u21e8<\/p>\n<\/td>\n<td>\n<p>R2000<\/p>\n<\/td>\n<td>\n<p>2500<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  R101<\/p>\n<\/td>\n<td>\n<p>16383<\/p>\n<\/td>\n<td>\n<p>R2001<\/p>\n<\/td>\n<td>\n<p>10000<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  R102<\/p>\n<\/td>\n<td>\n<p>8190<\/p>\n<\/td>\n<td>\n<p>R2002<\/p>\n<\/td>\n<td>\n<p>900<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  R103<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R2003<\/p>\n<\/td>\n<td>\n<p>-100<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-1-6  Multiple Linear Conversion (MLC)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"C:\\Users\\User\\Desktop\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\MLC.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-020.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Rs: Starting address of the source data<\/p>\n<p>Sl: Quantity of source data, 1~64<\/p>\n<p>Tx: Starting address of X table<\/p>\n<p>Ty: Starting address of Y table <\/p>\n<p>Tl: Quantity of table, 2~255 <\/p>\n<p>D: Starting address to store the result<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>Sl<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Tx<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ty<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Tl<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>2-255<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When the analog input module being used for the analog measurement, the raw reading value of the analog input can be converted into the engineering range through this instruction for display or for proceeding control operation.<\/li>\n<li>When using temperature or analog modules for temperature or analog measurement applications, if the temperature or engineering readings measured by the PLC deviate from the results measured by standard thermometers or related standard instruments, this command can be used to Make a linear correction as a correction for the actual measured value.<\/li>\n<li>When execution control &quot;EN&quot;=1or from 0\u21921(P instruction), this instruction will perform the multiple linear conversion operation according to the selection of X\/Y input; where Rs is the starting address of the source data, Sl is the quantity of source data for conversion, Tx is the starting address of X conversion parameter table, Ty is the starting address of Y conversion parameter table, Tl is the quantity of X\/Y table, D is the starting address to store the converted result.<\/li>\n<li>When executing and selection X\/Y=0, it will compare the source data with the entities of Tx table to find the corresponding location in Tx table (The entities in Tx table must be in ascending sequence), and then calculate the linear conversion according to the located section of Tx and Ty table; When executing and selection X\/Y=1, it will compare the source data with the entities of Ty table to find the corresponding location in Ty table (The entities in Ty table can either be in ascending or descending sequence), and then calculate the linear conversion according to the located section of Ty and Tx table.<\/li>\n<li>When the source data is out of all entities of table, OVR=1.<\/li>\n<li>It wouldn\u2019t execute this instruction if illegal SI or Tl.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Expression: <\/p>\n<p>The entities of Tx conversion parameter table must be in ascending sequence to have correct linear conversion; the entities of Ty conversion parameter table can either be in ascending or descending sequence. When executing this instruction, it will search the located section by comparing entities of the table with source data, and then calculate the linear conversion according to the following expression:<\/p>\n<p>Vy = (Vx\uff0dTx_n) \u00d7 (Ty_n+1\uff0dTy_n\uff0fTx_n+1\uff0dTx_n) \uff0b Ty_n if X\/Y=0<\/p>\n<p>Vx = (Vy\uff0dTy_n) \u00d7 (Tx_n+1\uff0dTx_n\uff0fTy_n+1\uff0dTy_n) \uff0b Tx_n if X\/Y=1<\/p>\n<p>Value of Operand Vy\u3001Vx\u3001Tx_n\u3001Tx_n+1\u3001Ty_n\u3001Ty_n+1 must be -32768\uff5e32767<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-021.png\" \/>Figure of multiple linear conversion:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-022.png\" \/><\/p>\n<\/td>\n<td>\n<p>MLC( EN:= M10, <\/p>\n<p>     XY:= M11, <\/p>\n<p>     Rs:= R0, <\/p>\n<p>     Sl:= R99, <\/p>\n<p>     Tx:= R1000, <\/p>\n<p>     Ty:= R2000, <\/p>\n<p>     Tl:= R199, <\/p>\n<p>     D:= D0, <\/p>\n<p>     OVR=&gt; M100);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Description:\t<\/p>\n<p>When M10=1\u3001M11=0, R0 is the starting address of source data\u3001R99 is the quantity of source data, R1000 is the starting address of Tx conversion parameter table, R2000 is the starting address of Ty conversion parameter table, R199 is the quantity of table; the source data R0~R5 will be calculated the linear conversion according to Tx and Ty table between four sections, then store the results into D0~D5.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-023.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-024.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-025.png\" \/><\/p>\n<\/td>\n<td>\n<p>MLC( EN:= M10, <\/p>\n<p>     XY:= M11, <\/p>\n<p>     Rs:= R0, <\/p>\n<p>     Sl:= R99, <\/p>\n<p>     Tx:= R1000, <\/p>\n<p>     Ty:= R2000, <\/p>\n<p>     Tl:= R199, <\/p>\n<p>     D:= D0, <\/p>\n<p>     OVR=&gt; M100);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description:<\/p>\n<p>When M10=1, M11=0, take R0 as the starting source data and R99 as the source data length, according to the Tx conversion table starting from R1000 and the Ty conversion table starting from R2000, and R199 as the conversion table Length, perform 5-segment linear conversion operation on source data such as R0~R5, and store the conversion results in temporary registers D0~D5. In this example, when the value of the source data is less than or equal to 2000, the corresponding value is 280; when the value of the source data is greater than or equal to 8000, the corresponding value is 970.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-026.jpg\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 3<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-027.png\" \/><\/p>\n<\/td>\n<td>\n<p>MLC( EN:= M10, <\/p>\n<p>     XY:= M11, <\/p>\n<p>     Rs:= R0, <\/p>\n<p>     Sl:= R99, <\/p>\n<p>     Tx:= R1000, <\/p>\n<p>     Ty:= R2000, <\/p>\n<p>     Tl:= R199, <\/p>\n<p>     D:= D0, <\/p>\n<p>     OVR=&gt; M100);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-028.png\" \/><\/p>\n<p>Description:<\/p>\n<p>When M10=1, M11=0, R0 is the starting address of source data, R99 is the quantity of source data, R1000 is the starting address of Tx conversion parameter table, R2000 is the starting address of Ty conversion parameter table, R199 is the quantity of table; the source data R0~R5 will be calculated the linear conversion according to Tx and Ty table between three sections, then store the results into D0~D5. T In this example, when the value of the source data is -8000~8000, the corresponding value is -100~2000 according to the linear conversion shown in the figure below; when the value of the source data is \u22678000, the corresponding value is 2000; and the corresponding values \u200b\u200bare all -100.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<td>\n<p>Multiple Linear Conversion<\/p>\n<p>(MLC)<\/p>\n<\/td>\n<td>\n<p>FUN34 P<\/p>\n<p>MLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-029.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 4<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-030.png\" \/><\/p>\n<\/td>\n<td>\n<p>MLC( EN:= M10, <\/p>\n<p>     XY:= M11, <\/p>\n<p>     Rs:= R0, <\/p>\n<p>     Sl:= R99, <\/p>\n<p>     Tx:= R1000, <\/p>\n<p>     Ty:= R2000, <\/p>\n<p>     Tl:= R199, <\/p>\n<p>     D:= D0, <\/p>\n<p>     OVR=&gt; M100);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-031.png\" \/><\/p>\n<p>Description:<\/p>\n<p>When M10=1, M11=0, R0 is the starting address of source data, R99 is the quantity of source data, R1000 is the starting address of Tx conversion parameter table, R2000 is the starting address of Ty conversion parameter table, R199 is the quantity of table; the source data R0~R5 will be calculated the linear conversion according to Tx and Ty table between three sections, then store the results into D0~D5.T In this example, when the value of the source data is 3276~16000, the corresponding value is 0~5000 according to the linear conversion shown in the figure below; when the value of the source data is \u226716000, the corresponding value is 5000; all are 0.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-032.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-2  Logical Operation Instructions (FUN35\uff5e36)<\/h3>\n<h4>7-2-1  EXCLUSIVE OR (XOR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN35 D P<\/p>\n<p>XOR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EXCLUSIVE OR (XOR)<\/p>\n<\/td>\n<td>\n<p>FUN35 D P<\/p>\n<p>XOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-033.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa: Source data a for exclusive or operation<\/p>\n<p>Sb: Source data b for exclusive or operation<\/p>\n<p>D: Register storing XOR results<\/p>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>D<\/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>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), will perform the logical XOR (exclusive or) operation of data Sa and Sb. The operation of this function is to compare the corresponding bits of Sa and Sb (B0~B15 or B0~B31), and if bits at the same position have different status, then set the corresponding bit within D as 1, otherwise as 0. <\/li>\n<li>After the operation, if all the bits in D are all 0, then set the 0 flag &quot;D = 0&quot; to 1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN35 D P<\/p>\n<p>XOR<\/p>\n<\/td>\n<td>\n<p>EXCLUSIVE OR (XR)<\/p>\n<\/td>\n<td>\n<p>FUN35 D P<\/p>\n<p>XOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>     <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-034.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>R2 := R0 XOR R1 ;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction makes a logical XOR operation using the R0 and R1 registers, and stores the result in R2.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Sa<\/p>\n<\/td>\n<td>\n<p>R0<\/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<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>0<\/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<\/tr>\n<tr>\n<td>\n<p>Sb<\/p>\n<\/td>\n<td>\n<p>R1<\/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<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>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/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>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>1<\/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>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-2-2  EXCLUSIVE NOR (XNR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN36 D P<\/p>\n<p>XNR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EXCLUSIVE NOR (XNR)<\/p>\n<\/td>\n<td>\n<p>FUN36 D P<\/p>\n<p>XNR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-035.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa: Data a for XNR operation<\/p>\n<p>Sb: Data b for XNR operation<\/p>\n<p>D: Register storing XNR results<\/p>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), will perform the logical XNR (inclusive or) operation of data Sa and Sb. The operation of this function is to compare the corresponding bits of Sa and Sb (B0~B15 or B1~B31), and if the bit has the same value, then set the corresponding bit within D as 1. If not then set it to 0.<\/li>\n<li>After the operation, if the bits in D are all 0, then set the 0 flag &quot;D=0&quot; to 1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN36 D P<\/p>\n<p>XNR<\/p>\n<\/td>\n<td>\n<p>EXCLUSIVE NOR (XNR)<\/p>\n<\/td>\n<td>\n<p>FUN36 D P<\/p>\n<p>XNR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>     <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-036.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>R2 := R0 XNOR R1 ;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction makes a logical XNR operation of the R0 and R1 registers, and the results are stored in the R2 register.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Sa<\/p>\n<\/td>\n<td>\n<p>R0<\/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<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>0<\/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<\/tr>\n<tr>\n<td>\n<p>Sb<\/p>\n<\/td>\n<td>\n<p>R1<\/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<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>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/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>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>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>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-3  Comparison Instructions (FUN37)<\/h3>\n<h4>7-3-1  ZONE COMPARE (ZNCMP)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN37 D P<\/p>\n<p>ZNCMP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ZONE COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN37 D P<\/p>\n<p>ZNCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-037.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Register for zone comparison<\/p>\n<p>SU: The upper limit value <\/p>\n<p>SL: The lower limit value <\/p>\n<p>S, SU, SL may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\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<tr>\n<td>\n<p>SU<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>SL<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), compares S with upper limit SU and lower limit SL. If S is between the upper limit and the lower limit (SL\u2266S\u2266SU), then set the inside zone flag &quot;INZ&quot; to 1. If the value of S is greater than the upper limit SU, then set the higher than upper limit flag &quot;S&gt;U&quot; to 1. If the value of S is smaller then the lower limit SL, then set the lower than lower limit flag &quot;S&lt;L&quot; as 1.<\/li>\n<li>The upper limit SU should be greater than the lower limit SL. If SU&lt;SL, then the limit value error flag &quot;ERR&quot; will set to 1, and this instruction will not carry out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN37 D P<\/p>\n<p>ZNCMP<\/p>\n<\/td>\n<td>\n<p>ZONE COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN37 D P<\/p>\n<p>ZNCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The instruction compares the value of R0 with the upper and lower limit zones formed by R1 and R2. If the values of R0~R2 are as shown in the diagram at bottom left, then the result can then be obtained as shown in the diagram below.\t <\/li>\n<\/ul>\n<p>If want to get the status of out side the zone, you can use OUT NOT Y0.   <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-038.png\" \/><\/p>\n<\/td>\n<td><\/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>200<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>S<sub>U<\/sub><\/p>\n<\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>300<\/p>\n<\/td>\n<td>\n<p>\uff08Upper limit value\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S<sub>L<\/sub><\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>100<\/p>\n<\/td>\n<td>\n<p>\uff08Lower limit value\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"2\">\n<p>Before-execution<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>                                    Y0<\/p>\n<p>                           X0\uff1d     1 <\/p>\n<p>                           \u261e     <\/p>\n<p>                       Results of execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-4  Data Movement Instructions\uff08FUN40\uff5e50\uff09<\/h3>\n<h4>7-4-1  BIT READ (BITRD)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN40 D P<\/p>\n<p>BITRD<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BIT READ <\/p>\n<\/td>\n<td>\n<p>FUN40 D P<\/p>\n<p>BITRD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-039.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source data to be read<\/p>\n<p>N: The bit number of the S data to be read out<\/p>\n<p>S, N may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM29104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>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>0-31<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When read control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), take the Nth bit of the S data out, and put it to the output bit &quot;OTB&quot;.<\/li>\n<li>When the operand is 16-bit, the effective range for N is 0~15. For 32-bit operand (D instruction) it is 0~31. N beyond this range will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN40 D P<\/p>\n<p>BITRD<\/p>\n<\/td>\n<td>\n<p>BIT READ<\/p>\n<\/td>\n<td>\n<p>FUN40 D P<\/p>\n<p>BITRD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-040.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction reads the 7th bit (X7) status from WX0 (X0~X15) and output to Y0. The results are as follows:<\/li>\n<\/ul>\n<p>                     X15          X7\tX0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>WX0<\/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>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>0<\/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>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>N\uff1d7\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-041.png\" \/>   \u21e9X50\uff1d<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-4-2  BIT WRITE (BITWR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN41 D P<\/p>\n<p>BITWR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BIT WRITE<\/p>\n<\/td>\n<td>\n<p>FUN41 D P<\/p>\n<p>BITWR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-042.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register for bit write<\/p>\n<p>N: The bit number of the D register to be written.<\/p>\n<p>D, N may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM<\/p>\n<\/td>\n<td>\n<p>WSM<\/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>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<p>\u2223<\/p>\n<p>31<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When write control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), will write the write bit (INB) into the Nth bit of register D.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN41 D P<\/p>\n<p>BITWR<\/p>\n<\/td>\n<td>\n<p>BIT WRITE<\/p>\n<\/td>\n<td>\n<p>FUN41 D P<\/p>\n<p>BITWR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When the operand is 16-bit, the effective range of N is 0~15. For 32-bit (D instruction) operand it is 0~31. N beyond this range, will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<li>The instruction writes the status of the write bit INB into B3 of R0. Assuming X1 = 1, the result will be as follows:<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-043.png\" \/><\/p>\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\/mplc-m07-en-07\/mplc-m07-en-07-044.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-4-3  BIT MOVE (BITMV)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN42 D P<\/p>\n<p>BITMV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BIT MOVE<\/p>\n<\/td>\n<td>\n<p>FUN42 D P<\/p>\n<p>BITMV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-045.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source data to be moved<\/p>\n<p>Ns: Assign Ns bit within S as source bit<\/p>\n<p>D: Destination register to be moved<\/p>\n<p>Nd: Assign Nd bit within D as target bit <\/p>\n<p>S, Ns, D, Nd may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>Ns<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-31<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Nd<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-31<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When move control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), will move the bit status specified by Ns within S into the bit specified by Nd within D.<\/li>\n<li>When the operand is 16-bit, the effective range of N is 0~15. For 32-bit (D instruction) operand the effective range is 0~31. N beyond this range will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN42 D P<\/p>\n<p>BITMV<\/p>\n<\/td>\n<td>\n<p>BIT MOVE<\/p>\n<\/td>\n<td>\n<p>FUN42 D P<\/p>\n<p>BITMV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-046.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction at left moves the status of B11 (X11) within S into the B7 position within D. Except bit B7, other bits within D does not change.<\/li>\n<\/ul>\n<p>X15\tX11\tX0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1<\/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><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tNs\uff1d11\u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-047.png\" \/><\/p>\n<p>\t\u21e9X50\uff1d<\/p>\n<p>           Nd\uff1d7 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-048.png\" \/><\/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><\/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>1<\/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<\/tr>\n<\/table>\n<\/div>\n<p>\tB15\tB7\tB0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-4-4  NIBBLE MOVE (NBMV)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN43 D P<\/p>\n<p>NBMV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>NIBBLE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN43 D P<\/p>\n<p>NBMV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-049.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source data to be moved<\/p>\n<p>Ns: Assign Ns nibble within S as source nibble<\/p>\n<p>D: Destination register to be moved<\/p>\n<p>Nd: Assign Nd nibble within D as target nibble<\/p>\n<p>S, Ns, D, Nd may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>Ns<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-7<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Nd<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-7<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When move control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), will move the Ns\u2019th nibble from within S to the nibble specified by Nd within D. (A nibble is comprised by 4 bits. Starting from the lowest bit of the register, B0, each successive 4 bits form a nibble, so B0~B3 form nibble 0, B4~B7 form nibble 1, etc&#8230;)<\/li>\n<li>When the operand is 16-bit, the effective range of Ns or Nd is 0~3. For 32-bit (D instruction) operand the range is 0~7. Beyond this range, will set the N value error flag &quot;ERR&quot; to 1 , and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN43 D P<\/p>\n<p>NBMV<\/p>\n<\/td>\n<td>\n<p>NIBBLE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN43 D P<\/p>\n<p>NBMV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-050.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction moves the third nibble NB2 (B8~B11) within S to the first nibble NB1 (B4~B7) within D. Other nibbles within D remain unchanged.<\/li>\n<\/ul>\n<p> B15                            B0<\/p>\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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/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><\/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<\/table>\n<\/div>\n<p>\tNB3\tNB2\tNB1\tNB0<\/p>\n<p>\tNs\uff1d2 \u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-051.png\" \/><\/p>\n<p>\t\u21e9X0\uff1d<\/p>\n<p>\tNd\uff1d1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-052.png\" \/><\/p>\n<p>\tNB3\tNB2\tNB1\tNB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>R1<\/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>\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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tB15\tB0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-4-5  BYTE MOVE (BYMV)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN44 D P<\/p>\n<p>BYMV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BYTE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN44 D P<\/p>\n<p>BYMV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-053.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source data to be moved<\/p>\n<p>Ns: Assign Ns byte within S as source byte<\/p>\n<p>D: Destination register to be moved<\/p>\n<p>Nd: Assign Nd byte within D as target byte<\/p>\n<p>S, Ns, D, Nd may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>Ns<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-3<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Nd<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-3<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When move control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), move Nsth byte within S to Ndth byte position within D. (A byte is comprised of 8 bits. Starting from the lowest bit of the register, B0, each successive eight bits form a byte, so B0~B7 form byte 0, B8~B15 form byte 1, etc&#8230;)<\/li>\n<li>When the operand is 16 bit, the effective range of Ns or Nd is 0~1. For 32 bit ( D instruction) operand, the range is 0~3. Beyond this range, will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN44 D P<\/p>\n<p>BYMV<\/p>\n<\/td>\n<td>\n<p>BYTE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN44 D P<\/p>\n<p>BYMV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-054.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction moves the third byte (B16~B23) within S (32 bit register composed of R1R0), to the first byte within D (32 bit register composed of R3R2). Other bytes within D remain unchanged.<\/li>\n<\/ul>\n<p>           B31                                         B0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>DR0<\/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>\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<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tByte3\tByte2\tByte1\tByte0<\/p>\n<p>     Ns\uff1d2\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-055.png\" \/><\/p>\n<p>\t\u21e9X0\uff1d<\/p>\n<p>    Nd\uff1d1\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-056.png\" \/><\/p>\n<p>\tByte3\tByte2\tByte1\tByte0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>DR2<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/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<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/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<\/tr>\n<\/table>\n<\/div>\n<p>\tB31\tB0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-4-6  EXCHANGE (XCHG)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN45 D P<\/p>\n<p>XCHG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EXCHANGE<\/p>\n<\/td>\n<td>\n<p>FUN45 D P<\/p>\n<p>XCHG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-057.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Da: Register a to be exchanged<\/p>\n<p>Db: Register b to be exchanged<\/p>\n<p>Da, Db may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM<\/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>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Da<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<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>Db<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When exchange control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), will exchanges the contents of register Da and register Db in 16 bits or 32 bits (D instruction) format.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-058.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The instruction exchanges the contents of the 16-bit R0 and R1 registers.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN45 D P<\/p>\n<p>XCHG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EXCHANGE<\/p>\n<\/td>\n<td>\n<p>FUN45 D P<\/p>\n<p>XCHG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>                     B15\t\tB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Da<\/p>\n<\/td>\n<td>\n<p>R0<\/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>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>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>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>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Db<\/p>\n<\/td>\n<td>\n<p>R1<\/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>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>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>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<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/p>\n<p>\tB15\tB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Da<\/p>\n<\/td>\n<td>\n<p>R0<\/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>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>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>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<\/tr>\n<tr>\n<td>\n<p>Db<\/p>\n<\/td>\n<td>\n<p>R1<\/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>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>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>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>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-4-7  BYTE SWAP (SWAP)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN46 P<\/p>\n<p>SWAP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BYTE SWAP<\/p>\n<\/td>\n<td>\n<p>FUN46 P<\/p>\n<p>SWAP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-059.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register for byte data swap<\/p>\n<p>D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM<\/p>\n<\/td>\n<td>\n<p>WSM<\/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>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>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>B15<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>B8 B7<\/p>\n<\/td>\n<td>\n<p>B0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Byte 1\uff08high\uff09<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Byte 0\uff08low\uff09<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN46 P<\/p>\n<p>SWAP<\/p>\n<\/td>\n<td>\n<p>BYTE SWAP<\/p>\n<\/td>\n<td>\n<p>FUN46 P<\/p>\n<p>SWAP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-060.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>SWAP( D:= R0);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The instruction swaps the data of the low byte (B0~B7) and the high byte (B8~B15) in R0. The results are as follows:<\/p>\n<p>Byte1       Byte0<\/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<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>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>\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>0<\/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>\tB15\tB8\tB7\tB0<\/p>\n<p>\u21e9X0\uff1d<\/p>\n<p>\tB15          \u2502\tB0<\/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<\/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>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>0<\/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>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-5  Shifting\/Rotating Instructions (FUN51\uff5e54)<\/h3>\n<h4>7-5-1  SHIFT LEFT (SHFL)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN51 D P<\/p>\n<p>SHFL<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SHIFT LEFT<\/p>\n<\/td>\n<td>\n<p>FUN51 D P<\/p>\n<p>SHFL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-061.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register to be shifted<\/p>\n<p>N: Number of bits to be shifted<\/p>\n<p>N, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>0    0<\/p>\n<p>\u2223 or \u2223<\/p>\n<p>16    32<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When shift control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), will shift the data of the D register towards the left by N successive bits (in ascending order). After the lowest bit B0 has been shifted left, its position will be replaced by shift-in bit INB, while the status of shift-out bits B15 or B31 (D instruction) will appear at shift-out bit &quot;OTB&quot;.<\/li>\n<li>If the operand is 16 bits, the effective range of N is 1~16. For 32 bits (D instruction) operand, it is 1~32. Beyond this range, will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN51 D P<\/p>\n<p>SHFL<\/p>\n<\/td>\n<td>\n<p>SHIFT LEFT<\/p>\n<\/td>\n<td>\n<p>FUN51 D P<\/p>\n<p>SHFL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-062.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction shifts the data in register R0 towards the left by 4 successive bits. The results are shown below.<\/li>\n<\/ul>\n<p>                  Y0\tB15\tR0\tB0\tINB<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>\u2190<\/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>\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>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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>*<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/p>\n<p>\tY0\tB15\tR0\tB0\tINB<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/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>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>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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>*<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-5-2  SHIFT RIGHT (SHFR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN52 D P<\/p>\n<p>SHFR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SHIFT RIGHT<\/p>\n<\/td>\n<td>\n<p>FUN52 D P<\/p>\n<p>SHFR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-063.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register to be shifted<\/p>\n<p>N: Number of bits to be shifted<\/p>\n<p>D, N may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>0    0<\/p>\n<p>\u2223 or \u2223<\/p>\n<p>16    32<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When shift control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), will shift the data of D register towards the right by N successive bits (in descending order). After the highest bits, B15 or B31 (D instruction) have been shifted right, their positions will be replaced by the shift-in bit INB, while shift-out bit B0 will appear at shift-out bit &quot;OTB&quot;.<\/li>\n<li>If the operand is 16 bits, the effective range of N is 1~16. For 32 bits (D instruction) operand, it is 1~32. Beyond this range, will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN52 D P<\/p>\n<p>SHFR<\/p>\n<\/td>\n<td>\n<p>SHIFT RIGHT<\/p>\n<\/td>\n<td>\n<p>FUN52 D P<\/p>\n<p>SHFR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-064.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction at left shifts the data in R0 register towards the right by 15 successive bits. The results are shown below.<\/li>\n<\/ul>\n<p>                 INB\tB15\tR0\tB0\tY0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>\u2192<\/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>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>0<\/p>\n<\/td>\n<td>\n<p>\u2192<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>*<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/p>\n<p>\tINB\tB15\tR0\tB0\tY0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<td><\/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>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>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>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><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td>\n<p>\u25b3<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>*<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-5-3  ROTATE LEFT (ROTL)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN53 D P<\/p>\n<p>ROTL<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ROTATE LEFT<\/p>\n<\/td>\n<td>\n<p>FUN53 D P<\/p>\n<p>ROTL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-065.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>D: Register to be rotated<\/p>\n<p>N: Number of bits to be rotated<\/p>\n<p>D, N may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>0    0<\/p>\n<p>\u2223 or \u2223<\/p>\n<p>16    32<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>When rotate control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), will rotate the data of D register towards the left by N successive bits (in ascending order, ie. in a 16-bit instruction, B0\u2192B1, B1\u2192B2, &#8230;., B14\u2192B15, B15\u2192B0. In a 32-bit instruction, B0\u2192B1, B1\u2192B2, &#8230;., B30\u2192B31, B31\u2192B0). At the same time, the status of the rotated out bits B15 or B31 (D instruction) will appear at rotate-out bit &quot;OTB&quot;.<\/li>\n<li>If the operand is 16 bits, the effective range of N is 1~16. For 32 bits (D instruction) operand, it is 1~32. Beyond this range, will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN53 D P<\/p>\n<p>ROTL<\/p>\n<\/td>\n<td>\n<p>ROTATE LEFT<\/p>\n<\/td>\n<td>\n<p>FUN53 D P<\/p>\n<p>ROTL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-066.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction rotates data from the R0 register towards the left 9 successive bits. The results are shown below.<\/li>\n<\/ul>\n<p>\tR0\tB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>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>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<\/tr>\n<tr>\n<td colspan=\"2\"><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>*<\/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<\/tr>\n<tr>\n<td colspan=\"2\"><\/td>\n<td colspan=\"16\">\n<p>Y0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/p>\n<p>\tB15\tR0\tB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\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>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>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<\/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<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>*<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"15\">\n<p>Y0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>*<\/p>\n<\/td>\n<td colspan=\"15\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-5-4  ROTATE RIGHT (ROTR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN54 D P<\/p>\n<p>ROTR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ROTATE RIGHT<\/p>\n<\/td>\n<td>\n<p>FUN54 D P<\/p>\n<p>ROTR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-067.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register to be rotated<\/p>\n<p>N: Number of bits to be rotated<\/p>\n<p>D, N may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>0    0<\/p>\n<p>\u2223 or \u2223<\/p>\n<p>16    32<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When rotate control &quot;EN&quot; = 1 or has a transition from 0 to 1(P instruction), will rotate the bit data of D register towards the right by N successive bits (in descending order, ie. in a 16-bit instruction, B15\u2192B14, B14\u2192B13, &#8230;., B1\u2192B0, B0\u2192B15. In a 32-bit instruction, B31\u2192B30, B30\u2192B29, &#8230;., B1\u2192B0, B0\u2192B31). At the same time, the status of the rotated out B0 bits will appear at the rotate-out bit &quot;OTB&quot;.<\/li>\n<li>If the operand is 16 bits, the effective range of N is 1~16. For 32 bits (D instruction) operand, it is 1~32. Beyond this range, will set the N value error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN54 D P<\/p>\n<p>ROTR<\/p>\n<\/td>\n<td>\n<p>ROTATE RIGHT<\/p>\n<\/td>\n<td>\n<p>FUN54 D P<\/p>\n<p>ROTR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-068.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction rotates data from R0 register towards the right 8 successive bits. The results are shown below.<\/li>\n<\/ul>\n<p>B15\tR0\tB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\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>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>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<\/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>\n<p>*<\/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<\/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<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u21e9X0\uff1d<\/p>\n<p>\tB15\tR0\tB0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\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>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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>*<\/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><\/td>\n<td><\/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><\/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 colspan=\"2\">\n<p>Y0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/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<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>*<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-6  Code Conversion Instructions (FUN55\uff5e64)<\/h3>\n<h4>7-6-1  INARY-CODE TO GRAY-CODE CONVERSION (B\u2192G)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN55 D P<\/p>\n<p>B\u2192G<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BINARY-CODE TO GRAY-CODE CONVERSION<\/p>\n<\/td>\n<td>\n<p>FUN55 D P<\/p>\n<p>B\u2192G<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-069.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting of source<\/p>\n<p>D: Starting addr ess of destination<\/p>\n<p>S, D operand can combine V, Z, P0~P9 for index addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>D<\/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>\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><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When the execution control &quot;EN&quot;=1 or from 0\u21921 (P instruction), convert the binary code of the S register to Gray code.<\/li>\n<li>When the conversion bit is less than 16 bits, a temporary register is needed to store the conversion result. When it is greater than or equal to 16 bits, two registers are required (D instruction).<\/li>\n<li>The conversion method shown as below<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-070.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN55 D P<\/p>\n<p>B\u2192G<\/p>\n<\/td>\n<td>\n<p>BINARY-CODE TO GRAY-CODE CONVERSION<\/p>\n<\/td>\n<td>\n<p>FUN55 D P<\/p>\n<p>B\u2192G<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>When M0 is from OFF\u2192ON, convert R0 (binary code) into Gray code, and then store it in R100.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-071.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M0 ) THEN<\/p>\n<p>BintoGray( S:= R0, D:= R100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>R0\uff1d1001010101010011B \ud83e\udc7a\t R100\uff1d1101111111111010B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M0 =1, it will perform the 32-bit code conversion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>When M0 is ON, convert DR0 (binary code) to Gray code, and then store it in DR100.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-072.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M0 ) THEN<\/p>\n<p>BintoGray( S:= DR0, D:= DR100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>DR0\uff1d00110111001001000010111100010100B\t \ud83e\udc7a   DR100=00101100101101100011100010011110B<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-2  GRAY-CODE TO BINARY-CODE CONVERSION (G\u2192B)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN56 D P<\/p>\n<p>G\u2192B<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>GRAY-CODE TO BINARY-CODE CONVERSION<\/p>\n<\/td>\n<td>\n<p>FUN56 D P<\/p>\n<p>G\u2192B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-073.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting of source<\/p>\n<p>D: Starting address of destination<\/p>\n<p>S, D operand can combine V, Z, P0~P9 for index addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>D<\/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>\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><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When the execution control &quot;EN&quot;=1 or from 0\u21921 (P instruction), convert the binary code of the S register to Gray code.<\/li>\n<li>When the conversion bit is less than 16 bits, a temporary register is needed to store the conversion result. When it is greater than or equal to 16 bits, two registers are required (D instruction).<\/li>\n<li>The conversion method shown as below:<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-074.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN56 D P<\/p>\n<p>G\u2192B<\/p>\n<\/td>\n<td>\n<p>GRAY-CODE TO BINARY-CODE CONVERSION<\/p>\n<\/td>\n<td>\n<p>FUN56 D P<\/p>\n<p>G\u2192B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M0 is from OFF\u2192ON, convert D0 (binary code) into Gray code, and then store it in D100.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-075.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M0 ) THEN<\/p>\n<p>GraytoBin( S:= D0, D:= D100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>D0\uff1d1001010101010011B \ud83e\udc7aD100\uff1d1110011001100010B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M0 =1, it will perform the 32-bit code conversion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>When M0 is ON, convert DD0 (binary code) to Gray code, and then store it in DD100<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-076.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M0 ) THEN<\/p>\n<p>GraytoBin_D( S:= D0, D:= D100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>DD0\uff1d00110111001001000010111100010100B \ud83e\udc7a DD100\uff1d00100101110001111100101000011000B<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-3  DECODE (DECOD)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN57 P<\/p>\n<p>DECOD<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DECODE<\/p>\n<\/td>\n<td>\n<p>FUN57 P<\/p>\n<p>DECOD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-077.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S : Source data register to be decoded (16 bits) <\/p>\n<p>NS : Starting bits to be decoded within S <\/p>\n<p>NL : Length of decoded value (1~8 bits)<\/p>\n<p>D : Starting register storing decoded results (2~256 points = 1~16 words) <\/p>\n<p>S, NS, NL, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<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>Ns<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-15<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Nl<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-8<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>This instruction, will set a single bit among the total of 2NL discrete points (D) to 1 and the others bit are set to 0. The bit number to be set to 1 is specified by the value comprised by BNS\uff5eBNS+NL\u22121 of S\uff08which is called the decode value, BNS is the starting bit of the decode value, and BNS+NL\u22121 is the end value\uff09.<\/li>\n<li>When decode control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), will take out the value BNS\uff5e BNS+NL\u22121 from S. And with this value to locate the bit position and set D accordingly, and set all the other bit to zero.<\/li>\n<li>This instruction only provides 16 bit operand, which means S only has B0~B15. Therefore the effective range of Ns is 0~15, and the NL length of the decode value is limited to 1~8 bits. Therefore the width of the decoded result D is 21\uff5e8 points = 2~256 points = 1~16 words (if 16 points are not sufficient, 1 word is still occupied). If the value of NS or NL is beyond the above range, will set the range-error flag &quot;ERR&quot; to 1, and do not carry out this instruction.<\/li>\n<li>If the end bit value exceeds the B15 of S, then will extend toward B0 of S + 1. However if this occurs then S+1 can\u2019t exceed the range of specific type of operand (ie. If S is of D type register then S+1 can\u2019t be D3072). If violate this, then this instruction only takes out the bits from starting bit BNs to its highest limit as the decode value.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-4  ENCODE (ENCOD)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN58 P<\/p>\n<p>ENCOD<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ENCODE<\/p>\n<\/td>\n<td>\n<p>FUN58 P<\/p>\n<p>ENCOD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-078.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S : Starting register to be encoded <\/p>\n<p>NS : Bit position within S as the encoding start point <\/p>\n<p>NL : Number of encoding discrete points (2~256) <\/p>\n<p>D : Number of register storing encoding results (1 word) S, NS, NL, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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>\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<tr>\n<td>\n<p>Ns<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-15<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Nl<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-8<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When encode control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), will starting from the points specified by Ns within S, take out towards the left (high position direction) N<sub>L<\/sub> number of successive bits BN<sub>S<\/sub>\uff5e BN<sub>S<\/sub>+N<sub>L\u22121<\/sub> (BN<sub>S<\/sub> is called the encoding start point, and its relative bit number is b0;BNS+NL\u22121 is called the encoding end point, and its relative bit number is BN<sub>L-1<\/sub>). From left to right do higher priority (when H\/L=1) encoding or from right to left do lower priority (when H\/L=0) encoding (i.e. seek the first bit with the value of 1, and the relative bit number of this point will be stored into the low byte (B0~B7) of encoded resultant register D, and the high byte of D will be filled with 0. <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN58 P<\/p>\n<p>ENCOD<\/p>\n<\/td>\n<td>\n<p>ENCODE<\/p>\n<\/td>\n<td>\n<p>FUN58 P<\/p>\n<p>ENCOD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-079.png\" \/><\/p>\n<ul>\n<li>As shown in the diagram above, for high priority encoding, the bit first to find is b<sub>H<\/sub> (with a value of 12), and for low priority encoding, the bit first to find b<sub>L<\/sub> (with a value of 4). Among the N<sub>L<\/sub> discrete points there must be at least one bit with value of 1. If all bits are 0, will not to carry out this instruction, and the all zero flag &quot;D=0&quot; will set to 1.<\/li>\n<li>Because S is a 16-bit register, Ns can be 0~15, and is used to assign a point of B0~B15 within S as the encoding start point (b0). The value of N<sub>L<\/sub> can be 2~256, and it is used to identify the encoding end point, i.e. it assigns NL successive single points starting from the start point (b0) towards the left (high position direction) as the encoding zone (i.e. b0\uff5ebN<sub>L\u22121<\/sub>). If the value of Ns or NL exceeds the above value, then do not carry out this instruction, and set the range-error flag &quot;ERR&quot; as 1.<\/li>\n<li>If the encoding end point (bN<sub>L\u22121<\/sub>) beyond the B15 of S, then continue extending towards S+1, S+2, but it must not exceed the range of specific type of operand. If it goes beyond this, then this instruction can only take the discrete points between b0 and the highest limit into account for encoding.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-5  HOUR\uff1aMINUTE\uff1aSECOND\u2192SECOND<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN61 P<\/p>\n<p>\u2192SEC<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HOUR\uff1aMINUTE\uff1aSECOND\u2192SECOND<\/p>\n<\/td>\n<td>\n<p>FUN61 P<\/p>\n<p>\u2192SEC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-080.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting calendar data register to be converted<\/p>\n<p>D: Starting register storing results<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/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>\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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN61 P<\/p>\n<p>\u2192SEC<\/p>\n<\/td>\n<td>\n<p>HOUR\uff1aMINUTE\uff1aSECOND\u2192SECOND<\/p>\n<\/td>\n<td>\n<p>FUN61 P<\/p>\n<p>\u2192SEC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When conversion control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), will convert the hour: minute: second data of S~S+2 into an equivalent value in seconds and store it into the 32-bit register formed by combining D and D+1. If the result = 0, then set the &quot;D = 0&quot; flag as 1.<\/li>\n<li>Among the Fatek-PLC instructions, the hour: minute: second time related instructions (FUN61 and 62) use 3 words of register to store the time data, as shown in the diagram below. The first word is the second register, the second word is the minute register, and finally the third word is the hour register, and in the 16 bits of each register, only B14~B0 are used to represent the time value. While bit B15 is used to express whether the time values are positive or negative.  When B15 is 0, it represents a positive time value, and when B15 is 1 it represents a negative time value. The B14~B0 time value is represented in binary, and when the time value is negative, B14~B0 is represented with the 2&#8217;s complement. The number of seconds that results from this operation is the result of summation of seconds from the three registers representing [hour: minute: second].<\/li>\n<\/ul>\n<p>            B15                 B14         B0         B15B0<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>S\u3000(sec)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\uff0d32768 sec\uff5e32767 sec<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>D<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>the sec. value.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S\uff0b1 (min)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\uff0d32768 min\uff5e32767 min<\/p>\n<\/td>\n<td>\n<p>D\uff0b1<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>S\uff0b2  (hr)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\uff0d32768 hr\uff5e32767 hr<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>B31<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>B30<\/p>\n<\/td>\n<td>\n<p>B16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>  \u2191B31 is used to represent the positive or <\/p>\n<p>The B15 of each register is used to represent the sign of each time value\t negative nature of the sec. value<\/p>\n<ul>\n<li>Any [hour: minute: second] time data will be automatically merged and used except when accessing with FUN61 or 62 instructions. Other instructions will regard it as an individual general register and will not be automatically merged and used, there is no relationship between the 3 registers, so you can operate on any data of hours, minutes, and seconds separately, and the results will not affect each other.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN61 P<\/p>\n<p>\u2192SEC<\/p>\n<\/td>\n<td>\n<p>HOUR\uff1aMINUTE\uff1aSECOND\u2192SECOND<\/p>\n<\/td>\n<td>\n<p>FUN61 P<\/p>\n<p>\u2192SEC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The example program at below converts the hour: minute: second data formed by R20~R22 into their equivalent value in seconds then stored in the 32-bit register formed by R50~R51. The results are shown below:<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-081.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= X0 ) THEN<\/p>\n<p>ToSEC( S:= R20, D:=R50 );<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"6\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-082.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>0E11H<\/p>\n<\/td>\n<td>\n<p>\uff1d3601sec<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>R21<\/p>\n<\/td>\n<td>\n<p>FD2FH<\/p>\n<\/td>\n<td>\n<p>\uff1d-721min<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R22<\/p>\n<\/td>\n<td>\n<p>03F3H<\/p>\n<\/td>\n<td>\n<p>\uff1d1011hr<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>\u21e9X0\uff1d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>D<\/p>\n<\/td>\n<td>\n<p>R50<\/p>\n<\/td>\n<td>\n<p>EE45H<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\uff1d3599941sec<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R51<\/p>\n<\/td>\n<td>\n<p>0036H<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-6  SECOND\u2192HOUR\uff1aMINUTE\uff1aSECOND<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN62 P<\/p>\n<p>\u2192HMS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SECOND\u2192HOUR\uff1aMINUTE\uff1aSECOND<\/p>\n<\/td>\n<td>\n<p>FUN62 P<\/p>\n<p>\u2192HMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-083.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting register of second to be converted<\/p>\n<p>D: Starting register storing result of conversion (hour : minute : second)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>-117968399<\/p>\n<p>&#8211;<\/p>\n<p>117964799<\/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>\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>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN62 P<\/p>\n<p>\u2192HMS<\/p>\n<\/td>\n<td>\n<p>SECOND\u2192HOUR\uff1aMINUTE\uff1aSECOND<\/p>\n<\/td>\n<td>\n<p>FUN62 P<\/p>\n<p>\u2192HMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When conversion control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), will convert the second data from the S~S+1 32-bit register into the equivalent hour : minute : second time value and store it in the three successive registers D~D+2. All the data in this instruction is represented in binary (if there is a negative value it is represented using the 2&#8217;s complement.)<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td colspan=\"2\" rowspan=\"2\">\n<p>Second<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>D\u3000 (sec)<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>\uff0d59 sec\uff5e59 sec<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S\uff0b1<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td>\n<p>D\uff0b1 (min)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\uff0d59 min\uff5e59 min<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"4\">\n<p>B31<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>B16<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>D\uff0b2  (hr)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\uff0d32768 hr\uff5e32767 hr<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>\u2191<\/p>\n<p>The bit B31 of the second register is used as the sign <br \/>bit of the second value.<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"4\">\n<p>\u2191<\/p>\n<p>The bits B15 of each register are used as the sign bit of the hour : minute : second value.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>As shown in the diagram above, after convert to hour : minute : second value, the minute : second value can only be in the range of -59 to 59, and the hour number can be in the range of -32768 to 32767 hours. Because of this, the maximum limit of D is -32768 hours, -59 minutes, -59 seconds to 32767 hours, 59 minutes, 59 seconds, the corresponding second value of S which is in the range of -117968399 to 117964799 seconds. If the S value exceeds this range, this instruction cannot be carried out, and will set the over range flag &quot;OVR&quot; to 1. If S = 0 then result is 0 flag &quot;D = 0&quot; will be set to 1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN62 P<\/p>\n<p>\u2192HMS<\/p>\n<\/td>\n<td>\n<p>SECOND\u2192HOUR\uff1aMINUTE\uff1aSECOND<\/p>\n<\/td>\n<td>\n<p>FUN62 P<\/p>\n<p>\u2192HMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The program in the diagram below is an example of this instruction. Please note that the contents of the registers are denoted by hexadecimal, and on the right is its equivalent value in decimal notation.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>5D17H<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>6315287sec<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>0060H<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u21e9X0\uff1d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>002FH<\/p>\n<\/td>\n<td>\n<p>47sec<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>000EH<\/p>\n<\/td>\n<td>\n<p>14min<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R12<\/p>\n<\/td>\n<td>\n<p>06DAH<\/p>\n<\/td>\n<td>\n<p>1754hr<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-084.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= X0 ) THEN<\/p>\n<p>ToHMS( S:= R0, D:=R10 );<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-7  CONVERSION OF ASCII CODE TO HEXADECIMAL VALUE (ASCII\u2192HEX)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN63 P<\/p>\n<p>\u2192HEX<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CONVERSION OF ASCII CODE TO HEXADECIMAL VALUE<\/p>\n<\/td>\n<td>\n<p>FUN63 P<\/p>\n<p>\u2192HEX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-085.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting source register.\t<\/p>\n<p>N: Number of ASCII codes to be converted to hexadecimal values.<\/p>\n<p>D: The starting register that stores the result (hexadecimal value).<\/p>\n<p>S, N, D, can associate with V, Z, P0~P9 to do the indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D11999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<br \/>+number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/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>\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<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1\uff5e511<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When conversion control \u201cEN\u201d =1 or changes from 0\u21921 (P instruction), it will convert the N successive hexadecimal ASCII character(\u20180\u2019~\u20199\u2019,\u2019A\u2019~\u2019F\u2019) convey by 16-bit registers (Low Byte is effective) into hexadecimal value, and store the result into the register starting with D. Every 4 ASCII code is stored in one register. The nibbles of register, which does not involve in the conversion of ASCII code will remain unchanged. <\/li>\n<li>The conversion will not be performed when N is 0 or greater than 511.<\/li>\n<li>When there is ASCII error (neither 30H\uff5e39H nor 41H\uff5e46H), the output \u201cERR\u201d is ON.<\/li>\n<li>The main purpose of this command is to convert the ASCII numbers received by communication ports 1~2 from the external ASCII peripherals (transmitting values \u200b\u200bto the PLC in ASCII codes) into hexadecimal values \u200b\u200bthat can be directly processed by the CPU.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN63 P<\/p>\n<p>\u2192HEX<\/p>\n<\/td>\n<td>\n<p>CONVERSION OF ASCII CODE TO HEXADECIMAL VALUE<\/p>\n<\/td>\n<td>\n<p>FUN63 P<\/p>\n<p>\u2192HEX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M1 from OFF\u2192ON, ASCII code converted to hexadecimal value.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M1 is from OFF\u2192ON, convert ASCII code to hexadecimal value<\/li>\n<li>Convert the ASCII code of R0 to hexadecimal value and store it in Nibble 0 of R100 (Nibble1~Nibble3 remain unchanged)<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-086.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M1 ) THEN<\/p>\n<p>ToHEX( S:= R0, N:= 1, D:= R100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\t          Originally              R100\uff1d0000H<\/p>\n<p>\t          R0\uff1d0039H\uff089\uff09\ud83e\udc7a\t\t R100\uff1d0009H<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M1 is ON, ASCII code converted to hexadecimal value.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M1 is ON, convert ASCII code to hexadecimal value<\/li>\n<li>Convert the ASCII codes of R0 and R1 into hexadecimal values \u200b\u200band store them in the low bytes of R100 (the high bytes remain unchanged)<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-087.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1 THEN<\/p>\n<p>ToHEX( S:= R0, N:= 2, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>R0\uff1d0039H\uff089\uff09\tOriginally  R100\uff1d0000H<\/p>\n<p>R1\uff1d0041H\uff08A\uff09\ud83e\udc7a\t          R100\uff1d009AH<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example3<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<ul>\n<li>When M1 is ON, convert ASCII code to hexadecimal value<\/li>\n<li>Convert the ASCII codes of R0~R2 into hexadecimal values \u200b\u200band store them in R100 (Nibble 3 remains unchanged)<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-088.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1 THEN<\/p>\n<p>ToHEX( S:= R0, N:= 3, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>R0\uff1d0039H \uff089\uff09\tOriginally R100\uff1d0000H<\/p>\n<p>R1\uff1d0041H \uff08A\uff09<\/p>\n<p>R2\uff1d0045H \uff08E\uff09\ud83e\udc7a\t\tR100\uff1d09AEH<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example4<\/p>\n<\/td>\n<td>\n<p>When M1 is ON, ASCII code converted to hexadecimal value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<ul>\n<li>When M1 is ON, convert ASCII code to hexadecimal value<\/li>\n<li>Convert the ASCII codes of R0~R5 into hexadecimal values \u200b\u200band store them in R100~R101<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-089.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1 THEN<\/p>\n<p>ToHEX( S:= R0, N:= 6, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tR0\uff1d0031H\uff081\uff09\tOriginally R100\uff1d0000H<\/p>\n<p>\tR1\uff1d0032H\uff082\uff09         \tR101\uff1d0000H<\/p>\n<p>\tR2\uff1d0033H\uff083\uff09<\/p>\n<p>\tR3\uff1d0034H\uff084\uff09<\/p>\n<p>\tR4\uff1d0035H\uff085\uff09\ud83e\udc7a\t\tR100\uff1d3456H<\/p>\n<p>\tR5\uff1d0036H\uff086\uff09       \tR101\uff1d0012H<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-6-8  CONVERSION OF HEXADECIMAL VALUE TO ASCII CODE (HEX\u2192ASCII)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CONVERSION OF HEXADECIMAL VALUE TO ASCII CODE<\/p>\n<\/td>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-090.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting source register<\/p>\n<p>N: Number of hexadecimal digits to be converted to ASCII code.<\/p>\n<p>D: The starting register storing result.<\/p>\n<p>S, N, D, can associate with V, Z, P0~P9 to do the indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D11999<\/p>\n<\/td>\n<td>\n<p>16-bit<br \/>+number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/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>\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<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1\uff5e511<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When conversion control \u201cEN\u201d =1 or changes from 0\u21921 (P instruction), will convert the N successive nibbles of hexadecimal value in registers start from S into ASCII code, and store the result to low byte (high byte remain unchanged) of the registers which start from D.<\/li>\n<li>The conversion will not be performed when the value of N is 0 or greater than 511.<\/li>\n<li>The main purpose of this instruction is to convert the numerical value data, which PLC has processed, to ASCII code and transmit to ASCII peripherals by communication port1 or communication port 2.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<td>\n<p>CONVERSION OF HEXADECIMAL VALUE TO ASCII CODE<\/p>\n<\/td>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M1 is from OFF\u2192ON, the converted hexadecimal value is ASCII code<\/li>\n<li>Convert the Nibble 0 of R0 to ASCII code and store it in R100 (the high byte remains unchanged).<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-091.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M1 ) THEN<\/p>\n<p>ToASCII ( S:= R0, N:= 1, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>R0\uff1d0009H \ud83e\udc7a R100\uff1d0039H\uff089\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M1 is ON, it converts hexadecimal value to ASCII code.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M1 is ON, convert the hexadecimal value to ASCII code<\/li>\n<li>Convert NB0~NB1 of R0 into ASCII codes and store them in R100~R101 (the high byte remains unchanged).<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-092.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1 THEN<\/p>\n<p>ToASCII ( S:= R0, N:= 2, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tR0\uff1d009AH\t\ud83e\udc7a\tR100\uff1d0039H\uff089\uff09<\/p>\n<p>               R101\uff1d0041H\uff08A\uff09<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<td>\n<p>CONVERSION OF HEXADECIMAL VALUE TO ASCII CODE<\/p>\n<\/td>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M1 is ON, it converts hexadecimal value to ASCII code.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M1 is ON, convert the hexadecimal value to ASCII code<\/li>\n<li>Convert NB0~NB2 of R0 into ASCII codes and store them in R100~R102<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-093.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1 THEN<\/p>\n<p>ToASCII ( S:= R0, N:= 3, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tR0\uff1d0123H\t\ud83e\udc7a\t \tR100\uff1d0031H\uff081\uff09<\/p>\n<p>                        \tR101\uff1d0032H\uff082\uff09<\/p>\n<p>                        \tR102\uff1d0033H\uff083\uff09<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<td>\n<p>CONVERSION OF HEXADECIMAL VALUE TO ASCII CODE<\/p>\n<\/td>\n<td>\n<p>FUN64 P<\/p>\n<p>\u2192ASCII<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M1 is ON, it converts hexadecimal value to ASCII code.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M1 is ON, convert the hexadecimal value to ASCII code<\/li>\n<li>Convert NB0~NB5 of R0~R1 to ASCII code and store in R100~R105<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-094.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1 THEN<\/p>\n<p>ToASCII ( S:= R0, N:= 6, D:= R100);<\/p>\n<p>END_IF <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\tR0\uff1d3456H\t\ud83e\udc7a\tR100\uff1d0031H\uff081\uff09<\/p>\n<p>\tR1\uff1d0012H      \tR101\uff1d0032H\uff082\uff09<\/p>\n<p>              \t R102\uff1d0033H\uff083\uff09<\/p>\n<p>              \t R103\uff1d0034H\uff084\uff09<\/p>\n<p>              \t R104\uff1d0035H\uff085\uff09<\/p>\n<p>              \t R105\uff1d0036H\uff086\uff09<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-7  Flow Control Instructions II (FUN22\u3001FUN65\uff5e71)<\/h3>\n<h4>7-7-1  Break<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN22 P<\/p>\n<p>BREAK<\/p>\n<\/td>\n<td>\n<p>BREAK FROM FOR AND NEXT LOOP<\/p>\n<p>(BREAK)<\/p>\n<\/td>\n<td>\n<p>FUN22 P<\/p>\n<p>BREAK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-095.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When execution control \u201cEN\u201d = 1 or changes from 0\u21921 (P instruction), it will terminate the FOR and NEXT program loop.<\/li>\n<li>The program within the FOR and NEXT loop will be executed N times (N is assigned by FOR instruction) successively, but if it is necessary to terminate the execution loop less than N times, the BREAK instruction is necessary to apply.<\/li>\n<li>The BREAK instruction must be located within the FOR and NEXT program loop.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN22 P<\/p>\n<p>BREAK<\/p>\n<\/td>\n<td>\n<p>BREAK FROM FOR AND NEXT LOOP<\/p>\n<p>(BREAK)<\/p>\n<\/td>\n<td>\n<p>FUN22 P<\/p>\n<p>BREAK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-096.png\" \/><\/p>\n<\/td>\n<td>\n<p>V := 0;<\/p>\n<p>FOR D10 := 0 TO 10 BY 1  DO<\/p>\n<p>IF D100 = R0V THEN<\/p>\n<p>M200 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>IF M200 THEN<\/p>\n<p>BREAK;<\/p>\n<p>END_IF<\/p>\n<p>V := V + 1;<\/p>\n<p>END_FOR<\/p>\n<p>D1000 := V;<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description\uff1aThe loop count used to execute the FOR and NEXT program loop is assigned by register D10; the program within the FOR and NEXT loop is designed to search the same data storing in D100 from the register table starting at R0. If it finds, the searching loop will be terminated and then it goes to execute the program after the NEXT instruction. If it doesn&#8217;t find, the searching loop will be executed N times (N is the content of D10) and then it goes to execute the program after the NEXT instruction. M200 tells the status and D100 is the pointer of searching.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-2  LABEL (LBL)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN65<\/p>\n<p>LBL<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>LABEL<\/p>\n<\/td>\n<td>\n<p>FUN65<\/p>\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-097.png\" \/><\/p>\n<\/td>\n<td>\n<p>S: Alphanumeric, 1~6 characters<\/p>\n<\/td>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>          Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~9 , A~Z ; + , &#8211;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LN<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u203bOnly supported in the main program and subroutine<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>This instruction is used to make a tag on certain address within a program, to provide a target address for execution of JUMP, CALL instruction and interrupt service. It also can be used for document purpose to improve the readability and interpretability of the program.<\/li>\n<li>This instruction serves only as the program address marking to provide the control of procedure flow or for remark. The instruction itself will not perform any actions; whether the program contains this instruction or not, the result of program execution will not be influenced by this instruction.<\/li>\n<li>The label name can be formed by any 1~6 alphanumeric characters and can\u2019t be duplicate in the same program. The following label names are reserved for interrupt function usage.  These \u201creserved words\u201d can\u2019t be used for normal program labels.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN65<\/p>\n<p>LBL<\/p>\n<\/td>\n<td>\n<p>LABEL<\/p>\n<\/td>\n<td>\n<p>FUN65<\/p>\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Reserved words<\/p>\n<\/td>\n<td>\n<p>Interrupt <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0+I~X15+I (INT0~INT15)<\/p>\n<p>X16+I~X23+I(INT16~INT23)<\/p>\n<p>X0\u2212I~X15\u2212I (INT0\u2212~INT15\u2212)<\/p>\n<p>X16\u2212I~X23\u2212I (INT16\u2212~INT23\u2212)<\/p>\n<\/td>\n<td>\n<p>Interrupt service program name of X0~X15, X16~X23<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0I~HSC3I<\/p>\n<\/td>\n<td>\n<p>Interrupt service routine name of HSC0\uff5eHSC3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>STM0I (1MS), STM1I (1MS), STM2I (1MS), STM3I (1MS), LTM0I (10MS), LTM1I (10MS), LTM2I (10MS), LTM3I (10MS)<\/p>\n<\/td>\n<td>\n<p>1mS, 10mS, 2 kinds of timer interrupt service program name in PLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HST0I~HST3I<\/p>\n<\/td>\n<td>\n<p>Label for high-speed fixed timer interrupt service routine.<\/p>\n<p>In units of 0.1mS<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Unless the program you marked is indeed the service program corresponding to the above interrupt, the above name can be used, and it cannot be used elsewhere. Otherwise, when an interrupt occurs, the PLC will execute the general program you marked as an interrupt program, resulting in errors or crash.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN65<\/p>\n<p>LBL<\/p>\n<\/td>\n<td>\n<p>LABEL<\/p>\n<\/td>\n<td>\n<p>FUN65<\/p>\n<p>LBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>The label of following diagram illustration served only as program remarks (it is not treated as a label for call or jump target).  For the application of labeling in jump control, please refer to JMP instruction for explanation.  As to the labeling serves as subroutine names, please refer to CALL instruction for details.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u5716\u72471.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-098.png\" \/><\/p>\n<\/td>\n<td>\n<p>LBL ( PGM1)<\/p>\n<p>Program 1<\/p>\n<p>LBL ( PGM2)<\/p>\n<p>Program 2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-3  JUMP (JMP)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN66 P<\/p>\n<p>JMP<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>JUMP<\/p>\n<\/td>\n<td>\n<p>FUN66 P<\/p>\n<p>JMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-099.png\" \/><\/p>\n<\/td>\n<td>\n<p>LBL: The program label to be jumped<\/p>\n<\/td>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>          Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~9 , A~Z ; + , &#8211;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LB<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>When jump control \u201cEN\u201d = 1 or changes from 0\u21921 (P instruction), PLC will jump to the location behind the marked label and continuous to execute the program.<\/li>\n<li>This instruction is especially suit for the applications where some part of the program will be executed only under certain condition. This can shorter the scan time while not executes the whole program. And also, can use this instruction in the application of multiple coil outputs, the input control is used to select the application of executing a certain program.<\/li>\n<li>This instruction allows jump backward (i.e., the address of LBL is comes before the address of JMP instruction). However, care should be taken if the jump action causes the scan time exceed the limit set by the watchdog timer, the WDT interrupt will be occurred and stop executing.<\/li>\n<li>The jump instruction allows only for jumping among main program or jumping among subroutine area, it can\u2019t jump across main\/subroutine area.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN66 P<\/p>\n<p>JMP<\/p>\n<\/td>\n<td>\n<p>JUMP<\/p>\n<\/td>\n<td>\n<p>FUN66 P<\/p>\n<p>JMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-100.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>GOTO(\u201cPATHB\u201d)<\/p>\n<p>END_IF<\/p>\n<p>Program A<\/p>\n<p>LBL(\u201cPATHB\u201d)<\/p>\n<p>Program B<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>In this diagram, when X0=1, the program will jump directly to the LBL position named PATHB and continuing to execute program B. Therefore, it will skip the program A and none of the instructions of program A will be executed.  The status of registers and the coils associated with program A will keep unchanged (as if there is no program section A).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-4  FUNCTION BLOCK LABEL<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN165<\/p>\n<p>FLBL<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>FUNCTION BLOCK LABEL<\/p>\n<\/td>\n<td>\n<p>FUN165<\/p>\n<p>FLBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-101.jpg\" \/><\/p>\n<\/td>\n<td>\n<p>S: English\/ Digit 1~6<\/p>\n<\/td>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>          Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~9 , A~Z ; + , &#8211;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LN<\/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>\n<p>Discription<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u203bIt only supported in the function block diagram.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>This command labels a specific address in the program, so the program function block diagram jumps (FJUMP) to the address where the label is located for execution. If there is no need for flow control, such as jumping or calling, it can also be labeled to annotate the program to facilitate program identification or improve readability.<\/li>\n<li>This instruction is only used as a program address label for process control or annotation. The instruction itself will not perform any action. Whether there is this instruction in the program, the execution result will not be affected by it.<\/li>\n<li>The label can consist of 1 to 6 non-repeating arbitrary English letters or numbers.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN165<\/p>\n<p>FLBL<\/p>\n<\/td>\n<td>\n<p>FUNCTION BLOCK LABEL<\/p>\n<\/td>\n<td>\n<p>FUN165<\/p>\n<p>FLBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Reserved words<\/p>\n<\/td>\n<td>\n<p>Discription<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0+I~X15+I (INT0~INT15)<\/p>\n<p>X16+I~X23+I(INT16~INT23)<\/p>\n<p>X0\u2212I~X15\u2212I (INT0\u2212~INT15\u2212)<\/p>\n<p>X16\u2212I~X23\u2212I (INT16\u2212~INT23\u2212)<\/p>\n<\/td>\n<td>\n<p>Interrupt service program name of X0~X15, X16~X23<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0I~HSC3I<\/p>\n<\/td>\n<td>\n<p>Interrupt service routine name of HSC0\uff5eHSC3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>STM0I (1MS), STM1I (1MS), STM2I (1MS), STM3I (1MS), LTM0I (10MS), LTM1I (10MS), LTM2I (10MS), LTM3I (10MS)<\/p>\n<\/td>\n<td>\n<p>Labels for 1ms, 10ms PLC internal timer interrupt service routine<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HST0I~HST3I<\/p>\n<\/td>\n<td>\n<p>Labels for high-speed fixed timer interrupt service routine <\/p>\n<p>In units of 0.1mS<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Unless the program you labeled is indeed the service program corresponding to the above interrupts, the above labels can be used and cannot be used elsewhere. Otherwise, the PLC will execute the general program you labeled as an interrupt program when an interrupt occurs, resulting in errors or crashes.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN165<\/p>\n<p>FLBL<\/p>\n<\/td>\n<td>\n<p>FUNCTION BLOCK LABEL<\/p>\n<\/td>\n<td>\n<p>FUN165<\/p>\n<p>FLBL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>The illustration below is an example of a label only used as a program comment (not called or jumped to this mark). As for applying the label in jump control, please refer to the description of the JMP instruction. Please refer to the order&#8217;s CALL Description when the label is a subroutine name.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-102.jpg\" \/><\/p>\n<\/td>\n<td>\n<p>LBL_F (\u201cPGM1\u201d)<\/p>\n<p>Program 1<\/p>\n<p>LBL_F(\u201cPGM2\u201d)<\/p>\n<p>Program 2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-5  FUNCTION BLOCK JUMP<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN166 P<\/p>\n<p>FJMP<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>FUNCTION BLOCK JUMP<\/p>\n<\/td>\n<td>\n<p>FUN166 P<\/p>\n<p>FJMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-103.jpg\" \/><\/p>\n<\/td>\n<td>\n<p>FLBL\uff1aThe program label to be jumped<\/p>\n<\/td>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>          Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~9 , A~Z ; + , &#8211;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LB<\/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>\n<p>Discription<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u203bIt\u2019s only supported in the function block diagram.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>When the function block jump controls &quot;EN&quot;=1 or from 0\u21921 (P command), PLC directly jumps to the position labeled FLBL and continues to execute the program.<\/li>\n<li>This command is especially suitable for the application that only needs to execute a particular part of the program when a specific situation occurs, and in the application of multiple outputs of the coil and then use the input control to select and execute a particular section of the program\u2014usually not managed to save time.<\/li>\n<li>This command can jump back (that is, the FLBL address of the jump back is smaller than the address of the FJMP command). Still, it should be noted that if the leap back causes the scan time to extend beyond the time set by the Watchdog Timer, the PLC will generate WDT Interrupted, stops running, and issues an error signal.<\/li>\n<li>Function block jump commands are limited to the same function block diagram.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN166 P<\/p>\n<p>FJMP<\/p>\n<\/td>\n<td>\n<p>FUNCTION BLOCK JUMP<\/p>\n<\/td>\n<td>\n<p>FUN166 P<\/p>\n<p>FJMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-104.jpg\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>FJMP_166(\u201cPATHB\u201d)<\/p>\n<p>END_IF<\/p>\n<p>Program A<\/p>\n<p>FLBL(\u201cPATHB\u201d)<\/p>\n<p>Program B<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>In the figure above, when X0=1, the execution will jump directly from where the JMP command is located to the site where the FLBL name is PATHB so that program A is skipped and all instructions in A are not executed. The list related to program A Points or register status remains unchanged (as if there is no A program).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-6  CALL<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN67 P<\/p>\n<p>CALL<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>CALL<\/p>\n<\/td>\n<td>\n<p>FUN67 P<\/p>\n<p>CALL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-105.png\" \/><\/p>\n<\/td>\n<td>\n<p>LBL: The subroutine label name to be called.<\/p>\n<\/td>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>          Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~9 , A~Z ; + , &#8211;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LB<\/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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>When call control \u201cEN\u201d = 1 or changes from 0\u21921 (P instruction), PLC will call (perform) the subroutine bear the same label name as the one being called. When execute the subroutine, the program will execute continuous as normal program does but when the program encounters the RTS instruction then the flow of the program will return back to the address immediately after the CALL instruction.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-106.png\" \/><\/p>\n<\/td>\n<td>\n<p>LBL(\u201cSUB1\u201d)<\/p>\n<p>Program 1<\/p>\n<p>JMP_66(\u201cSUB3\u201d)<\/p>\n<p>LBL(\u201cSUB2\u201d)<\/p>\n<p>Program 2<\/p>\n<p>LBL(\u201cSUB3\u201d)<\/p>\n<p>Program 3<\/p>\n<p>RETURN;<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>All the subroutines must end with one \u201creturn from subroutine instruction RTS\u201d instruction; otherwise it will cause executing error or CPU shut down. Nevertheless, an RTS instruction can be shared by subroutines (so called as multiple entering subroutines; even though the entry points are different, they have a same returning path) as illustrated in the right diagram subroutine SUB1-3.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN67 P<\/p>\n<p>CALL<\/p>\n<\/td>\n<td>\n<p>CALL<\/p>\n<\/td>\n<td>\n<p>FUN67 P<\/p>\n<p>CALL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When main program called a subroutine, the subroutine also can call the other subroutines (so called the nested subroutines) for up to 8 levels at the most (include the interrupt routine).<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-107.png\" \/><\/p>\n<ul>\n<li>Interrupt service programs (HSC0I~HSC7I, HST0I~HST3I, PSO0I~PSO3I, X0+I~X15+I \/ INT0~INT15, X0-I~X15-I \/ INT0-~INT15-, HSTAI \/ ATMRI, STM0I~STM3I, LTM0I~LTM3I) are also a kind of subroutine. It is also placed in sub program area. However, the calling of interrupt service program is triggered off by the signaling of hardware to make the CPU perform the corresponding interrupt service program (which we called as the calling of the interrupt service program). The interrupt service program can also call subroutine or interrupted by other interrupts with higher priority.  Since it is also a subroutine (which occupied one level), please refer to RTI instruction for explanation.<\/li>\n<li>You can also use FCM to implement functions or function blocks. Functions implemented with FCM are like custom instructions and can be added to the ladder diagram network just like all built-in instructions. For more details, please refer to the \u201cM PLC Function Function Block User Manual\u201d.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-7  RETURN FROM SUBROUTINE (RTS)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN68<\/p>\n<p>RTS<\/p>\n<\/td>\n<td>\n<p>RETURN FROM SUBROUTINE<\/p>\n<\/td>\n<td>\n<p>FUN68<\/p>\n<p>RTS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-108.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>This instruction is used to represent the end of a subroutine. Therefore, it can only appear within the subroutine area. Its input side has no control signal, so there is no way to serially connect any contacts. This instruction is self sustain, and is directly connected to the power line.<\/li>\n<li>When PLC encounter this instruction, it means that the execution of a subroutine is finished. Therefore, it will return to the address immediately after the CALL instruction, which were previously executed and will continue to execute the program.<\/li>\n<li>If the above instructions are used in the subroutine and causing the subroutine not to execute the RTS instruction, then PLC will halt the operation and set the DR35361 \u2018Bit9 (System Stack Error) to 1. Therefore, no matter what the flow is going, it must always ensure that any subroutine must be able to execute a matched RTS instruction.<\/li>\n<li>For the usage of the RTS instruction please refer to instructions for the CALL instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-8  RETURN FROM INTERRUPT (RTI)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN69<\/p>\n<p>RTI<\/p>\n<\/td>\n<td>\n<p>RETURN FROM INTERRUPT<\/p>\n<\/td>\n<td>\n<p>FUN69<\/p>\n<p>RTI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-109.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The function of this instruction is similar to RTS.  Nevertheless, RTS is used to end the execution of sub program, and RTI is used to end the execution of interrupt service program. Please refer to the explanation of RTS instruction.<\/li>\n<li>A RTI instruction can be shared by more than one interrupt service program. The usage is the same as the sharing of an RTS by many subroutines. Please refer to the explanation of CALL instruction.<\/li>\n<li>The difference between interrupts and call is that the sub program name (LBL) of a call is defined by user, and the label name and its call instruction are included in the main program or other sub program. Therefore, when PLC performs the CALL instruction and the input \u201cEN\u201d = 1 or changes from 0\u21921 (P instruction), the PLC will call (execute) this sub program. For the execution of interrupt service program, it is directly used with hardware signals to interrupt CPU to pause the other less important works, and then to perform the interrupt service program corresponding to the hardware signal (we call it the calling of interrupt service program).  In comparing to the call instruction that need to be scanned to execute, the interrupt is a more real time in response to the event of the outside world. In addition, the interrupt service program cannot be called by label name; therefore, we preserve the special \u201creserved words\u201d label name to correspond to the various interrupts offered by PLC (check FUN65 explanation for details). For example, the reserved word X0+I is assigned to the interrupt occurred at input point X0; as long as the sub program contains the label of X0+I, when input point X0 interrupt is occurred (X0:   ), the PLC will pause the other lower priority program and jump to the subroutine address which labeled as X0+I to execute the program immediately.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN69<\/p>\n<p>RTI<\/p>\n<\/td>\n<td>\n<p>RETURN FROM INTERRUPT<\/p>\n<\/td>\n<td>\n<p>FUN69<\/p>\n<p>RTI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>If there is an interrupt occurred while CPU is handling the higher priority (such as hardware high speed counter interrupt) or same priority interrupt program (please refer to Chapter 10 for priority levels), the PLC will not execute the interrupt program for this interrupt until all the higher priority programs were finished.<\/li>\n<li>If the RTI instruction cannot be reached and performed in the interrupt service routine, may cause a serious CPU shut down. Consequently, no matter how you control the flow of program, it must be assured that the RTI instruction will be executed in any interrupt service program.<\/li>\n<li>For the detailed explanation and example for the usage of interrupts, please refer to Chapter 5 for explanation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-9  FOR<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN70<\/p>\n<p>FOR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FOR<\/p>\n<\/td>\n<td>\n<p>FUN70<\/p>\n<p>FOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-110.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>N: Number of times of loop execution<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<p>&#8211;<\/p>\n<p>16383<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>This instruction has no input control, is connected directly to the power line, and cannot be in series with any conditions.<\/li>\n<li>The programs within the FOR and NEXT instructions form a program loop (the start of the loop program is the next instruction after FOR, and the last is the instruction before NEXT). When PLC executes the FOR instruction, it first records the N value after that instruction (loop execution number), then for N times successively execution from start to last of the programs in the loop. Then it jumps out of the loop, and continues executes the instruction immediately after the NEXT instruction.<\/li>\n<li>The loop can have a nested structure, i.e., the loop includes other loops, like an onion. 1 loop is called a level, and there can be a maximum of 32 levels. The FOR and NEXT instructions must be used in pairs. The first FOR instruction and the last NEXT instruction are the outermost (first) level of a nested loop. The second FOR instruction and the second last NEXT instruction are the second level, the last FOR instruction and the first NEXT instruction form the loop&#8217;s innermost level.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN70<\/p>\n<p>FOR<\/p>\n<\/td>\n<td>\n<p>FOR<\/p>\n<\/td>\n<td>\n<p>FUN70<\/p>\n<p>FOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-111.png\" \/><\/p>\n<\/td>\n<td>\n<p>FOR 0 TO 2 BY 1  DO<\/p>\n<p>~<\/p>\n<p>FOR 0 TO 3 BY 1  DO<\/p>\n<p>~<\/p>\n<p>FOR 0 TO 4 BY 1  DO<\/p>\n<p>~<\/p>\n<p>END_FOR<\/p>\n<p>~<\/p>\n<p>END_FOR<\/p>\n<p>~<\/p>\n<p>END_FOR<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the example in the diagram, loop<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-112.png\" \/> will be executed 4 \u00d73 \u00d72 = 24 times, loop<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-113.png\" \/> will be executed 3 \u00d72 = 6 times, and loop<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-114.png\" \/> will be executed 2 times.<\/li>\n<li>If there is a FOR instruction and no corresponding NEXT instruction, or the FOR and NEXT instructions in the nested loop have not been used in pairs, or the sequence of FOR and NEXT has been misplaced, then a syntax error will be generated and this program may not be executed.<\/li>\n<li>Do not use JMP command to jump out of the loop, otherwise the PLC system stack will be destroyed, the program flow will be disordered, and it may cause a serious crash.<\/li>\n<li>The effective range of N is 1~16383 times. Beyond this range PLC will treat it as 1. Care should be taken, if the amount of N is too large and the loop program is too big, a WDT may occur.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-10  NEXT<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN71<\/p>\n<p>NEXT<\/p>\n<\/td>\n<td>\n<p>LOOP END<\/p>\n<\/td>\n<td>\n<p>FUN71<\/p>\n<p>NEXT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-115.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>This instruction and the FOR instruction together form a program loop. The instruction itself has no input control, is connected directly to the power line, and cannot be in series with any conditions.<\/li>\n<li>When PLC has not yet entered the loop (has not yet executed to the FOR instruction, or has executed but then jumped out), but the NEXT instruction is reached, then PLC will not take any action, just as if this instruction did not exist.<\/li>\n<li>For the usage of this instruction please refer to the explanations for the FOR instruction on the preceding page.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-7-11  PROGRAM END<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>END<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PROGRAM END<\/p>\n<\/td>\n<td>\n<p>END<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-116.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>No operand<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When end control &quot;EN&quot; = 1, this instruction is activated. Immediately end this program scan, all the programs after the END instruction will not be executed. When &quot;EN&quot; = 0, this instruction is ignored, and programs after the END instruction will continue to be executed as the END instruction is not exist. <\/li>\n<li>This instruction may be placed more than one point within a program, and its input (end control &quot;EN&quot;) controls the end point of program execution. It is especially useful for debugging and for testing.<\/li>\n<li>It\u2019s not necessary to put any END instructions in the main program, CPU will automatically restart to start point when reach the end of main program.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>END<\/p>\n<\/td>\n<td>\n<p>PROGRAM END<\/p>\n<\/td>\n<td>\n<p>END<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-117.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-8  I\/O Instructions (FUN74~86)<\/h3>\n<h4>7-8-1  IMMEDIATE I\/O REFRESH (IMDIO)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN74 P<\/p>\n<p>IMDIO<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>IMMEDIATE I\/O REFRESH<\/p>\n<\/td>\n<td>\n<p>FUN74 P<\/p>\n<p>IMDIO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"C:\\Users\\User\\Desktop\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\IMDIO.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-118.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: The starting address of the I\/O point to be updated<\/p>\n<p>N: The number of I\/O points to be updated<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>X<\/p>\n<\/td>\n<td>\n<p>Y<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>XN on the host computer<\/p>\n<\/td>\n<td>\n<p>YN on the host computer<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<p>&#8211;<\/p>\n<p>24<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The input\/output signal update of the PLC system usually grabs all the input signals at one time before the program is executed, and then starts to scan the program. After all the scans are over, all the output results are sent to the output point at one time. In this way, the input action to the output response is at least there will be one scan time delay (maximum 2 scan times). The method of this instruction is to immediately grab or send the input signal or output signal specified by the Instruction when encountering this Instruction, so that the most immediate and fast input\/output response can be obtained.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN74 P<\/p>\n<p>IMDIO<\/p>\n<\/td>\n<td>\n<p>IMMEDIATE I\/O REFRESH<\/p>\n<\/td>\n<td>\n<p>FUN74 P<\/p>\n<p>IMDIO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When update control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), update the status of N input points or output points (i.e., D~D+N-1) starting from input point or output point designated by D.<\/li>\n<li>The I\/O points of the immediate I\/O update of the PLC are limited to the I\/O points on the host computer. The following table shows the allowable real-time I\/O numbers of MQ , MA and ME\/MS hosts:<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>I\/O ports<\/p>\n<p>Legal ports<\/p>\n<\/td>\n<td>\n<p>MQ<\/p>\n<\/td>\n<td>\n<p>MA<\/p>\n<\/td>\n<td>\n<p>MS\/ME\/MU<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Input<\/p>\n<\/td>\n<td>\n<p>X0\uff5eX15<\/p>\n<p>X16 ~ X23<\/p>\n<\/td>\n<td>\n<p>X0\uff5eX15<\/p>\n<\/td>\n<td>\n<p>X0\uff5eX7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Output<\/p>\n<\/td>\n<td>\n<p>Y0\uff5eY15<\/p>\n<\/td>\n<td>\n<p>Y0\uff5eY15<\/p>\n<\/td>\n<td>\n<p>Y0\uff5eY15<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>If the range of the real-time I\/O ports in the program exceeds the input point or output ports number of the host (for example, D=X7, N=9 in the program, it means that 9 input point signals such as X7~X15 should be captured immediately, and assuming that The Model is MS\/ME model, the maximum input point is X7, obviously X15 has exceeded the input point number of the host), then the PLC will not be able to run.<\/li>\n<li>When this instruction is executed, although the PLC will immediately capture or send out the real-time input\/output signal, the delay of the hardware or software components on the input point or the action delay of the output point (Action response time of output components such as relays or transistors) still exists, please pay special attention.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-9  PID Control (FUN30,FUN38, FUN99) <\/h3>\n<h4>7-9-1  General PID operation (Main Unit)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>General PID operation<\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-119.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ts\uff1aSolution interval between calculations<br \/>\uff081\uff5e3000 ; unit in 0.01S\uff09<\/p>\n<p>SR\uff1aStarting register of loop settings ;<br \/>it takes 8 registers in total.<\/p>\n<p>OR\uff1aOutput register of PID loop operation.<\/p>\n<p>PR\uff1aStarting register of loop parameters;<br \/>it takes 7registers.<\/p>\n<p>WR\uff1aStaring register of working registers for this instruction ,it takes 5 registers and can&#8217;t be repeated in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1\uff5e3000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>8 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>PR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>7 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>5 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The M PLC software algorithm uses mathematical functions to simulate a three-mode (PID) analog controlling technique to provide direct digital control. The control technique responds to an error with an output signal. The output is proportional to the error, the error&#8217;s integral and the rate of change of the process variable. Control algorithms include, P, PI, PD and PID which all include the features of auto\/manual operation, bumpless\/balanceless transfers, reset wind-up protection, and adaptive tuning of gain, integral, and derivative terms.  <\/li>\n<li>The digitized mathematical expression of M PLC PID instruction as bellows:<\/li>\n<\/ul>\n<p>Mn\t\uff1a Control output at &quot;n&quot; time<\/p>\n<p>Mn<\/p>\n<p>R35765  \uff1aThe gain constant, the default is 1000, which can be set between 1\uff5e5000.<\/p>\n<p>Pb  \uff1aProportional band<\/p>\n<p>The expression stating the percent change in error required to change the output full scale. ( Range\uff1a1\uff5e5000\uff0cunit in 0.1%\uff1bKc(gain)=R35765\/P )<\/p>\n<p>Ki\t\uff1a Integral tuning constant\uff08range\uff1a0\uff5e9999\uff0cit means 0.00\uff5e99.99 Repeats\/Minute\uff09<\/p>\n<p>Td\t\uff1a Derivative tuning constant\uff08range\uff1a0~3600\uff0cequivalent to 0~3600 Seconds\uff09<\/p>\n<p>\t\uff1a Process variable at time &quot;n&quot;<\/p>\n<p> \uff1aProcess variable when loop was last solved<\/p>\n<p>En\t\uff1a The difference between the set point (SP) and the process variable (PV) at time &quot;n&quot;.<\/p>\n<p>En = SP \u2013  .<\/p>\n<p>Ts\t\uff1a Solution interval between calculations\uff08Range\uff1a1\uff5e3000, unit in 0.01S\uff09<\/p>\n<p>Bias \uff1a Offset to the output\uff08Range\uff1a0\uff5e16383\uff09<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Principle of PID parameter adjustment <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>As the proportional band (Pb) adjustment getting smaller, the larger the proportional contribution to the output.  This can obtain a sensitive and rapid control reaction.  However, when the proportional band is too small, it may cause oscillation.  Do the best to adjust \u201cPb\u201d smaller (but not to the extent of making oscillation), which could increase the process reaction and reduce the steady state error.<\/li>\n<li>Integral item may be used to eliminate the steady state error.  The larger the number (Ki, integral tuning constant), the larger the integral contribution to the output.  When there is steady state error, adjust the \u201cKi\u201d larger to decrease the error. <br \/>When the \u201cKi\u201d = 0, the integral item makes no contribution to the output.<br \/>For ex, if the reset time is 6 minutes, Ki=100\/6=17\uff1bif the integral time is 5 minutes, Ki=100\/5=20.<\/li>\n<li>Derivative item may be used to make the process smoother and not too over shoot.  The larger the number (Td, derivative tuning constant), the larger the derivative contribution to the output.  When there is too over shoot, adjust the \u201cTd\u201d larger to decrease the amount of over shoot. <br \/>When the \u201cTd\u201d = 0, the derivative item makes no contribution to the output.<br \/>For ex, if the rate time is 1 minute, then the Td = 100; if the rate time is 2 minutes, then the Td = 200.<\/li>\n<li>Properly adjust the PID parameters can obtain an excellent result for loop control.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Instruction description <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When control input &quot;A\/M&quot;=0, it performs manual control and will not execute the PID calculation. Directly fill the output value into the output register (OR) to control the loop operation. <\/li>\n<li>When control input &quot;A\/M&quot;=1, it defines the auto mode of loop control; the output of the loop operation is loaded by the PID instruction every time it is solved. It is equal to Mn (control loop output) in the digital approximation equation. <\/li>\n<li>When control input &quot;BUM&quot;=1, it defines bumpless transfer while the loop operation changing from manual into auto mode. <\/li>\n<li>When control input &quot;A\/M&quot;=1, and direction input &quot;D\/R&quot;=1, it defines the direct control for loop operation;<br \/>it means the output increases as error increases <\/li>\n<li>When control input &quot;A\/M&quot;=1, and direction input &quot;D\/R&quot;=0, it defines the reverse control for loop operation; <br \/>it means the output decreases as error increases<\/li>\n<li>When comes the error setting of loop setting points or loop parameters, the PID operation will not be performed and the output indication &quot;ERR&quot; will be ON<\/li>\n<li>While the engineering value of the controlling process is greater than or equal to the user set High Limit, the output indication &quot;HAL&quot; will be ON regardless of &quot;A\/M&quot; state. <\/li>\n<li>While the engineering value of the controlling process is less than or equal to the user set Low Limit, the output indication &quot;LAL&quot; will be ON regardless of &quot;A\/M&quot; state.<\/li>\n<li><strong>Description of operand Ts\uff1a<\/strong><\/li>\n<li>Ts\uff1aIt defines the solution interval between PID calculations, the unit is in 0.01 sec; this term may be constant or variable data.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li><strong>Description of operand SR (Loop setting registers)\uff1a<\/strong><\/li>\n<li>SR+0 = Scaled Process Variable\uff1aThis register is loaded by the PID instruction every time it gets solved. A linear scaling is done on SR+6 using the high \tand low engineering range found in SR+4 and SR+5. <\/li>\n<li>SR+1 = Setpoint (SP) \uff1aThe user must load this register with the desired setpoint the loop should control at. The setpoint is entered in engineering units, it must be the range\uff1aLER \u2266 SP \u2266 HER<\/li>\n<li>SR+2 = High Alarm Limit (HAL)\uff1a The user must load this register with the value at \twhich the process variable should be alarmed as a high alarm (above the setpoint). This value is entered as the actual alarm point in engineering \tunits and it must be the range\uff1aLER \u2266 LAL &lt; HAL \u2266 HER<\/li>\n<li>SR+3 = Low Alarm Limit (LAL)\uff1a The user must load this register with the value at which the process variable should be alarmed as a low alarm (below the setpoint). This value is entered as the actual alarm point in engineering units and it must be the range\uff1aLER \u2266 LAL &lt; HAL \u2266 HER<\/li>\n<li>SR+4 = High Engineering Range (HER)\uff1a The user must load this register with the\t highest value for which the measurement device is spanned. (For example a thermocouple might be spanned for 0 to 500 degrees centigrade, resulting in a 0 to 10V analog input to the M PLC (0V=0\u2103, 10V=500\u2103); the high engineering range is 500, this is the value entered into SR+4.) The high engineering range must be\uff1a-9999 &lt; HER \u2266 19999<\/li>\n<li>SR+5 = Low Engineering Range (LER)\uff1aThe user must load this register with the lowest value for which the measurement device is spanned. The low engineering range must be\uff1a-9999 \u2266 LER \u2266 LAL &lt; HAL \u2266 HER .<\/li>\n<li>SR+6 = Raw Analog Measurement (RAM)\uff1aThe user&#8217;s program must load this register with the process variable (measurement). It is the value that the content of analog input register\uff08R34768\u301cR34895\uff09is added by the offset if necessary. It must be the range\uff1a0 \u2266 RAM \u2266 16380 if the analog input is 14-bit format but valid 12-bit resolution, and 0 \u2266 RAM \u2266 16383 if the analog input is 14-bit format and valid 14-bit resolution.The resolution of analog input can be defined by register R35764, R35764=0, it means 14-bit format but valid 12-bit resolution ; R35764=1, it means 14-bit format and valid 14-bit resolution.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>SR+7 = Offset of Process Variable (OPV)\uff1aThe user must load this register with the value as described follows: OPV must be 0 if the raw analog signal and the measurement span of the analog input module are all 0\u301c20mA, there is no loss of the measurement resolution; OPV must be 3276 if the raw analog signal is 4\u301c20mA but the measurement span of the analog input module is 0\u301c20mA, there will have few loss of the measurement resolution\uff0816383\u00d74 \/ 20 = 3276\uff09. It must be the range\uff1a 0 \u2266 OPV &lt; 16383 .<\/li>\n<li>When the setting mentioned above comes error, it will not perform PID operation and the output indication &quot;ERR&quot; will be ON.<\/li>\n<li><strong>Description of operand OR\uff1a<\/strong><\/li>\n<li>OR\uff1aOutput register, this register is loaded directly by the user while the loop in manual operation mode. While the loop in auto operation mode, this register is loaded by the PID instruction every time it is solved. It is equal to Mn (control loop output) in the digital approximation equation. It must be the range\uff1a0 \u2266 OR \u2266 16383<\/li>\n<li><strong>Description of operand PR (Loop parameters)\uff1a<\/strong><\/li>\n<li>PR+0 = Proportional Band (Pb)\uff1aThe user must load this register with the desired \t\tproportional constant. The proportion constant is entered as a value between 1 and 5000 where the smaller the number, the larger the proportional contribution. <\/li>\n<\/ul>\n<p>(This is because the equation uses R35765 divided by Pb.) <\/p>\n<p>It must be the range\uff1a1 \u2266 Pb \u22665000, unit is in 0.1%. <\/p>\n<p>Kc(gain)=R35765\/ Pb; the default of R35765 is 1000, and it&#8217;s range is 1 \u2266 R35765 \u2266 5000.<\/p>\n<ul>\n<li>PR+1 = Integral tuning Constant (Ki)\uff1aThe user may load this register to add \tintegral action to the calculation. The value entered is &quot;Repeats\/Minute&quot; and is entered as a number between 0 and 9999.  (The actual range is 00.00 to 99.99 Repeats\/Minute.) The larger the number, the larger the integral contribution to the output. <\/li>\n<\/ul>\n<p>It must be the range\uff1a0 \u2266 Ki \u2266 9999 (0.00\uff5e99.99 Repeats\/Minute) <\/p>\n<ul>\n<li>PR+2 = Rate Time Constant (Td)\uff1aThe user may load this register to add derivative action to the calculation. The value is entered as minutes and entered as a number between 0 and 9999. (The actual range is 0.00 to 99.99 minutes.) The larger the number, the larger the derivative contribution to the output. \t<\/li>\n<\/ul>\n<p>It must be the range\uff1a0 \u2266 Td \u2266 9999 (0.00\uff5e99.99 Minutes)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>PR+3 = Bias\uff1aThe user may load this register if a bias is desired to be added to the output when using PI or PID control. A bias must be used when running proportional only control. The bias is entered as a value between 0 and 16383 and is added directly to the calculated output. Bias is not required for most applications and may be left at 0. <\/li>\n<\/ul>\n<p>It must be the range\uff1a0 \u2266 Bias \u2266 16383<\/p>\n<ul>\n<li>PR+4 = High Integral Wind_up Limit (HIWL)\uff1aThe user must load this register with \t\t the output value, (1 to 16383), at which the loop shoud go into &quot;anti-reset\twind-up&quot; mode. Anti-reset wind-up consists of solving the digital approximation for the integral value. For most applications this should be set to 16383. <\/li>\n<\/ul>\n<p>It must be the range\uff1a1 \u2266 HIWL \u2266 16383<\/p>\n<ul>\n<li>PR+5 = Low Integral Wind_up Limit (LIWL)\uff1aThe user must load this register with \t\t the output value, (0 to 16383), at which the loop shoud go into &quot;anti-reset wind-up&quot; mode. It functions in the same manner as PR+4. For most applications this should be set to 0.<\/li>\n<\/ul>\n<p>It must be the range\uff1a0 \u2266 LIWL \u2266 16383<\/p>\n<ul>\n<li>PR+6 = PID Method\uff1a<\/li>\n<\/ul>\n<p>=0 , Standard PID method; <\/p>\n<p>=1 , Minimum Overshoot Method;<\/p>\n<p>Method 0 is prefer because most applications using PI control (Td=0).<\/p>\n<p>The user may try method 1 when using PID control and the result is not stable. <\/p>\n<ul>\n<li>When the setting mentioned above comes error, it will not perform PID operation and the output indication &quot;ERR&quot; will be ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li><strong>Description of operand WR (Working registers)\uff1a<\/strong><\/li>\n<li>WR+0 = Loop status register\t\uff1a<\/li>\n<\/ul>\n<p>Bit0 =0 , Manual operation mode<\/p>\n<p>    =1 , Auto mode<\/p>\n<p>Bit1 : This bit will be a 1 during the scan the solution is being solved, <\/p>\n<p>     and it is ON for a scan time. <\/p>\n<p>Bit2=1 , Bumpless transfer<\/p>\n<p>Bit4 : The status of &quot;ERR&quot; indication <\/p>\n<p>Bit5 : The status of &quot;HAL&quot; indication<\/p>\n<p>Bit6 : The status of &quot;LAL&quot; indication<\/p>\n<ul>\n<li>WR+1 = Loop timer register\uff1aThis register stores the cyclic timer reading from the system&#8217;s 1ms cyclic timer each time the loop is solved. The elapsed time is calculated by calculating the difference between the current reading of the system&#8217;s 1ms cyclic timer and the value stored in this register. This difference is compared to 10\u00d7 the solution interval. If the difference is greater than or equal to the solution interval, the loop should be solved this scan. <\/li>\n<li>WR+2 = Low order integral summation\uff1aThis register stores the low order 16 bits of \t the 32-bit sum created by the integral term. <\/li>\n<li>WR+3 = High order integral summation\uff1aThis register stores the high order 16 bits of the 32-bit sum created by the integral term.<\/li>\n<li>WR+4 = Process variable &#8211; previous solution\uff1aThe raw analog input (Register SR+6) \tat the time the loop was last sovled. This is used for the derivative control mode. <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Program example <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-120.jpg\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PID <\/p>\n<\/td>\n<td>\n<p>FUN30<\/p>\n<p>PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R999\t\uff1aThe setting of solution interval between calculations; for example the content of R999 is 200, it means it will perform this PID operation every 2 seconds.<\/p>\n<p>R1000\t\uff1aScaled process variable, which is the engineering unit loaded by the PID instruction every time it gets solved. A linear scaling is done on R1006 using the high and low engineering range found in R1004 and R1005.<\/p>\n<p>R1001\t\uff1aSetpoint, it is the desired value the loop should control at; which is entered in engineering unit. For example the span of controlling process is 0\u00b0C\uff5e500\u00b0C, the setting of R1001 is equal to 100, it means the desired result is at 100\u00b0C. <\/p>\n<p>R1002\t\uff1aThe setting of high alarm limit; which is entered in engineering unit. <br \/>The example mentioned above, if the setting of R1002 is equal to 105, it means there will have the high alarm while the loop is greater than or equal to 105\u00b0C. <\/p>\n<p>R1003\t\uff1aThe setting of low alarm limit; which is entered in engineering unit.  The example mentioned, if the setting of R1003 is equal to 95, it means there will have the low alarm while the loop is less than or equal to 95\u00b0C.<\/p>\n<p>R1004\t\uff1aThe setting of high engineering range.  The example mentioned, if the setting of R1004 is equal to 500, it means the highest value of this loop is 500\u00b0C.<\/p>\n<p>R1005\t\uff1aThe setting of low engineering range.  The example mentioned, if the setting of R1005 is equal to 0, it means the lowest value of this loop is 0\u00b0C.<\/p>\n<p>R1006\t\uff1aRaw analog measurement; it is the value that the content of analog input register (R34768\u301cR34895) is added by the offset of 2048.<\/p>\n<p>R1007\uff1aOffset of process variable; let it be 0 if the raw analog signal and\t the span of the analog input module are all 0\u301c10V.<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R1020\t\uff1aThe setting of proportional band; for example the content of R1020 is 20, <br \/>it means the proportional band is 2.0% and the gain is 50.<\/p>\n<p>R1021\t\uff1aThe setting of integral tuning constant; <br \/>for example the content of R1021 is 17, <br \/>it means the reset time is 6 minutes <br \/>(100\/6\u225217).<\/p>\n<p>R1022\t\uff1aThe setting of derivative tuning constant; for example the content of R1022 is 0, it means PI control. <\/p>\n<p>R1023\t\uff1aThe setting of the bias to the output; <br \/>most applications let it be 0.<\/p>\n<p>R1024\t\uff1aThe setting of high integral wind-up; <br \/>most applications let it be 16383.<\/p>\n<p>R1025\t\uff1aThe setting of low integral wind-up; <br \/>most applications let it be 0.<\/p>\n<p>R1026\t\uff1aThe setting of PID method; <br \/>most applications let it be 0.<\/p>\n<p>R1030 = Loop status register\t<\/p>\n<p>Bit0 =0, Manual operation mode<br \/>=1, Auto operation mode<\/p>\n<p>Bit1 : This bit will be a 1 during the scan the solution is being solved, and \tit is ON for <br \/>a scan time.<\/p>\n<p>Bit2=1 , Bumpless transfer<\/p>\n<p>Bit4 : The status of &quot;ERR&quot; indication<\/p>\n<p>Bit5 : The status of &quot;HAL&quot; indication<\/p>\n<p>Bit6 : The status of &quot;LAL&quot; indication<\/p>\n<p>R1031\uff5eR1034: They are the working registers, please refer to the description of operand WR.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-9-2  General-Purpose PID 2 Instruction<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN38<\/p>\n<p>PID2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PID 2<\/p>\n<\/td>\n<td>\n<p>FUN38<\/p>\n<p>PID2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-121.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: The number of the expansion module used as the input signal<\/p>\n<p>CH: Channel number for input signal<\/p>\n<p>SR: Program-controlled setting value starting register number, a total of 8 registers are occupied<\/p>\n<p>OR: PID output register number<\/p>\n<p>PR: The starting register number of the parameter setting value, a total of 7 registers are occupied<\/p>\n<p>WR: The starting number of the working register used by this command, occupying 5 registers in total, and other places cannot be reused.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D11999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e127<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CH<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0 ~ 63<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/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>8 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>PR<\/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>7 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/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>5 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN38<\/p>\n<p>PID2<\/p>\n<\/td>\n<td>\n<p>PID 2<\/p>\n<\/td>\n<td>\n<p>FUN38<\/p>\n<p>PID2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The use of PID2 differs from PID in that PID2 distributes the computation on the module which supports PID function instead of using the computation power of the CPU unit.<\/li>\n<li>The general-purpose PID2 command (FUN38) regards the currently measured external analog input value as a process variable (Process Variable, referred to as PV). It sets the set point (SP) set by the user and the programmed variable through the software. After the PID mathematical calculation, the appropriate output control value is obtained through the D\/A analog output module or reprocessed through other interfaces to control the controlled program within the user&#8217;s wanted setting range.<\/li>\n<li>The digital PID calculation formula is as follows\uff1a<\/li>\n<\/ul>\n<p>Mn =\t[KpxEn]- [KpxTdx(PVn-PVn-1)\/Ts] + Bias<\/p>\n<p>Mn =\t\uff1a Control output at &quot;n&quot; time<\/p>\n<p>Kp       \uff1aProportional term real number\uff08range\uff1a\u00b1(1.8*10<sup>-38<\/sup>~3.4*10<sup>38<\/sup>\uff09)<\/p>\n<p>Ti\t\t\uff1a Integral time constant\uff08range\uff1a0~3600\uff0cequivalent to 0~3600 Repeats\/Seconds\uff09<\/p>\n<p>Td\t\t\uff1a Differential time constant\uff08range\uff1a0~3600\uff0cequivalent to 0~3600 Seconds\uff09<\/p>\n<p>PVn\t    \uff1a Program-controlled variable value at &quot;n&quot; time<\/p>\n<p>PV n-1\t\uff1a &quot;n&quot; last programmed variable value<\/p>\n<p>En\t\t\uff1a Error at &quot;n&quot; time = set value (SP) &#8211; program variable value at &quot;n&quot; time (PVn)<\/p>\n<p>Ts\t\t\uff1a Interval time between PID operations (range: 1~300, unit: 0.1S)<\/p>\n<p>Bias \t     \uff1a Bias output (range: \u00b1 (1.8*10-38~3.4*1038)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN38<\/p>\n<p>PID2<\/p>\n<\/td>\n<td>\n<p>PID 2<\/p>\n<\/td>\n<td>\n<p>FUN38<\/p>\n<p>PID2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When the control selection &quot;A\/M&quot;=0, it means the manual control mode, the PID calculation result will not be used, and the manual output value MOUT will be automatically copied to MV.<\/li>\n<li>When the control selection &quot;A\/M&quot;=1, it means automatic control mode, the MV value is calculated by PID, if MAUTO=1, the MV value will be automatically copied to MOUT.<\/li>\n<li>When the control selection &quot;A\/M&quot;=1 and the operation direction &quot;D\/R&quot;=1, the program control is forward PID control; that is, when the error (SP-PVn) is positive, the control output of the PID operation result: The larger the value is; when the error is negative, the control output of the PID calculation result is smaller.<\/li>\n<li>When the control selection &quot;A \/ M&quot; = 1 and the operation direction &quot;D\/R&quot; = 0, the program control is reverse PID control; that is, when the error (SP-PVn) is positive, the control output of the PID operation result: The smaller it is; when the error is negative, the control output of the PID operation result is larger.<\/li>\n<li>When the program control setting value or parameter setting value is wrong, the PID instruction will not be executed, and the error indicator &quot;ERR&quot;=1 is set.<\/li>\n<li>If you need to update the parameters, after updating the contents of the relevant registers, turn UPD OFF-&gt;ON to update the parameters.<\/li>\n<\/ul>\n<p>For more details of information, please refer to the function and application user manual.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-9-3  PID Temperature Control Instruction 2 (TPCTL 2)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN99 P<\/p>\n<p>TPCTL2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PID TEMPERATURE CONTROL INSTRUCTION 2<\/p>\n<\/td>\n<td>\n<p>FUN99 P<\/p>\n<p>TPCTL2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-122.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: The number of the expansion module to perform temperature control<\/p>\n<p>CH: Expansion module channel that performs temperature control<\/p>\n<p>SR: Program-controlled setting start register<\/p>\n<p>RP: Gain setting start register<\/p>\n<p>OR: Output start register<\/p>\n<p>WR: Work start register<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>R<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~127<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CH<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~63<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/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>8 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PR<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR<\/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>7 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/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>5 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN99 P<\/p>\n<p>TPCTL2<\/p>\n<\/td>\n<td>\n<p>PID TEMPERATURE CONTROL INSTRUCTION 2<\/p>\n<\/td>\n<td>\n<p>FUN99 P<\/p>\n<p>TPCTL2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Discription<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>PID temperature control (FUN99) uses the temperature module and the temperature planning form to measure the current external temperature value as a Process Variable (referred to as PV) and the Set Point (Abbreviated as SP) set by the user and program-controlled variables through the software PID mathematical formula to obtain the appropriate output control value to control the temperature within the temperature range expected by the user.<\/li>\n<li>Convert the numerical result after PID operation into time-proportional ON\/OFF (PWM) output, and control the heating or cooling circuit connected in series with the SSR through the transistor-type contact output so that a very accurate and inexpensive control result can be obtained.<\/li>\n<li>EN: Execute temperature control when ON, stop when OFF<\/li>\n<li>UPD: When ON, the parameters will be updated to the specified channel of the module<\/li>\n<li>A\/M: PID manual mode, if enabled, the output will be in manual control mode, and the MOUT value will be automatically copied to MV instead of using the PID calculation result as the output.<\/li>\n<li>H\/C: Perform heating or cooling control<\/li>\n<\/ul>\n<p>For more details of information, please refer to the function and application user manual.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-10  Cumulateive Timer Instruction (FUN87~89)<\/h3>\n<h4>7-10-1  ACCUMULATIVE TIMER (10ms, 100ms, 1s)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN87 T.01S<\/p>\n<p>FUN88 T.1S<\/p>\n<p>FUN89 T1S<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ACCUMULATIVE TIMER (0.01s, 0.1s, 1s)<\/p>\n<\/td>\n<td>\n<p>FUN87 T.01S<\/p>\n<p>FUN88 T.1S<\/p>\n<p>FUN89 T1S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-123.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CV : Register storing elapse time <\/p>\n<p>(current value)<\/p>\n<p>PV : Preset value of timer<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>0-32767<\/p>\n<p>or<\/p>\n<p>0-2147483647<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CV<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<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>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<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The operation for this instruction is the same as that for the basic timer (T0~T1023), except that the basic timer only has a &quot;timing control&quot; input &#8211; when its input is 1 it starts timing, and when input is 0 it get clear. Every time the input changes, it starts timing again and is unable to accumulate. Timing with this instruction is only permissible when enable control &quot;EN&quot; = 1. With this instruction, when timing control &quot;TIM&quot; is 1, it is the same as a basic timer, but when &quot;TIM&quot; is 0, it does not clear, but keeps the current value. If the timer need to clear, then change enable control &quot;EN&quot; to 0. When timing control &quot;TIM&quot; is once again to be 1, it will continue to accumulate from the previous value when the timer last paused. In addition, this instruction also has two outputs: Time to \u201cTUP\u201d (when time up it is 1, usually it is 0) and Time not to \u201cNUP\u201d (usually it is 1, when time is up it is 0). Users can utilize input and output combinations to produce timers with various different functions.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN87 T.01S<\/p>\n<p>FUN88 T.1S<\/p>\n<p>FUN89 T1S<\/p>\n<\/td>\n<td>\n<p>ACCUMULATIVE TIMER<\/p>\n<\/td>\n<td>\n<p>FUN87 T.01S<\/p>\n<p>FUN88 T.1S<\/p>\n<p>FUN89 T1S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> ON DELAY DE-ENERGIZING Timer<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-124.png\" \/><\/p>\n<\/td>\n<td>\n<p>ACTimer_10MS( TIM:= M0, EN:= M0, CV:= R0, PV:= 10, TUP=&gt; Y0);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This timer&#8217;s output (Y0 in this example) is normally not energized. When this timer&#8217;s input control (X0 in this example) is activated (ON), only after delay by 10 sec will output Y0 become energized (ON).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ON DELAY DE-ENERGIZING Timer<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-125.png\" \/><\/p>\n<\/td>\n<td>\n<p>ACTimer_10MS( TIM:= M0, EN:= M0, CV:= R0, PV:= 10, NUP=&gt; Y0);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The output Y0 of this timer is usually energized. When this timer&#8217;s input control X0 is on, only after delay by 10 sec will the output become de-energized (OFF).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> OFF DELAY ENERGIZING Timer<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-126.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M0 = 0 Then<\/p>\n<p>M1 := 1;<\/p>\n<p>ELSE<\/p>\n<p>M1 := 0;<\/p>\n<p>END_IF<\/p>\n<p>ACTimer_10MS( TIM:= M1 , EN:= M1, CV:= R0, PV:= 10, TUP=&gt; Y0);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This timer&#8217;s output Y0 is usually de-energized. When this timer&#8217;s input control M0 is off, only after delay by 10 sec will output Y0 become energized (ON).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p> OFF DELAY ENERGIZING Timer<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-127.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M0 = 0 Then<\/p>\n<p>M1 := 1;<\/p>\n<p>ELSE<\/p>\n<p>M1 := 0;<\/p>\n<p>END_IF<\/p>\n<p>ACTimer_10MS( TIM:= M1 , EN:= M1, CV:= R0, PV:= 10, NUP=&gt; Y0);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This timer&#8217;s output Y0 is usually energized. When this timer&#8217;s timing control X0 is off, only after delay by 10 sec will output Y0 become de-energized (OFF).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN87 T.01S<\/p>\n<p>FUN88 T.1S<\/p>\n<p>FUN89 T1S<\/p>\n<\/td>\n<td>\n<p>ACCUMULATIVE TIMER<\/p>\n<\/td>\n<td>\n<p>FUN87 T.01S<\/p>\n<p>FUN88 T.1S<\/p>\n<p>FUN89 T1S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>The diagram below shows the relation on input and output for the above 4 kinds of timers.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-128.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-11  Watchdog Timer Instructions (FUN90~91)<\/h3>\n<h4>7-11-1  Watchdog Timer (WDT)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN90 P<\/p>\n<p>WDT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>WATCHDOG TIMER <\/p>\n<\/td>\n<td>\n<p>FUN90 P<\/p>\n<p>WDT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-129.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>N: The watchdog time. <\/p>\n<p>Its value can only be 50, 60, 70&#8230;990,<\/p>\n<p>The unit is 10MS, that is, the set time range is (50~990) x10MS, that is, 0.05 seconds to 9.9 seconds.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When the execution control &quot;EN&quot;=1 or from 0\u21921 (P instruction), change the setting time of the monitoring timer to NX10MS. Once set, WATCHDOG TIMER (WDT) will use this as the timing time, if the scan time exceeds the set time, the PLC will stop and not execute.<\/li>\n<li>The watchdog timer is normally implemented by a hardware one-shot timer (it can not be software, otherwise if CPU fail, the timer becomes ineffective, and safeguards are quite impossible). &quot;One-shot&quot; means that after triggered the timer once, the timing value will immediately be reset to 0 and timing will restart. If WDT has begun timing, and never triggered it again, then the WDT timing value will continue accumulating until it reach the preset value of N, at that time WDT will be activated, and PLC will be shut down. If trigger the WDT once every time before the WDT time N has been reached, then WDT will never be activated. PLC can use this feature to ensure the safety of the system. Each time when PLC enters into system housekeeping after finished the program scanning and I\/O refresh, it will usually trigger WDT once, so if the system functions normally and scan time does not exceed WDT time then WDT is never activated. However, if CPU is damaged and unable to trigger WDT, or the scan time is too long, then there will not be enough time to trigger WDT within the period N, WDT will be activated and will shut off PLC.<\/li>\n<li>Once the set value is set, it will be saved forever, and there is no need to set it once for each scan, so this command should be used practically P instruction.<\/li>\n<li>The WDT time is set at 0.25 seconds.<\/li>\n<li>For the working principle of WDT, please refer to the FUN91 (RSWDT) instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-11-2  RESET WATCHDOG TIMER (RSWDT)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN91 P<\/p>\n<p>RSWDT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>RESET WATCHDOG TIMER<\/p>\n<\/td>\n<td>\n<p>FUN91 P<\/p>\n<p>RSWDT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-130.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>This instruction has no operand.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When the execution control &quot;EN&quot;=1 or from 0\u21921 (P instruction), the WDT timer is cleared (that is, the WDT starts counting from 0 again).<\/li>\n<li>The function of WATCHDOG TIMER has been described in FUN90 (WDT command), and its principle is as follows:<\/li>\n<li>WATCHDOG TIMER are generally hardware ONE-SHOT timers (you cannot use software to do this, otherwise if the CPU crashes, the timer will be invalid, of course it cannot be protected), the so-called one-shot means That is, as long as you trigger the timer once, the timer value will be cleared to 0 immediately and restarted. If you do not trigger the WDT after it starts timing, the WDT timing will continue to increase to the set value N, and then the WDT will act and stop the PLC. If you trigger the WDT once before the WDT timing N has reached, the WDT will never happen, and the PLC uses this principle to ensure system security, because the PLC generally enters the program scan and I\/O update WDT is triggered once during system service (HOUSEKEEPING). If the system is normal and the scan time does not exceed the set time N of WDT, there must be time to clear WDT and make it inactive. However, if the CPU is damaged, WDT cannot be triggered. Or the scan time is too long to trigger the WDT within N time, the WDT will act and turn off the PLC.<\/li>\n<li>In some applications, you have set the WDT time (FUN90), and your program scans the time in some cases, and it may temporarily exceed the set time of WDT, which is expected and allowed by you. Of course, you don\u2019t want the PLC to stop because of this. At this time, you can use this command to trigger WDT to avoid WDT from happening. This is the main purpose of this command.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-12  High Counting\/Timing Instruction (FUN92~93)<\/h3>\n<h4>7-12-1  Hareware High Speed Counter Current Value Access<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN92D P<\/p>\n<p>HSCTR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Hareware High Speed Counter Current Value (CV) Access<\/p>\n<\/td>\n<td>\n<p>FUN92D P<\/p>\n<p>HSCTR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-131.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CN\uff1aHardware high speed counter number<\/p>\n<p>0\uff1aHSC0<\/p>\n<p>1\uff1aHSC1<\/p>\n<p>2\uff1aHSC2<\/p>\n<p>3\uff1aHSC3<\/p>\n<p>4\uff1aHSC4<\/p>\n<p>5\uff1aHSC5<\/p>\n<p>6\uff1aHSC6<\/p>\n<p>7\uff1aHSC7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The HSC0\uff5eHSC3 counters of M-Series PLC are 4 sets of 32bit high speed counter with the variety counting modes such as up\/down pulse. All the 4 high speed counters are built in the ASIC hardware and could perform count, compare, and send interrupt independently without the intervention of the CPU. Since the current values CV of HSC0\uff5eHSC3 are built in the internal hardware circuits of ASIC, the user control program (ladder diagram) cannot retrieve them directly from ASIC. Therefore, it must employ this instruction to get the CV value from hardware HSC and put it into the register which control program can access. The following is the arrangement of CV, PV in ASIC and their corresponding CV, PV registers of PLC for HSC0~HSC3.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN92D P<\/p>\n<p>HSCTR<\/p>\n<\/td>\n<td>\n<p>Hareware High Speed Counter Current Value (CV) Access<\/p>\n<\/td>\n<td>\n<p>FUN92D P<\/p>\n<p>HSCTR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"3\">\n<p>PLC register<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ASIC<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>DR35280<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>CV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>DR35282<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td>\n<p>HSC0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>PV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/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 colspan=\"2\">\n<p>DR35284<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>CV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC1<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>DR35286<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td>\n<p>HSC1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>PV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/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 colspan=\"2\">\n<p>DR35288<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>CV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC2<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>DR35290<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td>\n<p>HSC2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>PV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/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 colspan=\"2\">\n<p>DR35292<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>CV<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>CV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC3<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>DR35294<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>PV<\/p>\n<\/td>\n<td>\n<p>HSC3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>PV register<\/p>\n<\/td>\n<td>\n<p>H<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When access control \u201cEN\u201d =1 or changes from 0\u21921( P instruction), will gets the CV value of HSC designated by CN from ASIC and puts into the HSC corresponding CV register (i.e. the CV of HSC0 will be read and put into DR35280 or the CV of HSC1 will be read and put into DR35284).<\/li>\n<li>Although the PV within ASIC has a corresponding PV register in CPU, but it is not necessary to access it (actually it can\u2019t be) for that the PV value within ASIC comes from the PV register in CPU.<\/li>\n<li>For detailed applications, please refer to Chapter 8 \u201cThe high speed counter and high speed timer of M-Series PLC\u201d.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-12-2  Hardware High Speed Counter Current Value and Preset Value Writing<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN93D P <\/p>\n<p>HSCTW<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Hardware High Speed Counter Current Value and Preset Value Writing<\/p>\n<\/td>\n<td>\n<p>FUN93D P<\/p>\n<p>HSCTW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-132.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CN\uff1aHardware high speed counter to be written<\/p>\n<p>0\uff1aHSC0<\/p>\n<p>1\uff1aHSC1<\/p>\n<p>2\uff1aHSC2<\/p>\n<p>3\uff1aHSC3<\/p>\n<p>4\uff1aHST4<\/p>\n<p>5\uff1aHSC5<\/p>\n<p>6\uff1aHSC6<\/p>\n<p>7\uff1aHST7<\/p>\n<p>D: Write target (0 represents CV, 1 r epresents PV)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN93D P <\/p>\n<p>HSCTW<\/p>\n<\/td>\n<td>\n<p>Hardware High Speed Counter Current Value and Preset Value Writing<\/p>\n<\/td>\n<td>\n<p>FUN93D P<\/p>\n<p>HSCTW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u25cf\tPlease refer to FUN92 for the relationship between the CV or PV values \u200b\u200bof HSC0~HSC3 in the ASIC and the corresponding CV registers and PV registers inside the PLC.<\/p>\n<p>\u25cf\tWhen the writing control &quot;EN&quot;=1 or from 0\u21921 (P command), write the contents of the CV register or PV register of the high-speed counter designated by the PLC internal CN to the ASIC correspondingly CV or PV of HSC.<\/p>\n<p>\u25cf\tGeneral applications often need to write PV, that is, write your preset set value to the PV in ASIC. When the count value reaches your set value, the counter will immediately send an interrupt. Through the interrupt service program, you It can be used for various precise counting or positioning control.<\/p>\n<ul>\n<li>M PLC will automatically read the value of the current value register CV of HSC0~HSC3 inside the ASIC at that time when the power is off, and then write it into the CV register of HSC0~HSC3 inside the PLC (with power-off hold function), and when the PLC is powered on again, it will reversely write the CV registers inside the PLC back to the CV registers inside the ASIC. The content value of the register will automatically return to the value before the last power failure, but if your control application needs to be cleared to 0 or start counting from a specific value when the power is restored, you must use this instruction to do ASIC internal write to the CV value of HSC.<\/li>\n<li>For detailed applications, please refer Chapter 7 \u201cThe high-speed counter and high speed timer of M-Series PLC\u201d.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN93D P <\/p>\n<p>HSCTW<\/p>\n<\/td>\n<td>\n<p>Hardware High Speed Counter Current Value and Preset Value Writing<\/p>\n<\/td>\n<td>\n<p>FUN93D P<\/p>\n<p>HSCTW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-133.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF R_TRIG( S:= M0) THEN<\/p>\n<p>HSCTW( S:= 0, CN:= HSC_HSC0, D:= HSC_CV);<\/p>\n<p>END_IF<\/p>\n<p>IF M0 = FALSE THEN<\/p>\n<p>HSCTR( CN:= 0); <\/p>\n<p>END_IF<\/p>\n<p>IF R_TRIG( S:= M1) THEN<\/p>\n<p>HSCTW( S:= R500, CN:= HSC_HSC0, D:= HSC_PV);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>As the program in this diagram, when M0 changes from 0\u21921, it clears the current value of HSC0 to 0, and writes into ASIC hardware through FUN93.<\/p>\n<ul>\n<li>When M0 is 0, it reads out the current counting value.<\/li>\n<li>When M1 changes from 0\u21921, it moves DR500 to DR35282, and writes the preset value into ASIC hardware through FUN93.<\/li>\n<li>Whenever the current value equals to the DR500, The HSC0I interrupt sub program will be executed.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-13  Slow Up\/Slow Down (FUN95~98)<\/h3>\n<h4>7-13-1  TRACKING TYPE RAMP FUNCTION FOR D\/A OUTPUT<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TRACKING TYPE RAMP FUNCTION FOR D\/A OUTPUT<\/p>\n<\/td>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-134.png\" \/>                  98.RAMP2<\/p>\n<p>                 Om :       <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-135.png\" \/>                 Ta :<\/p>\n<p>                 Td :        <\/p>\n<p>                 Rt :<\/p>\n<p>                 Rc :<\/p>\n<p>                 WR :<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<td colspan=\"2\">\n<p>OM: Maximum output; range from 0~65535<\/p>\n<p>TA: The acceleration time for the output, from 0 up to maximum; Range from 0~65000, unit is in mS.<\/p>\n<p>TD: The deceleration time for the output, from maximum down to 0; Range from 0~65000, unit is in mS.<\/p>\n<p>RT: Register of target output; Range from 0~65535<\/p>\n<p>RC: Register of current output, it is used for analog output<\/p>\n<p>WR: Starting address of working registers, it needs 4 registers<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>OR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16-Bit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Om<\/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> 0~65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ta<\/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>0~65000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Td<\/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>0~65000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rt<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rc<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>WR<\/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>4 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<td>\n<p>TRACKING TYPE RAMP FUNCTION FOR D\/A OUTPUT<\/p>\n<\/td>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u25cf\tWhen execution \u301dEN\u301e=0, current output value (Rc) will be 0 immediately; the output indicators ACC=0 and DEC=0.<\/p>\n<p>\u25cf\tWhen execution \u301dEN\u301e=1, this instruction being executed; it will output current value (Rc) first, and then compare the target output value (Rt) with current output value (Rc) every scan; if the target output value is greater than current output value, the current output will be increased according to the rate, which is decided by the settings of acceleration time (Ta) and maximum output (Om), till current output value is equal to the target output value (ACC=1 during this time); if the target output value is less than current output value, the current output will be decreased according to the rate, which is decided by the settings of deceleration time (Td) and maximum output (Om), till current output value is equal to the target output value (DEC=1 during this time).<\/p>\n<p>\u25cf\tIf the setting value of target output (Rt) is greater than maximum output(Om), the output value will be clamped by the maximum value.<\/p>\n<p>\u25cf\tIt can have smooth activity for acceleration and deceleration control via the execution of this instruction by using current output value (Rc) for analog output (R35024~R35151).\u3002<\/p>\n<p>\u25cf\tThe setting value of target output (Rt) needs to stay two scan times at least for  proper operation.<\/p>\n<p>\u25cf It needs 4 registers for working, they can not be repeated in use.<\/p>\n<p>\u25cf This instruction is for positive value operation, but it also can have negative output by short and easy application program for help. Please see example 2.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<td>\n<p>TRACKING TYPE RAMP FUNCTION FOR D\/A OUTPUT<\/p>\n<\/td>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1 <\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Positive output for ACC\/DEC control<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-136.png\" \/><\/p>\n<\/td>\n<td>\n<p>RAMP2( EN:= M0, Om:= D10, Ta:= D0, Td:= D1, Rt:= D100, Rc:= R35024, WR:= D1000, ACC=&gt; M0, DEC=&gt; M1);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>D10: Setting of maximum output, it is 16383<\/p>\n<p>D0: The acceleration time for the output from 0 up to maximum, it is 30000mS <\/p>\n<p>D1: The deceleration time for the output from maximum down to 0, it is 20000mS <\/p>\n<p>D100: Setting of target output value, it is 8192<\/p>\n<p>R35024: Register of current output, it is used for D\/A output<\/p>\n<p>D1000~D1003: Working registers<\/p>\n<p>Description:<\/p>\n<p>When M0=0, current output value is 0 immediately (No ramp). When M0=1, it will output the value of R35024 first; and then compare the target output value (D100) with current output value (R35024) every scan; if D100\uff1eR35024, the current output value of R35024 will be increased according to the rate of 16383\/30000 (Om=16383, Ta=30000), till R35024=D100 (ACC=1 during this time); if D100\uff1cR35024, the current output value of R3904 will be decreased according to the rate of 16383\/20000 (Om=16383, Td=20000), till R35024=D100 (DEC=1 during this time).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-137.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<td>\n<p>TRACKING TYPE RAMP FUNCTION FOR D\/A OUTPUT<\/p>\n<\/td>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Both positive and negative output for ACC\/DEC control<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-138.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>D10 \uff1aSetting of maximum output, it is 8191<\/p>\n<p>D0  \uff1aThe acceleration time for the output from 0 up to maximum, it is 20000mS<\/p>\n<p>D1  \uff1aThe deceleration time for the output from maximum down to 0, it is 10000mS<\/p>\n<p>D100\uff1aSetting of target output value, it is 0<\/p>\n<p>D200\uff1aRegister of current output, it is used for analog output<\/p>\n<p>D1000~D1003\uff1aWorking registers<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<td>\n<p>TRACKING TYPE RAMP FUNCTION FOR D\/A OUTPUT<\/p>\n<\/td>\n<td>\n<p>FUN98<\/p>\n<p>RAMP2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Description\uff1a<\/p>\n<p>Description: When M0=0, current output value is 0 immediately (No ramp).<\/p>\n<p>When M0=1, it will output the value of D200 first; and then compare the target output value (D100) with current output value (D200) every scan; if D100\uff1eD200, the current output value of D200 will be increased according to the rate of 8191\/20000 (Om=8191, Ta=20000), till D200=D100 (ACC=1 during this time); if D100\uff1cD200, the current output value of D200 will be decreased according to the rate of 8191\/10000 (Om=8191, Td=10000), till D200=D100 (DEC=1 during this time).<\/p>\n<p>M100=1, positive output control; M101=1, negative output control.<\/p>\n<p>The target output (D100) is always positive value from 0~65535.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-139.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table Instructions<\/p>\n<p>\t100. R\u2192T\t107. T_FIL<\/p>\n<p>\t101. T\u2192R\t108. T_SHF<\/p>\n<p>\t102. T\u2192T\t109. T_ROT<\/p>\n<p>\t103. BT_M\t110. QUEUE<\/p>\n<p>\t104. T_SWP\t111. STACK<\/p>\n<p>\t105. R-T_S\t112. BKCMP<\/p>\n<p>\t106. T-T_C<\/p>\n<ul>\n<li>A table consists of 2 or more consecutive registers (16 or 32 bits). The number of registers that comprise the table is called the table length (L). The operation object of the table instructions always takes the register as unit (i.e. 16 or 32 bit data).<\/li>\n<li>The operation of table instructions are used mostly for data processing such as move, copy, compare, search etc, between tables and registers, or between tables. These instructions are convenient for application.<\/li>\n<li>Among the table instructions, most instructions use a pointer to specify which register within a table will be the target of operation. The pointer for both 16 and 32-bit table instructions will always be a 16-bit register. The effective range of the pointer is 0 to L-1, which corresponds to registers T0 to TL-1 (a total of L registers). The table shown below is a schematic diagram for 16-bit and 32-bit tables.<\/li>\n<li>Among the table operations, shift left\/right, rotate left\/right operations include a movement direction. The direction toward the higher register is called left, while the direction toward the lower register is called right, as shown in the diagram below.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-140.png\" \/><\/p>\n<h3>7-14  Table Instruction (FUN100~114)<\/h3>\n<h4>7-14-1  REGISTER TO TABLE MOVE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN100 D P<\/p>\n<p>R\u2192T<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>REGISTER TO TABLE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN100 D P<\/p>\n<p>R\u2192T<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-141.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Rs\t: Source data , can be constant or register<\/p>\n<p>Td\t: Source register for destination table<\/p>\n<p>L\t: Length of destination table<\/p>\n<p>Pr\t: Pointer register <\/p>\n<p>Rs, Td can associate with V, Z, P0~P9 index register as indirect addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>  Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32bit<br \/>+\/- number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td>\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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>Td<\/p>\n<\/td>\n<td><\/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<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2~2048<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When move control &quot;EN&quot; = 1 or transition from 0 to 1 (P instruction), the contents of the source register Rs will be written onto the register Tdpr indicated by the pointer Pr within the destination table Td (length is L). Before executing, this instruction will first check the pointer clear &quot;CLR&quot; input signal. If &quot;CLR&quot; is 1, it will first clear the pointer Pr, and then carry out the move operation. After the move has been completed, it will then check the Pr value. If the Pr value has already reached L-1 (point to the last register in the table) then it will only set the move-to-end flag &quot;END&quot; to 1, and finish execution of this instruction. If the Pr value is less than L-1, then it must again check the pointer increment &quot;INC&quot; input signal. If &quot;INC&quot; is 1, then Pr value will be also increased. Besides, pointer clear &quot;CLR&quot; is able to operate independently, without being influenced by other input.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN100 D P<\/p>\n<p>R\u2192T<\/p>\n<\/td>\n<td>\n<p>REGISTER TO TABLE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN100 D P<\/p>\n<p>R\u2192T<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The effective range of the pointer is 0 to L-1. Beyond this range, the pointer error &quot;ERR&quot; will be set to 1, and this instruction will not be performed.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-142.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The example at left at the very beginning pointer Pr = 4, the entire content of table Td is 0, and the Rs value is 8888. The diagram below shows the operation results when X1 have the transition of 0\u21921 twice.<\/li>\n<li>Because INC is 1, Pr will increase by 1 each time the instruction is executed.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"11\"><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>R50<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>R50<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>R50<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R10(T0)<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>X0\uff1d1<\/p>\n<p>(First)<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"8\">\n<p>X0\uff1d1<\/p>\n<p>(Second)<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R11(T1)<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R12(T2)<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R12<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-143.png\" \/><\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R13(T3)<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R13<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R13<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R14(T4)<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td>\n<p>R14<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td>\n<p>R14<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R15(T5)<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R15<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td>\n<p>R15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R16(T6)<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R16<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R17(T7)<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R17<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R17<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p> Before<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>  First time result<\/p>\n<\/td>\n<td colspan=\"4\">\n<p> Second time result<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-2  TABLE TO REGISTER MOVE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN101 D P<\/p>\n<p>T\u2192R<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TABLE TO REGISTER MOVE<\/p>\n<\/td>\n<td>\n<p>FUN101 D P<\/p>\n<p>T\u2192R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-144.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ts\t: Source table starting register<\/p>\n<p>L\t: Length of source table<\/p>\n<p>Pr\t: Pointer register<\/p>\n<p>Rd\t: Destination register<\/p>\n<p>Ts, Rd may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>  Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32bit<br \/>+\/- number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2~2048<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rd<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When move control &quot;EN&quot; = 1 or transition from 0 to 1 ( P instruction), the value of the register Tspr specified by pointer Pr within source table Ts (length is L) will be written into the destination register Rd. Before executing, this instruction will first check the input signal of pointer clear &quot;CLR&quot;. If &quot;CLR&quot; is 1, it will first clear Pr and then carry out the move operation. After completing the move operation, it will then check the value of Pr. If the Pr value has already reached L-1 (point to the last register in the table), then it sets the move-to-end flag to 1, and finishes executing of this instruction. If Pr is less than L-1, it check the status of &quot;INC&quot;. If &quot;INC&quot; is 1, then it will increase Pr and finish the execution of this instruction. Besides, pointer clear &quot;CLR&quot; can execute independently and is not influenced by other inputs.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN101 D P<\/p>\n<p>T\u2192R<\/p>\n<\/td>\n<td>\n<p>TABLE TO REGISTER MOVE<\/p>\n<\/td>\n<td>\n<p>FUN101 D P<\/p>\n<p>T\u2192R<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The effective range of the pointer is 0 to L-1. Beyond this range the pointer error &quot;ERR&quot; will be set to 1 and this instruction will not be carried out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-145.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the example at left, at the very beginning Pr = 7 and Ts and Rd are as shown at left in the diagram below. When X0 have a transition from 0\u21921 twice, the results are shown at right in the diagram below.<\/li>\n<li>At the second time execution, the pointer has already reached to the end so there will be no increment.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\"><\/td>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td colspan=\"3\">\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"3\">\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R0(T0)<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>7<\/p>\n<\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"8\">\n<p>X0\uff1d1<\/p>\n<p>(first)<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>8<\/p>\n<\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"8\">\n<p>X0\uff1d1<\/p>\n<p>(second)<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>8<\/p>\n<\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R1(T1)<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R2(T2)<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R3(T3)<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>Rd<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>Rd<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>Rd<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R4(T4)<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>8888<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>9999<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R5(T5)<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-146.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R6(T6)<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>END<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>END<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\">\n<p>END<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R7(T7)<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R8(T8)<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"3\"><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"8\">\n<p> Before execution<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>First time execution<\/p>\n<\/td>\n<td colspan=\"6\">\n<p> Second time Eexecution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-3  TABLE TO TABLE MOVE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN102 D P<\/p>\n<p>T\u2192T<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>TABLE TO TABLE MOVE<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN102 D P<\/p>\n<p>T\u2192T<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-147.png\" \/><\/p>\n<\/td>\n<td colspan=\"4\">\n<p>Ts: the starting number of the register in the source list<\/p>\n<p>Td: the starting number of the register of the destination list<\/p>\n<p>L: list length (Ts and Td)<\/p>\n<p>Pr: index register number<\/p>\n<p>Ts, Td can be combined with V, Z, P0~P9 for indirect addressing applications.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Ope-rand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>2048<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Td<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<td colspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<ul>\n<li>When move control &quot;EN&quot; = 1 or have a transition from 0 to 1( P instruction), the register Tspr pointed by pointer Pr within the source table will be moved to a register Tdpr, which also pointed by the pointer Pr in the destination table. Before execution, it will first check the input signal of pointer clear &quot;CLR&quot;. If &quot;CLR&quot; is 1, it will first clear Pr to 0 and then do the move (in this case Ts0\u2192Td0). After the move action has been completed it will then check the value of pointer Pr. If the Pr value has already reached L-1 (point to the last register on the table), then it will set the move-to-end flag &quot;END&quot; to 1 and finish executing of this instruction. If the Pr value is less than L-1, it will check the status of &quot;INC&quot;. If &quot;INC&quot; is 1, then the Pr value will be increased by 1 before execution. Besides, pointer clear &quot;CLR&quot; can execute independently, and will not be influenced by other input.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>FUN102 D P<\/p>\n<p>T\u2192T<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\uff08TABLE TO TABLE MOVE\uff09<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN102 D P<\/p>\n<p>T\u2192T<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<ul>\n<li>The effective range of the pointer is 0 to L-1. Beyond this range, the pointer error flag &quot;ERR&quot; will be set to 1, and this instruction will not be carried out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Example<\/p>\n<\/td>\n<td colspan=\"5\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-148.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The diagram at left below is the status before execution. When X0 from 0\u21921, the content of R5 in Ts table will copy to R15 and pointer R20 will be increased by 1. <\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td rowspan=\"8\">\n<p>X0\uff1d1<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R12<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R12<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R13<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R13<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-149.png\" \/><\/p>\n<\/td>\n<td>\n<p>R14<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td>\n<p>R14<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R15<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R15<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R16<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R16<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R17<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R17<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R18<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R18<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\"><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>Before execution<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>result<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-4  BLOCK TABLE MOVE (BT_M)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN103 D P<\/p>\n<p>BT_M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BLOCK TABLE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN103 D P<\/p>\n<p>BT_M<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-150.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ts : Starting register for source table<\/p>\n<p>Td : Starting register for destination table<\/p>\n<p>L : Lengths of source and destination tables <\/p>\n<p>Ts, Td may combine with V, Z, P0~P9 to serve indirect<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>\u2223<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Td<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>In this instruction the source table and destination table are the same length. When this instruction was executed all the data in the Ts table is completely copied to Td. No pointer is involved in this instruction.<\/li>\n<li>When move control &quot;EN&quot; = 1 or have a transition from 0 to 1 (P instruction), all the data from source table Ts (length L) is copied to the destination table Td, which is the same length.<\/li>\n<li>One table is completely copied every time this instruction is executed, so if the table length is long, it will be very time consuming. In practice, P instruction should be used to avoid time waste caused by each scan repeating the same movement action.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN103 D P<\/p>\n<p>BT_M<\/p>\n<\/td>\n<td>\n<p>BLOCK TABLE MOVE<\/p>\n<\/td>\n<td>\n<p>FUN103 D P<\/p>\n<p>BT_M<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-151.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>BT_M( Ts:= R0, Td:= R10, L:= 10);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The program example in the above figure assumes that the state of the TS and TD lists is as shown in the left figure before execution. When X0 changes from 0 to 1, the execution result as shown in the right figure below can be obtained:<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u5716\u72472.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-152.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-5  REGISTER TO TABLE SEARCH<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN105 D P<\/p>\n<p>R-T_S<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>REGISTER TO TABLE SEARCH<\/p>\n<\/td>\n<td>\n<p>FUN105 D P<\/p>\n<p>R-T_S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-153.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Rs\t: Data to search, it can be a constant or a register<\/p>\n<p>Ts\t: Starting register of table being searched<\/p>\n<p>L\t: Label length<\/p>\n<p>Pr\t: Pointer of table<\/p>\n<p>Rs, Ts may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<br \/>+\/- number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2~256<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When search control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), will search from the first register of Table Ts (when &quot;FHD&quot; = 1 or Pr value has reached L-1), or from the next register (Tspr + 1) pointed by the pointer within the table (&quot;FHD&quot; = 0, while Pr value is less than L-1) to find the first data different with Rs(when D\/S = 1) or find the first data the same with Rs (when D\/S = 0). If it find a data match the condition it will immediately stop the search action, and the pointer Pr will point to that data and found objective flag &quot;FND&quot; will set to 1. When the searching has searched to the last register of the table, the execution of the instruction will stop, whether it was found or not. In that case the search-to-end flag &quot;END&quot; will be set to 1 and the Pr value will stop at L-1. When this instruction next time is executed, Pr will automatically return to the head of the table (Pr = 0) before the search begin.<\/li>\n<li>The effective range of Pr is 0 to L-1. If the value exceeds this range then the pointer error flag &quot;ERR&quot; will change to 1, and this instruction will not be carried out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN105 D P<\/p>\n<p>R-T_S<\/p>\n<\/td>\n<td>\n<p>REGISTER TO TABLE SEARCH<\/p>\n<\/td>\n<td>\n<p>FUN105 D P<\/p>\n<p>R-T_S<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-154.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>T_Search( FHD:= FALSE, DS:= FALSE, Rs:= 5555, Ts:= R0, L:= 10, Pr:= R20, FND=&gt; M0, END=&gt; M1, ERR=&gt; M2); <\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction at left is searching the table for a register with the value 5555 (because D\/S = 0, it is searching for same value). Before execution, the pointer point to R2, but the starting point of the search is Pr + 1 (i.e. it starts from R3). After X0 has transition from 0\u21921 3 times, the results of each search may be obtained as shown in the diagram below.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>F<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"4\">\n<p>\u2780X0\uff1d<\/p>\n<p>(First)<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td rowspan=\"8\"><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>0000<\/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<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-155.png\" \/><\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p>Start<\/p>\n<p>point<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>FN<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"4\">\n<p>\u2781X0\uff1d<\/p>\n<p>(Second)<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>4444<\/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<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>5555<\/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<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>FN<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>\u2782X0\uff1d<\/p>\n<p>(Third)<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>8888<\/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<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Before execution<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-6  TABLE TO TABLE COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN106 D P<\/p>\n<p>T-T_C<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TABLE TO TABLE COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN106 D P<\/p>\n<p>T-T_C<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-156.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ta\t: Starting register of Table a<\/p>\n<p>Tb\t: Starting register of Table b<\/p>\n<p>L \t: Lengths of Table<\/p>\n<p>Pr\t: Pointer<\/p>\n<p>Ta, Tb may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p> Range<\/p>\n<p>Operand<\/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>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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ta<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Tb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When comparison control &quot;EN&quot; = 1 or has a transition from 0 to 1( P instruction), then starting from the first register in the tables Ta and Tb (when &quot;FHD&quot; = 1 or Pr value has reached L-1) or starting from the next pair of registers (Tapr+1 and Tbpr+1) pointed by Pr (&quot;FHD&quot; = 0, while Pr is less than L-1), this instruction will search for pairs of registers with different values (when &quot;D\/S&quot; = 1) or the same value (when &quot;D\/S&quot; = 0). When search found (either different or the same), it will immediately stop the search and the pointer Pr will point to the register pairs met the search criteria. The found flag &quot;FND&quot; will be set to 1. When it has searched to the last register of the table, the instruction will stop executing. whether it found or not. The compare-to-end flag &quot;END&quot; will be set to 1, and the pointer value will stop at L-1. When this instruction is executed next time, Pr will automatically return to the head of the table to begin the search. The effective range of Pr is 0 to L-1. The Pr value should not changed by other programs during the operation. As this will affect the result of the search. If the Pr value not in the effective range, the pointer error flag &quot;ERR&quot; will be set to 1, and this instruction will not be carried out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN106 D P<\/p>\n<p>T-T_C<\/p>\n<\/td>\n<td>\n<p>TABLE TO TABLE COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN106 D P<\/p>\n<p>T-T_C<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-157.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>T_Compare( FHD:= FALSE, DS:= TRUE, Ta:= R0, Tb:= R11, L:= 10, Pr:= R10, FND=&gt; M0, END=&gt; M1, ERR=&gt; M2); <\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction at right starts from the register next to the register pointed by the pointer (because &quot;FHD&quot; is 0) to search for register pairs with different data (because &quot;D\/S&quot; is 1) within the 2 tables. At the very beginning, Pr points to Ta1 and Tb1. There are 3 different pairs of data at the position 1,3,6 of the table.  However, it does not compare from the beginning, and this instruction will start searching from position 3 downwards. After X0 has changed 3 times from 0 to 1, the results are shown in the diagram below.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"2\"><\/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>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>1<\/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><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>Ta<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Tb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>FN<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-158.png\" \/><\/p>\n<\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"4\">\n<p>\u2780X0\uff1d1<\/p>\n<p>(First)<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td rowspan=\"8\"><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R12<\/p>\n<\/td>\n<td>\n<p>0000<\/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<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R13<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Start<\/p>\n<p>point<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R14<\/p>\n<\/td>\n<td>\n<p>1234<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>FN<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R15<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"4\">\n<p>\u2781X0\uff1d1<\/p>\n<p>(Second)<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R16<\/p>\n<\/td>\n<td>\n<p>5555<\/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<\/tr>\n<tr>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R17<\/p>\n<\/td>\n<td>\n<p>0000<\/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<\/tr>\n<tr>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R18<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>FN<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>\u2782X0\uff1d1<\/p>\n<p>(Third)<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td>\n<p>9999<\/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<\/tr>\n<tr>\n<td colspan=\"6\"><\/td>\n<td><\/td>\n<td colspan=\"7\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Before execution<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-7  TABLE FILL (T_FIL)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN107 D P<\/p>\n<p>T_FIL<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TABLE FILL<\/p>\n<\/td>\n<td>\n<p>FUN107 D P<\/p>\n<p>T_FIL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-159.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Rs : Source data to fill, can be a constant or a register<\/p>\n<p>Td : Starting register of destination table<\/p>\n<p>L :Table length<\/p>\n<p>Rs, Td may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>Td<\/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>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2-256<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When fill control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), the Rs data will be filled into all the registers of the table Td.<\/li>\n<li>This instruction is mainly used for clearing the table (fill 0) or unifying the table (filling in the same values). It should be used with the P instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN107 D P<\/p>\n<p>T_FIL<\/p>\n<\/td>\n<td>\n<p>TABLE FILL<\/p>\n<\/td>\n<td>\n<p>FUN107 D P<\/p>\n<p>T_FIL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-160.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>T_Fill( Rs:= 555, Td:= R0, L:= 10);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This instruction will fill 5555 into the whole table Td. The results are as shown in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td rowspan=\"11\"><\/td>\n<td><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td>\n<p>Td<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>1547<\/p>\n<\/td>\n<td colspan=\"3\" rowspan=\"8\">\n<p>X0\uff1d<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>2314<\/p>\n<\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>7725<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>0013<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>5247<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>1925<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6744<\/p>\n<\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>5319<\/p>\n<\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>9788<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>2796<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>Before execution<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"4\">\n<p>After execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-8  TABLE SHIFT<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN108 D P<\/p>\n<p>T_SHF<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TABLE SHIFT<\/p>\n<\/td>\n<td>\n<p>FUN108 D P<\/p>\n<p>T_SHF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-161.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>IW: Data to fill the room after shift operation, can be a constant or a register<\/p>\n<p>Ts: Source table<\/p>\n<p>Td: Destination table storing shift results<\/p>\n<p>L: Lengths of tables Ts and Td<\/p>\n<p>OW: Register to accept the shifted-out data<\/p>\n<p>Ts, Td may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand-<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<br \/>+\/- number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IW<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Td<\/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>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2~256<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>OW<\/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>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When shift control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), all the data from table Ts will be taken out and shifted one position to the left (when &quot;L\/R&quot; = 1) or to the right (when &quot;L\/R&quot; = 0). The room created by the shift operation will be filled by IW and the results will be written into table Td. The data shifted out will be written into OW.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN108 D P<\/p>\n<p>T_SHF<\/p>\n<\/td>\n<td>\n<p>TABLE SHIFT<\/p>\n<\/td>\n<td>\n<p>FUN108 D P<\/p>\n<p>T_SHF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-162.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<ul>\n<li>In the program at left, Ts and Td is the same table. Therefore, the table shifts itself and then writes back to itself (the table must be writ able). It first perform a shift left operation (let X1 = 1, and X0 go from 0\u21921) then perform a  shift to right operation (let X1 = 0, and makes X0 go from 0\u21921). The result are shown at right in the diagram below.<\/li>\n<\/ul>\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><\/td>\n<td><\/td>\n<td>\n<p>Ts(Td)<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>(Shift Left)<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>(Shift Right)<\/p>\n<\/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<td>\n<p>Td(Ts)<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Td(Ts)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>1234<\/p>\n<\/td>\n<td rowspan=\"8\"><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p>Shift left<\/p>\n<\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"3\"><\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>1234<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>\u00d7\u00d7\u00d7\u00d7<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Shift<\/p>\n<p>Left<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>1234<\/p>\n<\/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<td>\n<p>OW<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\">\n<p>Dotted line     is the path for shift right<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>1234<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"7\"><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Before execution<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2780First time<\/p>\n<\/td>\n<td>\n<p>\u2781Second time<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-9  TABLE ROTATE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN109 D P<\/p>\n<p>T_ROT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TABLE ROTATE<\/p>\n<\/td>\n<td>\n<p>FUN109 D P<\/p>\n<p>T_ROT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-163.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ts\t: Source table for rotate<\/p>\n<p>Td\t: Destination table storing results of rotation<\/p>\n<p>L \t: Lengths of table<\/p>\n<p>Ts, Td may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Td<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When rotation control &quot;EN&quot; = 1 or has a transition from 0 to 1( P instruction), the data from the table of Ts will be rotated 1 position to the left (when &quot;L\/R&quot; = 1)or 1 position to the right (when &quot;L\/R&quot; = 0). The results of the rotation will then be written onto table Td.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN109 D P<\/p>\n<p>T_ROT<\/p>\n<\/td>\n<td>\n<p>TABLE ROTATE<\/p>\n<\/td>\n<td>\n<p>FUN109 D P<\/p>\n<p>T_ROT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-164.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the program at left, Ts and Td is the same table. The table after rotation will write back to itself. It first perform one left rotation (let X1 = 1, and X0 go from 0\u21921), and then performs one right rotation (let X1 = 0, and X0 go from 0\u21921). The results are shown at right in the diagram below.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>(Rotate Left)<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td>\n<p>(Rotate Right)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Ts(Td)<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Td(Ts)<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td>\n<p>Td(Ts)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>(Right)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/td>\n<td colspan=\"2\" rowspan=\"8\"><\/td>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\"><\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>0000<\/p>\n<\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Rotate <\/p>\n<p>Right<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>6666<\/p>\n<\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>7777<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/td>\n<td>\n<p>(Left)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>8888<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p>9999<\/p>\n<\/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 colspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>    Before Execution<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2780First time<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u2781Second time<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-10  QUEUE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN110 D P<\/p>\n<p>QUEUE<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>QUEUE<\/p>\n<\/td>\n<td>\n<p>FUN110 D P<\/p>\n<p>QUEUE<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-165.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>IW: the data to be inserted into the storage column or its register number<\/p>\n<p>QU: The starting register number of the storage row<\/p>\n<p>L: the length of the storage column<\/p>\n<p>PR: index register number<\/p>\n<p>OW: Register number receiving data moved out from the memory<\/p>\n<p>QU can be combined with V, Z, P0~P9 for indirect addressing application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<br \/>+\/- number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IW<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>QU<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2~256<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>OW<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>Queue is also a kind of table. It is different from ordinary table in that its queue register numbers go from 1 to L and not from 0 to L-1. In other words, QU1~QUL respectively correspond to pointers Pr = 1 to L, and Pr = 0 is used to show that the queue is empty.<\/li>\n<\/ul>\n<p>Note: The system uses the serial number L+1 register for internal calculations, users must avoid this register<\/p>\n<ul>\n<li>Queue is a first in first out (FIFO) device, i.e. &#8211; the data that first pushed into the queue will be the first to pop out from the queue. A queue is comprised of L consecutive 16 or 32 bit registers ( D instruction) starting from the QU register.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN110 D P<\/p>\n<p>QUEUE<\/p>\n<\/td>\n<td>\n<p>QUEUE<\/p>\n<\/td>\n<td>\n<p>FUN110 D P<\/p>\n<p>QUEUE<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>IW<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\">\n<p>QU<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u27845555<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>QU1<\/p>\n<\/td>\n<td>\n<p>\u27834444<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>Push down<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU2<\/p>\n<\/td>\n<td>\n<p>\u27823333<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU3<\/p>\n<\/td>\n<td>\n<p>\u27812222<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU4<\/p>\n<\/td>\n<td>\n<p>\u27801111<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-166.png\" \/><\/p>\n<\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU5<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td>\n<p>\u00d7\u00d7\u00d7\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td colspan=\"2\" rowspan=\"3\">\n<p>\u2026\u2026<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-167.png\" \/><\/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<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2780\uff5e\u2784is the sequence number<\/p>\n<p>of operation<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QUL<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When execution control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), the status of in\/out control &quot;I\/O&quot; determines whether the IW data will be pushed into the queue (when &quot;I\/O&quot; = 1) or be popped out and transferred to OW (when &quot;I\/O&quot; = 0). As shown in the diagram above, the IW data will always be pushed into the first (QU1) register of the queue. After it has been pushed in, Pr will immediately be increased by 1, so that the pointer can always point to the first data that was pushed into the queue. When it is popped out, the data pointed by Pr will be transferred directly to OW. Pr will be reduced by 1, so that it still point to the first data  remained in the queue.<\/li>\n<li>If no data has yet been pushed into the queue or the pushed in data has already been popped out (Pr = 0), then the queue empty flag will be set to 1. In this case, even if there is further popping out action, this instruction will not be executed. If data is only pushed in and not popped out, or pushed in is more than that popped out, then the queue finally becomes full (pointer Pr indicates the QUL position), and the queue full flag is changed to 1. In this case, if there is more pushing in action, this instruction will not execute. The pointer for this instruction is used during access of the queue, to indicate the data that was pushed in the earliest. Other programs should not be allowed to change it, or else an operation error will be created. If there is a specific application, which requires the setting of a Pr value, then its permissible range is 0 to L (0 means empty, and 1 to L respectively correspond to QU1 to QUL). Beyond this range, the pointer error flag &quot;ERR&quot; will be set as 1, and this instruction will not be carried out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN110 D P<\/p>\n<p>QUEUE<\/p>\n<\/td>\n<td>\n<p>QUEUE<\/p>\n<\/td>\n<td>\n<p>FUN110 D P<\/p>\n<p>QUEUE<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-168.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>QUEUE( InOut:= X1, <\/p>\n<p>       IW:= R0, <\/p>\n<p>       Qu:= R2, <\/p>\n<p>       L:= 10, <\/p>\n<p>       Pr:= R1, <\/p>\n<p>       OW:= R20, <\/p>\n<p>       EPT=&gt; M0, <\/p>\n<p>       FUL=&gt; M1);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The program above assumes the queue content is the same with the queue at preceding page. It will first perform queue push operation, and then perform pop  out action. The results are shown below. Under any circumstance, Pr always point to the first (oldest) data that was remained in queue.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>QU<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU1<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU1<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU2<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU2<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU4<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU4<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU5<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>  X X X X<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>QU5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2191<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU7<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>OW unchanged<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>QU7<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU8<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td>\n<p>QU8<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU9<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU9<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>QU10<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU10<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>After push in (X1=1\uff0cX0 from 0\u21921)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After pop off(X1=0\uff0cX0 from 0\u21921)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-11  STACK<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN111 D P<\/p>\n<p>STACK<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>STACK<\/p>\n<\/td>\n<td>\n<p>FUN111 D P<\/p>\n<p>STACK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-169.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>IW\t: Data pushed into stack, can be a constant or a register<\/p>\n<p>ST\t: Starting register of stack<\/p>\n<p>L \t: Size of stack<\/p>\n<p>Pr\t: Pointer register <\/p>\n<p>OW\t: Register accepting data popped out from stack<\/p>\n<p>ST may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<br \/>+\/- number<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IW<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>ST<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>2~256<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>OW<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>Like queue, stack is also a kind of table. The nature of its pointer is exactly the same as with queue, i.e. Pr = 1 to L, which corresponds to ST1 to STL, and when Pr = 0 the stack is empty.<\/li>\n<li>Stack is the opposite of queue, being a last in first out (LIFO) device. This means that the data that was most recently pushed into the stack will be the first to be popped out of the stack. The stack is comprised of L consecutive 16 or 32-bit (D instruction) registers starting from ST, as shown in the following diagram: <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN111 D P<\/p>\n<p>STACK<\/p>\n<\/td>\n<td>\n<p>STACK<\/p>\n<\/td>\n<td>\n<p>FUN111 D P<\/p>\n<p>STACK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\"><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" rowspan=\"2\">\n<p>\u2780\uff5e\u2784is the sequence<\/p>\n<p>Number of operation<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>ST<\/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>ST1<\/p>\n<\/td>\n<td>\n<p>\u27801111<\/p>\n<\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Bottom of stack<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST2<\/p>\n<\/td>\n<td>\n<p>\u27812222<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST3<\/p>\n<\/td>\n<td>\n<p>\u27823333<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>IW<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-170.png\" \/><\/p>\n<\/td>\n<td>\n<p>ST4<\/p>\n<\/td>\n<td>\n<p>\u27834444<\/p>\n<\/td>\n<td><\/td>\n<td rowspan=\"2\">\n<p>     <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-171.png\" \/><\/p>\n<\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u27845555<\/p>\n<\/td>\n<td>\n<p>ST5<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u00d7\u00d7\u00d7\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td rowspan=\"3\">\n<p>push<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-172.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-173.png\" \/><\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\"><\/td>\n<td><\/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>STL<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When execution control &quot;EN&quot; = 1 or has a transition from 0 to 1( P instruction), the status of in\/out control &quot;I\/O&quot; determines whether the IW data will be pushed into the stack (when &quot;I\/O&quot; = 1), or the data pointed by Pr within the stack (the data most recently pushed into the stack) will be moved out and transferred to OW (when &quot;I\/O&quot; = 0). Note that the data pushed in is stacking, so before pushed in, Pr will increased by 1 to point to the top of the stack then the data will be pushed in. When it is popped out, the data pointed by pointer Pr (the most recently pushed in data) will be transferred to OW. After then Pr will decreased by 1. Under any circumstances, the pointer Pr will always point to the data that was pushed into the stack most recently.<\/li>\n<li>When no data has yet been pushed into the stack or the pushed in data has already been popped out (Pr = 0), the stack empty flag &quot;EPT&quot; will set to 1. In this case any further pop up actions, will be ignored. If more data is pushed than popped out, sooner or latter the stack will be full (pointer Pr points to STL position), and the stack full flag &quot;FUL&quot; will set to 1. In this case any further push actions, will be ignored. As with queue, the stack pointer in normal case should not be changed by other instructions. If there is a special application which requires to set the Pr value, then its effective range is 0 to L (0 means empty, 1 to L respectively correspond to ST1 to STL). Beyond this range, the pointer error flag &quot;ERR&quot; will set to 1, and the instruction will not be carried out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN111 D P<\/p>\n<p>STACK<\/p>\n<\/td>\n<td>\n<p>STACK<\/p>\n<\/td>\n<td>\n<p>FUN111 D P<\/p>\n<p>STACK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-174.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>STACK( InOut:= X1, <\/p>\n<p>       IW:= R0, <\/p>\n<p>       ST:= R2, <\/p>\n<p>       L:= 10, <\/p>\n<p>       Pr:= R1, <\/p>\n<p>       OW:= R20, <\/p>\n<p>       EPT=&gt; M0, <\/p>\n<p>       FUL=&gt; M1);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The program above assumes that the initial content of the stack is just as in the diagram of a stack on the preceding page. The operation illustrated in this example is to push a data and than pop it from stack. The results are shown below. Under any circumstances, Pr always point to the data that was most recently pushed into the stack.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>R1<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>QU<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST1<\/p>\n<\/td>\n<td>\n<p>1111<\/p>\n<\/td>\n<td>\n<p>R2<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST2<\/p>\n<\/td>\n<td>\n<p>2222<\/p>\n<\/td>\n<td>\n<p>R3<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST3<\/p>\n<\/td>\n<td>\n<p>3333<\/p>\n<\/td>\n<td>\n<p>R4<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST4<\/p>\n<\/td>\n<td>\n<p>4444<\/p>\n<\/td>\n<td>\n<p>R5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>OW<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST5<\/p>\n<\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>  X X X X<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>ST5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>5555<\/p>\n<\/td>\n<td>\n<p>R20<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2191<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST6<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R7<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST7<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>OW unchanged<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>ST7<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R8<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST8<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<td><\/td>\n<td>\n<p>ST8<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R9<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST9<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST9<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST10<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>ST10<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>After push(X1=1\uff0cX0 from 0\u21921)<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After pop(X1=0\uff0cX0 from 0\u21921)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-12  BLOCK COMPARE (DRUM)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN112 D P<\/p>\n<p>BKCMP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BLOCK COMPARE (DRUM)<\/p>\n<\/td>\n<td>\n<p>FUN112 D P<\/p>\n<p>BKCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-175.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Rs\t: Data for compare, can be a constant or a register<\/p>\n<p>Ts\t: Starting register block storing upper and lower limit <\/p>\n<p>L\t: Number of pairs of upper and lower limits<\/p>\n<p>D\t: Starting relay storing results of comparison<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>Y<\/p>\n<\/td>\n<td>\n<p>M<\/p>\n<\/td>\n<td>\n<p>S<\/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<\/tr>\n<tr>\n<td>\n<p>Y0<\/p>\n<p>\u2223<\/p>\n<p>Y1023<\/p>\n<\/td>\n<td>\n<p>M0<\/p>\n<p>\u2223<\/p>\n<p>M9119<\/p>\n<\/td>\n<td>\n<p>S0<\/p>\n<p>\u2223<\/p>\n<p>S3103<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<br \/>+\/- number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/p>\n<\/td>\n<td><\/td>\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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>Ts<\/p>\n<\/td>\n<td><\/td>\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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>L<\/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>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>1~256<\/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><\/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><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When comparison control &quot;EN&quot; = 1 or has a transition from 0 to 1( P instruction), comparisons will be perform one by one between the contents of Rs and the upper and lower limits form by L pairs of 16 or 32-bit ( D modifier) registers starting from the Ts register (starting from T0 each adjoining 2 register units form a pair of upper and lower limits). If the value of Rs falls within the range of the pair, then the bit within the comparison results relay D which corresponds to that pair will be set to 1. Otherwise it will be set as 0 until comparison of all the L pairs of upper and lower limits is completed.<\/li>\n<li>When M9160=0, if there is any pair where the upper limit value is less than the lower limit value, then the limit error flag &quot;ERR&quot; will be set to 1, and the comparison output for that pair will be 0.<\/li>\n<li>When M9160=1, there is no restriction on the relation of upper limit and lower limit, this can apply for 360\u00b0rotary electronic drum switch application. <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN112 D P<\/p>\n<p>BKCMP<\/p>\n<\/td>\n<td>\n<p>BLOCK COMPARE\uff08DRUM\uff09<\/p>\n<\/td>\n<td>\n<p>FUN112 D P<\/p>\n<p>BKCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Upper limit<\/p>\n<\/td>\n<td>\n<p>Lower limit<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Compared<\/p>\n<p>\u2190<\/p>\n<p>\u2192<\/p>\n<\/td>\n<td>\n<p>Compare value<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Result<\/p>\n<p>\u2190<\/p>\n<p>\u2192<\/p>\n<\/td>\n<td>\n<p>Output<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TS1<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>TS0<\/p>\n<\/td>\n<td rowspan=\"5\">\n<p>RS<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>TS3<\/p>\n<\/td>\n<td>\n<p>TS2<\/p>\n<\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>\u2190\u2192<\/p>\n<\/td>\n<td>\n<p>D1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>~<\/p>\n<\/td>\n<td>\n<p>~<\/p>\n<\/td>\n<td>\n<p>~<\/p>\n<\/td>\n<td>\n<p>~<\/p>\n<\/td>\n<td>\n<p>~<\/p>\n<\/td>\n<td>\n<p>~<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L\u22121<\/p>\n<\/td>\n<td>\n<p>TS2L\u22121<\/p>\n<\/td>\n<td>\n<p>TS2L\u22122<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>DL\u22121<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Actually, this instruction is a drum switch, which can be used in interrupt program and when incorporate with immediate I\/O instruction (IMDIO) can achieve an accurate electronic drum.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-176.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>BKCMP( Rs:= C0, Ts:= R10, L:= 4, D:= Y5); <\/p>\n<p>END_IF<\/p>\n<p>Counter( Pulse:= X1, <\/p>\n<p>         Clr:= C0, <\/p>\n<p>         C:= 0, <\/p>\n<p>         PV:=360, <\/p>\n<p>         IsUp=&gt; C0);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In this program, C0 represents the rotation angle (Rs) of a drum shaft. The block compare instruction performs a comparison between Rs and the 4 pairs (L = 4) of upper and lower limits, R10,R11, R12,R13, R14,R15 and R16,R17. The comparison results can be obtained from the four drum output points Y5 to Y8.<\/li>\n<li>The input point X1 is a rotation angle detector mounted on the drum shaft. With each one degree rotation of the drum shaft angle, X1 produces a pulse. When the drum shaft rotates a full cycle, X1 produces 360 pulses.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN112 D P<\/p>\n<p>BKCMP<\/p>\n<\/td>\n<td>\n<p>BLOCK COMPARE\uff08DRUM\uff09<\/p>\n<\/td>\n<td>\n<p>FUN112 D P<\/p>\n<p>BKCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The program in the diagram above coordinates a rotary encoder or other rotating angle detection device (directly connect to a rotating mechanism), which can form a mechanical device equivalent to the mechanical structure of an actual drum (see mechanism shown within dotted line in diagram below). While the upper and lower limits are being adjusted, you can change at will the range of the activated angle of the drum. This cannot be done with the traditional drum mechanism.<\/li>\n<\/ul>\n<p>Equivalent mechanical drum emulated by above program<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-177.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-178.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-13  DATA SORTING (SORTING)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN113 D P<\/p>\n<p>SORT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SORTING<\/p>\n<\/td>\n<td>\n<p>FUN113 D P<\/p>\n<p>SORT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"C:\\Users\\User\\Desktop\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\SORT.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-179.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S : Starting register of source registers to sort<\/p>\n<p>D : Starting register of destination registers to store the <\/p>\n<p>data after sorted<\/p>\n<p>L\t: Total register for sorting<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2-256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When sort control &quot;EN&quot; = 1 or has a transition from 0 to 1( P instruction), will sort the registers with ascending order (if A\/D = 1) or descending order (if A\/D = 0) and put the sorted result to the registers starting by D register.<\/li>\n<li>The valid data length of sort operation is between 2 and 127, other length will set the \u201cERR\u201d to 1 and the sort operation will not perform.\u3002<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN113 D P<\/p>\n<p>SORT<\/p>\n<\/td>\n<td>\n<p>DATA SORTING<\/p>\n<\/td>\n<td>\n<p>FUN113 D P<\/p>\n<p>SORT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-180.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>SORT( AD:= TRUE, <\/p>\n<p>      S:= R0, <\/p>\n<p>      D:= R10, <\/p>\n<p>      L:= 10);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This example sorts the table comprised of R0~R9 and stores the sorted data to the table locate at R10~R19.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>  S<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>  D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>1547<\/p>\n<\/td>\n<td rowspan=\"10\">\n<p>  X0\uff1d<\/p>\n<p>  \u21e8<\/p>\n<\/td>\n<td>\n<p>R10<\/p>\n<\/td>\n<td>\n<p>0013<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>2314<\/p>\n<\/td>\n<td>\n<p>R11<\/p>\n<\/td>\n<td>\n<p>1547<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>7725<\/p>\n<\/td>\n<td>\n<p>R12<\/p>\n<\/td>\n<td>\n<p>1925<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>0013<\/p>\n<\/td>\n<td>\n<p>R13<\/p>\n<\/td>\n<td>\n<p>2314<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>5247<\/p>\n<\/td>\n<td>\n<p>R14<\/p>\n<\/td>\n<td>\n<p>2796<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R5<\/p>\n<\/td>\n<td>\n<p>1925<\/p>\n<\/td>\n<td>\n<p>R15<\/p>\n<\/td>\n<td>\n<p>5247<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R6<\/p>\n<\/td>\n<td>\n<p>6744<\/p>\n<\/td>\n<td>\n<p>R16<\/p>\n<\/td>\n<td>\n<p>5319<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R7<\/p>\n<\/td>\n<td>\n<p>5319<\/p>\n<\/td>\n<td>\n<p>R17<\/p>\n<\/td>\n<td>\n<p>6744<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R8<\/p>\n<\/td>\n<td>\n<p>9788<\/p>\n<\/td>\n<td>\n<p>R18<\/p>\n<\/td>\n<td>\n<p>7725<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R9<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-181.png\" \/>2796<\/p>\n<\/td>\n<td>\n<p>R19<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-182.png\" \/>9788<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-14-14  ZONE WRITE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN114 D P<\/p>\n<p>Z-WR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ZONE WRITE<\/p>\n<\/td>\n<td>\n<p>FUN114 D P<\/p>\n<p>Z-WR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-183.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D : Starting address of being set or reset<\/p>\n<p>N : Quantity of being set oe reset, 1~511<\/p>\n<p>D\u3001N operand can combine V\u3001Z\u3001P0~P9 for index addressing while word operation<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p> Range<\/p>\n<p>Ope-<\/p>\n<p>rand<\/p>\n<\/td>\n<td>\n<p>Y<\/p>\n<\/td>\n<td>\n<p>M<\/p>\n<\/td>\n<td>\n<p>SM<\/p>\n<\/td>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>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>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>\n<p>Y0<\/p>\n<p>\u2223<\/p>\n<p>Y1023<\/p>\n<\/td>\n<td>\n<p>M0<\/p>\n<p>\u2223<\/p>\n<p>M9119<\/p>\n<\/td>\n<td>\n<p>M9120<\/p>\n<p>|<\/p>\n<p>M25599<\/p>\n<\/td>\n<td>\n<p>S0<\/p>\n<p>\u2223<\/p>\n<p>S3103<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<p>\u2223<\/p>\n<p>511<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0\uff5eP9<\/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<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot;=1 or changes from 0\u21921\uff08 P instruction\uff09, it will perform the write operation according to the input status of write selection, the specified area of registers or bits will all be reset to 0 (&quot;1\/0&quot;=0) or set to 1(&quot;1\/0&quot;=1).<\/li>\n<li>The valid data length of sort operation is between 0 and 511, other length will set the \u201cERR\u201d to 1 and the sort operation will not perform.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN114 D P<\/p>\n<p>Z-WR<\/p>\n<\/td>\n<td>\n<p>ZONE WRITE<\/p>\n<\/td>\n<td>\n<p>FUN114 D P<\/p>\n<p>Z-WR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Registers R0~R9 will be reset to 0 while X0=1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-184.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>ZoneWR( Val:= FALSE, <\/p>\n<p>        D:= R0, <\/p>\n<p>        N:= 10);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" alt=\"C:\\Users\\User\\Desktop\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\Z_WR_Example1.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-185.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN114 D P<\/p>\n<p>Z-WR<\/p>\n<\/td>\n<td>\n<p>ZONE WRITE<\/p>\n<\/td>\n<td>\n<p>FUN114 D P<\/p>\n<p>Z-WR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>(When X50 is \u201cON\u201d, clear M5~M11 to 0)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-186.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X50 THEN<\/p>\n<p>ZoneWR( Val:= FALSE, <\/p>\n<p>        D:= M5, <\/p>\n<p>        N:= 7);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-187.png\" \/> <\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Matrix Instructions<\/p>\n<p>\t120. MAND     \t126. MBRD<\/p>\n<p>\t121. MOR      \t127. MBWR<\/p>\n<p>\t122. MXOR     \t128. MBSHF<\/p>\n<p>\t123. MXNR     \t129. MBROT<\/p>\n<p>\t124. MINV \t130. MBCNT<\/p>\n<p>\t125. MCMP<\/p>\n<ul>\n<li>A matrix is comprised of 2 or more consecutive 16-bit registers. The number of registers comprising the matrix is called the matrix length (L). One matrix altogether has L\u00d716 bits (points), and the basic unit of the object for each operation is bit.<\/li>\n<li>The matrix instructions treats the 16\u00d7L matrix bits as a set of series points(denoted by M0 to M16L-1). Whether the matrix is formed by register or not, the operation object is the bit not numerical value.<\/li>\n<li>Matrix instructions are used mostly for discrete status processing such as moving, copying, comparing, searching, etc, of single point to multipoint (matrix), or multipoint-to-multipoint. These instructions are convenient, important for application.<\/li>\n<li>Among the matrix instructions, most instruction need to use a 16-bit register as a pointer to points a specific point within the matrix. This register is known as the matrix pointer (Pr). Its effective range is 0 to 16L-1, which corresponds respectively to the bits M0 to M16L-1 within the matrix.<\/li>\n<li>Among the matrix operations, there are shift left\/right, rotate left\/right operations. We define the movement toward higher bit is left direction, while the movement toward lower bit is right direction, as shown in the diagram below.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-188.png\" \/><\/p>\n<h3>7-15  Matrix Instruction (FUN120~130)<\/h3>\n<h4>7-15-1  MATRIX AND<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN120 P<\/p>\n<p>MAND<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX AND<\/p>\n<\/td>\n<td>\n<p>FUN120 P<\/p>\n<p>MAND<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-189.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ma\t: Starting register of source matrix a<\/p>\n<p>Mb\t: Starting register of source matrix b<\/p>\n<p>Md\t: Starting register of destination matrix <\/p>\n<p>L \t: Length of matrix (Ma, Mb and Md)<\/p>\n<p>Ma, Mb, Md may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ma<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Mb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), this instruction will perform a logic AND (only if 2 bits are 1 will the result be 1, otherwise it will be 0)operation between two source matrixes with a length of L, Ma and Mb. The result will then be stored in the destination matrix Md, which is also the same length (the AND operation is done by bits with the same bit numbers). For example, if Ma0 = 0, Mb0 = 1, then Md0 = 0; if Ma1 = 1, Mb1 = 1, then Md1 = 1; etc, right up until AND reaches Ma16L-1 and Mb16L-1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN120 P<\/p>\n<p>MAND<\/p>\n<\/td>\n<td>\n<p>MATRIX AND<\/p>\n<\/td>\n<td>\n<p>FUN120 P<\/p>\n<p>MAND<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-190.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-191.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MAND( Ma:= R0, Mb:= R10, Md:= R20, L:= 5);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the program at left, when X0 goes from 0\u21921, then matrix Ma, comprised by R0 to R4, and matrix Mb, comprised by R10 to R14, will do an AND operation. The results will be stored back in matrix Md, comprised by R20 to R24. The result is shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>Ma15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Ma0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"6\">\n<p>Mb15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Mb0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"6\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R10<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R20<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R11<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R21<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R12<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R22<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R13<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R23<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R14<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>R24<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"7\">\n<p>\u2191<\/p>\n<p>Ma64<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"7\">\n<p>\u2191<\/p>\n<p>Mb64<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"7\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"40\">\n<p>Before Execution<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"20\">\n<p>After Execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-2  MATRIX OR<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN121 P<\/p>\n<p>MOR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX OR<\/p>\n<\/td>\n<td>\n<p>FUN121 P<\/p>\n<p>MOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-192.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ma\t: Starting register of source matrix a<\/p>\n<p>Mb\t: Starting register of source matrix b<\/p>\n<p>Md\t: Starting register of destination matrix <\/p>\n<p>L \t: Length of matrix (Ma, Mb and Md)<\/p>\n<p>Ma, Mb, Md may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ma<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Mb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), this instruction will perform a logic OR(If any 2 of the bits are 1, then the result will be 1, and only if both are 0 will the result be 0) operation between 2 source matrixes with a length of L, Ma and Mb. The result will then be stored in the destination matrix Md, which is also the same length (the OR operation is done by bits with the same bit numbers). For example, if Ma0 = 0, Mb0 = 1, then Md0 = 1; if Ma1 = 0, Mb1 = 0, then Md1 = 0; etc, right up until OR reaches Ma16L-1 and Mb16L-1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN121 P<\/p>\n<p>MOR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX OR<\/p>\n<\/td>\n<td>\n<p>FUN121 P<\/p>\n<p>MOR<\/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\/mplc-m07-en-07\/mplc-m07-en-07-193.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-194.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MOR( Ma:= R0, Mb:= R10, Md:= R20, L:= 5);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the program at left, when X0 goes from 0\u21921, then matrix Ma, comprised by R0 to R4, and matrix Mb, comprised by R10 to R14, will do an OR operation. The results will then be stored into the destination matrix Md, comprised by R10 to R14. In this example, Mb and Md is the same matrix, so after operation the source matrix Mb will replaced by the  new value. The result is shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>Ma15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Mb15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R10<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R20<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R11<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R21<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R12<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R22<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R13<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R23<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R14<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R24<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"37\">\n<p>Before execution<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"18\">\n<p>After execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-3  MATRIX EXCLUSIVE OR<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN122 P<\/p>\n<p>MXOR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX EXCLUSIVE OR<\/p>\n<\/td>\n<td>\n<p>FUN122 P<\/p>\n<p>MXOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-195.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ma\t: Starting register of source matrix a<\/p>\n<p>Mb\t: Starting register of source matrix b<\/p>\n<p>Md\t: Starting register of destination matrix <\/p>\n<p>L \t: Length of matrix (Ma, Mb and Md)<\/p>\n<p>Ma, Mb, Md may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ma<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Mb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), this instruction will performs a logic XOR (if the 2 bits are different, then the result will be 1, otherwise it will be 0)between 2 source matrixes with a length of L, Ma and Mb. The result will then be stored back into the destination matrix Md, which also has a length of L. For example the XOR operation is done by bits with the same bit numbers &#8211; for example, if Ma0 = 0, Mb0 = 1, then Md0 = 1; if Ma1 = 1, Mb1 = 1, then Md1 = 0; etc, right up until XOR reaches Ma16L-1 and Mb16L-1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN122 P<\/p>\n<p>MXOR<\/p>\n<\/td>\n<td>\n<p>MATRIX EXCLUSIVE OR<\/p>\n<\/td>\n<td>\n<p>FUN122 P<\/p>\n<p>MXOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-196.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-197.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MXOR( Ma:= R0, Mb:= R10, Md:= R20, L:= 5);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the program at left, when X0 goes from 0\u21921, will perform a XOR operation between matrix Ma, comprised by R0 to R4, and matrix Mb, comprised by R10 to R14. The results will then be stored in destination matrix Md, comprised by R20 to R24. The results are shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>Ma15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Mb15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R10<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R20<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R11<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R21<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R12<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R22<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R13<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R23<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R14<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R24<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"37\">\n<p>Before Execution<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"18\">\n<p>After Execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-4  MATRIX ENCLUSIVE NOR<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN123 P<\/p>\n<p>MXNR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX EXCLUSIVE NOR<\/p>\n<\/td>\n<td>\n<p>FUN123 P<\/p>\n<p>MXNR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-198.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ma\t: Starting register of source matrix a<\/p>\n<p>Mb\t: Starting register of source matrix b<\/p>\n<p>Md\t: Starting register of destination matrix <\/p>\n<p>L \t: Length of matrix (Ma, Mb and Md) <\/p>\n<p>Ma, Mb, Md may combine with V, Z,P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ma<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Mb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), will perform a logic XNR operation (if the 2 bits are the same, then the result will be 1, otherwise it will be 0) between 2 source matrixes with a length of L, Ma and Mb. The results will then be stored into the destination matrix Md, which also has the same length (the XNR operation is done by bits with the same bit numbers). For example, if Ma0 = 0, Mb0 = 1, then Md0 = 1; if Ma1 = 1, Mb1 = 1, then Md1 = 0; etc, right up until XNR reaches Ma16L-1 and Mb16L-1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN123 P<\/p>\n<p>MXNR<\/p>\n<\/td>\n<td>\n<p>MATRIX EXCLUSIVE NOR<\/p>\n<\/td>\n<td>\n<p>FUN123 P<\/p>\n<p>MXNR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-199.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-200.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MXNR( Ma:= R0, Mb:= R10, Md:= R10, L:= 5);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or goes from 0 to 1 ( P instruction), will perform a XNR operation between Ma matrix comprised by R0~R9 and Mb matrix comprised by R10~R19. The results will then be stored into the destination matrix Md comprised by R10~R19. The results are shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"6\">\n<p>Ma15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ma<sub>0<\/sub><\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Mb15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Mb0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R10<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R20<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R11<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R21<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R12<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R22<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R13<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R23<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R14<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R24<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ma64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Mb64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"37\">\n<p>Before Execution<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"18\">\n<p>After Execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-5  MATRIX INVERSE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN124 P<\/p>\n<p>MINV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX INVERSE<\/p>\n<\/td>\n<td>\n<p>FUN124 P<\/p>\n<p>MINV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-201.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ms: Starting register of source matrix<\/p>\n<p>Md\t: Starting register of destination <\/p>\n<p>L \t: Length of matrix (Ms and Md) <\/p>\n<p>Ma, Md may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ms<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot; = 1 or has a transition from 0 to 1 ( P instruction), source register Ms, which has a length of L, will be completely inverted (all the bits with a value of 1 will change to 0, and all those with a value of 0 will change to 1). The results will then be stored into destination matrix Md.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-202.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN124 P<\/p>\n<p>MINV<\/p>\n<\/td>\n<td>\n<p>MATRIX INVERSE<\/p>\n<\/td>\n<td>\n<p>FUN124 P<\/p>\n<p>MINV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Exaxmple<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-203.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MINV( Ms:= R0, Md:= R0, L:= 5);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the program at left, when X0 goes from 0\u21921, the matrix comprised by R0 to R4 will be inverted, and then store back into itself (because in this example Ms and Md are the same matrix). The results obtained are shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>Ms15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ms<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ms0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R0<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R1<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R2<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R3<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R4<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ms79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ms64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Before Execution<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After Execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-6  MATRIX BIT SHIFT<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN128 P<\/p>\n<p>MBSHF<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX BIT SHIFT<\/p>\n<\/td>\n<td>\n<p>FUN128 P<\/p>\n<p>MBSHF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-204.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ms\t: Starting register of source matrix<\/p>\n<p>Md\t: Starting register of destination matrix<\/p>\n<p>L \t: Length of matrix (Ms and Md)<\/p>\n<p>Ms, Md may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ms<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When shift control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), source matrix Ms will be retrieved and completely shifted one position to the left (when L\/R = 1) or one position to the right (when L\/R = 0). The space caused by the shift (with a left shift it will be M0, and with a right shift it will be M16L-1), is replaced by the status of fill-in bit &quot;INB&quot;. The status of the bits popped out (with a left shift it will be M16L-1, and with a right shift it will be M0) will appear at the output bit &quot;OTB&quot;. Then the results of this shifted matrix will be filled into the destination matrix Md.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN128 P<\/p>\n<p>MBSHF<\/p>\n<\/td>\n<td>\n<p>\uff08MATRIX BIT SHIFT\uff09<\/p>\n<\/td>\n<td>\n<p>FUN128 P<\/p>\n<p>MBSHF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-205.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-206.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN128 P<\/p>\n<p>MBSHF<\/p>\n<\/td>\n<td>\n<p>\uff08MATRIX BIT SHIFT\uff09<\/p>\n<\/td>\n<td>\n<p>FUN128 P<\/p>\n<p>MBSHF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-207.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MBSHF( INB:= X0, L_R:= TRUE, Ms:= R0, Md:= R0, L:= 5, OTB=&gt; M0); END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The program at left is an example where Ms and Md are the same matrix. When X0 goes from 0\u21921, Ms will be completely retrieved and moved to the left (because L\/R = 1) by 1 bit. It will then be stored back to Md, and the results are shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>Ms15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ms<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ms0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>X0=1<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"4\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R0<\/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 colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>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<\/tr>\n<tr>\n<td>\n<p>R1<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R1<\/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 colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R2<\/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 colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>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<\/tr>\n<tr>\n<td>\n<p>R3<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R3<\/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 colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>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<\/tr>\n<tr>\n<td>\n<p>R4<\/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 colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R4<\/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 colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ms79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ms64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"4\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"7\"><\/td>\n<td colspan=\"7\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Before Execution<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After Execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-7  MATRIX BIT ROTATE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN129 P<\/p>\n<p>MBROT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX BIT ROTATE<\/p>\n<\/td>\n<td>\n<p>FUN129 P<\/p>\n<p>MBROT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-208.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ms\t: Starting register of source matrix<\/p>\n<p>Md\t: Starting register of destination matrix<\/p>\n<p>L \t: Length of matrix (Ms and Md)<\/p>\n<p>Ms, Md may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<p>|<\/p>\n<p>256<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ms<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>Md<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When rotate control &quot;EN&quot; = 1 or has a transition from 0 to 1 (P instruction), matrix Ms will be completely retrieved and rotated by one bit towards the left (when L\/R = 1) or to the right (when L\/R = 0). The space created by the rotation (with a left rotation it will be M0, and with a right rotation it will be M16L-1) will be replaced by the status of the rotated-out bit (with a left rotation it will be M16L-1, and with a right rotation it will be M0). The rotated-out bit will not only be used to fill the above-mentioned space, it will also be transferred to rotated-out bit &quot;OTB&quot;.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN129 P<\/p>\n<p>MBROT<\/p>\n<\/td>\n<td>\n<p>MATRIX BIT ROTATE<\/p>\n<\/td>\n<td>\n<p>FUN129 P<\/p>\n<p>MBROT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-209.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-210.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN129 P<\/p>\n<p>MBROT<\/p>\n<\/td>\n<td>\n<p>MATRIX BIT ROTATE<\/p>\n<\/td>\n<td>\n<p>FUN129 P<\/p>\n<p>MBROT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-211.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MBROT( L_R:= FALSE, Ms:= R0, Md:= R0, L:= 5, OTB=&gt; M0);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the program at left, Ms and Md are the same matrix. When X0 goes from 0\u21921, then the whole of Ms is retrieved and rotated right (because L\/R = 0) by 1 bit. It is then stored back into Ms itself (because in this example Ms and Md are the same matrix). The results are shown at right in the diagram below.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>Ms15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ms<\/p>\n<\/td>\n<td colspan=\"6\">\n<p>Ms0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>X0=1<\/p>\n<p>\u21e8<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"4\">\n<p>Md15<\/p>\n<p>\u2193<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Md<\/p>\n<\/td>\n<td colspan=\"7\">\n<p>Md0<\/p>\n<p>\u2193<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R0<\/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 colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>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<\/tr>\n<tr>\n<td>\n<p>R1<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R1<\/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=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R2<\/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=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>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<\/tr>\n<tr>\n<td>\n<p>R3<\/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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>R3<\/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 colspan=\"2\">\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>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td colspan=\"2\">\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>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<\/tr>\n<tr>\n<td>\n<p>R4<\/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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>R4<\/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=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td colspan=\"2\">\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>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ms79<\/p>\n<\/td>\n<td colspan=\"6\"><\/td>\n<td colspan=\"6\">\n<p>\u2191<\/p>\n<p>Ms64<\/p>\n<\/td>\n<td><\/td>\n<td colspan=\"4\">\n<p>\u2191<\/p>\n<p>Md79<\/p>\n<\/td>\n<td colspan=\"7\"><\/td>\n<td colspan=\"7\">\n<p>\u2191<\/p>\n<p>Md64<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-212.png\" \/><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Before Execution<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>After Execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-15-8  MATRIX BIT STATUS COUNT(MBCNT)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN130 P<\/p>\n<p>MBCNT<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MATRIX BIT STATUS COUNT<\/p>\n<\/td>\n<td>\n<p>FUN130 P<\/p>\n<p>MBCNT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-213.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ms\t: Starting register of matrix<\/p>\n<p>L  : Matrix length<\/p>\n<p>D  : Register storing count results <\/p>\n<p>Ms may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>2-256<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ms<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When count control &quot;EN&quot; = 1 or has a transition from 0 to 1( P instruction), then among the 16L bits of the Ms matrix, this instruction will count the total amount of bits with a status of 1  (when input &quot;1\/0&quot; = 1) or the total amount of bits with a status of 0 (when input &quot;1\/0&quot; = 0). The results of the counting will be stored into the register specified by D. If the value of these amounts is 0, then the Result-is-0 flag &quot;D = 0&quot; will be set to 1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN130 P<\/p>\n<p>MBCNT<\/p>\n<\/td>\n<td>\n<p>MATRIX BIT STATUS COUNT<\/p>\n<\/td>\n<td>\n<p>FUN130 P<\/p>\n<p>MBCNT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-214.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>MBCNT( OnOff:= X1, Ms:= R0, L:= 5, D:= R20);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This program sets X1 first as 0 (to count bits with status of 0) and then as 1 (to count bits with status of 1) and let the signal X0 has a transition from 0\u21921 for both case, the execution results are shown at right in the diagram below .<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"C:\\Users\\User\\Desktop\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\MBCNT_example.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-215.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-16  NC Positioning Instruction (FUN137~143)<\/h3>\n<h4>7-16-1  ICA<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN137<\/p>\n<p>ICA<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ICA<\/p>\n<\/td>\n<td>\n<p>FUN137<\/p>\n<p>ICA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-216.jpg\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ps\uff1aThe set number of Pulse Output (0\uff5e7)<\/p>\n<p>0\uff1aY0 &amp; Y1<\/p>\n<p>1\uff1aY2 &amp; Y3<\/p>\n<p>2\uff1aY4 &amp; Y5<\/p>\n<p>3\uff1aY6 &amp; Y7<\/p>\n<p>4\uff1aMQ Y16 &amp; Y17, Y8 &amp; Y9 otherwise<\/p>\n<p>5\uff1aMQ Y18 &amp; Y19, Y10 &amp; Y11 otherwise<\/p>\n<p>6\uff1aMQ Y20 &amp; Y21, Y12 &amp; Y13 otherwise<\/p>\n<p>7\uff1aMQ Y22 &amp; Y23, Y14 &amp; Y15 otherwise<\/p>\n<p>Is\uff1aMQ: X0~X23 or Y0~Y23<\/p>\n<p>MA: X0~X23 or Y0~Y23<\/p>\n<p>ME, MS, MU: X0~X7 or Y0~Y7<\/p>\n<p>Fo\uff1aTarget Working Speed <\/p>\n<p>(1~2147483647)<\/p>\n<p>Ag\uff1aFixed angle during interrupt (0~36000)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Fo<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~2147483647<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ag<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0\uff5e36000<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN137<\/p>\n<p>ICA<\/p>\n<\/td>\n<td>\n<p>ICA<\/p>\n<\/td>\n<td>\n<p>FUN137<\/p>\n<p>ICA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>CPU\u2019s Xn<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CPU\u2019s Yn<\/p>\n<\/td>\n<td>\n<p>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~23<\/p>\n<p>(MQ)<\/p>\n<\/td>\n<td>\n<p>0~15<\/p>\n<p>(MA)<\/p>\n<\/td>\n<td>\n<p>0~7<\/p>\n<p>(MS\/ME\/MU)<\/p>\n<\/td>\n<td>\n<p>0~23<\/p>\n<p>(MQ)<\/p>\n<\/td>\n<td>\n<p>0~15<\/p>\n<p>(MA\/MS\/ME\/MU)<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0\uff5eP9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Is<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description   <\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The positioning axis can be controlled up to PSO7, but the actual maximum axis number that can be controlled varies by model.<\/li>\n<li>The target working speed and the maximum frequency is 200KHz.<\/li>\n<li>For MS and ME-series, external input points 8~15 of X will be reserved for the motion function and not supported by this command.<\/li>\n<li>The external input point does not need additional special configuration in the interrupt setting in the I\/O configuration. The relevant settings will be automatically made when the command is executed.<\/li>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-2  ICF<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN138<\/p>\n<p>ICF<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ICF<\/p>\n<\/td>\n<td>\n<p>FUN138<\/p>\n<p>ICF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-217.jpg\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ps\uff1aThe set number of Pulse Output (0\uff5e7)<\/p>\n<p>0\uff1aY0 &amp; Y1<\/p>\n<p>1\uff1aY2 &amp; Y3<\/p>\n<p>2\uff1aY4 &amp; Y5<\/p>\n<p>3\uff1aY6 &amp; Y7<\/p>\n<p>4\uff1aMQ Y16 &amp; Y17, Y8 &amp; Y9 otherwise<\/p>\n<p>5\uff1aMQ Y18 &amp; Y19, Y10 &amp; Y11 otherwise<\/p>\n<p>6\uff1aMQ Y20 &amp; Y21, Y12 &amp; Y13 otherwise<\/p>\n<p>7\uff1aMQ Y22 &amp; Y23<\/p>\n<p>ME, MS, MA: Y14 &amp; Y15<\/p>\n<p>Ls\uff1aMQ: X0~X23 or Y0~Y23<\/p>\n<p>MA: X0~X23 or Y0~Y23<\/p>\n<p>ME, MS: X0~X7 or Y0~Y7<\/p>\n<p>Fo\uff1aTarget Working Speed <\/p>\n<p>(1~2147483647)<\/p>\n<p>Fd\uff1aAmount of pulse wave movement after interrupt capture<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pw<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Fo<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~2147483647<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Fd<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~2147483647<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN138<\/p>\n<p>ICF<\/p>\n<\/td>\n<td>\n<p>ICF<\/p>\n<\/td>\n<td>\n<p>FUN138<\/p>\n<p>ICF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>CPU\u2019s Xn<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CPU\u2019s Yn<\/p>\n<\/td>\n<td>\n<p>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0~23<\/p>\n<p>(MQ)<\/p>\n<\/td>\n<td>\n<p>0~15<\/p>\n<p>(MA)<\/p>\n<\/td>\n<td>\n<p>0~7<\/p>\n<p>(MS\/ME\/MU)<\/p>\n<\/td>\n<td>\n<p>0~23<\/p>\n<p>(MQ)<\/p>\n<\/td>\n<td>\n<p>0~15<\/p>\n<p>(MA\/MS\/ME\/MU)<\/p>\n<\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0\uff5eP9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Is<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description   <\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The positioning axis can be controlled up to PSO7, but the actual maximum axis number that can be controlled varies by model.<\/li>\n<li>The target working speed and the maximum frequency is 200KHz.<\/li>\n<li>For MS and ME-series, external input points 8~15 of X will be reserved for the motion function and not supported by this command.<\/li>\n<li>The external input point does not need additional special configuration in the interrupt setting in the I\/O configuration. The relevant settings will be automatically made when the command is executed.<\/li>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-3  HSPWM<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN139<\/p>\n<p>HSPWM<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HIGH SPEED PULSE WIDTH MODULATION<\/p>\n<\/td>\n<td>\n<p>FUN139<\/p>\n<p>HSPWM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-218.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pw<strong>:<\/strong> Output of High-Speed Pulse Width Modulation <\/p>\n<p>0 : Y0<\/p>\n<p>1 : Y2<\/p>\n<p>2 : Y4<\/p>\n<p>3 : Y6<\/p>\n<p>4 : MQ Y16, Y8 otherwise<\/p>\n<p>5 : MQ Y18, Y10 otherwise<\/p>\n<p>6 : MQ Y20, Y12 otherwise<\/p>\n<p>7 : MQ Y22, Y14 otherwise<\/p>\n<p>Op<strong>:<\/strong> Output polarity;<\/p>\n<p>0=Output non-reversed phase<\/p>\n<p>1=Output reversed phase<\/p>\n<p>Rs<strong>:<\/strong> Resolution;<\/p>\n<p>0=1\/100 (1%)<\/p>\n<p>1=1\/1000 (0.1%)<\/p>\n<p>Pn<strong>:<\/strong> Setting of output frequency parameter (0~255)<\/p>\n<p>OR<strong>:<\/strong> PWM Output Width Setting Register<\/p>\n<p>0~100 or 0~1000<\/p>\n<p>WR<strong>:<\/strong> Instruction operation work register, other programs cannot be reused.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pw<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Op<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Rs<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pn<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0\uff5e255<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OR<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>0\uff5e100 or 0\uff5e1000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/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>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN139<\/p>\n<p>HSPWM<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HIGH SPEED PULSE WIDTH MODULATION<\/p>\n<\/td>\n<td>\n<p>FUN139<\/p>\n<p>HSPWM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The setting of resolution(RS) must be same between output0(Y0) and output1(Y2) also the setting of output frequency(Pn). It means both output0 and output1 have the same output frequency and the same output resolution, only the pulse width can be different. Same principle for output2(Y4) and output3(Y6).<\/li>\n<li>When operation control \u201cEN\u201d = 1, the specified digital output will perform the PWM output, the expression for output frequency as shown bellow:<\/li>\n<\/ul>\n<p>1. <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-219.png\" \/>While Rs (Resolution)=1\/100<\/p>\n<p>2. <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-220.png\" \/>While Rs (Resolution)=1\/1000<\/p>\n<ul>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-4  High Speed Pulse Output Instruction<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN140 <\/p>\n<p>HSPSO<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HIGH SPEED PULSE OUTPUT INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN140 <\/p>\n<p>HSPSO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-221.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ps : The set number of Pulse Output (0\uff5e7)<\/p>\n<p>0\uff1aY0 &amp; Y1<\/p>\n<p>1\uff1aY2 &amp; Y3<\/p>\n<p>2\uff1aY4 &amp; Y5<\/p>\n<p>3\uff1aY6 &amp; Y7<\/p>\n<p>4\uff1aMQ Y16 &amp; Y17, Y8 &amp; Y9 otherwise<\/p>\n<p>5\uff1aMQ Y18 &amp; Y19, Y10 &amp; Y11 otherwise<\/p>\n<p>6\uff1aMQ Y20 &amp; Y21, Y12 &amp; Y13 otherwise<\/p>\n<p>7\uff1aMQ Y22 &amp; Y23, Y14 &amp; Y15 otherwise <\/p>\n<p>SR: Starting register for positioning program<\/p>\n<p>WR: Starting register for instruction operation controls 7 registers, which the other program cannot repeat in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>7 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN140 <\/p>\n<p>HSPSO<\/p>\n<\/td>\n<td>\n<p>HIGH SPEED PULSE OUTPUT INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN140 <\/p>\n<p>HSPSO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The positioning axis can be controlled up to PSO7, but the actual maximum axis number that can be controlled varies by model.<\/li>\n<li>The NC positioning program of the FUN140 (HSPSO) command is edited in the form of a text program; each positioning point is called one step (including output frequency, action stroke, and transfer conditions), and one FUN140 can program up to 250 positioning points. Each positioning point needs to occupy 9 registers.<\/li>\n<li>The biggest advantage of storing the positioning program in the temporary register is that if the HMI is combined with the machine control setting, the positioning program can be stored in the HMI. <\/li>\n<li>When the execution control input &quot;EN&quot;=1, if Ps0~Ps7 are not occupied by other FUN140 instructions (Ps0=M9183, Ps1=M9184, Ps2=M9185, Ps3=M9186, Ps4=M9191, Ps5=M9192, Ps6= M9193, Ps7=M9194 state is ON, otherwise it is OFF), then start to execute from the next positioning point (if it has reached the last step, then start to execute from step 1 again); if Ps0~7 are occupied by other FUN140 instructions , the FUN140 to be occupied releases the control right, and this instruction obtains the pulse output right of positioning control.<\/li>\n<li>When the execution control &quot;EN&quot;=0, stop the pulse output immediately.<\/li>\n<li>When the pause output &quot;PAU&quot;=1, and the execution control &quot;EN&quot; was previously 1, the pulse output is paused. When the pause output &quot;PAU&quot;=0 and the execution control &quot;EN&quot; is still 1, it will continue to output the unfinished pulse number.<\/li>\n<li>When the output &quot;ABT&quot; = 1, stop the pulse output immediately. (The next time when the execution control input &quot;EN&quot;=1, it will be executed again from the first step positioning point)<\/li>\n<li>When pulse output is in progress, the output indicator &quot;ACT&quot; is ON.<\/li>\n<li>When the command is executed incorrectly, the output indication &quot;ERR&quot; is ON. (The error code is stored in the error code register)<\/li>\n<li>When each step of positioning is completed, the output indication &quot;DN&quot; is ON.<\/li>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-5  Positioning program parameter setting command (MPARA)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-222.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ps: Group of Pulse output (0~7)<\/p>\n<p>SR: Parameter table starting register, 18 parameters in total, occupying 24 registers<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The positioning axis can be controlled up to PSO7, but the actual maximum axis number that can be controlled varies by model.<\/li>\n<li>It is not necessary to use this instruction (But in the first-time setting is necessary). if the system default for parameter values is matching what user demanded, then this instruction is not needed. However, if it needs to change the parameter value dynamically, this instruction is required.<\/li>\n<li>This instruction incorporates with FUN140 for positioning control purpose.<\/li>\n<li>Whether the execution control input \u201cEN\u201d = 0 or 1, this instruction will be performed.<\/li>\n<li>When there are any errors in parameter value, the output indication \u201cERR\u201d will be ON.  (The error code is stored in the error code register.)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>R2000<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0\uff5e2<\/p>\n<\/td>\n<td>\n<p>Parameter 0<\/p>\n<\/td>\n<td>\n<p>System default =1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2001<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1\uff5e65535 Ps\/Rev<\/p>\n<\/td>\n<td>\n<p>Parameter 1<\/p>\n<\/td>\n<td>\n<p>System default =2000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR2002<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1\uff5e999999     \uf06dM\/Rev<\/p>\n<p>1\uff5e999999      mDeg\/Rev<\/p>\n<p>1\uff5e999999 x 0.1 mInch\/Rev<\/p>\n<\/td>\n<td>\n<p>Parameter 2<\/p>\n<\/td>\n<td>\n<p>System default =2000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2004<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0\uff5e3<\/p>\n<\/td>\n<td>\n<p>Parameter 3<\/p>\n<\/td>\n<td>\n<p>System default =2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR2005<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1\uff5e200000     Ps\/sec<\/p>\n<p>1\uff5e153000<\/p>\n<\/td>\n<td>\n<p>Parameter 4<\/p>\n<\/td>\n<td>\n<p>System default =200000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR2007<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~200000      Ps\/sec<\/p>\n<p>1~153000<\/p>\n<\/td>\n<td>\n<p>Parameter 5<\/p>\n<\/td>\n<td>\n<p>System default =141<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2009<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1~65535  Ps\/sec<\/p>\n<\/td>\n<td>\n<p>Parameter 6<\/p>\n<\/td>\n<td>\n<p>System default =1000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2010<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~32767<\/p>\n<\/td>\n<td>\n<p>Parameter 7<\/p>\n<\/td>\n<td>\n<p>System default =0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2011<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~30000<\/p>\n<\/td>\n<td>\n<p>Parameter 8<\/p>\n<\/td>\n<td>\n<p>System default =5000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2012<\/p>\n<\/td>\n<td>\n<p>0~1<\/p>\n<\/td>\n<td>\n<p>0~1<\/p>\n<\/td>\n<td>\n<p>Parameter 9<\/p>\n<\/td>\n<td>\n<p>System default =0100H<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2013<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>-32768~32767<\/p>\n<\/td>\n<td>\n<p>Parameter 10<\/p>\n<\/td>\n<td>\n<p>System default =0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2014<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>-32768~32767<\/p>\n<\/td>\n<td>\n<p>Parameter 11<\/p>\n<\/td>\n<td>\n<p>System default =0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2015<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~30000<\/p>\n<\/td>\n<td>\n<p>Parameter 12<\/p>\n<\/td>\n<td>\n<p>System default =0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2016<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~30000<\/p>\n<\/td>\n<td>\n<p>Parameter 13<\/p>\n<\/td>\n<td>\n<p>System default =500<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR2017<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~1999999<\/p>\n<\/td>\n<td>\n<p>Parameter 14<\/p>\n<\/td>\n<td>\n<p>System default =0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>DR2019<\/p>\n<\/td>\n<td>\n<p>00H~FFH<\/p>\n<\/td>\n<td>\n<p>00H~FFH<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Parameter 15<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>System default =FFFFFFFFH<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>00H~FFH<\/p>\n<\/td>\n<td>\n<p>00H~FFH<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR2021<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>-999999~999999<\/p>\n<\/td>\n<td>\n<p>Parameter 16<\/p>\n<\/td>\n<td>\n<p>System default =0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2023<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0~255<\/p>\n<\/td>\n<td>\n<p>Parameter 17<\/p>\n<\/td>\n<td>\n<p>System default =1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Use UperLogic to edit the servo parameter table<\/p>\n<p>In the project window, click the servo parameter table<strong>: <\/strong><\/p>\n<p><strong> <\/strong>Project Name <\/p>\n<p>         Table Edit <\/p>\n<p>                 Servo Parameter Table  \uf0e0After right-clicking, click &quot;Add Servo Parameter Table&quot;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-223.png\" \/><\/p>\n<ul>\n<li>Table type: fixed as &quot;servo parameter form&quot;.<\/li>\n<li>able name: You can enter an easily identifiable name for the servo parameter table, which is convenient for future modification or debugging.<\/li>\n<li>Table start position: The start position of the data table start register SR used by the servo parameter command (FUN141).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-224.png\" \/><\/p>\n<p>Parameter Description<\/p>\n<ul>\n<li>Parameter 0: unit setting, the default value is 1<\/li>\n<\/ul>\n<p>\u25a1When the setting value is 0, the travel and speed setting values \u200b\u200bused in the program are specified in mm, Deg, Inch as the unit, which is called the mechanical unit.<\/p>\n<p>\u25a1When the setting value is 1, the travel and speed setting values \u200b\u200bused in the program are all specified in the unit of Pulse, which is called the motor unit.<\/p>\n<p>\u25a1When the setting value is 2, the stroke setting values \u200b\u200bused in the program are all specified in mm, Deg, Inch as the unit, and the speed setting is all specified in Pulse as the unit, which is called compound unit.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Parameter 0, Unit<\/p>\n<\/td>\n<td>\n<p>\u201c0\u201d Mechanical unit<\/p>\n<\/td>\n<td>\n<p>\u201c1\u201d Motor unit<\/p>\n<\/td>\n<td>\n<p>\u201c2\u201d Compound unit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Parameter 1, 2<\/p>\n<\/td>\n<td>\n<p>no need to set<\/p>\n<\/td>\n<td>\n<p>No need to set<\/p>\n<\/td>\n<td>\n<p>Must be set<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Parameter 3, 7, 10, 11<\/p>\n<\/td>\n<td>\n<p>Mm, Deg, Inch<\/p>\n<\/td>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td>\n<p>Mm, Deg, Inch<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Parameter 4, 5, 6, 15, 16<\/p>\n<\/td>\n<td>\n<p>Cm\/Min, Deg\/Min, Inch\/Min<\/p>\n<\/td>\n<td>\n<p>Ps\/Sec<\/p>\n<\/td>\n<td>\n<p>Ps\/Sec<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Parameter 1: pulse number\/1 revolution, the default value is 2000, that is, 2000 Ps\/Rev<\/li>\n<\/ul>\n<p>The number of pulses required for one revolution of the motor (A)<\/p>\n<p>A=1\uff5e65535 (when it is above 32767, set it as a decimal positive number) Ps\/Rev<\/p>\n<p>When parameter 14 = 0, take parameter 1 as pulse number\/1 revolution.<\/p>\n<p>When parameter 14 \u2260 0, take parameter 14 as pulse number\/1 revolution.<\/p>\n<ul>\n<li>Parameter 2: movement amount\/1 revolution, the default value is 2000, that is, 2000 Ps\/Rev<\/li>\n<li>The distance driven by one revolution of the motor (B)<\/li>\n<\/ul>\n<p>B=1\uff5e999999 \uf06dM\/Rev<\/p>\n<p>1\uff5e999999 mDeg\/Rev<\/p>\n<p>1\uff5e999999&#215;0.1 mInch\/Rev<\/p>\n<ul>\n<li>Parameter 3: The minimum setting unit, the default value is 2, equivalent to two decimal places<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>    Parameter 0<\/p>\n<p>Parameter3<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Set Value =0, Mechanical unit; Set Value =2, Compound unit\uff1b<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Set Value 1<\/p>\n<p>Motor unit Ps<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>mm<\/p>\n<\/td>\n<td>\n<p>Deg<\/p>\n<\/td>\n<td>\n<p>Inch<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Set Value=0<\/p>\n<\/td>\n<td>\n<p>x1<\/p>\n<\/td>\n<td>\n<p>x1<\/p>\n<\/td>\n<td>\n<p>x0.1<\/p>\n<\/td>\n<td>\n<p>x1000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Set Value =1<\/p>\n<\/td>\n<td>\n<p>x0.1<\/p>\n<\/td>\n<td>\n<p>x0.1<\/p>\n<\/td>\n<td>\n<p>x0.01<\/p>\n<\/td>\n<td>\n<p>x100<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Set Value =2<\/p>\n<\/td>\n<td>\n<p>x0.01<\/p>\n<\/td>\n<td>\n<p>x0.01<\/p>\n<\/td>\n<td>\n<p>x0.001<\/p>\n<\/td>\n<td>\n<p>x10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Set Value =3<\/p>\n<\/td>\n<td>\n<p>x0.001<\/p>\n<\/td>\n<td>\n<p>x0.001<\/p>\n<\/td>\n<td>\n<p>x0.0001<\/p>\n<\/td>\n<td>\n<p>x1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Parameter 4: Maximum speed setting, the default value is 200000, that is, 200000 Ps\/Sec <\/li>\n<\/ul>\n<p>\u25a1\uf020Motor and compound unit: 1\uff5e200000 Ps\/Sec<\/p>\n<p>\u25a1\uf020Mechanical unit: 1\uff5e153000 (cm\/Min, x10 Deg\/Min, Inch\/Min)<\/p>\n<p>But the highest frequency can not be greater than 200000 Ps\/Sec<\/p>\n<p>f_max =\uff08V_max x 1000 x A\uff09\/\uff086 x B\uff09\uf0a3200000 Ps\/Sec<\/p>\n<p>f_min \uf0b3 1 Ps\/Sec  <\/p>\n<p>                                     Note: A=parameter 1, B=parameter 2<\/p>\n<ul>\n<li>Parameter 5: start\/end speed, default value=141<\/li>\n<\/ul>\n<p>\u25a1\uf020Motor and compound unit: 1~200000 Ps\/Sec<\/p>\n<p>\u25a1\uf020Mechanical unit: 1\uff5e15300\uff08cm\/Min\uff0c\uf0b410 Deg\/Min\uff0cInch\/Min\uff09<\/p>\n<p>But the highest frequency cannot be greater than 200000 Ps\/Sec\u3002<\/p>\n<ul>\n<li>Parameter 6: homing deceleration speed, the default value is 1000<\/li>\n<\/ul>\n<p>         Motor and compound unit: 1\uff5e65535 Ps\/Sec<\/p>\n<p>         Mechanical unit<strong>:<\/strong> 1\uff5e15300 (Cm\/Min, x10 Deg\/Min, Inch\/Min)<\/p>\n<ul>\n<li>Parameter 7: Gear backlash correction value, default value=0    <\/li>\n<\/ul>\n<p>Note: Multi-axis linear interpolation command is invalid<\/p>\n<p>Setting range: 0\uff5e32767 Ps\u3002<\/p>\n<p>When walking in reverse, the walking distance will automatically add this value.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Parameter 8: Acceleration and deceleration time setting, default value=5000, unit is mS.<\/li>\n<\/ul>\n<p>Note: Multi-axis linear interpolation command is invalid<\/p>\n<p>Setting range: 0~30000 mS.<\/p>\n<p>This time represents the time required to accelerate from rest to maximum speed (parameter 4), or decelerate from maximum speed to rest.<\/p>\n<p>The acceleration and deceleration of this system is equal slope control.<\/p>\n<p>When parameter 12=0, this parameter is used as the deceleration time.<\/p>\n<p>The acceleration and deceleration control of this system will automatically move in a triangle wave or trapezoid wave according to the actual action stroke.<\/p>\n<ul>\n<li>Parameter 9: Setting of homing direction and running direction, the default value is 0100H <\/li>\n<\/ul>\n<p>Note: Multi-axis linear interpolation command is invalid<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>SR+12<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>b15      b8 b7       b0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Parameter 9-1<\/p>\n<\/td>\n<td>\n<p>Parameter 9-0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Parameter 9-0: Running direction setting, the default value is 0<\/li>\n<\/ul>\n<p>When the set value = 0, the forward rotation pulse output, the current Ps value will increase<\/p>\n<p>Reverse the pulse output, the current Ps value will decrease<\/p>\n<p>When the set value = 1, the forward rotation pulse output, the current Ps value will decrease<\/p>\n<p>Reverse the pulse output, and increase the current Ps value<\/p>\n<ul>\n<li>Parameter 9-1\uff1aHoming return direction setting, the default value is 1<\/li>\n<\/ul>\n<p>When the set value is 0, the homing direction is the current Ps value plus the upward direction (the origin is on the right)<\/p>\n<p>When the set value = 1, the direction of homing is the direction of decreasing the current Ps value (the origin is on the left)<\/p>\n<ul>\n<li>Parameter 10: Forward rotation movement correction value, default value=0 <\/li>\n<\/ul>\n<p>Note: Multi-axis linear interpolation command is invalid<\/p>\n<p>Setting range: \uf02d32768\uff5e32767 Ps<\/p>\n<ul>\n<li>When outputting forward rotation pulse wave, this value will be automatically added as the moving distance. <\/li>\n<li>Parameter 11: Reverse movement compensation value, default value=0 Note: Multi-axis linear interpolation command is invalid<\/li>\n<\/ul>\n<p>Setting range:-32768\uff5e32767 Ps<\/p>\n<ul>\n<li>When the pulse output is reversed, this value will be automatically added as the moving distance.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Parameter 12: Deceleration time setting, the default value = 0, the unit is mS <\/li>\n<\/ul>\n<p>Note: The multi-axis linear interpolation command is invalid<\/p>\n<ul>\n<li>Setting range\uff1a0\uff5e30000 mS\u3002<\/li>\n<li>When parameter 12 = 0, use parameter 8 as the deceleration time.<\/li>\n<li>When parameter 12 \u2260 0, use parameter 12 as the deceleration time.<\/li>\n<li>Parameter 13: Interpolation acceleration and deceleration time (fixed number) setting, the default value is 500<\/li>\n<\/ul>\n<p>Note: Multi-axis line tweening command is dedicated<\/p>\n<ul>\n<li>Setting range: 0\uff5e30000 mS<\/li>\n<li>It is used to set the time required to accelerate from stillness (speed=0) to the working frequency during linear interpolation motion; this time is also used for deceleration and stop control<\/li>\n<li>Parameter 14: pulse number\/1 revolution, the default value is 0<\/li>\n<li>Setting range: 0\uff5e1999999\u3002<\/li>\n<li>When parameter 14 = 0, take parameter 1 as pulse number\/1 revolution.<\/li>\n<li>When parameter 14 \u2260 0, take parameter 14 as pulse number\/1 revolution.<\/li>\n<li>Parameter 15: Control interface I\/O setting, the default value isFFFFFFFFH<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td colspan=\"2\">\n<p>b15    b8 b7         b0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+19<\/p>\n<\/td>\n<td>\n<p>Parameter 15-1<\/p>\n<\/td>\n<td>\n<p>Parameter 15-0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+20<\/p>\n<\/td>\n<td>\n<p>Parameter 15-3<\/p>\n<\/td>\n<td>\n<p>Parameter 15-2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Parameter 15-0: Proximity DOG input contact setting; must be the input point of the host (SR+19)<\/li>\n<\/ul>\n<p>     b6\uff5eb0 <strong>:<\/strong> Proximity DOG input contact number (0\uff5e15, namely X0\uff5eX15)<\/p>\n<p>     b7 = 0<strong>:<\/strong> Near-point DOG input is a normally open contact (A or NO contact)<\/p>\n<p>        = 1<strong>: <\/strong>The near-point DOG input is a normally closed contact (B or NC contact)<\/p>\n<p>          b7\uff5eb0=FFH, no near-point DOG input<\/p>\n<ul>\n<li>Parameter 15-1: Travel limit input contact setting (SR+19)<\/li>\n<\/ul>\n<p>          b14\uff5eb8 <strong>:<\/strong> Travel limit input contact number (0\uff5e125, namely X0\uff5eX125)<\/p>\n<p>          b15 = 0<strong>:<\/strong> Travel limit input is a normally open contact (A or NO contact)<\/p>\n<p>             = 1<strong>:<\/strong> Travel limit input is a normally closed contact (B or NC contact)<\/p>\n<p>          b15\uff5eb8=FFH <strong>:<\/strong> No stroke limit input<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>MPARA<\/p>\n<\/td>\n<td>\n<p>FUN141<\/p>\n<p>MPARA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Parameter 15-2: Zero signal PG0 input contact setting; must be the input point of the host (SR+20)<\/li>\n<\/ul>\n<p>               b6\uff5eb0 <strong>:<\/strong> Zero signal PG0 input contact number (0\uff5e15, namely X0\uff5eX15)<\/p>\n<p>               b7 = 0 <strong>:<\/strong> The leading edge of near point DOG starts to count the zero point signal<\/p>\n<p>                  = 1 <strong>:<\/strong> The trailing edge of the near point DOG starts to count the zero signal<\/p>\n<p>               b7\uff5eb0 = FFH <strong>:<\/strong> No zero signal PG0 input<\/p>\n<ul>\n<li>Parameter 15-3: Zero reset signal CLR output contact setting; must be the output point of the host (SR+20)<\/li>\n<\/ul>\n<p>               b15\uff5eb8 <strong>:<\/strong> Output contact number of zero reset signal CLR (0\uff5e23, that is, Y0\uff5eY23)<\/p>\n<p>               b15\uff5eb8=FFH <strong>:<\/strong> CLR output without reset signal<\/p>\n<ul>\n<li>Parameter 16: Mechanical origin position value, the default value is 0<\/li>\n<\/ul>\n<p>-999999\uff5e999999 Ps<\/p>\n<ul>\n<li>Parameter 17: Zero point signal number, the default value is1<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-225.png\" \/>0\uff5e255 Count<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-6  STOP THE HSPSO PULSE OUTPUT (PSOFF)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN142 P<\/p>\n<p>PSOFF<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>STOP THE HSPSO PULSE OUTPUT<\/p>\n<\/td>\n<td>\n<p>FUN142 P<\/p>\n<p>PSOFF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-226.png\" \/><\/p>\n<\/td>\n<td>\n<p>N: 0~7<\/p>\n<p>Enforce the Pulse Output PSOn (n= Ps) to stop<\/p>\n<\/td>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td>\n<p>0\uff5e7<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>The positioning axis can be controlled up to PSO7, but the actual maximum axis number that can be controlled varies by model.<\/li>\n<li>When execution control \u201cEN\u201d =1 or changes from 0\u21921 (P instruction), this instruction will enforce the assigned number set of HSPSO (High Speed Pulse Output) to stop pulse output.<\/li>\n<li>While in the application for mechanical original point reset, as soon as reach the original point can use this instruction to stop the pulse output immediately, so as to make the original point stop at the same position every time when performing mechanical original point resetting.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-227.png\" \/><\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>PSOFF( EN:= M0, Ps:= 0);<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>When M0 changes from 0\u21921, force Ps0 to stop pulse output.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-7  Convert The Current Pulse Value to Display Value(PSCNV)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN143 P<\/p>\n<p>PSCNV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CONVERT THE CURRENT PULSE VALUE TO DISPLAY VALUE<\/p>\n<p>(mm, Deg, Inch, PS)<\/p>\n<\/td>\n<td>\n<p>FUN143 P<\/p>\n<p>PSCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-228.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Ps : 0\uff5e3; it converts the number of the pulse position to be the mm (Deg, Inch, PS) that has same unit as the set value, so as to make current position displayed.<\/p>\n<p>D : Register that stores the current position after conversion. It uses 2 registers, e.g. if D = D10, which means D10 is Low Word and D11 is High Word.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0\uff5e7<\/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>2 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The positioning axis can be controlled up to PSO7, but the actual maximum axis number that can be controlled varies by model. <\/li>\n<li>When execution control \u201cEn\u201d =1 or changes from 0\u21921 (P instruction), this instruction will convert the assigned current pulse position (PS) to be the mm (or Deg, Inch, or PS) that has same unit as the set value, so as to make current position displaying.<\/li>\n<li>Only when the FUN140 instruction is executed, then it can get the correct conversion value by executing this instruction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN143 P<\/p>\n<p>PSCNV<\/p>\n<\/td>\n<td>\n<p>CONVERT THE CURRENT PULSE VALUE TO DISPLAY VALUE<\/p>\n<p>(mm, Deg, Inch, PS)<\/p>\n<\/td>\n<td>\n<p>FUN143 P<\/p>\n<p>PSCNV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-229.png\" \/><\/p>\n<\/td>\n<td>\n<p>PSCNV( EN:= M0, Ps:= 0, D:= D10);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>When M0 changes from 0 to 1, convert the current pulse wave position of Ps0 (DR4088) into mm (or Deg or Inch or PS) with the same unit as the set value, and store it in DD10 as the current position display.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-16-8  HIGH SPEED PULSE WIDTH MODULATION 2<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN144<\/p>\n<p>HSPWM2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>HIGH SPEED PULSE WIDTH MODULATION 2<\/p>\n<\/td>\n<td>\n<p>FUN144<\/p>\n<p>HSPWM2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-230.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PW\uff1aOutput of pulse width modulation<\/p>\n<p>0\uff1aY0 &amp; Y1<\/p>\n<p>1\uff1aY2 &amp; Y3<\/p>\n<p>2\uff1aY4 &amp; Y5<\/p>\n<p>3\uff1aY6 &amp; Y7<\/p>\n<p>4\uff1aMQ Y16 &amp; Y17, Y8 &amp; Y9 otherwise<\/p>\n<p>5\uff1aMQ Y18 &amp; Y19, Y10 &amp; Y11 otherwise<\/p>\n<p>6\uff1aMQ Y20 &amp; Y21, Y12 &amp; Y13 otherwise<\/p>\n<p>7\uff1aMQ Y22 &amp; Y23, Y14 &amp; Y15 otherwise<\/p>\n<p>Op\uff1aOutput polarity (0=positive phase, 1=negative phase)<\/p>\n<p>Hz\uff1aOutput frequency (1~100000000 or 1~200000000, unit: 0.001Hz)<\/p>\n<p>OR\uff1aWidth of output pulse (0~100, unit: %)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>D<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pw<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Op<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Hz<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>OR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~100<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN144<\/p>\n<p>HSPWM2<\/p>\n<\/td>\n<td>\n<p>HIGH SPEED PULSE WIDTH MODULATION 2<\/p>\n<\/td>\n<td>\n<p>FUN144<\/p>\n<p>HSPWM2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>Compared with FUN139, FUN144 provides more direct and convenient high-speed PWM output control without calculating parameters through built-in formulas.<\/li>\n<li>If the maximum output frequency exceeds the maximum output frequency, it will not be executed.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-17  Enable\/Disable (FUN145~146)<\/h3>\n<h4>7-17-1  ENABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ENABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/p>\n<\/td>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-231.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>LBL : External input or peripheral label name that to be enabled.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>1-16<\/p>\n<\/td>\n<td>\n<p>17-20<\/p>\n<\/td>\n<td>\n<p>21-24<\/p>\n<\/td>\n<td>\n<p>25-32<\/p>\n<\/td>\n<td>\n<p>33-40<\/p>\n<\/td>\n<td>\n<p>41<\/p>\n<\/td>\n<td>\n<p>42<\/p>\n<\/td>\n<td>\n<p>43-48<\/p>\n<\/td>\n<td>\n<p>66-97<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0+I<\/p>\n<p>\u2223<\/p>\n<p>X7-I<\/p>\n<\/td>\n<td>\n<p>STM0I<\/p>\n<p>\u2223<\/p>\n<p>STM3I<\/p>\n<\/td>\n<td>\n<p>LTM0I<\/p>\n<p>\u2223<\/p>\n<p>LTM3I<\/p>\n<\/td>\n<td>\n<p>HST0I<\/p>\n<p>\u2223<\/p>\n<p>HST7I<\/p>\n<\/td>\n<td>\n<p>HSC0I<\/p>\n<p>\u2223<\/p>\n<p>HSC7I<\/p>\n<\/td>\n<td>\n<p>COCPUI<\/p>\n<\/td>\n<td>\n<p>LHMI<\/p>\n<\/td>\n<td>\n<p>RHM0I<\/p>\n<p>\u2223<\/p>\n<p>RHM5I<\/p>\n<\/td>\n<td>\n<p>X8+I<\/p>\n<p>\u2223<\/p>\n<p>X23-I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LB<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When enable control \u201cEN\u201d=1 or changes from 0\u21921 ( P instruction), it allows the external input or peripheral interrupt action which is assigned by LBL.<\/li>\n<li>The enabled interrupt label name is as follows:(Please refer the section 5.3 for details).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>ENABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/p>\n<\/td>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>LBL name<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<td>\n<p>LBL name<\/p>\n<\/td>\n<td>\n<p>Description <\/p>\n<\/td>\n<td>\n<p>LBL name<\/p>\n<\/td>\n<td>\n<p>Description <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC0I<\/p>\n<\/td>\n<td>\n<p>HSC0 High speed counter interrupt<\/p>\n<\/td>\n<td>\n<p>X4\u2212I<\/p>\n<\/td>\n<td>\n<p>X4 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X11+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC1I<\/p>\n<\/td>\n<td>\n<p>HSC1 High speed counter interrupt<\/p>\n<\/td>\n<td>\n<p>X5+I<\/p>\n<\/td>\n<td>\n<p>X5 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X11\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC2I<\/p>\n<\/td>\n<td>\n<p>HSC2 High speed counter interrupt<\/p>\n<\/td>\n<td>\n<p>X5\u2212I<\/p>\n<\/td>\n<td>\n<p>X5 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X12+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HSC3I<\/p>\n<\/td>\n<td>\n<p>HSC3 High speed counter interrupt<\/p>\n<\/td>\n<td>\n<p>X6+I<\/p>\n<\/td>\n<td>\n<p>X6 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X12\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X6\u2212I<\/p>\n<\/td>\n<td>\n<p>X6 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X13+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X7+I<\/p>\n<\/td>\n<td>\n<p>X7 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X13\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X1+I<\/p>\n<\/td>\n<td>\n<p>X1 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X7\u2212I<\/p>\n<\/td>\n<td>\n<p>X7 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X14+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X1\u2212I<\/p>\n<\/td>\n<td>\n<p>X1 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X8+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X14\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X2+I<\/p>\n<\/td>\n<td>\n<p>X2 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X8\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X15+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X2\u2212I<\/p>\n<\/td>\n<td>\n<p>X2 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X9+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X15\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X3+I<\/p>\n<\/td>\n<td>\n<p>X3 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X9\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X16+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X3\u2212I<\/p>\n<\/td>\n<td>\n<p>X3 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X10+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X16\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X4+I<\/p>\n<\/td>\n<td>\n<p>X4 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>X10\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>X17+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>ENABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/p>\n<\/td>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>LBL name<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<td>\n<p>LBL name<\/p>\n<\/td>\n<td>\n<p>Description <\/p>\n<\/td>\n<td>\n<p>LBL name<\/p>\n<\/td>\n<td>\n<p>Description <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X17\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>STM0I<\/p>\n<\/td>\n<td>\n<p>1 ms timer<\/p>\n<p>STM0 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X18+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>STM1I<\/p>\n<\/td>\n<td>\n<p>1 ms timer<\/p>\n<p>STM1 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X18\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>STM2I<\/p>\n<\/td>\n<td>\n<p>1 ms timer<\/p>\n<p>STM2 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X19+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>STM3I<\/p>\n<\/td>\n<td>\n<p>1 ms timer<\/p>\n<p>STM3 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X19\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>LTM0I<\/p>\n<\/td>\n<td>\n<p>10 ms timer<\/p>\n<p>LTM0 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X20+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>LTM1I<\/p>\n<\/td>\n<td>\n<p>10 ms timer<\/p>\n<p>LTM1 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X20\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>LTM2I<\/p>\n<\/td>\n<td>\n<p>10 ms timer<\/p>\n<p>LTM2 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X21+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>LTM3I<\/p>\n<\/td>\n<td>\n<p>10 ms timer<\/p>\n<p>LTM3 interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X21\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>HST0I<\/p>\n<\/td>\n<td>\n<p>HST0 High speed counter interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X22+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>HST1I<\/p>\n<\/td>\n<td>\n<p>HST1 High speed counter interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X22\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td>\n<p>HST2I<\/p>\n<\/td>\n<td>\n<p>HST2 High speed counter interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X23+I<\/p>\n<\/td>\n<td>\n<p>X0 positive edge interrupt<\/p>\n<\/td>\n<td>\n<p>HST3I<\/p>\n<\/td>\n<td>\n<p>HST3 High speed counter interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>X23\u2212I<\/p>\n<\/td>\n<td>\n<p>X0 negative edge interrupt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>ENABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/p>\n<\/td>\n<td>\n<p>FUN145 P<\/p>\n<p>EN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>In practical application, some interrupt signals should not be allowed to work at sometimes, however, it should be allowed to work at some other times.Employing FUN146 (DIS) and FUN145 (EN) instructions could attain the above mentioned demand.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-232.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M0 THEN<\/p>\n<p>INTEnable( LB:= X0 + I );<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 changes from 0\u21921, it allows X0 to send interrupt when X0 changes from 0\u21921.  CPU can rapidly process the interrupt service program of X0+I.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-17-2  DISABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN146 P<\/p>\n<p>DIS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>DISABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/p>\n<\/td>\n<td>\n<p>FUN146 P<\/p>\n<p>DIS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-233.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>LBL : Interrupt label intended to disable or peripheral name to be disabled.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>1-16<\/p>\n<\/td>\n<td>\n<p>17-20<\/p>\n<\/td>\n<td>\n<p>21-24<\/p>\n<\/td>\n<td>\n<p>25-32<\/p>\n<\/td>\n<td>\n<p>33-40<\/p>\n<\/td>\n<td>\n<p>41<\/p>\n<\/td>\n<td>\n<p>42<\/p>\n<\/td>\n<td>\n<p>43-48<\/p>\n<\/td>\n<td>\n<p>66-97<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>X0+I<\/p>\n<p>\u2223<\/p>\n<p>X7-I<\/p>\n<\/td>\n<td>\n<p>STM0I<\/p>\n<p>\u2223<\/p>\n<p>STM3I<\/p>\n<\/td>\n<td>\n<p>LTM0I<\/p>\n<p>\u2223<\/p>\n<p>LTM3I<\/p>\n<\/td>\n<td>\n<p>HST0I<\/p>\n<p>\u2223<\/p>\n<p>HST7I<\/p>\n<\/td>\n<td>\n<p>HSC0I<\/p>\n<p>\u2223<\/p>\n<p>HSC7I<\/p>\n<\/td>\n<td>\n<p>COCPUI<\/p>\n<\/td>\n<td>\n<p>LHMI<\/p>\n<\/td>\n<td>\n<p>RHM0I<\/p>\n<p>\u2223<\/p>\n<p>RHM5I<\/p>\n<\/td>\n<td>\n<p>X8+I<\/p>\n<p>\u2223<\/p>\n<p>X23-I<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LB<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When prohibit control \u201cEN\u201d =1 or changes from 0\u21921 ( P instruction), it disable the interrupt or peripheral operation designated by LBL.<\/li>\n<li>The interrupt label name can be referred to in the section of FUN145.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN146 P<\/p>\n<p>DIS<\/p>\n<\/td>\n<td>\n<p>DISABLE CONTROL OF THE INTERRUPT AND PERIPHERAL<\/p>\n<\/td>\n<td>\n<p>FUN146 P<\/p>\n<p>DIS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>In practical application, some interrupt signals should not be allowed to work at certain situation. To achieve this, this instruction may be used to disable the interrupt signal.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-234.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M0 THEN<\/p>\n<p>INTDisable( LB:= X2+I );<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 changes from 0\u21921, it prohibits X2 from sending interrupt when X2 changes from 0\u21921.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-18  NC Positioning Instructions II (FUN147~149) <\/h3>\n<h4>7-18-1  Multi-Axis High Speed Pulse Output<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN147<\/p>\n<p>MHSPO<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Multi-Axis High Speed Pulse Output<\/p>\n<\/td>\n<td>\n<p>FUN147<\/p>\n<p>MHSPO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-235.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Gp: Group number (0~3)<\/p>\n<p>SR: Starting register for positioning program (example explanation)<\/p>\n<p>WR: Starting register for instruction operation (example explanation). It controls 9 registers, which the other program cannot repeat in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>R<\/p>\n<\/td>\n<td>\n<p>IR<\/p>\n<\/td>\n<td>\n<p>OR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Gp<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\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>9 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Instruction Explanation<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The FUN147 (MHSPO) instruction is used to support the linear interpolation for multi-axis motion control, it consists of the motion program written and edited with tex programming.  We named every position point as a step (which includes output frequency, traveling distance, and transfer conditions). Every step of positioning point owns 15 registers for coding. <\/li>\n<li>The FUN147 (MHSPO) instruction can support up to 4 axes for simultaneous linear interpolation; or 2 sets of 2-axis linear interpolation (i.e. Gp0 = Axes Ps0 &amp; Ps1 ; Gp1 = Axes Ps2 &amp; Ps3)<\/li>\n<li>The best benefit to store the positioning program into the registers is that in the case of association with MMI (Man Machine Interface) to operate settings, it may save and reload the positioning program via MMI when replacing the molds.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When execution control \u201cEN\u201d=1, if the other FUN147\/FUN140 instructions to control Ps0\uff5e3 are not active (corresponding status of Ps0=M9183, Ps1=M9184, Ps2=M9185, and Ps3=M9186 will be ON), it will start to execute from the next step of positioning point (when goes to the last step, it will be restarted from the first step to perform); if Ps0\uff5e3 is controlled by other FUN147\/FUN140 instruction (corresponding status of Ps0=M9183, Ps1=M9184, Ps2=M9185, and Ps3=M9186 would be OFF), this instruction will acquire the pulse output right of positioning control once the controlling FUN147\/FUN140 has released the control right.<\/li>\n<li>When execution control input \u201cEN\u201d =0, it stops the pulse output immediately.<\/li>\n<li>When output pause \u201cPAU\u201d =1 and execution control \u201cEN\u201d was 1 beforehand, it will pause the pulse output.  When output pause \u201cPAU\u201d =0 and execution control is still 1, it will continue the unfinished pulse output.<\/li>\n<li>When output abort \u201cABT\u201d=1, it stops pulse output immediately. (When the execution control input \u201cEN\u201d becomes 1 next time, it will restart from the first step of positioning point to execute.)<\/li>\n<li>While the pulse is in output transmitting, the output indication \u201cACT\u201d is ON.<\/li>\n<li>When there is execution error, the output indication \u201cERR\u201d will be ON.  (The error code is stored in the error code register.)<\/li>\n<li>When each step of positioning point is complete, the output indication \u201cDN\u201d will be ON.<\/li>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-18-2  MANUAL PULSE GENERATOR FOR POSITIONING<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN148 <\/p>\n<p>MPG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MANUAL PULSE GENERATOR FOR POSITIONING<\/p>\n<\/td>\n<td>\n<p>FUN148 <\/p>\n<p>MPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-236.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sc: Source of high-speed counter; 0~7<\/p>\n<p>Ps: Axis of pulse output; 0~3<\/p>\n<p>Fo: Setting of output speed (2 registers)<\/p>\n<p>Mr: Setting of multipliers (2 registers)<\/p>\n<p>Mr+0: Multiplicand (Fa)<\/p>\n<p>Mr+1: Dividend (Fb)<\/p>\n<p>WR: Starting address of working registers, it needs 4 registers<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R3839<\/p>\n<\/td>\n<td>\n<p>R5000<\/p>\n<p>\u2223<\/p>\n<p>R8071<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sc<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Fo<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>2 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mr<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>2 word<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>4 word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN148 <\/p>\n<p>MPG<\/p>\n<\/td>\n<td>\n<p>MANUAL PULSE GENERATOR FOR POSITIONING<\/p>\n<\/td>\n<td>\n<p>FUN148 <\/p>\n<p>MPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Let this instruction be executed in 10mS fixed time interrupt service routine (PV value set 5\uff0cunit times is 10ms,total 50ms\uff0cLTM1I)\u3001or by using the 0.1mS high speed timer to generate 10mS fixed time interrupt service to have accurate repeat time to sample the pulse input from manual pulse generator. If it comes the input pulses, it will calculate the number of pulses needing to output according to the setting of multiplier (Mr+0 and Mr+1), and then outputs the pulse stream in the speed of setting (Fo) during this time interval.<\/li>\n<li>The setting of output speed (Fo) must be fast enough, and the acceleration \/ deceleration rate ( Parameter 4 and parameter 8 of FUN141 instruction) must be sharp to guarantee it can complete the sending of pulse stream during the time interval if it is under high multiplier (100 or 200 times) situation.   <\/li>\n<li>When execution \u301dEN\u301e=1, this instruction will sample the pulse input from manual pulse generator by reading the current value of assigned high speed counter every time interval; it doesn\u2019t have any output if it doesn\u2019t have any input pulse; but If it senses the input pulses, it will calculate the number of pulses needing to output according to the setting of multiplier (Mr+0 and Mr+1), and then outputs the pulse stream in the speed of setting (Fo) during this time interval. <\/li>\n<li>Number of output pulses = (Number of input pulses \u00d7 Fa) \/ Fb<\/li>\n<li>This instruction also under the control of hardware resource management; it wouldn\u2019t be executed if the hardware is occupied.<\/li>\n<li>The output indicator ACT=1 if it outputs the pulses; otherwise ACT=0.<\/li>\n<li>This instruction will use 4 Registers(WR), other instructions can\u2019t share with.<\/li>\n<li>Please refer to Chapter 13 \u201cThe NC Positioning Control of M Serial PLC\u201dof Advanced Application user manual for further details. <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-237.png\" \/>                               <\/p>\n<p>                               \u2026<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<td>\n<p>MANUAL PULSE GENERATOR FOR POSITIONING<\/p>\n<\/td>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram (sub)<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-238.png\" \/><\/p>\n<\/td>\n<td>\n<p>LBL (INIT)<\/p>\n<p>MPARA( EN:=TRUE , Ps:=0 , SR:=R2000 );<\/p>\n<p>MPARA( EN:=TRUE , Ps:=1 , SR:=R2100 );<\/p>\n<p>D800 := 0;<\/p>\n<p>D801 := 0;<\/p>\n<p>RETURN;<\/p>\n<p>LBL (LTM0I)<\/p>\n<p>MPG( EN:= M500, Sc:= 0, Ps:= 0, Fo:= D600, Mr:= D700, WR:= D800, ACT=&gt; M510);<\/p>\n<p>MPG( EN:= M501, Sc:= 0, Ps:= 1, Fo:= D602, Mr:= D700, WR:= D810, ACT=&gt; M511);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram (main)<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-239.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M9131 Then<\/p>\n<p>CALL (INIT)<\/p>\n<p>END_IF<\/p>\n<p>IF X32 AND M100 Then<\/p>\n<p>M500 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>M500 := FALSE;<\/p>\n<p>END_IF<\/p>\n<p>IF X33 AND M100 Then<\/p>\n<p>M501 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>M501 := FALSE;<\/p>\n<p>END_IF<\/p>\n<p>IF X34 Then<\/p>\n<p>D700 := 1;<\/p>\n<p>D701 := 1;<\/p>\n<p>END_IF<\/p>\n<p>IF X35 Then<\/p>\n<p>D700 := 10;<\/p>\n<p>D701 := 1;<\/p>\n<p>END_IF<\/p>\n<p>IF X36 Then<\/p>\n<p>D700 := 100;<\/p>\n<p>D701 := 1;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<td>\n<p>MANUAL PULSE GENERATOR FOR POSITIONING<\/p>\n<\/td>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-240.png\" \/><\/p>\n<p>X32: Select the 0st axis (Ps0)<\/p>\n<p>X33: Select the 1st axis (Ps1)<\/p>\n<p>X34: output magnification is 1<\/p>\n<p>X35: output magnification is 10<\/p>\n<p>X36: output magnification is 100<\/p>\n<p>M100: Manual wheel action selection<\/p>\n<p>DR2005: Maximum output frequency of axis 0 (parameter 4 of FUN141 command); 200K Hz<\/p>\n<p>R2011: Acceleration and deceleration time of the 0th axis (parameter 8 of the FUN141 instruction); 30mS<\/p>\n<p>DD600: 0th axis manual wheel actuation output frequency; 200K Hz<\/p>\n<p>DR2105: The maximum output frequency of the first axis (parameter 4 of the FUN141 command); 200K Hz<\/p>\n<p>R2111: Acceleration and deceleration time of the first axis (parameter 8 of FUN141 instruction); 30mS<\/p>\n<p>DD602: 1st axis manual wheel actuation output frequency; 200K Hz<\/p>\n<p>Example description: Put the manual wheel positioning processing instructions of Ps0 and Ps1 in the 50MSI timing interrupt processing program.<\/p>\n<p>When X32=1 and M100=1, start Ps0 hand wheel positioning processing; each interval (50mS) will sample the hand wheel input pulse (from HSC0); if no pulse input is sampled, FUN148 The command will not output; if there is a sampled pulse wave input, the output pulse number will be calculated according to the multiplier setting (D700 and D701), and then the calculated output pulse number will be output at the output frequency set by DD600.<\/p>\n<p>Output pulse number = (HSC0 input pulse number in interval time\u00d7D700)\/D701<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<td>\n<p>MANUAL PULSE GENERATOR FOR POSITIONING<\/p>\n<\/td>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram (main)<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-241.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF M1924 Then<\/p>\n<p>CALL (INIT)<\/p>\n<p>END_IF<\/p>\n<p>IF X32 AND M100 Then<\/p>\n<p>M500 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>M500 := FALSE;<\/p>\n<p>END_IF<\/p>\n<p>IF X33 AND M100 Then<\/p>\n<p>M501 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>M501 := FALSE;<\/p>\n<p>END_IF<\/p>\n<p>IF X34 Then<\/p>\n<p>D700 := 1;<\/p>\n<p>D701 := 1;<\/p>\n<p>END_IF<\/p>\n<p>IF X35 Then<\/p>\n<p>D700 := 10;<\/p>\n<p>D701 := 1;<\/p>\n<p>END_IF<\/p>\n<p>IF X36 Then<\/p>\n<p>D700 := 100;<\/p>\n<p>D701 := 1;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram (sub)<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-242.png\" \/><\/p>\n<\/td>\n<td>\n<p>LBL (INIT)<\/p>\n<p>MPARA( EN:=TRUE , Ps:=0 , SR:=R2000 );<\/p>\n<p>MPARA( EN:=TRUE , Ps:=1 , SR:=R2100 );<\/p>\n<p>D800 := 0;<\/p>\n<p>D801 := 0;<\/p>\n<p>RETURN;<\/p>\n<p>LBL (HSTAI)<\/p>\n<p>MPG( EN:= M500, Sc:= 0, Ps:= 0, Fo:= D600, Mr:= D700, WR:= D800, ACT=&gt; M510);<\/p>\n<p>MPG( EN:= M501, Sc:= 0, Ps:= 1, Fo:= D602, Mr:= D700, WR:= D810, ACT=&gt; M511);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<td>\n<p>MANUAL PULSE GENERATOR FOR POSITIONING<\/p>\n<\/td>\n<td>\n<p>FUN148<\/p>\n<p>MPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-243.png\" \/><br \/>X32: Select the 0th axis (Ps0)<\/p>\n<p>X33: Select the 1st axis (Ps1)<\/p>\n<p>X34: output magnification is 1<\/p>\n<p>X35: output magnification is 10<\/p>\n<p>X36: output magnification is 100<\/p>\n<p>M100: Manual wheel action selection<\/p>\n<p>DR2005: Maximum output frequency of axis 0 (parameter 4 of FUN141 command); 200K Hz<\/p>\n<p>R2011: Acceleration and deceleration time of the 0th axis (parameter 8 of the FUN141 instruction); 30mS<\/p>\n<p>DD600: 0th axis manual wheel actuation output frequency; 200K Hz<\/p>\n<p>DR2105: The maximum output frequency of the first axis (parameter 4 of the FUN141 command); 200K Hz<\/p>\n<p>R2111: Acceleration and deceleration time of the first axis (parameter 8 of FUN141 instruction); 30mS<\/p>\n<p>DD602: 1st axis manual wheel actuation output frequency; 200K Hz<\/p>\n<p>Example description: Set the 0.1mS high-speed timer (HSTA) as a 50mS timer interrupt, and put the manual wheel positioning processing instructions of Ps0 and Ps1 in the HSTAI interrupt processing program.<\/p>\n<p>When X33=1 and M100=1, start Ps1 hand wheel positioning processing; each interval (50mS) will sample the hand wheel input pulse (from HSC0); if no pulse input is sampled, FUN148 There will be no output for the command; if there is a sampled pulse wave input, the output pulse number will be calculated according to the multiplier setting (D700 and D701), and then the calculated output pulse number will be output at the output frequency set by DD602.<\/p>\n<p>Output pulse number = (HSC0 input pulse number in interval time\u00d7D700)\/D701<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-18-3  Arc High Speed Pulse Output<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN149<\/p>\n<p>AHSPO<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Arc High Speed Pulse Output<\/p>\n<\/td>\n<td>\n<p>FUN149<\/p>\n<p>AHSPO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-244.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SR: Start Address of Register for Positioning Process.<\/p>\n<p>WR: Working Address of Register for Operating.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>R<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The Function 149 (AHSPO) command is to edit the motion parameters in a table, you can use any two axes in Ps0~Ps7 as the pulse output axis, when it is used as the output axis of fun149, it will not be used by other functions, and the output axis func149 occupied by other functions cannot be used.When execution control \u201cEn\u201d =1 or changes from 0\u21921 (P instruction), this instruction will convert the assigned current pulse position (PS) to be the mm (or Deg, Inch, or PS) that has same unit as the set value, so as to make current position displaying.<\/li>\n<li>This command sets the target point in a table and divides it into three modes: radius, center of circle, and point for circular interpolation motion.<\/li>\n<li>Each target point in the motion interpolation is called a step (including parameters such as motion mode, distance, vector of speed, and change conditions), and each step requires 40 16-bit registers, and a maximum of 250 steps can be edited. <\/li>\n<li>Once the parameters are set, the pulse output is activated using the pin, and the output pin, WR register, and associated relay\/register are displayed in real time during the process. <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>During the motion interpolation of the pulse wave, the user can also use the transition condition and the change condition to achieve a specific goal.<\/li>\n<li>When input &quot;EN&quot;=1, the pulse output starts, and the next step will be executed according to the change conditions when one step is completed. <\/li>\n<li>When &quot;EN&quot; = 0 is input, the pulse output will be stopped, and the next &quot;EN&quot; ON will be performed again from the first step. <\/li>\n<li>When &quot;PAU&quot; = 1 and &quot;EN&quot; was previously 1, the pulse is temporarily output. <\/li>\n<li>When &quot;PAU&quot; = 0 and &quot;EN&quot; is still 1, the unfinished pulse output of the previous step continues. <\/li>\n<li>When input &quot;ABT&quot; = 1, the pulse output will be stopped. <\/li>\n<li>When &quot;ABT&quot; = 0 and &quot;EN&quot; = 1 is entered, the execution starts from the first step.<\/li>\n<li>When the pulse wave is output, the output indicates &quot;ACT&quot; ON.<\/li>\n<li>When an error occurs in pulse execution, the output indicates &quot;ERR&quot; ON and the pulse will stop outputing. <\/li>\n<li>When each step is completed, the output indicates &quot;DN&quot; ON.<\/li>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-19  Communication Instruction (FUN150~156)<\/h3>\n<h4>7-19-1  MODBUS MASTER INSTRUCTION(M-BUS)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150 <\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>MODBUS MASTER INSTRUCTION<\/p>\n<p>\uff08WHICH MAKES PLC AS THE MODBUS MASTER THROUGH PORT 1~2\uff09<\/p>\n<\/td>\n<td>\n<p>FUN150 <\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-245.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pt \uff1a1~4, specify the communication port being acted as the Modbus master<\/p>\n<p>SR\uff1aStarting register of communication program\t <\/p>\n<p>WR : Starting register for instruction operation. It controls 8 registers, the other programs can not repeat in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1-4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>FUN150 (M-BUS) instruction makes PLC act as Modbus master through Port 1\uff5e2, thus it is very easy to communicate with the intelligent peripheral with Modbus RTU\/ASCII protocol.<\/li>\n<li>The master PLC may connect with 247 slave stations through the RS-485 interface.<\/li>\n<li>Only the master PLC needs to use Modbus RTU\/ASCII instruction.<\/li>\n<li>It employs the program coding method or table filling method to plan for the data flow controls; i.e. from which one of the slave station to get which type of data and save them to the master PLC, or from the master PLC to write which type of data to the assigned slave station.  It needs only 7 registries to make definition; every 7 registers define one packet of data transaction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150 <\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>MODBUS MASTER INSTRUCTION<\/p>\n<p>\uff08WHICH MAKES PLC AS THE MODBUS MASTER THROUGH PORT 1~2\uff09<\/p>\n<\/td>\n<td>\n<p>FUN150 <\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<ul>\n<li>When execution control\u301dEN\u301echanges from 0\u21921 and Abort\u201cABT\u201dis 0, and if Port 1\/2 hasn\u2019t been controlled by other communication instructions [i.e. M9135(Port1) \/ M9138(Port2)], this instruction will control the Port 1\/2 immediately and set the M9135\/M9138 to be 0 (which means it is being occupied), then going on a packet of data transaction immediately. If Port 1\/2 has been controlled (M9135\/M9138 = 0), then this instruction will enter into the standby status until the controlling communication instruction completes its transaction or pause\/abort its operation to release the control right (M9135\/M9138 =1), and then this instruction will become enactive, set M9135\/M9138 to be 0, and going on the data transaction immediately.\u3002<\/li>\n<li>While in transaction processing, if operation control \u201cABT\u201d becomes 1, this instruction will abort this transaction immediately and release the control right (M9135\/M9138 = 1). Next time, when this instruction takes over the transmission right again, it will restart from the first packet of data transaction.\u3002<\/li>\n<li>While\u301dA\/R\u301e=0\uff0cModbus RTU protocol\uff1b\u301dA\/R\u301e=1\uff0cModbus ASCII protocol.<\/li>\n<li>While it is in the data transaction, the output indication \u201cACT\u201d will be ON.<\/li>\n<li>If there is error occurred when it finishes a packet of data transaction, the output indication \u201cDN\u201d &amp; \u201cERR\u201d will be ON.<\/li>\n<li>If there is no error occurred when it finishes a packet of data transaction, the output indication \u201cDN\u201d will be ON.<\/li>\n<li>For detailed application examples, please refer to Chapter 11 &quot;Ethernet Function and Ethernet Communication&quot; of the Advanced Software User Manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-19-2  COMMUNICATION LINK INSTRUCTION (CLINK)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>COMMUNICATION LINK INSTRUCTION <\/p>\n<p>(WHICH MAKES PLC ACT AS THE MASTER STATION IN CPU LINK NETWORK THROUGH PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-246.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pt: Assign the port, 1~4<\/p>\n<p>MD: Communication mode, MD0~MD5<\/p>\n<p>#MD3 is only for Port2.<\/p>\n<p>SR: Starting register of communication table <\/p>\n<p>WR: Starting register for instruction operation. It controls 8 register, the other programs can not repeat in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>HR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1-4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>COMMUNICATION LINK INSTRUCTION <\/p>\n<p>(WHICH MAKES PLC ACT AS THE MASTER STATION IN CPU LINK NETWORK THROUGH PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>This instruction provides MD0\uff5eMD1. The following are the function description of respective modes.<\/li>\n<li>FUN151 (CLINK) : MD 0, it makes PLC act as the master of FATEK CPU Link Network through Port 1~2<\/li>\n<li>The master PLC may connect with 254 slave stations through the RS485 interface.<\/li>\n<li>Only the master PLC needs to use FUN151 instruction, the slave doesn&#8217;t need.<\/li>\n<li>It employs the program coding method or table filling method to plan for the data flow controls; i.e. from which one of the slave station to get which type of data and save them to the master PLC, or from the master PLC to write which type of data to the assigned slave station. It needs only 7 registries to make definition; every 7 registers define one packet of data transaction.<\/li>\n<li>When execution control\u301dEN\u301echanges from 0\u21921 and both inputs\u201cPAU\u201dand \u201cABT\u201dare 0, and if Port 1\/2 hasn\u2019t been controlled by other communication instructions [i.e. M9135 (Port1) \/ M9138 (Port2) = 1], this instruction will control the Port 1\/2 immediately and set the M9135\/M9138 to be 0 (which means it is being occupied), then going on a packet of data transaction immediately. If Port 1\/2 has been controlled (M9135\/M9138= 0), then this instruction will enter into the standby status until the controlling communication instruction completes its transaction or pause\/abort its operation to release the control right (M9135\/M9138 =1), and then this instruction will become enactive, set M9135\/M9138 to be 0, and going on the data transaction immediately.<\/li>\n<li>While in transaction processing, if operation control\u201cPAU\u201dbecomes 1, this instruction will release the control right (M9135\/M9138 = 1) after this transaction. Next time, when this instruction takes over the transmission right again, it will restart from the next packet of data transaction.<\/li>\n<li>While in transaction processing, if operation control\u201cABT\u201dbecomes 1, this instruction will abort this transaction immediately and release the control right (M9135\/M9138 = 1). Next time, when this instruction takes over the transmission right again, it will restart from the first packet of data transaction.<\/li>\n<li>While it is in the data transaction, the output indication\u201cACT\u201dwill be ON.<\/li>\n<li>If there is error occurred when it finishes a packet of data transaction, the output indication\u201cDN\u201d&amp;\u201cERR\u201dwill be ON.<\/li>\n<li>If there is no error occurred when it finishes a packet of data transaction, the output indicatio \u201cDN\u201dwill be ON.<\/li>\n<li>Please refer to Chapter 10-2 \u201cThe Applications for M-Series PLC Communication Link\u201d.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-19-3  Network Active Communication (NCR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN152<\/p>\n<p>NCR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Network Active Communication<\/p>\n<\/td>\n<td>\n<p>FUN152<\/p>\n<p>NCR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\NCR.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-247.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SR: Table starting register address<\/p>\n<p>MD: Modbus TCP active communication (=1,2)<\/p>\n<p>WR: Working register<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>WY<\/p>\n<\/td>\n<td>\n<p>WM<\/p>\n<\/td>\n<td>\n<p>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>MD<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1,2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The FUN152 (NCR) command is connected to the smart peripheral (slave station) with the Modbus communication protocol through the Ethernet port.<\/li>\n<li>This command is mainly based on the specified form, such as using the Modbus Master TCP form, read or write according to the specified form, and actively carry out network communication. The communication form must be set before use; only six registers are defined, and every 6 registers define a transfer transaction.<\/li>\n<li>When EN is ON for this command, the communication will continue.<\/li>\n<li>When the data transaction is being transmitted, the output indication &quot;ACT&quot; is ON.<\/li>\n<li>For more details of information, please refer to the function and application user manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN152<\/p>\n<p>NCR<\/p>\n<\/td>\n<td>\n<p>Network active communication<\/p>\n<\/td>\n<td>\n<p>FUN152<\/p>\n<p>NCR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Slave Station (IP: 192.168.0.151) 400101~ 400105 -&gt;<\/p>\n<p>Master Station (IP: 192.168.0.150) R100~R104<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-248.png\" \/><\/p>\n<\/td>\n<td>\n<p>NCR( EN:= M1, SR:= R1000, MD:= 1, WR:= R1500, ACT=&gt; M11, ERR=&gt; M12, DN=&gt; M13);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<ul>\n<li>When the input control &quot;EN&quot; changes from 0 to 1, based on the settings in the Modbus TCP table, the remote IP slave station reads the register data and stores it in the PLC master station, and continuously completes the data transaction.<\/li>\n<li>The setting steps are as follows.<\/li>\n<li>First add the Modbus Master form in the data form.<\/li>\n<li>In the Modbus Master form, define the remote IP and Port, and the address to be read and written, including the data of the master station and the data of the slave station.<\/li>\n<li>Edit the Fun152 NCR instruction on the Ladder of the master station.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-19-4  CMCTL<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN156P<\/p>\n<p>CMCTL<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CMCTL<\/p>\n<\/td>\n<td>\n<p>FUN156P<\/p>\n<p>CMCTL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\CMCTL.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-249.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID : Used module number<\/p>\n<p>Pt : Appointed COMA\/COMB (A= 0;B=1)<\/p>\n<p>Ts : Communication table mask<\/p>\n<p>Bit 1 : Table 1<\/p>\n<p>Bit 2 : Table 2<\/p>\n<p>     |<\/p>\n<p>Bit 15 : Table 15<\/p>\n<p>Bit 16~Bit 31 : Reserved. Do not use.<\/p>\n<p>MD : Set mode<\/p>\n<p>0 : RUN ONCE<\/p>\n<p>1 : RUN CYCLING<\/p>\n<p>2 : STOP <\/p>\n<p>WR : Saving operations state<\/p>\n<p>Bit0~Bit1 : Table 0 state<\/p>\n<p>Bit2~Bit3 : Table 1 state<\/p>\n<p>Bit30~Bit31 : Table 15 state<\/p>\n<p>= 0 : RUN_ONCE<\/p>\n<p>= 1 : RUN_CYCLING<\/p>\n<p>= 2 : STOP,<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ts<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>0-65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-63<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>5word<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN156P<\/p>\n<p>CMCTL<\/p>\n<\/td>\n<td>\n<p>CMCTL<\/p>\n<\/td>\n<td>\n<p>FUN156P<\/p>\n<p>CMCTL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Such command should be used with the CM25 and CM55 communication modules. Before each use, it is required to set up the communication module data.<\/p>\n<ul>\n<li>EN OFF-&gt;ON will carry out communication control, ON-&gt;OFF will stop<\/li>\n<li>PAU is not yet supported<\/li>\n<li>The communication status code of each table will be updated in the allocated status register, and the address can be confirmed by using the device view<\/li>\n<\/ul>\n<p>FUN156\uff1aWR Description<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Bit0<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table0 Status<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table0 = 0(00): RUN_ONCE<\/p>\n<p>        = 1(01): RUN_CYCLING<\/p>\n<p>        = 2(10): STOP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit2<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table1 Status<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table1 = 0(00): RUN_ONCE<\/p>\n<p>        = 1(01): RUN_CYCLING<\/p>\n<p>        = 2(10): STOP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit4<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table2 Status<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table2 = 0(00): RUN_ONCE<\/p>\n<p>        = 1(01): RUN_CYCLING<\/p>\n<p>        = 2(10): STOP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit6<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table3 Status<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>Table3 = 0(00): RUN_ONCE<\/p>\n<p>        = 1(01): RUN_CYCLING<\/p>\n<p>        = 2(10): STOP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<p><strong>\u2026\u2026<\/strong><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bit30<\/p>\n<p>Bit31<\/p>\n<\/td>\n<td>\n<p>Table15 Status<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Table15 = 0(00): RUN_ONCE<\/p>\n<p>          = 1(01): RUN_CYCLING<\/p>\n<p>          = 2(10): STOP<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Reserved after Bit32<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN156P<\/p>\n<p>CMCTL<\/p>\n<\/td>\n<td>\n<p>CMCTL<\/p>\n<\/td>\n<td>\n<p>FUN156P<\/p>\n<p>CMCTL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-250.png\" \/><\/p>\n<\/td>\n<td>\n<p>CMCTL( EN:= M0, PAU:= M1, ID:= 0, Pt:= 0, Ts:= 3, MD:= 1, WR:= R0, ERR=&gt; M2);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>As indicated in the figure above, when M0 becomes 1, the command will open Port 0 of the No. #0 module and then start the communication according to Table 1 and Table 2 (0001b+0010b=0011b and then 3(10) is obtained). Next, select RUN CYCLING Mode and then RO for use as the working register.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-20  Data Movement Instructions (FUN160~162)<\/h3>\n<h4>7-20-1  Read\/Write File Register<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN160D P<\/p>\n<p>RWFR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Read\/Write File Register<\/p>\n<\/td>\n<td>\n<p>FUN160D P<\/p>\n<p>RWFR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-251.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa : Starting address of data register<\/p>\n<p>Sb : Starting address of file register<\/p>\n<p>Pr : Record pointer register<\/p>\n<p>L : Quantity of register to form a record, 1~511<\/p>\n<p>Sa operand can combine V\u3001Z\u3001P0~P9 for index addressing.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<td>\n<p>FR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>|<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<td>\n<p>F0<\/p>\n<p>|<\/p>\n<p>F32767<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Sb<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>1-511<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When operation control &quot;EN&quot;=1 or changes from 0\u21921( P instruction), it will perform the read (&quot;R\/W&quot;=1) or write (&quot;R\/W&quot;=0) file register operation. While reading, the content of data registers starting from Sa will be overwritten by the content of file registers addressed by the base file register Sb and record pointer Pr; while writing, the content of file registers addressed by the base file register Sb and record pointer Pr will be overwritten by the content of data registers starting from Sa; L is the operation quantity or record size. The access of file register adopts the concept of RECORD data structure to implement. For example, Sa=R0, Sb=F0, L=10, the read\/write details shown as below:<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN160D P<\/p>\n<p>RWFR<\/p>\n<\/td>\n<td>\n<p>Read\/Write File Register<\/p>\n<\/td>\n<td>\n<p>FUN160D P<\/p>\n<p>RWFR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-252.png\" \/><\/p>\n<ul>\n<li>For ladder program application, only this instruction can access the file registers.<\/li>\n<li>The record pointer will be increased by 1 after execution while pointer control input &quot;INC&quot;=1.<\/li>\n<li>This instruction will not be executed and error indicator \u201dERR&quot; will be 1 while incorrect record size (L=0 or &gt; 511) or the operation out of the file register&#8217;s range (F0\uff5eF8191).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-253.png\" \/><\/p>\n<\/td>\n<td>\n<p>ReadWriteFileReg( EN:=M0, <\/p>\n<p>                  R_W:= FALSE, <\/p>\n<p>                  INC:= TRUE, <\/p>\n<p>                  Sa:= R0, <\/p>\n<p>                  Sb:= F100, <\/p>\n<p>                  Pr:= D0, <\/p>\n<p>                  L:= 50);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 changes from 0\ud83e\udc6a1, if D0 =2, the contents of file registers F200~F249 will be overwritten by the content of data registers R0~R49. the record length is 50.<\/li>\n<li>Pointer will be increased by 1 after operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN160D P<\/p>\n<p>RWFR<\/p>\n<\/td>\n<td>\n<p>Read\/Write File Register<\/p>\n<\/td>\n<td>\n<p>FUN160D P<\/p>\n<p>RWFR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-254.png\" \/><\/p>\n<\/td>\n<td>\n<p>ReadWriteFileReg( EN:=M0, <\/p>\n<p>                  R_W:= TRUE, <\/p>\n<p>                  INC:= TRUE, <\/p>\n<p>                  Sa:= R0, <\/p>\n<p>                  Sb:= F100, <\/p>\n<p>                  Pr:= D0, <\/p>\n<p>                  L:= 50);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 changes from 0\ud83e\udc6a1, if D0 = 1, the content of data registers R0~R49 will be overwritten by the file registers F150~F199.<\/li>\n<li>The record pointer will be increased by 1 after operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-20-2  Write SD Card (WR-MP)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-255.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S\uff1aStarting address of the source data<\/p>\n<p>BK\uff1aBlock number of  the MEMORY_PACK\uff0c0\uff5e1<\/p>\n<p>Os\uff1aOffset of the block<\/p>\n<p>Pr\uff1aAddress of the pointer<\/p>\n<p>L\uff1aQuantity of writing\uff0c1\uff5e128<\/p>\n<p>WR\uff1aStarting address of working registers, it takes 2 registers <\/p>\n<p>S may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>|<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bk<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-3<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Os<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>0-32511<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-128<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td>\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161 P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The main purpose of the MEMORY_PACK of M-Series PLC is used for long term storing of the user&#8217;s ladder program, except this, through this instruction, the MEMORY_PACK can be worked as the portable MEMORY_PACK for machine working parameters&#8217;s saving and loading. When execution control\u301dEN\u301echanges from 0\u21921, it will perform the data writing, where S is the starting address of the source data, BK is the block number of the MEMORY_PACK to store this writing, Os is the offset of specified block, Pr is the pointer to point to corresponding data area, L is the quantity of this writing. The access of MEMORY_PACK manipulation adopts the concept of RECORD data structure to implement with. The working diagram as shown below :<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-256.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-257.png\" \/><\/p>\n<ul>\n<li>When input &quot;INC&quot; = 1, the content of the pointer will be increased by one after the execution of writing, it points to next record.<\/li>\n<li>If the value of L is equal to 0 or greater than 128, or the pointed data area over the range, the output &quot;ERR&quot; will be 1, it will not perform the writing operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td>\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>It needs couple of PLC solving scans for data writing and verification; during the execution, the output &quot;ACT&quot; will be 1; when completing the execution and verification without the error, the output &quot;DN&quot; will be 1; when completing the execution and verification with the error, the output &quot;ERR&quot; will be 1.<\/li>\n<li>M-Series PLC MEMORY_PACK can be configured to store the user&#8217;s ladder program or machine&#8217;s working parameters, or both. The ladder program can be stored into the block 0 only, but the machine&#8217;s working parameters can be stored into block 0 or 1; the memory capacity of each block has 32K Word in total.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Writing the record into block 1 with the different length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-258.png\" \/><\/p>\n<\/td>\n<td>\n<p>WriteSDMem( EN:= M0, INC:= M1, S:= R0, Bk:= 1, Os:= 0, Pr:= D1, L:= 20, WR:= R2900, ACT=&gt; M100, ERR=&gt; M101, DN=&gt; M102);<\/p>\n<p>WriteSDMem( EN:= M2, INC:= M3, S:= R100, Bk:= 1, Os:= 10000, Pr:= D2, L:= 50, WR:= R2910, ACT=&gt; M103, ERR=&gt; M104, DN=&gt; M105);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td>\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-259.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-20-3  Read SD Card (RD-MP)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Read Data Record from the MEMORY_PACK<\/p>\n<p>\uff08Read memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-260.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BK\uff1aBlock number of the MEMORY_PACK\uff0c0\uff5e1<\/p>\n<p>Os\uff1aOffset of the block<\/p>\n<p>Pr\uff1aAddress of the pointer<\/p>\n<p>L\uff1aQuantity of reading\uff0c1\uff5e128<\/p>\n<p>D\uff1aStarting address to store the reading record<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>|<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bk<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-3<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Os<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\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>0-32511<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-128<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>If the MEMORY_PACK of the M-Series PLC has stored the data record written by the FUN161 instruction, they can be read out for machine&#8217;s working through this instruction, it will reduce the tuning time for machine operation.<\/li>\n<li>When execution control &quot;EN&quot; = 1 or from 0\u21921( P instruction), it will perform the data reading, where BK is the block number of the MEMORY_PACK storing the record, Os is the offset of specified block, Pr is the pointer to point to corresponding data area, L is the quantity of this record, and D is the starting address to stor this reading of record. The access of MEMORY_PACK manipulation adopts the concept of RECORD data structure to implement with.<\/li>\n<\/ul>\n<p>The working diagram as shown below :<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<td>\n<p>Read Data Record from the MEMORY_PACK<\/p>\n<p>\uff08Read memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-261.png\" \/><\/p>\n<ul>\n<li>When input &quot;INC&quot;=1, the content of the pointer will be increased by one after the execution of reading, it points to next record.<\/li>\n<li>If the value of L is equal to 0 or greater than 128, or the pointed data area over the range, the output &quot;ERR&quot; will be 1, it will not perform the reading operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<td>\n<p>Read Data Record from the MEMORY_PACK<\/p>\n<p>\uff08Read memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Reading the record from block 1 with the different length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u203b It is necessary that correct data in MEMORY_PACK or this example can\u2019t execute correctly.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-262.png\" \/><\/p>\n<\/td>\n<td>\n<p>ReadSDMem( EN:=M10, <\/p>\n<p>           INC:= M11, <\/p>\n<p>           Bk:= 1, <\/p>\n<p>           Os:=0, <\/p>\n<p>           Pr:= D10, <\/p>\n<p>           L:= 20, <\/p>\n<p>           D:= R0, <\/p>\n<p>           ERR=&gt; M110);<\/p>\n<p>ReadSDMem( EN:=M12, <\/p>\n<p>           INC:= M13, <\/p>\n<p>           Bk:= 1, <\/p>\n<p>           Os:= 10000, <\/p>\n<p>           Pr:= D11, <\/p>\n<p>           L:= 50, <\/p>\n<p>           D:= R100, <\/p>\n<p>           ERR=&gt; M111);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-263.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-21  In Line Comparison Instruction (FUN170~175)<\/h3>\n<h4>7-21-1  Equal To Compare<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN170 D<\/p>\n<p>=<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>EQUAL TO COMPARE<\/p>\n<p>\uff08Compare whether Sa is equal to Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN170 D<\/p>\n<p>=<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\=.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-264.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa\uff1aOperand A or the starting address of Sa<\/p>\n<p>Sb\uff1aOperand B or the starting address of Sb<\/p>\n<p>Sa\u3001Sb may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM91200<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>When execution input\u301dEN\u301e=1, this instruction will be executed in signed number to compare Sa with Sb. If Sa=Sb, the output is 1; otherwise the output is 0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN170 D<\/p>\n<p>=<\/p>\n<\/td>\n<td>\n<p>EQUAL TO COMPARE<\/p>\n<p>\uff08Compare whether Sa is equal to Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN170 D<\/p>\n<p>=<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-265.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF R0 = R2 AND R4 = R6 AND M0 Then<\/p>\n<p>Y0 := TRUE;<\/p>\n<p>ELSEIF R0 = R2 AND R8 = R10 AND M1 Then<\/p>\n<p>Y1 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>Y0 := FALSE;<\/p>\n<p>Y1 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When R0=R2\u3001R4=R6 and M0=1, the output status of Y0 is 1; otherwise it is 0. R0=R2\u3001R8=R10 and M1=1, the output status of Y1 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN170 D<\/p>\n<p>=<\/p>\n<\/td>\n<td>\n<p>EQUAL TO COMPARE<\/p>\n<p>\uff08Compare whether Sa is equal to Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN170 D<\/p>\n<p>=<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-266.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF DR600 = DR602 OR DR604 &gt; DR606 Then<\/p>\n<p>IF (DR608 &lt; DR610 AND DR616 &gt;= DR618) OR (DR612 &lt;&gt; DR614 AND DR620 &lt;= DR622) OR (M200 AND M201) Then<\/p>\n<p>IF M100 Then<\/p>\n<p>Y10 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>END_IF<\/p>\n<p>ELSE<\/p>\n<p>Y10 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When DR600=DR602 or DR604&gt;DR606, after them DR608&lt;DR610 and DR616\u2267DR618, or DR612\u2260DR614 and DR620\u2266DR622, or M200=1and M201=1, and then M100=1, the output status of Y10 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-21-2  GREATER THAN COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN171 D<\/p>\n<p>&gt;<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>GREATER THAN COMPARE<\/p>\n<p>\uff08Compare whether Sa is greater than Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN171 D<\/p>\n<p>&gt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\greater.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-267.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa\uff1aOperand A or the starting address of Sa<\/p>\n<p>Sb\uff1aOperand B or the starting address of Sb<\/p>\n<p>Sa\u3001Sb may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM91200<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When execution input \u301dEN\u301e=1, this instruction will be executed in signed number to compare Sa with Sb. If Sa&gt;Sb, the output is 1; otherwise the output is 0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-268.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF M10 AND (R20 &gt; R22 OR M11) Then<\/p>\n<p>Y2 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>Y2 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When M10=1\u3001R20 &gt; R22 or M11=1, the output status of Y2 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN171 D<\/p>\n<p>&gt;<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>GREATER THAN COMPARE<\/p>\n<p>\uff08Compare whether Sa is greater than Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN171 D<\/p>\n<p>&gt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-269.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF DR600 = DR602 OR DR604 &gt; DR606 Then<\/p>\n<p>IF (DR608 &lt; DR610 AND DR616 &gt;= DR618) OR (DR612 &lt;&gt; DR614 AND DR620 &lt;= DR622) OR (M200 AND M201) Then<\/p>\n<p>IF M100 Then<\/p>\n<p>Y10 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>END_IF<\/p>\n<p>ELSE<\/p>\n<p>Y10 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When DR600=DR602 or DR604&gt;DR606, after them DR608&lt;DR610 and DR616\u2267DR618, or DR612\u2260DR614 and DR620\u2266DR622, or M200=1and M201=1, and then M100=1, the output status of Y10 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-21-3  LESS THAN COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN172 D<\/p>\n<p>&lt;<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>LESS THAN COMPARE<\/p>\n<p>\uff08Compare whether Sa is less than Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN172 D<\/p>\n<p>&lt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\172.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-270.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa\uff1aOperand A or the starting address of Sa<\/p>\n<p>Sb\uff1aOperand B or the starting address of Sb<\/p>\n<p>Sa\u3001Sb may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM91200<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When execution input \u301dEN\u301e=1, this instruction will be executed in signed number to compare Sa with Sb. If Sa&lt;Sb, the output is 1; otherwise the output is 0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN172 D<\/p>\n<p>&lt;<\/p>\n<\/td>\n<td>\n<p>LESS THAN COMPARE<\/p>\n<p>\uff08Compare whether Sa is less than Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN172 D<\/p>\n<p>&lt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-271.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF M10 AND (R20 &lt; R22 OR M11) Then<\/p>\n<p>Y2 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>Y2 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When M10=1\u3001R20 &lt; R22 or M11=1, the output status of Y2 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN172 D<\/p>\n<p>&lt;<\/p>\n<\/td>\n<td>\n<p>LESS THAN COMPARE<\/p>\n<p>\uff08Compare whether Sa is less than Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN172 D<\/p>\n<p>&lt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-272.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF DR600 = DR602 OR DR604 &gt; DR606 Then<\/p>\n<p>IF (DR608 &lt; DR610 AND DR616 &gt;= DR618) OR (DR612 &lt;&gt; DR614 AND DR620 &lt;= DR622) OR (M200 AND M201) Then<\/p>\n<p>IF M100 Then<\/p>\n<p>Y10 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>END_IF<\/p>\n<p>ELSE<\/p>\n<p>Y10 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When DR600=DR602 or DR604&gt;DR606, after them DR608&lt;DR610 and DR616\u2267DR618, or DR612\u2260DR614 and DR620\u2266DR622, or M200=1and M201=1, and then M100=1, the output status of Y10 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-21-4  Not Equal To Compare<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN173 D<\/p>\n<p>&lt;&gt;<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>NOT EQUAL TO COMPARE<\/p>\n<p>\uff08Compare whether Sa is not equal to Sb\uff09<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN173 D<\/p>\n<p>&lt;&gt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\173.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-273.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Sa\uff1aOperand A or the starting address of Sa<\/p>\n<p>Sb\uff1aOperand B or the starting address of Sb<\/p>\n<p>Sa\u3001Sb may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM91200<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When execution input\u301dEN\u301e=1, this instruction will be executed in signed number to compare Sa with Sb. If Sa\u2260Sb, the output is 1; otherwise the output is 0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN173 D<\/p>\n<p>&lt;&gt;<\/p>\n<\/td>\n<td>\n<p>NOT EQUAL TO COMPARE<\/p>\n<p>\uff08Compare whether Sa is not equal to Sb\uff09<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN173 D<\/p>\n<p>&lt;&gt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M10=1 and R20\u2260R22 or M11=1, the output Y2 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-274.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF M10 AND (R20 &lt;&gt; R22 OR M11) Then<\/p>\n<p>Y2 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>Y2 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN173 D<\/p>\n<p>&lt;&gt;<\/p>\n<\/td>\n<td>\n<p>NOT EQUAL TO COMPARE<\/p>\n<p>\uff08Compare whether Sa is not equal to Sb\uff09<\/p>\n<\/td>\n<td>\n<p>FUN173 D<\/p>\n<p>&lt;&gt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-275.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF DR600 = DR602 OR DR604 &gt; DR606 Then<\/p>\n<p>IF (DR608 &lt; DR610 AND DR616 &gt;= DR618) OR (DR612 &lt;&gt; DR614 AND DR620 &lt;= DR622) OR (M200 AND M201) Then<\/p>\n<p>IF M100 Then<\/p>\n<p>Y10 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>END_IF<\/p>\n<p>ELSE<\/p>\n<p>Y10 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When DR600=DR602 or DR604&gt;DR606, after them DR608&lt;DR610 and DR616\u2267DR618, or DR612\u2260DR614 and DR620\u2266DR622, or M200=1and M201=1, and then M100=1, the output status of Y10 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-21-5  GREATER THAN OR EQUAL TO COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN174 D<\/p>\n<p>&gt;=<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>GREATER THAN OR EQUAL TO COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN174 D<\/p>\n<p>&gt;=<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\174.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-276.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa\uff1aOperand A or the starting address of Sa<\/p>\n<p>Sb\uff1aOperand B or the starting address of Sb<\/p>\n<p>Sa\u3001Sb may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM91200<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When execution input \u301dEN\u301e=1, this instruction will be executed in signed number to compare Sa with Sb. If Sa\u2267Sb, the output is 1; otherwise the output is 0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>When M10=1 and R20\u2267R22 or M11=1, the output Y2 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-277.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF M10 AND (R20 &gt;= R22 OR M11) Then<\/p>\n<p>Y2 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>Y2 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN174 D<\/p>\n<p>&gt;=<\/p>\n<\/td>\n<td>\n<p>GREATER THAN OR EQUAL TO COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN174 D<\/p>\n<p>&gt;=<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-278.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF DR600 = DR602 OR DR604 &gt; DR606 Then<\/p>\n<p>IF (DR608 &lt; DR610 AND DR616 &gt;= DR618) OR (DR612 &lt;&gt; DR614 AND DR620 &lt;= DR622) OR (M200 AND M201) Then<\/p>\n<p>IF M100 Then<\/p>\n<p>Y10 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>END_IF<\/p>\n<p>ELSE<\/p>\n<p>Y10 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When DR600=DR602 or DR604&gt;DR606, after them DR608&lt;DR610 and DR616\u2267DR618, or DR612\u2260DR614 and DR620\u2266DR622, or M200=1and M201=1, and then M100=1, the output status of Y10 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-21-6  LESS THAN OR EQUAL TO COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN175 D<\/p>\n<p>=&lt;<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>LESS THAN OR EQUAL TO COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN175 D<\/p>\n<p>=&lt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\175.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-279.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa\uff1aOperand A or the starting address of Sa<\/p>\n<p>Sb\uff1aOperand B or the starting address of Sb<\/p>\n<p>Sa\u3001Sb may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM91200<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<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<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When execution input \u301dEN\u301e=1, this instruction will be executed in signed number to compare Sa with Sb. If Sa\u2266Sb, the output is 1; otherwise the output is 0.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN175 D<\/p>\n<p>=&lt;<\/p>\n<\/td>\n<td>\n<p>LESS THAN OR EQUAL TO COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN175 D<\/p>\n<p>=&lt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>When M10=1 and R20\u2266R22 or M11=1, the output Y2 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-280.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF M10 AND (R20 &lt;= R22 OR M11) Then<\/p>\n<p>Y2 := TRUE;<\/p>\n<p>ELSE<\/p>\n<p>Y2 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN175 D<\/p>\n<p>=&lt;<\/p>\n<\/td>\n<td>\n<p>LESS THAN OR EQUAL TO COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN175 D<\/p>\n<p>=&lt;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example 2<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-281.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>IF DR600 = DR602 OR DR604 &gt; DR606 Then<\/p>\n<p>IF (DR608 &lt; DR610 AND DR616 &gt;= DR618) OR (DR612 &lt;&gt; DR614 AND DR620 &lt;= DR622) OR (M200 AND M201) Then<\/p>\n<p>IF M100 Then<\/p>\n<p>Y10 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>END_IF<\/p>\n<p>ELSE<\/p>\n<p>Y10 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Description: When DR600=DR602 or DR604&gt;DR606, after them DR608&lt;DR610 and DR616\u2267DR618, or DR612\u2260DR614 and DR620\u2266DR622, or M200=1and M201=1, and then M100=1, the output status of Y10 is 1; otherwise it is 0.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-22  Motion Control Instructions<\/h3>\n<h4>7-22-1  Running motion process (MFFlowStart) <\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN176<\/p>\n<p>MFFlowStart<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Start motion process<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN176<\/p>\n<p>MFFlowStart<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>If different axes should be activated at the same time, do not use the ID repeatedly.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-282.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>ID: The ID number of the motion process to be started.<\/p>\n<p>EN: = 1. Means the motion process defined by the command will be started.<\/p>\n<p>ACT: = 1. Means the system is running the defined motion process. <\/p>\n<p>ERR: = 1. Means error is found in the motion process. <\/p>\n<p>DN: =1. Means the motion process is completed.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-283.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFFlowStart ( EN:= M70, ID:= 1, ACT=&gt; M71, ERR=&gt; M72, DN=&gt; M73);<\/p>\n<p>IF M73 Then<\/p>\n<p>M70 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the motion flow ID 1 will be executed.<\/li>\n<li>If there is no ID 1 motion flow, ERR = 1 will be triggered.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-2  Stop all motion processes (MFSysStop)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN177<\/p>\n<p>MFSysStop<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Stop all motion processes<\/p>\n<\/td>\n<td>\n<p>FUN177<\/p>\n<p>MFSysStop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-284.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>No operands<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>Interrupt all motion processes and stop EtherCAT communication. If you want to restart the process, you need to start the EtherCAT communication in MFSysInit.<\/li>\n<li>EN = 1: Interrupt all motion processes and motion control system emergency stop<\/li>\n<li>ACT = 1: The system is in emergency stoping<\/li>\n<li>ERR = 1: system emergency stop error<\/li>\n<li>DN = 1: The system has completed emergency stop<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-285.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysStop ( EN:= M10, ACT=&gt; M11, ERR=&gt; M12, DN=&gt; M13);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the motion control will be stopped immediately.<\/li>\n<li>If you want to restart the operation after execution, you need to perform initialization and start.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-3  Home re-set (MFHome)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN178<\/p>\n<p>MFHome<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Home re-set (MFHome)<\/p>\n<\/td>\n<td>\n<p>FUN178<\/p>\n<p>MFHome<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-286.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>AX: Means the axis where the Home re-setting will be executed.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/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<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>AX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Specify the motion axis to perform homing.<\/p>\n<ul>\n<li>EN = 1: trigger homing<\/li>\n<li>ACT = 1: Return-to-origin is in progress<\/li>\n<li>ERR = 1: Return-to-origin action error<\/li>\n<li>DN = 1: Return-to-origin is completed<\/li>\n<li>AX: Axis to execute<\/li>\n<\/ul>\n<p>Special register<\/p>\n<p>Axis 1: In return-to-origin operation M10621<\/p>\n<p>Axis 1: Return to origin completed M10622<\/p>\n<p>For the modes and details of the HOME command, please refer to Chapter 10.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN178<\/p>\n<p>MFHome<\/p>\n<\/td>\n<td>\n<p>Home re-set (MFHome)<\/p>\n<\/td>\n<td>\n<p>FUN178<\/p>\n<p>MFHome<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-287.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFHome ( EN:= M98, AX:= 1, ACT=&gt; M99, ERR=&gt; M100, DN=&gt; M101);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the origin return will be performed according to the parameters on the motion axis setting page.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-4  Position Control (MFPointMov)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun179 P<\/p>\n<p>MFPointMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Position Control (MFPointMov)<\/p>\n<\/td>\n<td>\n<p>Fun179 P<\/p>\n<p>MFPointMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-288.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>PT: Command number of motion point table<\/p>\n<p>AX: Motion control axis number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Type<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~256<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Execute the point table position control instruction.<\/p>\n<ul>\n<li>EN = 1: trigger position control<\/li>\n<li>ACT = 1: position control action<\/li>\n<li>ERR = 1: position control error<\/li>\n<li>DN = 1: The position control action is completed<\/li>\n<li>PT: Select the point of the movement point parameter<\/li>\n<li>AX: Axis to execute<\/li>\n<\/ul>\n<p>Special registers:<\/p>\n<ul>\n<li>Axis 1: Position control action M10623<\/li>\n<li>Axis 1: Position control action completed M10624<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun179 P<\/p>\n<p>MFPointMov<\/p>\n<\/td>\n<td>\n<p>Position Control (MFPointMov)<\/p>\n<\/td>\n<td>\n<p>Fun179 P<\/p>\n<p>MFPointMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-289.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFPointMov ( EN:= M85, PT:= 3, AX:= 1, ACT=&gt; M86, ERR=&gt; M87, DN=&gt; M88);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the axis specified by AX will execute the point table with the number specified by PT.<\/li>\n<li>When the execution control &quot;EN&quot; = 0, the movement will stop immediately.<\/li>\n<li>The following table is used as an example. When PT = 1 and AX = 1, axis 1 will run according to the parameters in point table 1;<\/li>\n<\/ul>\n<p>However, if PT=2 and AX=1 was set, it will fail due to the difference from the point table setting, and ERR will be triggered.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Axis<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>M\uff1a Axis_1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>M\uff1a Axis_2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>M\uff1a Axis_1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-5  JOG (MFJog)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun180<\/p>\n<p>MFJog<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>JOG (MFJog)<\/p>\n<\/td>\n<td>\n<p>Fun180<\/p>\n<p>MFJog<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-290.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>AX: Means the axis where JOG action will be executed.<\/p>\n<p>MD: Mode of execution<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Type<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>AX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~3<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun180<\/p>\n<p>MFJog<\/p>\n<\/td>\n<td>\n<p>JOG (MFJog)<\/p>\n<\/td>\n<td>\n<p>Fun180<\/p>\n<p>MFJog<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>According to the JOG parameter and mode setting, the specified motion axis executes the JOG function.<\/p>\n<ul>\n<li>EN = 1: trigger manual control<\/li>\n<li>D\/R = 1 forward \/ = 0 reverse<\/li>\n<li>ACT = 1: JOG action<\/li>\n<li>ERR = 1: JOG error<\/li>\n<li>DN = 1: JOG action completed<\/li>\n<li>AX: Axis to execute<\/li>\n<li>MD: mode 0~mode 3<\/li>\n<\/ul>\n<p>Mode 0: Continue to advance at the JOG start speed.<\/p>\n<p>Mode 1: Advance at JOG start speed, advance the jogging distance and then stop.<\/p>\n<p>Mode 2: Start at the JOG start speed, accelerate to the JOG speed with the JOG acceleration and continue moving forward.<\/p>\n<p>Mode 3: Start at the JOG start speed, accelerate to the JOG speed with the JOG acceleration, and stop after moving forward.<\/p>\n<p>Special registers<\/p>\n<ul>\n<li>Axis 1: JOG action M10625<\/li>\n<li>Axis 1: JOG completed M10626<\/li>\n<\/ul>\n<p>Please refer to Chapter 11 for JOG instruction modes and details.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun180<\/p>\n<p>MFJog<\/p>\n<\/td>\n<td>\n<p>JOG (MFJog)<\/p>\n<\/td>\n<td>\n<p>Fun180<\/p>\n<p>MFJog<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-291.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFJog ( EN:= M93, D_R:= M94, AX:= 1, MD:= 1, ACT=&gt; M95, ERR=&gt; M96, DN=&gt; M97);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the axis specified by AX will execute the mode specified by MD.<\/li>\n<li>When the execution control &quot;EN&quot; = 0, the movement will stop immediately.<\/li>\n<li>Take the following table as an example. When AX = 1 and MD = 1, it means axis 1 will run a distance of 100mm at a speed of 1mm\/s.<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td><\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>JOG Start Speed<\/p>\n<\/td>\n<td>\n<p>1mm\/s<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>JOG Speed<\/p>\n<\/td>\n<td>\n<p>10mm\/s<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>JOG Acceleration<\/p>\n<\/td>\n<td>\n<p>1000mm\/s\u00b2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>JOG Deceleration<\/p>\n<\/td>\n<td>\n<p>1000mm\/s\u00b2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Jog Distance<\/p>\n<\/td>\n<td>\n<p>100mm<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-6  Change motion control parameters (MFChgTbPrm)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN181<\/p>\n<p>MFChgTbPrm<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Change block parameters (MFChgTbPrm)<\/p>\n<\/td>\n<td>\n<p>FUN181<\/p>\n<p>MFChgTbPrm<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-292.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TM: Flow Block Table<\/p>\n<p>PN: The number of blocks<\/p>\n<p>S: Item Number<\/p>\n<p>PV: Written value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/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<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>TM<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~128<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PN<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1~4096<\/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>0~50<\/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>-2147483648~2147482647<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>[Fun181 Change Motion Control Parameters] is used to change a single or a few motion control parameters. If you need to read or write a large number of motion control parameters, you can use [Fun188 Recipe Read] and [Fun189 Recipe Write].<\/li>\n<li>Operands TM table number: 0 point table, 1 axis table, 2 synchronization table, 128 flow table.<\/li>\n<\/ul>\n<p>PN point number: Correspond to different types of numbers according to the table to be modified by TM, point table number, axis number, process block number.<\/p>\n<p>S item number: please refer to the table below<\/p>\n<p>PV write value: the value to be written, fixed Double Word.<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun181 will write the PV value into the specified motion control parameter.<\/li>\n<li>When the execution control [EN] is triggered by the lower differential, all output indications are reset.<\/li>\n<li>When writing motion control parameters, if there is an error, the output indication [ERR] will be ON.<\/li>\n<li>When the writing of motion control parameters is completed, the output indication\u3010DN\u3011ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN181<\/p>\n<p>MFChgTbPrm<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Change block parameters (MFChgTbPrm)<\/p>\n<\/td>\n<td>\n<p>FUN181<\/p>\n<p>MFChgTbPrm<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-293.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFChgTbPrm ( EN:= M1000, TM:= 0, PN:= 1, S:= 2, PV:= 1000000, ERR=&gt; M1001, DN=&gt; M1002);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M1000 OFF\u2192ON, change the point table parameters (TM: 0 point table, PN: 1 point table 1, S: 2 spindle coordinates, PV: change to 1000.000mm), and the spindle movement distance of point table 1 is changed to 1000.000 mm.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-7  Pause Motion Flow (MFFlowPause)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN182 P<\/p>\n<p>MFFlowPause<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pause Motion Flow (MFFlowPause)<\/p>\n<\/td>\n<td>\n<p>FUN182 P<\/p>\n<p>MFFlowPause<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-294.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: The motion process to be paused. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Type<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Pause the motion process of the specified ID, and stop after executing the current process block,<\/p>\n<p>To resume a paused motion process, you can use Fun183 MFFlowResume to resume execution.<\/p>\n<ul>\n<li>EN = 1: Stop entering the next step after executing the current process block<\/li>\n<li>ACT = 1: pause action<\/li>\n<li>ERR = 1: timeout error<\/li>\n<li>DN = 1: Pause completed<\/li>\n<li>ID: UID of the motion process to be paused<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN182 P<\/p>\n<p>MFFlowPause<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pause Motion Cycle (MFFlowPause)<\/p>\n<\/td>\n<td>\n<p>FUN182 P<\/p>\n<p>MFFlowPause<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-295.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFFlowPause ( EN:= M73, ID:= 1, ACT=&gt; M74, ERR=&gt; M75, DN=&gt; M76);<\/p>\n<p>IF M76 Then<\/p>\n<p>M73 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-296.png\" \/><\/p>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, it will pause and not execute the next step after executing the current motion flow block.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-8  Resume Motion Process (MFFlowResume)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN183 P<\/p>\n<p>MFFlowResume<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Resume Motion Process (MFFlowResume)<\/p>\n<\/td>\n<td>\n<p>FUN183 P<\/p>\n<p>MFFlowResume<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-297.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: Means the motion process to be resumed.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Type<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Resume the paused or interrupted motion process and continue execution.<\/p>\n<ul>\n<li>EN = 1: resume motion flow<\/li>\n<li>ACT = 1: resume motion flow in action<\/li>\n<li>ERR = 1: Resume movement flow error<\/li>\n<li>DN = 1: The motion flow resume is completed<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN183 P<\/p>\n<p>MFFlowResume<\/p>\n<\/td>\n<td>\n<p>Resume Motion Process (MFFlowResume)<\/p>\n<\/td>\n<td>\n<p>FUN183 P<\/p>\n<p>MFFlowResume<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-298.png\" \/><\/p>\n<\/td>\n<td>\n<p>ME_RESUME( EN:= M77, ID:= 1, ACT=&gt; M75, ERR=&gt; M76, DN=&gt; M78);<\/p>\n<p>IF M78 Then<\/p>\n<p>M77 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the motion process suspended due to the execution of Fun182 (MFFlowPause) or Fun184 (MFFlowHalt) will be resumed.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-9  Motion Process Halt (MFFlowHalt)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN184 P<\/p>\n<p>MFFlowHalt<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Motion Process Halt (MFFlowHalt)<\/p>\n<\/td>\n<td>\n<p>FUN184 P<\/p>\n<p>MFFlowHalt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-299.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: Means the motion process to be suspended.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Type<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Immediately stops the currently executing process block,<\/p>\n<p>If you want to continue the stopped motion process, you can use Fun183 MFFlowResume to resume execution.<\/p>\n<ul>\n<li>EN = 1: Halt motion process<\/li>\n<li>ACT = 1: Halt action<\/li>\n<li>ERR = 1: Halt error<\/li>\n<li>DN = 1: Halt complete<\/li>\n<li>ID: UID of the motion process to be interrupted<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN184 P<\/p>\n<p>MFFlowHalt<\/p>\n<\/td>\n<td>\n<p>Suspend Motion Process (MFFlowHalt)<\/p>\n<\/td>\n<td>\n<p>FUN184 P<\/p>\n<p>MFFlowHalt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-300.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFFlowHalt ( EN:= M77, ID:= 1, ACT=&gt; M78, ERR=&gt; M79, DN=&gt; M80);<\/p>\n<p>IF M80 Then<\/p>\n<p>M77 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the running motion flow block will be suspended immediately.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-10  Reset Motion Alarm (MFSysRstAlm)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN185 P<\/p>\n<p>MFSysRstAlm<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Reset Motion Alarm (MFSysRstAlm)<\/p>\n<\/td>\n<td>\n<p>FUN185 P<\/p>\n<p>MFSysRstAlm<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-301.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Clears all motion sequences and driver error alerts; however, the communication alarm of the drive cannot be cleared by this command and needs to be powered on again.<\/p>\n<ul>\n<li>EN = 1: Upper edge trigger clears motion error alarm<\/li>\n<li>ACT = 1: Clear motion error alarm action<\/li>\n<li>ERR = 1: Clear motion error alarm error<\/li>\n<li>DN = 1: Clear motion error alarm completed<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN185 P<\/p>\n<p>MFSysRstAlm<\/p>\n<\/td>\n<td>\n<p>Reset Motion Alarm (MFSysRstAlm)<\/p>\n<\/td>\n<td>\n<p>FUN185 P<\/p>\n<p>MFSysRstAlm<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-302.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysRstAlm ( EN:= M101, ACT=&gt; M102, ERR=&gt; M103, DN=&gt; M104);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, it will clear the motion process and errors occurred in the driver.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-11  Motion Process Terminate (MFFlowStop)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN186 P<\/p>\n<p>MFFlowStop<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Stop Motion Process (MFFlowStop)<\/p>\n<\/td>\n<td>\n<p>FUN186 P<\/p>\n<p>MFFlowStop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-303.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: ID number for the motion process to be finished.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Type<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>Range<\/p>\n<\/td>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Immediately end the motion process of the specified ID.<\/p>\n<p>When execution of this instruction is complete, MFFlowResume cannot be used to resume execution. Need to use MFFlowStart to restart the process.<\/p>\n<ul>\n<li>EN = 1: The upper edge triggers the motion process to stop<\/li>\n<li>ACT = 1: The stop of the motion process is in motion<\/li>\n<li>ERR = 1: Motion process stop error<\/li>\n<li>DN = 1: The motion process stop is completed<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN186 P<\/p>\n<p>MFFlowStop<\/p>\n<\/td>\n<td>\n<p>Stop Motion Process (MFFlowStop)<\/p>\n<\/td>\n<td>\n<p>FUN186 P<\/p>\n<p>MFFlowStop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-304.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFFlowStop ( EN:= M80, ID:= 1, ACT=&gt; M81, ERR=&gt; M82, DN=&gt; M83);<\/p>\n<p>IF M83 Then<\/p>\n<p>M80 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-305.png\" \/><\/p>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the motion process of the specified ID will stop immediately.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-12  Servo Initialization (MFSysInit)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN187 P<\/p>\n<p>MFSysInit<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Servo Initialization<\/p>\n<\/td>\n<td>\n<p>FUN187 P<\/p>\n<p>MFSysInit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-306.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>No operands<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>If you want to control the servo through EtherCAT communication, you must execute this command before executing any motion control.<\/li>\n<li>If you want to use Fun 235 to convert the physical axis to the imaginary axis, it must be executed before this command.<\/li>\n<li>EN = 1: Start motion control initialization (trigger condition supports up and down differential input)<\/li>\n<li>ACT = 1: Motion control initialization action<\/li>\n<li>ERR = 1: Motion control initialization error<\/li>\n<li>DN = 1: Motion control initialization is complete<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN187 P<\/p>\n<p>MFSysInit<\/p>\n<\/td>\n<td>\n<p>Servo Initialization<\/p>\n<\/td>\n<td>\n<p>FUN187 P<\/p>\n<p>MFSysInit<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-307.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysInit ( EN:= TRUE, ACT=&gt; M1, ERR=&gt; M2, DN=&gt; M3);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When the execution control &quot;EN&quot; = 1, the motion control function initialization action will be executed.<\/li>\n<li>If there is no response during execution, please confirm whether the sports link setting is consistent with the actual link.<\/li>\n<li>After initialization, the servo needs to be turned on to continue subsequent operations, such as all axes enable (Servo on) register (M10520).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-13  Recipe Reading (MFSysRCPR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN188 P<\/p>\n<p>MFSysRCPR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Recipe Reading (MFSysRCPR)<\/p>\n<\/td>\n<td>\n<p>FUN188 P<\/p>\n<p>MFSysRCPR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-308.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Md: 0, read parameters from PLC<\/p>\n<p>D: The starting position of the data register for moving into the mapping table<\/p>\n<p>GP: Recipe tables number, starting from 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~1<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Gp<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~100<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>[Fun188 Recipe Read] and [Fun189 Recipe Write] are used to read or write a large number of motion control parameters. If you only need to modify a single or a few parameters, you can use [Fun181 Change Motion Control Parameters] or [Fun198 Mapping Table].<\/li>\n<li>Parameters can only be read when the axis stops.<\/li>\n<li>When the execution control [EN] is triggered by the upper differential, Fun188 will read the specified recipe to the specified register.<\/li>\n<li>When the execution control [EN] is triggered by the lower differential, all output indications are reset.<\/li>\n<li>When the recipe is read, the output indication [ACT] is ON.<\/li>\n<li>When reading the recipe, if there is an error, the output indication [ERR] will be ON.<\/li>\n<li>When the reading of the recipe is completed, the output indication [DN] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Recipe Table<\/p>\n<p>\u3010Project Management\u3011&gt;\u3010Motion Control\u3011&gt;\u3010Motion Recipe\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-309.png\" \/><\/p>\n<ul>\n<li>Motion Recipe table<\/li>\n<\/ul>\n<p>Tables: Point table, Axis table, Synchronization table<\/p>\n<p>Index: Point table (number of points), Axis table (number of axes), Synchronization table (number of axes)<\/p>\n<p>Length: Continuous point table or continuous axis<\/p>\n<p>Start address: The start address of the register for reading and writing recipes<\/p>\n<ul>\n<li>Please refer to the following table for the definition of the register value of the motion recipe table<\/li>\n<\/ul>\n<p>Recipe Point Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Start Addres+N<\/p>\n<\/td>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Size<\/p>\n<\/td>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>Definition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Operation Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Unuse<\/li>\n<li>Single\/ABS<\/li>\n<li>Single\/INC<\/li>\n<li>Linear(2Axis)\/ABS<\/li>\n<li>Linear(2Axis)\/INC<\/li>\n<li>Linear(3Axis)\/ABS<\/li>\n<li>Linear(3Axis)\/INC<\/li>\n<li>Linear(4Axis)\/ABS<\/li>\n<li>Linear(4Axis)\/INC<\/li>\n<li>Arc\/ABS<\/li>\n<li>Arc\/ INC<\/li>\n<li>Arc 3D\/ABS<\/li>\n<li>Arc 3D\/ INC<\/li>\n<li>Helical\/ABS<\/li>\n<li>Helical\/ INC<\/li>\n<li>Single Velocity<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Accerlation Profile<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>T Curve<\/li>\n<li>S Curve<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Master Axis<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+3<\/p>\n<\/td>\n<td>\n<p>Interpolation 1<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+4<\/p>\n<\/td>\n<td>\n<p>Interpolation 2<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+5<\/p>\n<\/td>\n<td>\n<p>Interpolation 3<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+6<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Master Axis<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+8<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Interpolation 1<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+10<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Interpolation 2<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+12<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Interpolation 3<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+14<\/p>\n<\/td>\n<td>\n<p>Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Acceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Acceleration S Curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+21<\/p>\n<\/td>\n<td>\n<p>Deceleration S Curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Arc Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Border Point<\/li>\n<li>Center<\/li>\n<li>Radius<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+23<\/p>\n<\/td>\n<td>\n<p>Arc Direction<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>CW<\/li>\n<li>CCW<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+24<\/p>\n<\/td>\n<td>\n<p>Arc (Border\/Center) X coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+26<\/p>\n<\/td>\n<td>\n<p>Arc (Border\/Center) Y coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+28<\/p>\n<\/td>\n<td>\n<p>Arc Radius<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+30<\/p>\n<\/td>\n<td>\n<p>Aux Radius<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+32<\/p>\n<\/td>\n<td>\n<p>Standby Time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>UINT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Unit: ms<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+34<\/p>\n<\/td>\n<td>\n<p>Continuous Point<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~1024<\/p>\n<p>End = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+35<\/p>\n<\/td>\n<td>\n<p>Circle Revolution<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>UINT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0~65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+36<\/p>\n<\/td>\n<td>\n<p>Continuous Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Standby<\/li>\n<li>Next Point Speed Continue<\/li>\n<li>Current Point Speed Continue<\/li>\n<li>Starting Speed Continue<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+37-41<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+42<\/p>\n<\/td>\n<td>\n<p>Arc (Border\/Center) Z coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Recipe Axis Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Start Addres+N<\/p>\n<\/td>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Size<\/p>\n<\/td>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>Definition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Encoder Type<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0 = Incremental<\/p>\n<p>1 = Absolute<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Unit<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>PLS<\/li>\n<li>Mm<\/li>\n<li>Deg<\/li>\n<li>inch<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Decimal Point<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1000: 1<\/p>\n<p>100: 0.1<\/p>\n<p>10: 0.01<\/p>\n<p>1: 0.001<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+3<\/p>\n<\/td>\n<td>\n<p>Pulse\/Revolution<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+5<\/p>\n<\/td>\n<td>\n<p>Unit\/Revolution<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+7<\/p>\n<\/td>\n<td>\n<p>Velocity Unit<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>PLS\/Sec<\/li>\n<li>PLS\/min<\/li>\n<li>RPM<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+8<\/p>\n<\/td>\n<td>\n<p>Velocity Gain<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: 0.001<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+10<\/p>\n<\/td>\n<td>\n<p>Start Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+12<\/p>\n<\/td>\n<td>\n<p>Max Motor Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: 1<\/p>\n<p>Unit: RPM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+14<\/p>\n<\/td>\n<td>\n<p>Default Acceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Default Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Soft Limit(+)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Soft Limit(-)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Following Error Window<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+24<\/p>\n<\/td>\n<td>\n<p>Following Error Timeout<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Unit: ms<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+26<\/p>\n<\/td>\n<td>\n<p>Pos Done Tolerance<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+28<\/p>\n<\/td>\n<td>\n<p>Pos Done Check Time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Unit: ms<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+30<\/p>\n<\/td>\n<td>\n<p>Maximum Motor Torque<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+31<\/p>\n<\/td>\n<td>\n<p>Maximum Torque Limit(+)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+32<\/p>\n<\/td>\n<td>\n<p>Maximum Torque Limit(-)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+33<\/p>\n<\/td>\n<td>\n<p>Touch Probe1 Source<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Disable<\/li>\n<li>Input<\/li>\n<li>Z Signal<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+34<\/p>\n<\/td>\n<td>\n<p>Touch Probe1 Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Rising Edge Single<\/li>\n<li>Rising Edge Continue<\/li>\n<li>Falling Edge Single<\/li>\n<li>Falling Edge Continue<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+35<\/p>\n<\/td>\n<td>\n<p>Touch Probe2 Source<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Disable<\/li>\n<li>Input<\/li>\n<li>Z Signal<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+36<\/p>\n<\/td>\n<td>\n<p>Touch Probe2 Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Rising Edge Single<\/li>\n<li>Rising Edge Continue<\/li>\n<li>Falling Edge Single<\/li>\n<li>Falling Edge Continue<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+37-40<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+41<\/p>\n<\/td>\n<td>\n<p>Stop Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>5. Deceleration Stop<\/p>\n<p>7. Immediately Stop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+42<\/p>\n<\/td>\n<td>\n<p>Stop Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+44<\/p>\n<\/td>\n<td>\n<p>Homing Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>99. Homing on current position<br \/>100. Forward-Falling Trigger<br \/>101. Backward-Falling Trigger<br \/>102. Z Signal-Forward-Rising Trigger<br \/>103. Z Signal-Forward-Falling Trigger<\/p>\n<p>104. Forward- Rising Trigger<\/p>\n<p>105. Backward-Rising Trigger<\/p>\n<p>106. Z Signal-Backward-Rising Trigger<\/p>\n<p>107. Z Signal-Backward-Falling Trigger<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+45<\/p>\n<\/td>\n<td>\n<p>Homing IO Source<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>From Servo Driver<\/li>\n<li>From PLC<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+46<\/p>\n<\/td>\n<td>\n<p>Homing Start Direction<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Negative<\/li>\n<li>Positive<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+47<\/p>\n<\/td>\n<td>\n<p>Homing Origin Offset<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+49<\/p>\n<\/td>\n<td>\n<p>Homing Find Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+51<\/p>\n<\/td>\n<td>\n<p>Homing Creep Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+53<\/p>\n<\/td>\n<td>\n<p>Homing Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+55<\/p>\n<\/td>\n<td>\n<p>Limit Switch(-)(DI)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+56<\/p>\n<\/td>\n<td>\n<p>Limit Switch(+)(DI)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+57<\/p>\n<\/td>\n<td>\n<p>Homing Switch(DI)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+58<\/p>\n<\/td>\n<td>\n<p>Homing Z Count<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+60<\/p>\n<\/td>\n<td>\n<p>Jogging Base Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+62<\/p>\n<\/td>\n<td>\n<p>Jogging Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+64<\/p>\n<\/td>\n<td>\n<p>Jogging Acceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+66<\/p>\n<\/td>\n<td>\n<p>Jogging Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+68<\/p>\n<\/td>\n<td>\n<p>Inching Distance<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Recipe Synchronous Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Start Addres+N<\/p>\n<\/td>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Size<\/p>\n<\/td>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>Definition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Input axis coordinate Unit<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Input axis coordinate decimal point<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Input axis period<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+4<\/p>\n<\/td>\n<td>\n<p>Clutch OFF sliding time at deceleration stop<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+6<\/p>\n<\/td>\n<td>\n<p>Input axis phase init method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+7<\/p>\n<\/td>\n<td>\n<p>Sync master axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+9<\/p>\n<\/td>\n<td>\n<p>Master axis phase default value after phase compensation<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+11<\/p>\n<\/td>\n<td>\n<p>Main clutch input axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+13<\/p>\n<\/td>\n<td>\n<p>Auxiliary clutch input axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+15<\/p>\n<\/td>\n<td>\n<p>Cam input axis\/clutch output axis phase init method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Main clutch output axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Auxiliary clutch output axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Cam input axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+24<\/p>\n<\/td>\n<td>\n<p>Cam output axis base coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+26<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 input selection<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+27<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 external reference number<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+28<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 prevent reverse<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+29<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 coordinate transformation setting<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+30<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 coordinate transformation numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+32<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 coordinate transformation denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+34<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 input selection<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+35<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 external reference number<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+36<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 prevent reverse<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+37<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 coordinate transformation setting<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+38<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 coordinate transformation numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+40<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 coordinate transformation denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+42<\/p>\n<\/td>\n<td>\n<p>Aux Axis input selection<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+43<\/p>\n<\/td>\n<td>\n<p>Aux Axis external reference number<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+44<\/p>\n<\/td>\n<td>\n<p>Aux Axis prevent reverse<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+45<\/p>\n<\/td>\n<td>\n<p>Aux Axis coordinate transformation setting<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+46<\/p>\n<\/td>\n<td>\n<p>Aux Axis<\/p>\n<p>coordinate transformation numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+48<\/p>\n<\/td>\n<td>\n<p>Aux Axis coordinate transformation denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+50<\/p>\n<\/td>\n<td>\n<p>Master Axis compensation command value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+52<\/p>\n<\/td>\n<td>\n<p>Master Axis compensation change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+53<\/p>\n<\/td>\n<td>\n<p>Master Axis compensation change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+55<\/p>\n<\/td>\n<td>\n<p>Aux Axis compensation command value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+57<\/p>\n<\/td>\n<td>\n<p>Aux Axis compensation change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+58<\/p>\n<\/td>\n<td>\n<p>Aux Axis compensation change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+60<\/p>\n<\/td>\n<td>\n<p>Variable gear retio numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+62<\/p>\n<\/td>\n<td>\n<p>Variable gear retio denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+64<\/p>\n<\/td>\n<td>\n<p>Gear retio change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+65<\/p>\n<\/td>\n<td>\n<p>Variable gear retio change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+67<\/p>\n<\/td>\n<td>\n<p>Main clutch ON condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+68<\/p>\n<\/td>\n<td>\n<p>Main clutch ON setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+70<\/p>\n<\/td>\n<td>\n<p>Main clutch ON delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+72<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+73<\/p>\n<\/td>\n<td>\n<p>Main clutch ON connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+74<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+75<\/p>\n<\/td>\n<td>\n<p>Main clutch ON sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+76<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+78<\/p>\n<\/td>\n<td>\n<p>Main clutch ON sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+80<\/p>\n<\/td>\n<td>\n<p>Main clutch ON following time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+82<\/p>\n<\/td>\n<td>\n<p>Main clutch ON follow-ups<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+84<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+85<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+87<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+87<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+90<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+91<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+92<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+93<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+95<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+97<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+98<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+100<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+102<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+103<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+104<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+105<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+106<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+108<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+110<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON following time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+112<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON follow-ups<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+114<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+115<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+117<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+119<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+120<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+121<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+122<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+123<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+125<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+127<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD*5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+132<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation Base speed<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+134<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation Base value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+136<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation value change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+137<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation value change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+139<\/p>\n<\/td>\n<td>\n<p>Cam data No.<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+140<\/p>\n<\/td>\n<td>\n<p>Cam stroke<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+142<\/p>\n<\/td>\n<td>\n<p>Cam contact output No.<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+143<\/p>\n<\/td>\n<td>\n<p>Output filter time constant<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+145-149<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-310.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysRCPR ( EN:= M1000, Md:= 0, D:= R1000, Gp:= 0, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Motion Recipe Table<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-311.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<ul>\n<li>When M1000 is from OFF\u2192ON, read all recipe tables and store them in R1000.<\/li>\n<li>Read the parameters of PLC point table 1 and store them in R1000~R1049<\/li>\n<li>Read the parameters of the PLC axis table (axis 1) and store them in R1050~R1119<\/li>\n<li>Read the parameters of the PLC synchronization table (axis 1) and store them in R1120~R1269<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN188 P<\/p>\n<p>MFSysRCPR<\/p>\n<\/td>\n<td>\n<p>Motion Control Recipe Writing (MFSysRCPR)<\/p>\n<\/td>\n<td>\n<p>FUN188 P<\/p>\n<p>MFSysRCPR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Find in \u201cProject\u201d-&gt; \u201cMotion recipe\u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-312.png\" \/><\/p>\n<p>Take the target position of the point table as an example for mapping; the following figure is the setting page:<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-313.png\" \/><\/p>\n<p>The following is a sample program using the point table as an example:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN188 P<\/p>\n<p>MFSysRCPR<\/p>\n<\/td>\n<td>\n<p>Motion Control Recipe Writing (BSysRCPR)<\/p>\n<\/td>\n<td>\n<p>FUN188 P<\/p>\n<p>MFSysRCPR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram (sub)<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-314.png\" \/> <\/p>\n<\/td>\n<td>\n<p>Timer( EN:= M50 = FALSE, <\/p>\n<p>       T:= 0, <\/p>\n<p>       PV:= 1000, <\/p>\n<p>       IsTimeout=&gt; T0);<\/p>\n<p>ME_SYSINIT( EN:= T0, ACT=&gt; M100, ERR=&gt; M101, DN=&gt; M102);<\/p>\n<p>Timer( EN:= T0, <\/p>\n<p>       T:= 1, <\/p>\n<p>       PV:= 1000, <\/p>\n<p>       IsTimeout=&gt; T1);<\/p>\n<p>IF T1 AND M50 = FALSE Then<\/p>\n<p>M10520 := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>MFPointMov ( EN:= M0, PT:= 1, AX:= 1, ACT=&gt; M103, ERR=&gt; M104, DN=&gt; M105);<\/p>\n<p>MFSysStop ( EN:= M50, ACT=&gt; M106, ERR=&gt; M107, DN=&gt; M108);<\/p>\n<p>MFSysRCPR ( EN:= M60, Md:= 1, D:= R0, Gp:= 1, ACT=&gt; M109, ERR=&gt; M110, DN=&gt; M111);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>In this example, the motion control system will be initialized one second after the first execution, and the other axes will be Servo On after one second. When M60 is on, all contents of the midpoint table will be moved into recipe 1. Because R0 is the start register to be moved into the point table, then turn M0 ON to execute the point table, and its setting will follow the position of DR6.<\/p>\n<p>If you need to restore the recipe table before use, you can turn on the M50 and turn it off to restart the Motion control system.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-14  Motion Control Recipe Writing (MFSysRCPW)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN189 P<\/p>\n<p>MFSysRCPW<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Motion Control Recipe Writing (MFSysRCPW)<\/p>\n<\/td>\n<td>\n<p>FUN189 P<\/p>\n<p>MFSysRCPW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-315.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Md: 0, write parameters to PLC<\/p>\n<p>D: The starting position of the register for reading the mapping table data<\/p>\n<p>GP: Number of the recipe table, starting from 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~1<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Gp<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~100<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>[Fun188 Recipe Read] and [Fun189 Recipe Write] are used to read or write a large number of motion control parameters. If you only need to modify a single or a few parameters, you can use [Fun181 Change Motion Control Parameters] or [Fun198 Mapping Table].<\/li>\n<li>Parameters can only be written when the axis stops.<\/li>\n<li>Operands<\/li>\n<\/ul>\n<p>Md mode: 0 use PLC register<\/p>\n<p>D recipe starting register: the starting address of the register to be written into the recipe table<\/p>\n<p>Gp writes the column of the formula table: writes the column of the recipe table, 0 writes all<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun188 will write the specified register to the specified recipe<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, all output indications are reset<\/p>\n<ul>\n<li>When writing into the recipe, the output indication [ACT] ON.<\/li>\n<li>When writing in the recipe, if there is an error, the output indication [ERR] ON.<\/li>\n<li>When writing the recipe is completed, the output indication [DN] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Recipe Table<\/p>\n<p>\u3010Project Management\u3011&gt;\u3010Motion Control\u3011&gt;\u3010Motion Recipe\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-316.png\" \/><\/p>\n<ul>\n<li>Motion Recipe table<\/li>\n<\/ul>\n<p>Tables: Point table, Axis table, Synchronization table<\/p>\n<p>Index: Point table (number of points), Axis table (number of axes), Synchronization table (number of axes)<\/p>\n<p>Length: continuous point table or continuous axis<\/p>\n<p>Start address: The start address of the register for reading and writing recipes<\/p>\n<ul>\n<li>Please refer to the following table for the definition of the temporary register value of the motion recipe table.<\/li>\n<\/ul>\n<p>Recipe Point Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Start Addres+N<\/p>\n<\/td>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Size<\/p>\n<\/td>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>Definition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Operation Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Unuse<\/li>\n<li>Single\/ABS<\/li>\n<li>Single\/INC<\/li>\n<li>Linear(2Axis)\/ABS<\/li>\n<li>Linear(2Axis)\/INC<\/li>\n<li>Linear(3Axis)\/ABS<\/li>\n<li>Linear(3Axis)\/INC<\/li>\n<li>Linear(4Axis)\/ABS<\/li>\n<li>Linear(4Axis)\/INC<\/li>\n<li>Arc\/ABS<\/li>\n<li>Arc\/ INC<\/li>\n<li>Arc 3D\/ABS<\/li>\n<li>Arc 3D\/ INC<\/li>\n<li>Helical\/ABS<\/li>\n<li>Helical\/ INC<\/li>\n<li>Single Velocity<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Accerlation Profile<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>T Curve<\/li>\n<li>S Curve<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Master Axis<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+3<\/p>\n<\/td>\n<td>\n<p>Interpolation 1<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+4<\/p>\n<\/td>\n<td>\n<p>Interpolation 2<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+5<\/p>\n<\/td>\n<td>\n<p>Interpolation 3<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<p>Non use = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+6<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Master Axis<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+8<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Interpolation 1<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+10<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Interpolation 2<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+12<\/p>\n<\/td>\n<td>\n<p>Target Position<\/p>\n<p>Interpolation 3<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+14<\/p>\n<\/td>\n<td>\n<p>Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Acceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Acceleration S Curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+21<\/p>\n<\/td>\n<td>\n<p>Deceleration S Curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Arc Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Border Point<\/li>\n<li>Center<\/li>\n<li>Radius<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+23<\/p>\n<\/td>\n<td>\n<p>Arc Direction<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>CW<\/li>\n<li>CCW<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+24<\/p>\n<\/td>\n<td>\n<p>Arc (Border\/Center) X coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+26<\/p>\n<\/td>\n<td>\n<p>Arc (Border\/Center) Y coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+28<\/p>\n<\/td>\n<td>\n<p>Arc Radius<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+30<\/p>\n<\/td>\n<td>\n<p>Aux Radius<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+32<\/p>\n<\/td>\n<td>\n<p>Standby Time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>UINT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Unit: ms<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+34<\/p>\n<\/td>\n<td>\n<p>Continuous Point<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1~1024<\/p>\n<p>End = 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+35<\/p>\n<\/td>\n<td>\n<p>Circle Revolution<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>UINT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0~65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+36<\/p>\n<\/td>\n<td>\n<p>Continuous Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Standby<\/li>\n<li>Next Point Speed Continue<\/li>\n<li>Current Point Speed Continue<\/li>\n<li>Starting Speed Continue<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+37-41<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+42<\/p>\n<\/td>\n<td>\n<p>Arc (Border\/Center) Z coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>INT<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Recipe Axis Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Start Addres+N<\/p>\n<\/td>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Size<\/p>\n<\/td>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>Definition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Encoder Type<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>0 = Incremental<\/p>\n<p>1 = Absolute<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Unit<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>PLS<\/li>\n<li>Mm<\/li>\n<li>Deg<\/li>\n<li>inch<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Decimal Point<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1000: 1<\/p>\n<p>100: 0.1<\/p>\n<p>10: 0.01<\/p>\n<p>1: 0.001<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+3<\/p>\n<\/td>\n<td>\n<p>Pulse\/Revolution<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+5<\/p>\n<\/td>\n<td>\n<p>Unit\/Revolution<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+7<\/p>\n<\/td>\n<td>\n<p>Velocity Unit<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>PLS\/Sec<\/li>\n<li>PLS\/min<\/li>\n<li>RPM<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+8<\/p>\n<\/td>\n<td>\n<p>Velocity Gain<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: 0.001<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+10<\/p>\n<\/td>\n<td>\n<p>Start Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+12<\/p>\n<\/td>\n<td>\n<p>Max Motor Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: 1<\/p>\n<p>Unit: RPM<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+14<\/p>\n<\/td>\n<td>\n<p>Default Acceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Default Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Soft Limit(+)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Soft Limit(-)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(positive number only)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Following Error Window<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+24<\/p>\n<\/td>\n<td>\n<p>Following Error Timeout<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Unit: ms<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+26<\/p>\n<\/td>\n<td>\n<p>Pos Done Tolerance<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+28<\/p>\n<\/td>\n<td>\n<p>Pos Done Check Time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Unit: ms<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+30<\/p>\n<\/td>\n<td>\n<p>Maximum Motor Torque<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+31<\/p>\n<\/td>\n<td>\n<p>Maximum Torque Limit(+)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+32<\/p>\n<\/td>\n<td>\n<p>Maximum Torque Limit(-)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Precision: 0.1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+33<\/p>\n<\/td>\n<td>\n<p>Touch Probe1 Source<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Disable<\/li>\n<li>Input<\/li>\n<li>Z Signal<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+34<\/p>\n<\/td>\n<td>\n<p>Touch Probe1 Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Rising Edge Single<\/li>\n<li>Rising Edge Continue<\/li>\n<li>Falling Edge Single<\/li>\n<li>Falling Edge Continue<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+35<\/p>\n<\/td>\n<td>\n<p>Touch Probe2 Source<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Disable<\/li>\n<li>Input<\/li>\n<li>Z Signal<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+36<\/p>\n<\/td>\n<td>\n<p>Touch Probe2 Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Rising Edge Single<\/li>\n<li>Rising Edge Continue<\/li>\n<li>Falling Edge Single<\/li>\n<li>Falling Edge Continue<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+37-40<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+41<\/p>\n<\/td>\n<td>\n<p>Stop Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>5. Deceleration Stop<\/p>\n<p>7. Immediately Stop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+42<\/p>\n<\/td>\n<td>\n<p>Stop Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+44<\/p>\n<\/td>\n<td>\n<p>Homing Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>99. Homing on current position<br \/>100. Forward-Falling Trigger<br \/>101. Backward-Falling Trigger<br \/>102. Z Signal-Forward-Rising Trigger<br \/>103. Z Signal-Forward-Falling Trigger<\/p>\n<p>104. Forward- Rising Trigger<\/p>\n<p>105. Backward-Rising Trigger<\/p>\n<p>106. Z Signal-Backward-Rising Trigger<\/p>\n<p>107. Z Signal-Backward-Falling Trigger<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+45<\/p>\n<\/td>\n<td>\n<p>Homing IO Source<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>From Servo Driver<\/li>\n<li>From PLC<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+46<\/p>\n<\/td>\n<td>\n<p>Homing Start Direction<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<ol>\n<li>Negative<\/li>\n<li>Positive<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+47<\/p>\n<\/td>\n<td>\n<p>Homing Origin Offset<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<p>(negative number allow)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+49<\/p>\n<\/td>\n<td>\n<p>Homing Find Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+51<\/p>\n<\/td>\n<td>\n<p>Homing Creep Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+53<\/p>\n<\/td>\n<td>\n<p>Homing Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+55<\/p>\n<\/td>\n<td>\n<p>Limit Switch(-)(DI)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+56<\/p>\n<\/td>\n<td>\n<p>Limit Switch(+)(DI)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+57<\/p>\n<\/td>\n<td>\n<p>Homing Switch(DI)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+58<\/p>\n<\/td>\n<td>\n<p>Homing Z Count<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+60<\/p>\n<\/td>\n<td>\n<p>Jogging Base Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+62<\/p>\n<\/td>\n<td>\n<p>Jogging Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+64<\/p>\n<\/td>\n<td>\n<p>Jogging Acceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+66<\/p>\n<\/td>\n<td>\n<p>Jogging Deceleration<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+68<\/p>\n<\/td>\n<td>\n<p>Inching Distance<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Recipe Synchronous Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Start Addres+N<\/p>\n<\/td>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Size<\/p>\n<\/td>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>Definition<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Input axis coordinate Unit<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Input axis coordinate decimal point<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Input axis period<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+4<\/p>\n<\/td>\n<td>\n<p>Clutch OFF sliding time at deceleration stop<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+6<\/p>\n<\/td>\n<td>\n<p>Input axis phase init method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+7<\/p>\n<\/td>\n<td>\n<p>Sync master axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+9<\/p>\n<\/td>\n<td>\n<p>Master axis phase default value after phase compensation<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+11<\/p>\n<\/td>\n<td>\n<p>Main clutch input axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+13<\/p>\n<\/td>\n<td>\n<p>Auxiliary clutch input axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+15<\/p>\n<\/td>\n<td>\n<p>Cam input axis\/clutch output axis phase init method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Main clutch output axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Auxiliary clutch output axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Cam input axis phase default value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+24<\/p>\n<\/td>\n<td>\n<p>Cam output axis base coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+26<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 input selection<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+27<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 external reference number<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+28<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 prevent reverse<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+29<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 coordinate transformation setting<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+30<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 coordinate transformation numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+32<\/p>\n<\/td>\n<td>\n<p>Master Axis 1 coordinate transformation denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+34<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 input selection<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+35<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 external reference number<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+36<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 prevent reverse<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+37<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 coordinate transformation setting<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+38<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 coordinate transformation numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+40<\/p>\n<\/td>\n<td>\n<p>Master Axis 2 coordinate transformation denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+42<\/p>\n<\/td>\n<td>\n<p>Aux Axis input selection<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+43<\/p>\n<\/td>\n<td>\n<p>Aux Axis external reference number<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+44<\/p>\n<\/td>\n<td>\n<p>Aux Axis prevent reverse<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+45<\/p>\n<\/td>\n<td>\n<p>Aux Axis coordinate transformation setting<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+46<\/p>\n<\/td>\n<td>\n<p>Aux Axis<\/p>\n<p>coordinate transformation numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+48<\/p>\n<\/td>\n<td>\n<p>Aux Axis coordinate transformation denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+50<\/p>\n<\/td>\n<td>\n<p>Master Axis compensation command value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+52<\/p>\n<\/td>\n<td>\n<p>Master Axis compensation change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+53<\/p>\n<\/td>\n<td>\n<p>Master Axis compensation change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+55<\/p>\n<\/td>\n<td>\n<p>Aux Axis compensation command value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+57<\/p>\n<\/td>\n<td>\n<p>Aux Axis compensation change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+58<\/p>\n<\/td>\n<td>\n<p>Aux Axis compensation change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+60<\/p>\n<\/td>\n<td>\n<p>Variable gear retio numerator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+62<\/p>\n<\/td>\n<td>\n<p>Variable gear retio denominator<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+64<\/p>\n<\/td>\n<td>\n<p>Gear retio change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+65<\/p>\n<\/td>\n<td>\n<p>Variable gear retio change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+67<\/p>\n<\/td>\n<td>\n<p>Main clutch ON condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+68<\/p>\n<\/td>\n<td>\n<p>Main clutch ON setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+70<\/p>\n<\/td>\n<td>\n<p>Main clutch ON delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+72<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+73<\/p>\n<\/td>\n<td>\n<p>Main clutch ON connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+74<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+75<\/p>\n<\/td>\n<td>\n<p>Main clutch ON sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+76<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+78<\/p>\n<\/td>\n<td>\n<p>Main clutch ON sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+80<\/p>\n<\/td>\n<td>\n<p>Main clutch ON following time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+82<\/p>\n<\/td>\n<td>\n<p>Main clutch ON follow-ups<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+84<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+85<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+87<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+87<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+90<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+91<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+92<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+93<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+95<\/p>\n<\/td>\n<td>\n<p>Main clutch OFF sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+97<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+98<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+100<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+102<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+103<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+104<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+105<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+106<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+108<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+110<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON following time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+112<\/p>\n<\/td>\n<td>\n<p>Aux clutch ON follow-ups<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+114<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF condition<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+115<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF setting value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+117<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF delay<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+119<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+120<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF connection method<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+121<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+122<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF sliding curve<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+123<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+125<\/p>\n<\/td>\n<td>\n<p>Aux clutch OFF sliding time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+127<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td>\n<p>WORD*5<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+132<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation Base speed<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+134<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation Base value<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+136<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation value change mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+137<\/p>\n<\/td>\n<td>\n<p>Step Angle Compensation value change time<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+139<\/p>\n<\/td>\n<td>\n<p>Cam data No.<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+140<\/p>\n<\/td>\n<td>\n<p>Cam stroke<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>Precision: Decimal Place<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+142<\/p>\n<\/td>\n<td>\n<p>Cam contact output No.<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+143<\/p>\n<\/td>\n<td>\n<p>Output filter time constant<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+145-149<\/p>\n<\/td>\n<td>\n<p>Reserve<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN189 P<\/p>\n<p>MFSysRCPW<\/p>\n<\/td>\n<td>\n<p>Motion Control Recipe Writing (MFSysRCPW)<\/p>\n<\/td>\n<td>\n<p>FUN189 P<\/p>\n<p>MFSysRCPW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-317.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysRCPW ( EN:= M1000, Md:= 0, D:= R1000, Gp:= 0, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M1000 is from OFF\u2192ON, write all recipe tables from R1000.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-15  Cam Read (MFSysCAMR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN191 P<\/p>\n<p>MFSysCAMR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Motion Control Cam Read<\/p>\n<\/td>\n<td>\n<p>FUN191 P<\/p>\n<p>MFSysCAMR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-318.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Md: Mode<\/p>\n<p>D: Cam initial register<\/p>\n<p>ID: Cam number<\/p>\n<p>L: Cam resolution<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Md<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~1<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>2048~32768<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Operands<\/p>\n<p>Md mode: 0 use PLC register<\/p>\n<p>D cam start register: The start address of the register to be stored after reading the cam<\/p>\n<p>ID cam number: Cam number<\/p>\n<p>L cam resolution: The length of the temporary register to be stored after reading the cam<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun191 will read the specified cam to the specified register.<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, all output indications are reset.<\/p>\n<ul>\n<li>When the cam is being read, the output indication [ACT] is ON.<\/li>\n<li>When reading the cam, if there is an error, the output indication [ERR] will be ON.<\/li>\n<li>When the reading of the cam is completed, the output indication [DN] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-319.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysCAMR ( EN:= TRUE, Md:= 0, D:= R1000, ID:= 1, L:= 2048, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>CAM<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-320.png\" \/><\/p>\n<p>Data Table<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-321.png\" \/><\/p>\n<p>When M1000 is from OFF\u2192ON, read the cam ID: 1 data table and store 2048 in DR1000~DR5094.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-16  Cam Write (MFSysCAMW)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN192 P<\/p>\n<p>MFSysCAMW<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Motion Control Cam Write (MFSysCAMW)<\/p>\n<\/td>\n<td>\n<p>FUN192 P<\/p>\n<p>MFSysCAMW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-322.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Md: Mode<\/p>\n<p>D: Cam initial register<\/p>\n<p>ID: Cam number<\/p>\n<p>L: Cam resolution<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Md<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~1<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>2048~32768<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Operands<\/p>\n<p>Md mode: 0 use PLC register<\/p>\n<p>D cam start register: The start address of the register to be stored after reading the cam<\/p>\n<p>ID cam number: Cam number<\/p>\n<p>L cam resolution: The length of the temporary register to be stored after reading the cam<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun191 will read the specified cam to the specified register.<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, all output indications are reset.<\/p>\n<ul>\n<li>When the cam is being read, the output indication [ACT] is ON.<\/li>\n<li>When reading the cam, if there is an error, the output indication [ERR] will be ON.<\/li>\n<li>When the reading of the cam is completed, the output indication [DN] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-323.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFSysCAMW ( EN:= M1000, Md:= 0, D:= R1000, ID:= 1, L:= 2048, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>CAM<\/p>\n<\/td>\n<td>\n<p>Data Table<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-324.png\" \/><\/p>\n<ul>\n<li>When M1000 is from OFF\u2192ON, write the cam ID from DR1000~DR5094: 1 data table 2048.<\/li>\n<\/ul>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-325.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-17  Handwheel (MFGearMPG)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN193 D P<\/p>\n<p>MFGearMPG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Handwheel (MFGearMPG )<\/p>\n<\/td>\n<td>\n<p>FUN193 D P<\/p>\n<p>MFGearMPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-326.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operand<\/p>\n<p>M: EtherCat spindle number<\/p>\n<p>S: EtherCat auxiliary shaft number<\/p>\n<p>N: Gear ratio numerator<\/p>\n<p>D: Gear ratio denominator<\/p>\n<p>T: Conversion time (in ms)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>M<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16,100~108<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>T<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>Fun 193 (EtherCAT hand wheel) integrates position-synchronized hand wheel related settings to provide users with quick setting of the hand wheel.<\/li>\n<li>Operands<\/li>\n<\/ul>\n<p>M  spindle input source: EtherCAT_axis number 1~1<\/p>\n<p>: Encoder_Gray code 100 (X8~X15)<\/p>\n<p>: Encoder_hardware high-speed counter number 101 ~ 104 (HSC4~HSC7 )<\/p>\n<p>S  slave axis output target: EtherCAT_axis number 1~16 <\/p>\n<p>([M spindle input source] cannot be the same as [S slave axis output target])<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN193 D P<\/p>\n<p>MFGearMPG<\/p>\n<\/td>\n<td>\n<p>Handwheel (MFGearMPG )<\/p>\n<\/td>\n<td>\n<p>FUN193 D P<\/p>\n<p>MFGearMPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>N  Variable gear ratio numerator: positive and negative numbers, including the [decimal point position] of the [motion axis setting] in the [motion control]<\/p>\n<p>([Axis unit] set mm, [Decimal point position] set 0.001, N: DR0 = 1000 is equal to 1.000mm)<\/p>\n<p>D  Variable gear ratio denominator: positive number (a real number greater than zero), including the [decimal point position] of [motion axis setting] in [motion control]<\/p>\n<p>T conversion time (ms): positive number (real number greater than zero), the unit is ms<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun193 uses the current parameters to start the synchronous control of the handwheel position.<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, Fun193 stops the synchronous control of the handwheel position and resets all output indicators.<\/p>\n<ul>\n<li>In handwheel synchronous control, if the update parameter [UPD] changes to 1, this command will update the handwheel parameters (N, D, T) immediately.<\/li>\n<li>When the hand wheel is under synchronous control, the output indication [ACT] is ON.<\/li>\n<li>During the synchronous control of the manual wheel, if an error occurs, the output indication [ERR] will be ON.<\/li>\n<li>When the update of the manual wheel parameters is completed, the output indication  [UPD] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN193 D P<\/p>\n<p>MFGearMPG<\/p>\n<\/td>\n<td>\n<p>Handwheel (MFGearMPG )<\/p>\n<\/td>\n<td>\n<p>FUN193 D P<\/p>\n<p>MFGearMPG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-327.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFGearMPG _D( EN:= M1000, UPD_in:= M1005, M:= 1, S:= 2, N:= R1000, D:= R1002, T:= R1004, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003, UPD_out=&gt; M1004);<\/p>\n<p>IF M1004 THEN<\/p>\n<p>M1005 := FALSE;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Axis Parameter Setting<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-328.png\" \/><\/p>\n<p>When M1000 is from OFF\u2192ON, start the manual wheel synchronization according to the current Fun193 parameters (M: EtherCAT axis 1, N: EtherCAT axis 2, N: variable gear ratio numerator 0.001, D variable gear ratio denominator 0.001, T: 1ms).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-329.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFGearMPG _D( EN:= M1000, UPD_in:= M1005, M:= 1, S:= 2, N:= R1000, D:= R1002, T:= R1004, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003, UPD_out=&gt; M1004);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>After changing the parameters (D variable gear ratio denominator 0.002), when M1005 is from OFF\u2192ON, update the hand wheel according to the changed parameters. After the parameter update is completed, the output indication [UPD] is ON, and the stroke of the slave axis of the hand wheel is halved.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-18  Velocity Control Mode (MFVelCtl)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN194 D P<\/p>\n<p>MFVelCtl<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Velocity Control Mode (MFVelCtl)<\/p>\n<\/td>\n<td>\n<p>FUN194 D P<\/p>\n<p>MFVelCtl<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-330.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Axis number<\/p>\n<p>V: Speed command<\/p>\n<p>MX: Maximum torque<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>MX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>S speed control axis: EtherCAT_ axis number 1~16<\/p>\n<p>V speed: speed setting value, unit Pulses\/s<\/p>\n<p>MX maximum torque limit: when the speed cannot reach the speed setting value, the maximum torque limit, 0 equals no limit, unit 0.0%<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun194 uses the current parameters to start the axis speed control<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, Fun194 stops the axis speed control and resets all output indications<\/p>\n<ul>\n<li>In axis speed control, if the update parameter [UPD] becomes 1, this command will update the speed control parameters (V, MX) immediately.<\/li>\n<li>When the axis speed is under control, the output indicator [ACT] ON.<\/li>\n<li>During axis speed control, if an error occurs, the output indication [ERR] will be ON.<\/li>\n<li>When updating the speed control parameters is completed, the output indication [UPD] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN194 D P<\/p>\n<p>MFVelCtl<\/p>\n<\/td>\n<td>\n<p>Velocity Control Mode (MFVelCtl)<\/p>\n<\/td>\n<td>\n<p>FUN194 D P<\/p>\n<p>MFVelCtl<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-331.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFVelCtl_D( EN:= M1000, UPD_in:= M1005, S:= 1, V_n:= R1000, MX:= R1002, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003, UPD_out=&gt; M1004);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M1000 is from OFF\u2192ON, start velocity control according to the current Fun194 parameters (S: EtherCAT axis 1, V: 131072 Pulses per second, MX: no torque limit).<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-332.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFVelCtl_D( EN:= M1000, UPD_in:= M1005, S:= 1, V_n:= R1000, MX:= R1002, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003, UPD_out=&gt; M1004);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>After changing the parameter (V: 262144 Pulses per second), when M1005 changes from OFF to ON, the parameter update is completed according to the changed parameter update speed, and the output indicator M1004 [UPD] ON is turned on, and the speed doubles.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-19  Torque Control Mode (MFTorqCtl)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>FUN195 D P<\/p>\n<p>MFTorqCtl<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Torque Control Mode (MFTorqCtl)<\/p>\n<\/td>\n<td>\n<p>FUN195 D P<\/p>\n<p>MFTorqCtl<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-333.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Axis number<\/p>\n<p>V: Speed command<\/p>\n<p>MX: Maximum torque<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>T<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>MX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>S torque control axis: EtherCAT_ axis number 1~16<\/p>\n<p>T torque: Torque setting value, unit 0.0%<\/p>\n<p>MX Maximum speed limit: When the torque cannot reach the torque setting value, the maximum speed limit, 0 equals no limit, unit rpm<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun195 uses the current parameters to start the shaft torque control<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, Fun195 stops the shaft torque control and resets all output indications<\/p>\n<ul>\n<li>In axis torque control, if the update parameter [UPD] becomes 1, this command will update the torque control parameters (T, MX) immediately.<\/li>\n<li>When the axis torque is under control, the output indicator [ACT] ON.<\/li>\n<li>During axis torque control, if an error occurs, the output indication [ERR] will be ON.<\/li>\n<li>When updating the torque control parameters is completed, the output indication [UPD] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN195 D P<\/p>\n<p>MFTorqCtl<\/p>\n<\/td>\n<td>\n<p>Torque Control Mode (MFTorqCtl)<\/p>\n<\/td>\n<td>\n<p>FUN195 D P<\/p>\n<p>MFTorqCtl<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-334.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFTorqCtl ( EN:= M1000, UPD_in:= M1005, S:= 1, V_n:= R1000, MX:= R1002, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003, UPD_out=&gt; M1004);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M1000 is from OFF to ON, torque control is started according to the current Fun194 parameters (S: EtherCAT axis 1, T: 5.0%, MX: no speed limit).<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-335.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFTorqCtl ( EN:= M1000, UPD_in:= M1005, S:= 1, V_n:= R1000, MX:= R1002, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003, UPD_out=&gt; M1004);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>After changing the parameter (T: 10.0%), when M1005 changes from OFF\u2192ON, the torque will be updated according to the changed parameter. After the parameter update is completed, the output indication M1004 [UPD] ON will double the torque.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-20  Cam Generate (MFSysCAMGen)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN196 P<\/p>\n<p>MFSysCAMGen<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Cam Generate (MFSysCAMGen)<\/p>\n<\/td>\n<td>\n<p>FUN196 P<\/p>\n<p>MFSysCAMGen<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-336.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: Axis number<\/p>\n<p>Md: Mode<\/p>\n<p>D: Start address of scratchpad<\/p>\n<p>L: Length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Md<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~20<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>ID cam number: 1~16<\/p>\n<p>Md cam generation mode: 0 is the same as cam table, 1 is chasing shear curve<\/p>\n<p>D register start bit: set the start register of the cam<\/p>\n<p>L The number of cam curve segments: Mode 0 only has the setting of each segment of the cam, and other modes do not need to be set<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun196 will generate the cam according to the set mode.<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, all output indications are reset.<\/p>\n<ul>\n<li>When the cam is being generated, the output indication [ACT] ON.<\/li>\n<li>When the cam is generating, if there is an error, the output indication [ERR] will be ON.<\/li>\n<li>When the cam generation is completed, the output indication [DN] will be ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN196 P<\/p>\n<p>MFSysCAMGen<\/p>\n<\/td>\n<td>\n<p>Cam generate (MFSysCAMGen)<\/p>\n<\/td>\n<td>\n<p>FUN196 P<\/p>\n<p>MFSysCAMGen<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Mode 0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-337.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>D<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-338.png\" \/><\/p>\n<\/td>\n<td rowspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-339.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MFSysCAMGen ( EN:= M1000, ID:= 1, Md:= 0, D:= R1000, L:= R998, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003);<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CAM<\/p>\n<\/td>\n<td>\n<p>Cam Parameter<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-340.png\" \/><\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-341.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M1000 is from OFF to ON, the cam is generated according to the current Fun196 number (ID: cam number 1, Md: mode 0, D: setting the cam generation parameters from R1000, L: 2-stage cam curve).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-21  Axis Movement (MFAxMov)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN197 D P<\/p>\n<p>MFAxMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Axis Movement<\/p>\n<\/td>\n<td>\n<p>FUN197 D P<\/p>\n<p>MFAxMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-342.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: EtherCAT control axis<\/p>\n<p>MD: Operating mode<\/p>\n<p>PS: Target position<\/p>\n<p>V: Speed<\/p>\n<p>A: Acceleration<\/p>\n<p>D: Deceleration<\/p>\n<p>SA: S acceleration curve %<\/p>\n<p>SD: S deceleration curve%<\/p>\n<p>DR: Direction<\/p>\n<p>BF: Speed continuous mode <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16\/1001~1016<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ps<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>V<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/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><\/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><\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>SD<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BF<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~5<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN197 D P<\/p>\n<p>MFAxMov<\/p>\n<\/td>\n<td>\n<p>Axis Movement<\/p>\n<\/td>\n<td>\n<p>FUN197 D P<\/p>\n<p>MFAxMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>S EtherCAT control axis: EtherCAT_ axis number 1~16<\/p>\n<p>MD operation mode: 0 absolute, 1 relative<\/p>\n<p>PS target position: positive and negative numbers, including the [decimal point position] of the [motion axis setting] in the [motion control]<\/p>\n<p>([Axis unit] set mm, [Decimal point position] set 0.001, PS: DR0 = 1000 is equal to 1.000mm)<\/p>\n<p>V speed: positive number (a real number greater than zero), including the [decimal point position] of the [motion axis setting] in the [motion control]<\/p>\n<p>A Acceleration: positive number (a real number greater than zero), including the [decimal point position] of the [motion axis setting] in the [motion control]<\/p>\n<p>D Deceleration: positive number (a real number greater than zero), including the [decimal point position] of the [motion axis setting] in the [motion control]<\/p>\n<p>SA S acceleration curve %: positive integer, 0~1000 \u2030<\/p>\n<p>SD S deceleration curve %: positive integer, 0~1000 \u2030<\/p>\n<p>DR direction: 1 positive direction, 2 negative direction<\/p>\n<p>BF: Speed \u200b\u200bcontinuous mode: 0 executes the current command immediately, 1 waits for the end of the previous command, 2 selects the lower speed continuous, 3 selects the previous command speed continuous, 4 selects the current command speed continuous, 5 selects the higher speed continuous<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun197 executes the axis position control.<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, Fun197 stops the axis position control and resets all output indications.<\/p>\n<ul>\n<li>In axis position control, if the update parameter [UPD] becomes 1, this command will immediately update the position control parameters (S, PS, V, A, D, SA, SD, DR).<\/li>\n<li>When the axis position is under control, the output indicator [ACT] ON.<\/li>\n<li>During axis position control, if an error occurs, the output indication [ERR] will be ON.<\/li>\n<li>When the axis position control is completed, the output indication [DN] will be ON.<\/li>\n<li>When updating the position control parameters is completed, the output indication [UPD] ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<ul>\n<li>When M1000 is from OFF\u2192ON, according to the curr<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/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\/mplc-m07-en-07\/mplc-m07-en-07-343.png\" \/><\/p>\n<\/td>\n<td>\n<p>MFAxMov_D( EN:= M0, UPD_in:= M1, S:= 1, MD:= 0, Ps:= R1000, V_n:= R1002, A:= R1004, D:= R1004, SA:= R1006, SD:= R1006, DR:= R1, BF:= 0, ACT=&gt; M2, ERR=&gt; M3, DN=&gt; M4, UPD_out=&gt; M5);<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Axis Parameter Setting <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-344.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 is from OFF\u2192ON, according to the current Fun197 parameters (S: EtherCAT axis 1, MD: Absolute position, PS: Move to 500.000mm, V: Velocity 80.000mm\/s, A: Acceleration 10000.000 mm\/s^2, D: Deceleration 10000.000 mm\/s^2, SA: S Acceleration Curve 0.0%, SD: S Deceleration Curve 0.0%, DR: Forward Direction, BF: Execute current command immediately) to execute position control. <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-345.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><strong><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-346.png\" \/>Interrupt Constant Feed<\/strong><\/p>\n<p><strong><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-347.png\" \/><\/strong><\/p>\n<ul>\n<li>Using two Fun197 to implement an interrupt constant feed application.<\/li>\n<li>When M0 is from OFF\u2192ON, according to the first Fun197 parameters (S: EtherCAT axis 1, MD: Infinite distance mode, PS: Meaningless, set to 0, V: Velocity 80.000mm\/s, A: Acceleration 10000.000 , D: Deceleration 10000.000 , SA: S Acceleration Curve 0.0%, SD: S Deceleration Curve 0.0%, DR: Forward Direction, BF: Execute current command immediately) to execute position control. <\/li>\n<li>When M6 is from OFF\u2192ON, according to the second Fun197 parameters (S: EtherCAT axis 1, MD: Relative position, PS: Move to 50.000mm, V: Velocity 15.000mm\/s, A: Acceleration 10000.000 , D: Deceleration 10000.000 , SA: S Acceleration Curve 0.0%, SD: S Deceleration Curve 0.0%, DR: Forward Direction, BF: Execute current command immediately) to execute position control, that is, interrupt constant feed. <\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-348.png\" \/><\/p>\n<p>The cursor range is set to the interrupt constant feed distance in PS(register R1008).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-22  Mapping Table Setting (MFMapTbPrm)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN198 P<\/p>\n<p>MFMapTbPrm<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Mapping Table Setting (MFMapTbPrm)<\/p>\n<\/td>\n<td>\n<p>FUN198 P<\/p>\n<p>MFMapTbPrm<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-349.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Gp: Mapping table group number<\/p>\n<p>N: Mapping start table number<\/p>\n<p>L: Mapping continuous length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Gp<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>N<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~1024<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~1024<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>[Fun198 Write Mapping Table] is used to change a single or a small number of motion control parameters. If you need to read or write a large number of motion control parameters, you can use [Fun188 Recipe Read] and [Fun189 Recipe Write].<\/li>\n<li>Operands<\/li>\n<\/ul>\n<p>Gp mapping table group number: group number 1~16, 0 means all groups.<\/p>\n<p>N Mapping table start table number: mapping table number 1~1024, 0 means the entire mapping table<\/p>\n<p>L Map Consecutive Length: Number of Consecutive Map Items<\/p>\n<ul>\n<li>When the execution control [EN] is triggered by the upper differential, Fun198 will map (write) the PLC temporary register to the motion control parameters.<\/li>\n<\/ul>\n<p>When the execution control [EN] is triggered by the lower differential, all output indications are reset.<\/p>\n<ul>\n<li>When the mapping is being written, the output indication [ACT] ON.<\/li>\n<li>When the mapping is being written, if an error occurs, the output indication [ERR] will be ON.<\/li>\n<li>When the mapping is written in, the output indication [DN] will be ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN198 P<\/p>\n<p>MFMapTbPrm<\/p>\n<\/td>\n<td>\n<p>Mapping Table Setting (MFMapTbPrm)<\/p>\n<\/td>\n<td>\n<p>FUN198 P<\/p>\n<p>MFMapTbPrm<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-350.png\" \/> <\/p>\n<\/td>\n<td>\n<p>MFMapTbPrm ( EN:= M1000, Gp:= 1, N:= 1, L:= 2, ACT=&gt; M1001, ERR=&gt; M1002, DN=&gt; M1003);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Mapping Table<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-351.png\" \/><\/p>\n<p>Motion Axis Setting Table<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-352.png\" \/><\/p>\n<ul>\n<li>When M1000 is from OFF to ON, according to the current Fun198 parameters (Gp 1: mapping table 1 (1: PM), N: starting from the first line of the mapping table (1: PM1), L: length 1) to execute mapping table writing, It can be seen from the motion axis setting table that the JOG speed has been modified to 2.000mm\/s^2, and the inch movement distance has been modified to 6.000mm.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-23  Real Axis to Virtual Axis (MFSysSetVirt)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN235 P<\/p>\n<p>MFSysSetVirt<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Real Axis to Virtual Axis<\/p>\n<\/td>\n<td>\n<p>FUN235 P<\/p>\n<p>MFSysSetVirt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-353.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operand<\/p>\n<p>AX: Axis number to be converted<\/p>\n<p>EN: Trigger command<\/p>\n<p>ACT: Acting<\/p>\n<p>ERR: Conversion error<\/p>\n<p>DN: Execution complete<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D11999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~16<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>This command is to convert real axis into virtual axis.<\/li>\n<li>Make sure the motion control system is in stop state before use, if it is in initialization state, ERR will output 1.<\/li>\n<li>If you need to stop the initialized system, you can refer to the instruction of FUN177 stop all motion flows.<\/li>\n<li>For details of this command, please refer to the instructions in the motion control manual.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-354.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When enable M0, the motion controller will convert axis 1 to virtual axis.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-24  EtherCAT SDO Read (MFSDOR)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun236 P<\/p>\n<p>MFSDOR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>EtherCAT SDO Read<\/p>\n<\/td>\n<td>\n<p>Fun236 P<\/p>\n<p>MFSDOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Ladder Symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-355.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operands<\/p>\n<p>S\t\t: Slave Number<\/p>\n<p>I\t\t: Index<\/p>\n<p>SI\t\t: Sub-index<\/p>\n<p>LN\t: Length<\/p>\n<p>EC\t: Register for error code<\/p>\n<p>D\t\t: Data Register (DWORD)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>I<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>SI<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>LN<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>EC<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>S\t: Slave Number in EtherCAT<\/p>\n<p>I\t\t: Index of parameter in slave memory<\/p>\n<p>SI\t: Sub-index of parameter in slave memory<\/p>\n<p>LN\t: Length of the parameter<\/p>\n<p>EC\t: Register for error code<\/p>\n<p>D\t: Data Register (DWORD)<\/p>\n<ul>\n<li>When execution control (EN) is triggered in upper edge, the function will be executed for SDO reading.<\/li>\n<li>When the function is in operating, the coil ACT will be set to ON.<\/li>\n<li>When the function is in error, the coil ERR will be set to ON.<\/li>\n<li>When the function is finished, the coil DN will be set to ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Fun236 P<\/p>\n<p>MFSDOR<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>EtherCAT SDO Read<\/p>\n<\/td>\n<td>\n<p>Fun236 P<\/p>\n<p>MFSDOR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-356.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>Assume we want to read the status word of slave 1. The parameters will be: S = 1, I = 0x6041, SI = 0, LN = 2. After trigger the pin EN, the status word will be showed at R10 (D = R10).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-25  EtherCAT SDO Write (MFSDOW)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun237 P<\/p>\n<p>MFSDOW<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>EtherCAT SDO Write<\/p>\n<\/td>\n<td>\n<p>Fun237 P<\/p>\n<p>MFSDOW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder Symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-357.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operands<\/p>\n<p>S\t\t: Slave Number<\/p>\n<p>I\t\t: Index<\/p>\n<p>SI\t\t: Sub-index<\/p>\n<p>LN\t: Length<\/p>\n<p>EC\t: Register for error code<\/p>\n<p>D\t\t: Data Register (DWORD)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/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>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>I<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>SI<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>LN<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>EC<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun237 P<\/p>\n<p>MFSDOW<\/p>\n<\/td>\n<td>\n<p>EtherCAT SDO Write<\/p>\n<\/td>\n<td>\n<p>Fun237 P<\/p>\n<p>MFSDOW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>S\t: Slave Number in EtherCAT<\/p>\n<p>I\t\t: Index of parameter in slave memory<\/p>\n<p>SI\t: Sub-index of parameter in slave memory<\/p>\n<p>LN\t: Length of the parameter<\/p>\n<p>EC\t: Register for error code<\/p>\n<p>D\t: Data Register (DWORD)<\/p>\n<ul>\n<li>When execution control (EN) is triggered in upper edge, the function will be executed for SDO writing.<\/li>\n<li>When the function is in operating, the coil ACT will be set to ON.<\/li>\n<li>When the function is in error, the coil ERR will be set to ON.<\/li>\n<li>When the function is finished, the coil DN will be set to ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun237 P<\/p>\n<p>MFSDOW<\/p>\n<\/td>\n<td>\n<p>EtherCAT SDO Write<\/p>\n<\/td>\n<td>\n<p>Fun237 P<\/p>\n<p>MFSDOW<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Assume we want to write the servo data of slave 1 as 0x1011. The data address in slave 1 is 0x3000. The parameters will be: S = 1, I = 0x3000, SI = 0, LN = 2, R10 = 0x1011. After trigger the pin EN, you can use FUN236 to read the parameter or use software tool of servo to check the data is rewritten or not.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-358.png\" \/>     <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-359.png\" \/><\/p>\n<ul>\n<li>After executing the instruction,user can use the SDO read instruction for checking, or check through the drive software to see if the parameter has been written.<img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-360.png\" \/>    <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-361.png\" \/><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-26  Linear Interpolation (MFAxLMov)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun238 D P<\/p>\n<p>MFAxLMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Linear Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun238 D P<\/p>\n<p>MFAxLMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder Symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-362.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operands<\/p>\n<p>TAX\t\uff1a\tTotal Axis Number<\/p>\n<p>MD\t\uff1a\tOperation Mode<\/p>\n<p>DR\t\uff1a\tDirection<\/p>\n<p>BF\t\uff1a\tContinuous Mode<\/p>\n<p>D\t\t\uff1a\tParameter Register Start Address<\/p>\n<p>EC\t\uff1a\tRegister for Error code<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>TAX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BF<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~5<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>EC<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>TAX\t(Total Axis Number)\t\t: Axes number in movement &#8211; 1 ~ 4<\/p>\n<p>MD\t(Operation Mode)\t\t: 0 &#8211; Absolute Positioning, 1 \u2013 Relative Positioning.<\/p>\n<p>DR\t(Direction)\t\t\t: 1 \u2013 Positive, 2 \u2013 Negative.<\/p>\n<p>BF\t(Continuous Mode)\t\t: 0: Stop Current Movement<\/p>\n<p>1: Wait Current Mov Finish<\/p>\n<p>2: Continue with Lower Speed<\/p>\n<p>3: Continue with Current Speed<\/p>\n<p>4: Continue with New Speed<\/p>\n<p>5: Continue with higher Speed<\/p>\n<p>D\t\t\t\t\t\t: First Register Address of Data.<\/p>\n<p>EC\t\t\t\t\t\t: Register for Error Code.<\/p>\n<ul>\n<li>When execution control (EN) is triggered in upper edge, the Fun238 will be executed for linear interpolation.<\/li>\n<\/ul>\n<p>When execution control (EN) is triggered in lower edge, the Fun238 will be stopped, and all the coils will be reset.<\/p>\n<ul>\n<li>When the function is in operating, if the update parameter is trigger in upper edge, current value of in the parameter D and the value DR will be updated immediately. <\/li>\n<li>When the function is in operating, the coil ACT will be set to ON.<\/li>\n<li>When the function is in error, the coil ERR will be set to ON.<\/li>\n<li>When the function is finished, the coil DN will be set to ON.<\/li>\n<li>When the parameter update is success, the coil UPDN will be set to ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"4\">\n<p><strong>Motion data in parameter D:<\/strong><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register Address<\/p>\n<\/td>\n<td>\n<p>Parameter<\/p>\n<\/td>\n<td>\n<p>Date Type<\/p>\n<\/td>\n<td>\n<p>Note<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Main Axis<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Axis 2<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Interpolation Axis<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Axis 3<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Interpolation Axis<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+3<\/p>\n<\/td>\n<td>\n<p>Axis 4<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Interpolation Axis<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+4<\/p>\n<\/td>\n<td>\n<p>Target Position 1<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+6<\/p>\n<\/td>\n<td>\n<p>Target Position 2<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+8<\/p>\n<\/td>\n<td>\n<p>Target Position 3<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+10<\/p>\n<\/td>\n<td>\n<p>Target Position 4<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+12<\/p>\n<\/td>\n<td>\n<p>Maximum Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1, positive<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+14<\/p>\n<\/td>\n<td>\n<p>Acceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Time from 0 to maximum<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Deceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Time from maximum to 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>Acc S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Range: 0~1000 \u2030<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+19<\/p>\n<\/td>\n<td>\n<p>Dec S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Range: 0~1000 \u2030<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-363.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When M0 is triggered in upper edge, the 2 axis linear interpolation movement will be executed in absolute mode (MD = 0). The parameter is in positive direction (DR = 1), and the movement will interrupt the current movement (BF = 0). <\/li>\n<li>The movement will follow the parameters in R0 to R19 (D = R0) and the error code will be showed in R100 (EC = R100).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun238 D P<\/p>\n<p>MFAxLMov<\/p>\n<\/td>\n<td>\n<p>Linear Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun238 D P<\/p>\n<p>MFAxLMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Motion data<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register Address<\/p>\n<\/td>\n<td>\n<p>Parameter<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>Axis 2<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>Axis 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>Axis 4<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR4<\/p>\n<\/td>\n<td>\n<p>Target Position 1<\/p>\n<\/td>\n<td>\n<p>60000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR6<\/p>\n<\/td>\n<td>\n<p>Target Position 2<\/p>\n<\/td>\n<td>\n<p>80000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR8<\/p>\n<\/td>\n<td>\n<p>Target Position 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR10<\/p>\n<\/td>\n<td>\n<p>Target Position 4<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR12<\/p>\n<\/td>\n<td>\n<p>Maximum Velocity<\/p>\n<\/td>\n<td>\n<p>10000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR14<\/p>\n<\/td>\n<td>\n<p>Acceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR16<\/p>\n<\/td>\n<td>\n<p>Deceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R18<\/p>\n<\/td>\n<td>\n<p>Acc S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R19<\/p>\n<\/td>\n<td>\n<p>Dec S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When entering the target position and maximum velocity on the status page, the decimal point position set in the axis table must be taken into account. In this example, the decimal point position is set to three decimal places, so three zeros must be added.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-27  Arc Interpolation (MFAxCirMov)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder Symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-364.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operands<\/p>\n<p>TAX\t\uff1a\tTotal Axis Number<\/p>\n<p>MD\t\uff1a\tOperation Mode<\/p>\n<p>DR\t\uff1a\tDirection<\/p>\n<p>BF\t\uff1a\tContinuous Mode<\/p>\n<p>D\t\t\uff1a\tParameter Register Start Address<\/p>\n<p>EC\t\uff1a\tRegister for Error code<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>TAX<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>2~3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1~2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BF<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~5<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>EC<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td>\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Descriotion<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>TAX\t(Total Axis Number)\t\t: Axes number in movement &#8211; 2 ~ 3<\/p>\n<p>MD\t(Operation Mode)\t\t: 0 &#8211; Absolute Positioning, 1 \u2013 Relative Positioning.<\/p>\n<p>DR\t(Direction)\t\t\t: 1 \u2013 Positive, 2 \u2013 Negative.<\/p>\n<p>BF\t(Continuous Mode)\t\t: 0: Stop Current Movement<\/p>\n<p>1: Wait Current Mov Finish<\/p>\n<p>2: Continue with Lower Speed<\/p>\n<p>3: Continue with Current Speed<\/p>\n<p>4: Continue with New Speed<\/p>\n<p>5: Continue with higher Speed<\/p>\n<p>D\t\t\t\t\t\t: First Register Address of Data.<\/p>\n<p>EC\t\t\t\t\t\t: Register for Error Code.<\/p>\n<ul>\n<li>When execution control (EN) is triggered in upper edge, the Fun239 will be executed for arc interpolation.<\/li>\n<\/ul>\n<p>When execution control (EN) is triggered in lower edge, the Fun239 will be stopped, and all the coils will be reset.<\/p>\n<ul>\n<li>When the function is in operating, if the update parameter is trigger in upper edge, current value of in the parameter D and the value DR will be updated immediately. <\/li>\n<li>When the function is in operating, the coil ACT will be set to ON.<\/li>\n<li>When the function is in error, the coil ERR will be set to ON.<\/li>\n<li>When the function is finished, the coil DN will be set to ON.<\/li>\n<li>When the parameter update is success, the coil UPDN will be set to ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td>\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><strong>Motion data in parameter D:<\/strong><\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register Address<\/p>\n<\/td>\n<td>\n<p>Parameter<\/p>\n<\/td>\n<td>\n<p>Data Type<\/p>\n<\/td>\n<td>\n<p>Note<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+0<\/p>\n<\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+1<\/p>\n<\/td>\n<td>\n<p>Axis 2<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+2<\/p>\n<\/td>\n<td>\n<p>Axis 3<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+3<\/p>\n<\/td>\n<td>\n<p>Target Position 1<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+5<\/p>\n<\/td>\n<td>\n<p>Target Position 2<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+7<\/p>\n<\/td>\n<td>\n<p>Target Position 3<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+9<\/p>\n<\/td>\n<td>\n<p>Maximum Velocity<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1, positive<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+11<\/p>\n<\/td>\n<td>\n<p>Acceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Time from 0 to maximum<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+13<\/p>\n<\/td>\n<td>\n<p>Deceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Time from maximum to 0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+15<\/p>\n<\/td>\n<td>\n<p>Acc S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Range: 0~1000 \u2030<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+16<\/p>\n<\/td>\n<td>\n<p>Dec S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>Range: 0~1000 \u2030<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+17<\/p>\n<\/td>\n<td>\n<p>Circular (Arc) Mode<\/p>\n<\/td>\n<td>\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>0: Border, mode,<\/p>\n<p>1: Center, Clockwise,<\/p>\n<p>2: Center, Counterclockwise,<\/p>\n<p>3: Radius, Clockwise,<\/p>\n<p>4: Radius, Counterclockwise,<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+18<\/p>\n<\/td>\n<td>\n<p>X Coordinate \/ Radius<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+20<\/p>\n<\/td>\n<td>\n<p>Y Coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R+22<\/p>\n<\/td>\n<td>\n<p>Z Coordinate<\/p>\n<\/td>\n<td>\n<p>DWORD<\/p>\n<\/td>\n<td>\n<p>Decimal point of Axis 1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-365.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When M0 is triggered in upper edge, the 2 axis arc interpolation movement will be executed in relative mode (MD = 1). The parameter is in positive direction (DR = 1), and the movement will interrupt the current movement (BF = 0). <\/li>\n<li>The movement will follow the parameters in R0 to DR22 (D = R0) and the error code will be showed in R100 (EC = R100).<\/li>\n<li>Motion data<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register Address<\/p>\n<\/td>\n<td>\n<p>Parameter<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>Axis 2<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>Axis 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR3<\/p>\n<\/td>\n<td>\n<p>Target Position 1<\/p>\n<\/td>\n<td>\n<p>100000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR5<\/p>\n<\/td>\n<td>\n<p>Target Position 2<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR7<\/p>\n<\/td>\n<td>\n<p>Target Position 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR9<\/p>\n<\/td>\n<td>\n<p>Maximum Velocity<\/p>\n<\/td>\n<td>\n<p>20000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR11<\/p>\n<\/td>\n<td>\n<p>Acceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR13<\/p>\n<\/td>\n<td>\n<p>Deceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R15<\/p>\n<\/td>\n<td>\n<p>Acc S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R16<\/p>\n<\/td>\n<td>\n<p>Dec S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R17<\/p>\n<\/td>\n<td>\n<p>Circular (Arc) Mode<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR18<\/p>\n<\/td>\n<td>\n<p>X Coordinate \/ Radius<\/p>\n<\/td>\n<td>\n<p>50000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR20<\/p>\n<\/td>\n<td>\n<p>Y Coordinate<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR22<\/p>\n<\/td>\n<td>\n<p>Z Coordinate<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td>\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>When entering the target position, maximum velocity and X coordinate \/ radius on the status page, the decimal point position set in the axis table must be taken into account. In this example, the decimal point position is set to three decimal places, so three zeros must be added.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-366.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td>\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><strong>Combining the use of Fun238 and Fun239\t<\/strong><\/p>\n<p><strong><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-367.png\" \/><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-368.png\" \/><\/strong><\/p>\n<ul>\n<li>When M0 of Fun238 is triggered in upper edge, the 2 axis linear interpolation movement will be executed in absolute mode (MD = 1). The parameter is in positive direction (DR = 1), and the movement will interrupt the current movement (BF = 0).<\/li>\n<li>Motion data<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register Address<\/p>\n<\/td>\n<td>\n<p>Parameter<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>Axis 2<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>Axis 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>Axis 4<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR4<\/p>\n<\/td>\n<td>\n<p>Target Position 1<\/p>\n<\/td>\n<td>\n<p>40000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR6<\/p>\n<\/td>\n<td>\n<p>Target Position 2<\/p>\n<\/td>\n<td>\n<p>30000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR8<\/p>\n<\/td>\n<td>\n<p>Target Position 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR10<\/p>\n<\/td>\n<td>\n<p>Target Position 4<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR12<\/p>\n<\/td>\n<td>\n<p>Maximum Velocity<\/p>\n<\/td>\n<td>\n<p>10000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR14<\/p>\n<\/td>\n<td>\n<p>Acceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR16<\/p>\n<\/td>\n<td>\n<p>Deceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R18<\/p>\n<\/td>\n<td>\n<p>Acc S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R19<\/p>\n<\/td>\n<td>\n<p>Dec S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M4 of Fun239 is triggered in upper edge, the 2 axis linear interpolation movement will be executed in absolute mode (MD = 1). The parameter is in positive direction (DR = 1), and the movement will interrupt the current movement (BF = 0).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun239D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<td>\n<p>Arc Interpolation<\/p>\n<\/td>\n<td>\n<p>Fun239 D P<\/p>\n<p>MFAxCirMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Motion data<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register Address<\/p>\n<\/td>\n<td>\n<p>Parameter<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R50<\/p>\n<\/td>\n<td>\n<p>Axis 1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R51<\/p>\n<\/td>\n<td>\n<p>Axis 2<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R52<\/p>\n<\/td>\n<td>\n<p>Axis 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR53<\/p>\n<\/td>\n<td>\n<p>Target Position 1<\/p>\n<\/td>\n<td>\n<p>50000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR55<\/p>\n<\/td>\n<td>\n<p>Target Position 2<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR57<\/p>\n<\/td>\n<td>\n<p>Target Position 3<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR59<\/p>\n<\/td>\n<td>\n<p>Maximum Velocity<\/p>\n<\/td>\n<td>\n<p>10000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR61<\/p>\n<\/td>\n<td>\n<p>Acceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR63<\/p>\n<\/td>\n<td>\n<p>Deceleration Time (ms)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R65<\/p>\n<\/td>\n<td>\n<p>Acc S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R66<\/p>\n<\/td>\n<td>\n<p>Dec S curve (\u2030)<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R67<\/p>\n<\/td>\n<td>\n<p>Circular (Arc) Mode<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR68<\/p>\n<\/td>\n<td>\n<p>X Coordinate \/ Radius<\/p>\n<\/td>\n<td>\n<p>25000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR70<\/p>\n<\/td>\n<td>\n<p>Y Coordinate<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DR72<\/p>\n<\/td>\n<td>\n<p>Z Coordinate<\/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\/mplc-m07-en-07\/mplc-m07-en-07-369.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-22-28  Path Movement (MFPathMov)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun240 D P<\/p>\n<p>MFPathMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Path Movement( in development )<\/p>\n<\/td>\n<td>\n<p>Fun240 D P<\/p>\n<p>MFPathMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder Symbol<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-370.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Operands<\/p>\n<p>AX1 \t\uff1a\tAxis 1 Number<\/p>\n<p>AX2\t\uff1a\tAxis 2 Number<\/p>\n<p>AX3\t\uff1a\tAxis 3 Number<\/p>\n<p>PT\t\uff1a\tPath Number<\/p>\n<p>V\t\uff1a\tVelocity<\/p>\n<p>TA\t\uff1a\tAcceleration Time<\/p>\n<p>TD\t\uff1a\tDeceleration Time<\/p>\n<p>SA  \uff1a\tAcceleration S Curve Percentage<\/p>\n<p>SD  \uff1a\tDeceleration S Curve Percentage<\/p>\n<p>EC  \uff1a\tRegister for Error Code<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>Relay and Register<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>WSM<\/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<\/tr>\n<tr>\n<td>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>|<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>|<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>AX1<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AX2<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>AX3<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0~16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PT<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>V<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>TA<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>TD<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/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><\/td>\n<\/tr>\n<tr>\n<td>\n<p>SD<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<tr>\n<td>\n<p>EC<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun240 D P<\/p>\n<p>MFPathMov<\/p>\n<\/td>\n<td>\n<p>Path Movement( in development )<\/p>\n<\/td>\n<td>\n<p>Fun240 D P<\/p>\n<p>MFPathMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Operands<\/li>\n<\/ul>\n<p>AX1: EtherCAT axis number range 1~16<\/p>\n<p>AX2: EtherCAT axis number range 1~16<\/p>\n<p>AX3: EtherCAT axis number range 1~16r<\/p>\n<p>PT: Path Number range 1~10<\/p>\n<p>V: Velocity is positive integer and include the decimal point in the axis table of the main axis<\/p>\n<p>(AX1).<\/p>\n<p>TA: Acceleration time of the interpolation. The unit is milli-second.<\/p>\n<p>TD: Deceleration time of the interpolation. The unit is milli-second.<\/p>\n<p>SA: The percentage of the S curve in acceleration. The range is 0~1000\u2030.<\/p>\n<p>SD: The percentage of the S curve in acceleration. The range is 0~1000\u2030.<\/p>\n<p>EC: Register for Error Code.<\/p>\n<ul>\n<li>When execution control (EN) is triggered in upper edge, the Fun240 will move to the first point of the path.<\/li>\n<\/ul>\n<p>When execution control (EN) is triggered in lower edge, the Fun240 will be stopped, and all the coils will be reset.<\/p>\n<ul>\n<li>When start movement (ACT) is triggered in upper edge, the Fun240 will start the path movement.<\/li>\n<\/ul>\n<p>When start movement (ACT) is triggered in lower edge, the Fun240 will be halt. And the function will be resumed when ACT is back to high level. <\/p>\n<ul>\n<li>When the function is in operating, if the update parameter is trigger in upper edge, current value of in the parameter D and the value DR will be updated immediately. <\/li>\n<li>When the function is in operating, the coil ACT will be set to ON.<\/li>\n<li>When the function is in error, the coil ERR will be set to ON.<\/li>\n<li>When the function is finished, the coil DN will be set to ON.<\/li>\n<li>When the parameter update is success, the coil UPDN will be set to ON.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Fun240 D P<\/p>\n<p>MFPathMov<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Path Movement( in development )<\/p>\n<\/td>\n<td>\n<p>Fun240 D P<\/p>\n<p>MFPathMov<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Requires HMI( in development )<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Ladder<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-371.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>When the EN is triggered in upper edge, the axis 1 and axis 2 will move to the first point of Path number 1. The path velocity and other motion parameters will follow the parameters in function 240.<\/li>\n<li>After the ACT is triggered in upper edge, the path control will start.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-23  Other Instructions (FUN115, FUN258)<\/h3>\n<h4>7-23-1  Data Buffering (DBUF)<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN115P <\/p>\n<p>DBUF<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Data Buffering<\/p>\n<\/td>\n<td>\n<p>FUN115P <\/p>\n<p>DBUF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\DBUF.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-372.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>ID: Expansion module ID<\/p>\n<p>CH: The channel designated for expansion module (0~3)<\/p>\n<p>D: Starting position where the data will be saved.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-127<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CH<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>0-63<\/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><\/td>\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>8 word<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<p>It is used to obtain the data buffered on the module, which is suitable for expansion modules that have analog input and support data buffering function. The buffered data collected through this command will not be limited by the program scan cycle, but will be collected based on the sampling cycle set by the module.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN115P <\/p>\n<p>DBUF<\/p>\n<\/td>\n<td>\n<p>Data Buffering<\/p>\n<\/td>\n<td>\n<p>FUN115P <\/p>\n<p>DBUF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>The data buffer function can be controlled through the relay, and the digital operation value can be stored in the data buffer area to observe the change of the digital operation value.<\/p>\n<p>Use methods and instructions<\/p>\n<p>Each buffer point updates the digital operation value to the data buffer area according to the processing time of the A\/D conversion mode.<\/p>\n<p>Each channel can store up to 600 points\/ch.<\/p>\n<p>Example:<\/p>\n<p>When the cache points are set to 600 and the pre-trigger data points are set to 50:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-373.jpg\" \/><\/p>\n<p>Fig. 137: Example diagram of the data buffering function<\/p>\n<p>Setting and preset value<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Setting<\/p>\n<\/td>\n<td>\n<p>Preset Value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Buffer Points Before Trigger<\/p>\n<\/td>\n<td>\n<p>200<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Buffer Points<\/p>\n<\/td>\n<td>\n<p>600<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table 65: Setting of data buffering function<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN115P <\/p>\n<p>DBUF<\/p>\n<\/td>\n<td>\n<p>Data Buffering<\/p>\n<\/td>\n<td>\n<p>FUN115P <\/p>\n<p>DBUF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>The following table shows how to use the data buffer function:<\/p>\n<p>Run-time Relay Control<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Data Buffer Relay<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<td>\n<p>Setting<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Data Buffer Request Relay<\/p>\n<\/td>\n<td>\n<p>Buffer Request<\/p>\n<\/td>\n<td>\n<p>Off-&gt;On: Start buffering<\/p>\n<p>On-&gt;Off: Suspend buffering<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Data Buffer Trigger Relay<\/p>\n<\/td>\n<td>\n<p>Trigger<\/p>\n<\/td>\n<td>\n<p>Off-&gt;On: Trigger data buffer relay<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Data Buffer Completion Status Relay<\/p>\n<\/td>\n<td>\n<p>Buffer Completion Data<\/p>\n<\/td>\n<td>\n<p>Off-&gt;On: <\/p>\n<p>The specified cache points are completed, and the cache can be read through command 115 (DBUF function).<\/p>\n<p>On-&gt;Off: <\/p>\n<p>Data Buffer Request Relay: On -&gt; Off, Off when the buffering is turned off.<\/p>\n<p>Data Buffer Completion Status Relay: On-&gt;Off-&gt;On, Off when retriggered, until Off-&gt;On after the buffer points are completed.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table 66: Steps to use the data buffering function<\/p>\n<p>After the data buffering is completed, use Fun115 DBUF to read the buffered data stored in the module to the address of the PLC designated register.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-23-2  Tare Weight Deduction Command<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Tare Weight Deduction Command<\/p>\n<\/td>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-374.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>OP: TARESUB<\/p>\n<p>ID: Expansion module ID number (0~N)<\/p>\n<p>CH: The channel position to be deducted (0~N)<\/p>\n<p>SB: The 32BIT value of the tare weight to be deducted <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand <\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OP<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>TARESUB<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>0~64<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CH<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~64<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<td>\n<p>Tare Weight Deduction Command<\/p>\n<\/td>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>To subtract the custom tare weight, you must change the config setting to \u201cdigital mode\u201d. In the \u201clight touch mode\u201d, the current gross weight will be regarded as the tare weight directly deducted.<\/li>\n<li>Removing the fixed tare weight and recalibrating it may benefit from improved accuracy.<\/li>\n<li>When the Tare weight deduction command is enabled, if it is &quot;light touch mode,&quot; it is the automatic parameter setting mode subtracting the current scale reading value.<\/li>\n<li>When the command of tare weight deducting is enabled, if the command mode is set to &quot;digital&quot;, it is the manual parameter setting mode. At this time, the user can set the tare weight to be deducted by himself. When the command to enable tare weight deducting is sent, the command will subtract the corresponding weight according to the parameters set by the user.<\/li>\n<li>When RST OFF-&gt;ON, the setting before control will be restored.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-23-3  Tare Weight Offset Command<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Tare Weight Offset Command<\/p>\n<\/td>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-375.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>OP: TAREZROFFSET<\/p>\n<p>ID: Expansion module ID number (0~N)<\/p>\n<p>CH: The channel position to be deducted (0~N)<\/p>\n<p>WR: Starting register for offset command setting<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand <\/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>WSM<\/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>\n<p>WX0<\/p>\n<p>\u2223<\/p>\n<p>WX1008<\/p>\n<\/td>\n<td>\n<p>WY0<\/p>\n<p>\u2223<\/p>\n<p>WY1008<\/p>\n<\/td>\n<td>\n<p>WM0<\/p>\n<p>\u2223<\/p>\n<p>WM9104<\/p>\n<\/td>\n<td>\n<p>WM9120<\/p>\n<p>\u2223<\/p>\n<p>WM25584<\/p>\n<\/td>\n<td>\n<p>WS0<\/p>\n<p>\u2223<\/p>\n<p>WS3088<\/p>\n<\/td>\n<td>\n<p>T0<\/p>\n<p>\u2223<\/p>\n<p>T1023<\/p>\n<\/td>\n<td>\n<p>C0<\/p>\n<p>\u2223<\/p>\n<p>C1279<\/p>\n<\/td>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R35280<\/p>\n<p>\u2223<\/p>\n<p>R43223<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V\u3001Z<\/p>\n<p>P0~P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>OP<\/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><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>TAREZROFFSET<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>0~64<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CH<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0~64<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<p>WR list:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>WR+0<\/p>\n<\/td>\n<td>\n<p>INA gain<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+1<\/p>\n<\/td>\n<td>\n<p>ADC gain<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+2<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>digital value, 32 bits<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+3<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<td>\n<p>Tare Weight Offset Command<\/p>\n<\/td>\n<td>\n<p>FUN258P <\/p>\n<p>MODCONF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Remove the fixed tare weight. By setting the Instrumentation amplifier gain and ADC gain, it is possible to improve ADC conversion accuracy.<\/li>\n<li>Automatically parameter setting mode set the command mode to 0 and send the command to enable the tare zero function. The module will automatically calculate the appropriate Instrumentation amplifier gain, ADC gain, and Digital value and send it back to the PLC.<\/li>\n<li>User manual setting mode, MD=1, send a command to enable the tare zero function, and the command will be accompanied by the Instrumentation amplifier gain, ADC gain and Digital value set by the user. The Instrumentation amplifier gain is 433.92, 216.96 and 108.48, the ADC gain is 1, 2, 4, 8 and 16, and the Digital value setting range is 1~ 56874 (2.1696 V).<\/li>\n<li>The formula for calculating fixed weight\uff0c<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-376.png\" \/><\/p>\n<ul>\n<li>The suggested formula for ADC\/INA Gain setting\uff0c<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-377.png\" \/><\/p>\n<p>*The tare weight offset command is only supported by the LCR module, not by the LC.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>7-24  Floating Point Instructions (FUN200~220)<\/h3>\n<h4>7-24-1  CONVERSION OF INTEGER TO FLOATING POINT NUMBER <\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN200D P<\/p>\n<p>I\ud83e\udc6aF<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CONVERSION OF INTEGER TO FLOATING POINT NUMBER<\/p>\n<\/td>\n<td>\n<p>FUN200D P<\/p>\n<p>I\ud83e\udc6aF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-378.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting register of Integer to be converted<\/p>\n<p>D: Starting register to store the result of conversion<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S and D operands can be combined with V, Z, P0~P9 indicators for indirect addressing applications<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>16\/32-bit<\/p>\n<p>+\/-number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating-point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When the execution control &quot;EN&quot;=1 or from 0\u21921 (P instruction), the integer value data in the S register is converted into floating-point format data, and then stored in the D register.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN200D P<\/p>\n<p>I\ud83e\udc6aF<\/p>\n<\/td>\n<td>\n<p>CONVERSION OF INTEGER TO FLOATING POINT NUMBER<\/p>\n<\/td>\n<td>\n<p>FUN200D P<\/p>\n<p>I\ud83e\udc6aF<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-379.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tags in the label first  -&gt;<\/p>\n<p>IF X0 Then<\/p>\n<p>ItoF( S:= R0, D=&gt; Tag_FlD0);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>\n<ul>\n<li>R0 = 200 \u2192 X0=<\/li>\n<li>After I &gt; F Conversion \u2192 DD0 = 4348000H<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-380.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-2  CONVERSION OF FLOATING POINT NUMBER TO INTEGER<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN201D P<\/p>\n<p>F\ud83e\udc6aI<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CONVERSION OF FLOATING POINT NUMBER TO INTEGER<\/p>\n<\/td>\n<td>\n<p>FUN201D P<\/p>\n<p>F\ud83e\udc6aI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-381.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Starting register of Integer to be converted<\/p>\n<p>D: Starting register to store the result of conversion<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S and D operands can be combined with V, Z, P0~P9 indicators for indirect addressing applications<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)<\/li>\n<li>When the execution control &quot;EN&quot;=1 or from 0\u21921 (P command), the floating-point data in the S register is converted into integer format data and stored in the D register.<\/li>\n<li>If the value exceeds the valid range of destination, then do not carry out this instruction, and set the range-error flag \u201cERR\u201d as 1 and the D register will be intact.<\/li>\n<li>Nearest INT (Alt+N) rounds a floating-point number to the nearest integer.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN201D P<\/p>\n<p>F\ud83e\udc6aI<\/p>\n<\/td>\n<td>\n<p>CONVERSION OF FLOATING POINT NUMBER TO INTEGER<\/p>\n<\/td>\n<td>\n<p>FUN201D P<\/p>\n<p>F\ud83e\udc6aI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-382.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first  -&gt;<\/p>\n<p>IF X2 Then<\/p>\n<p>FtoI( S:= Tag_FlR20, D=&gt; D10);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>DR20 = 123.45 \u2192 X2=<\/li>\n<li>After F &gt; I Conversion \u2192 D10 = 007BH<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-383.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-3  FLOATING POINT NUMBER ADDITION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN202 P<\/p>\n<p>FADD<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER ADDITION<\/p>\n<\/td>\n<td>\n<p>FUN202 P<\/p>\n<p>FADD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-384.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Sa: Augend <\/p>\n<p>Sb: Addend <\/p>\n<p>D: Destination register to store the results of the addition<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 to serve indirect addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3-P. 118 (Numbering System).<\/li>\n<li>When addition control &quot;EN&quot;=1 or from 0\u21921 (P instruction), perform floating-point addition operation on Sa and Sb and write the result into D. If the execution result exceeds the expressible range of floating point numbers (+-3.4*10 38)&quot;, the error flag &quot;ERR&quot; is set to 1, and the value of the D register is an invalid value, which should be ignored.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN202 P<\/p>\n<p>FADD<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER ADDITION<\/p>\n<\/td>\n<td>\n<p>FUN202 P<\/p>\n<p>FADD<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-385.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first  -&gt;<\/p>\n<p>IF X0 Then<\/p>\n<p>Tag_FlR20 := Tag_FlR10 + Tag_FlR0 ;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When X0=ON, performs the addition of the data specified at Sa and Sb:<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-386.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-4  FLOATING POINT NUMBER SUBTRACTION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN203 P<\/p>\n<p>FSUB<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER SUBTRACTION<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN203 P<\/p>\n<p>FSUB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-387.png\" \/><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>Sa: Minuend<\/p>\n<p>Sb: Subtrahend<\/p>\n<p>D: Destination register to store the results of the subtraction<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 to serve indirect addressing.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When addition control &quot;EN&quot;=1 or from 0\u21921 (P instruction), perform floating-point addition operation on Sa and Sb and write the result into D. If the execution result exceeds the expressible range of floating point numbers (+-3.4*10 38)&quot;, the error flag &quot;ERR&quot; is set to 1, and the value of the D register is an invalid value, which should be ignored.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN203 P<\/p>\n<p>FSUB<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER SUBTRACTION<\/p>\n<\/td>\n<td>\n<p>FUN203 P<\/p>\n<p>FSUB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-388.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>  -&gt;<\/p>\n<p>IF X0 Then<\/p>\n<p>Tag_FlR10 := Tag_FlR0 &#8211; Tag_FlR4 ;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When X0=ON, performs the subtraction of the data specified at Sa and Sb<\/li>\n<\/ul>\n<p>   <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-389.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-5  FLOATING POINT NUMBER MULTIPLICATION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN204 P<\/p>\n<p>FMUL<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER MULTIPLICATION<\/p>\n<\/td>\n<td>\n<p>FUN204 P<\/p>\n<p>FMUL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-390.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa: Multiplicand<\/p>\n<p>Sb: Multiplier<\/p>\n<p>D: Destination register to store the results of the multiplication<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 to serve indirect addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)-P.118.<\/li>\n<li>When addition control &quot;EN&quot;=1 or from 0\u21921 (P instruction), perform floating-point addition operation on Sa and Sb and write the result into D. If the execution result exceeds the expressible range of floating point numbers (+-3.4*10 38)&quot;, the error flag &quot;ERR&quot; is set to 1, and the value of the D register is an invalid value, which should be ignored.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN204 P<\/p>\n<p>FMUL<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER MULTIPLICATION<\/p>\n<\/td>\n<td>\n<p>FUN204 P<\/p>\n<p>FMUL<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-391.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>  -&gt;<\/p>\n<p>IF M10 Then<\/p>\n<p>Tag_FlR14 := Tag_FlR10 * Tag_FlR12 ;<\/p>\n<p>END_IF<\/p>\n<p>OR<\/p>\n<p>IF M10 Then<\/p>\n<p>FMUL( Sa:= Tag_FlR10, Sb:= Tag_FlR12, D:= Tag_FlR14);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>When M10=    Performs the multiplication of the data specified at Sa and Sb :<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-392.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-6  FLOATING POINT NUMBER DIVISION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN205 P<\/p>\n<p>FDIV<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER DIVISION<\/p>\n<\/td>\n<td>\n<p>FUN205 P<\/p>\n<p>FDIV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-393.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa: Dividend<\/p>\n<p>Sb: Divisor<\/p>\n<p>D: Destination register to store the results of the division<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>Sa, Sb, D may combine with V, Z, P0~P9 to serve indirect addressing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)-P.118.<\/li>\n<li>When addition control &quot;EN&quot;=1 or from 0\u21921 (P instruction), perform floating-point addition operation on Sa and Sb and write the result into D. If the execution result exceeds the expressible range of floating point numbers (+-3.4*10 38)&quot;, the error flag &quot;ERR&quot; is set to 1, and the value of the D register is an invalid value, which should be ignored.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN205 P<\/p>\n<p>FDIV<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER DIVIDION<\/p>\n<\/td>\n<td>\n<p>FUN205 P<\/p>\n<p>FDIV<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-394.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>-&gt;<\/p>\n<p>IF X5 Then<\/p>\n<p>Tag_FlR4 := Tag_FlR0 \/ Tag_FlR2 ;<\/p>\n<p>END_IF<\/p>\n<p>OR<\/p>\n<p>IF X5 Then<\/p>\n<p>FDIV( Sa:= Tag_FlR0, Sb:= Tag_FlR2, D:= Tag_FlR4);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When X5=ON, performs the division of the data specified at Sa and Sb :<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-395.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-7  FLOATING POINT NUMBER COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN206 P<\/p>\n<p>FCMP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN206 P<\/p>\n<p>FCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-396.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Sa: The register to be compared<\/p>\n<p>Sb: The register to be compared<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>Sa, Sb may combine with V, Z, P0~P9 to serve indirect addressing.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)-P.118.<\/li>\n<li>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 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, then set FO2 to 1. If the data of Sa &lt; Sb, then set the FO2 to 1.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN206 P<\/p>\n<p>FCMP<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN206 P<\/p>\n<p>FCMP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-397.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When X0=ON, compares the data of Sa and Sb:<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-398.png\" \/><\/p>\n<ul>\n<li>From the above example, we first assume the data of DR0 is 200.1 and DR2 is 200.2, compare the data when X0 =1 by 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.<\/li>\n<li>If 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 and then combine the result from the relays.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-8  FLOATING POINT NUMBER ZONE COMPARE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN207 P<\/p>\n<p>FZCP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER ZONE COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN207 P<\/p>\n<p>FZCP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-399.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Register for zone comparison<\/p>\n<p>SU: The upper limit value <\/p>\n<p>SL: The lower limit value <\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S, SU, SL may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Su<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>S1<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<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>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)-P.118.<\/li>\n<li>When compare control &quot;EN&quot; = 1 or changes from 0 to 1 (P instruction), compares S with upper limit SU and lower limit SL. If S is between the upper limit and the lower limit (SL\u2266S\u2266SU), then set the inside zone flag &quot;INZ&quot; to 1. If the value of S is greater than the upper limit SU, then set the higher than upper limit flag &quot;S&gt;U&quot; to 1. If the value of S is smaller then the lower limit SL, then set the lower than lower limit flag &quot;S&lt;L&quot; as 1.<\/li>\n<li>The upper limit SU should be greater than the lower limit SL. If SU&lt;SL, then the limit value error flag &quot;ERR&quot; will set to 1, and this instruction will not carry out.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN207 P<\/p>\n<p>FZCP<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER ZONE COMPARE<\/p>\n<\/td>\n<td>\n<p>FUN207 P<\/p>\n<p>FZCP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-400.png\" \/><\/p>\n<\/td>\n<td>\n<p>IF X0 THEN<\/p>\n<p>FZCP( S:= R10, Su:= R12, Sl:= R14, INZ=&gt; Y0, S_Gt_U=&gt; M0, S_Less_L=&gt; M1, ERR=&gt; M2);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>The instruction compares the value of DR10 with the upper and lower limit zones formed by DR12 and DR14. If the values of DR10~DR14 are as shown in the diagram at bottom left, then the result can then be obtained as at the right of this diagram.<\/li>\n<li>If want to get the status of out side the zone, then OUT NOT Y0 may be used, or an OR operation between the two outputs S&gt;U and S&lt;L may be carried out, and move the result to Y0.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-401.png\" \/><\/p>\n<p>X0\uff1d    \ud83e\udc6a FLOATING ZONE COMPARE \ud83e\udc6a Y0 =  1 <\/p>\n<p>                                          Results of execution<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-9  FLOATING POINT NUMBER SQUARE ROOT<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN208 P<\/p>\n<p>FSQR<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER SQUARE ROOT<\/p>\n<\/td>\n<td>\n<p>FUN208 P<\/p>\n<p>FSQR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-402.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source register to be taken square root <\/p>\n<p>D: Register for storing result <\/p>\n<p>(Square root value)<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>Sb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)-P.118.<\/li>\n<li>When the operation control &quot;EN&quot;=1 or from 0\u21921 (P instruction), take the square root value of the S value or the content value of the temporary register designated by S and store it in the temporary register designated by D.<\/li>\n<li>If the value of S is negative, then the error flag &quot;ERR&quot; will be set to 1, and do not execute the operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN208 P<\/p>\n<p>FSQR<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER SQUARE ROOT<\/p>\n<\/td>\n<td>\n<p>FUN208 P<\/p>\n<p>FSQR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-403.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>  -&gt;<\/p>\n<p>IF R_TRIG( S:= X0 ) Then<\/p>\n<p>FSQR( S:= 2520.04, D:=Tag_FlD0 );<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>When X0=  \uff0ctake the square root of S <strong>:<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-404.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-10  SIN TRIGONOMETRIC INSTRUCTION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN209 P<\/p>\n<p>FSIN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>SIN TRIGONOMETRIC INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN209 P<\/p>\n<p>FSIN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-405.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source register to be taken SIN <\/p>\n<p>D: Register for storing result <\/p>\n<p>(SIN value)<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S, D may combine with V, Z, P0~P9 to serve indirect address application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System)-P.118.<\/li>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), take the SIN value of the angle data specified by the S register and store the result into the register D~D+1 in floating point number format. The valid range of the angle is from \u201318000 to +18000, unit in 0.01 degree.<\/li>\n<li>If the S value is not within the valid range, then the S value error flag &quot;ERR&quot; will be set to 1, and do not execute the operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN209 P<\/p>\n<p>FSIN<\/p>\n<\/td>\n<td>\n<p>SIN TRIGONOMETRIC INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN209 P<\/p>\n<p>FSIN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-406.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p> -&gt;<\/p>\n<p>IF R_TRIG( S:= X0 ) Then<\/p>\n<p>FSIN( S:= 3000, D:= Tag_FlR100);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the example above, when X0=ON, store the value of <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-407.png\" \/> in DR100.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-408.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-11  COS TRIGONOMETRIC INSTRUCTION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN210 P<\/p>\n<p>FCOS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>COS TRIGONOMETRIC INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN210 P<\/p>\n<p>FCOS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-409.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source register to be taken COS <\/p>\n<p>D: Register for storing result (COS value)<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S, D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), take the COS value of the angle data specified by the S register and store the result into the register D~D+1 in floating point number format. The valid range of the angle is from \u201318000 to +18000, unit in 0.01 degree.<\/li>\n<li>If the S value is not within the valid range, then the S value error flag &quot;ERR&quot; will be set to 1, and do not execute the operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN210 P<\/p>\n<p>FCOS<\/p>\n<\/td>\n<td>\n<p>COS TRIGONOMETRIC INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN210 P<\/p>\n<p>FCOS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-410.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p> -&gt;<\/p>\n<p>IF R_TRIG( S:= X0 ) Then<\/p>\n<p>FCOS( S:= R0, D:= Tag_FlR200);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the example above, when X0=ON, store the value of <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-411.png\" \/> in DR200.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-412.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-12  TAN TRIGONOMETRIC INSTRUCTION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN211 P<\/p>\n<p>FTAN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>TAN TRIGONOMETRIC INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN211 P<\/p>\n<p>FTAN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-413.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source register to be taken TAN <\/p>\n<p>D: Register for storing result (TAN value)<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>S, D may combine with V, Z, P0~P9 to serve indirect address application <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When the operation control &quot;EN&quot;=1 or from 0\u21921 (P instruction), the S value or the content value of the temporary register designated by S is taken from the TAN function and stored in the temporary register designated by D. The effective range of S is -18000\uff5e+18000, the unit is 0.01 degree.<\/li>\n<li>If the S value is not within the valid range, then the S value error flag &quot;ERR&quot; will be set to 1, and do not execute the operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN211 P<\/p>\n<p>FTAN<\/p>\n<\/td>\n<td>\n<p> TAN TRIGONOMETRIC INSTRUCTION<\/p>\n<\/td>\n<td>\n<p>FUN211 P<\/p>\n<p>FTAN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-414.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>  -&gt;<\/p>\n<p>IF R_TRIG( S:= M0 ) Then<\/p>\n<p>FTAN( S:= R0, D:= Tag_FlD50);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>In the example above, when M0=  store the value of TAN\u222045 into DD50.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-415.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-13  CHANGE SIGN OF THE FLOATING POINT NUMBER<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN212 P<\/p>\n<p>FNEG<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CHANGE SIGN OF THE FLOATING POINT NUMBER<\/p>\n<\/td>\n<td>\n<p>FUN212 P<\/p>\n<p>FNEG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-416.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register to be changed sign<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).\u3002<\/li>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), the sign of the floating point number register specified by D will be toogled.<\/li>\n<li>If value of D was originally negative, the result of taking a negative number will become a positive number.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN212 P<\/p>\n<p>FNEG<\/p>\n<\/td>\n<td>\n<p>CHANGE SIGN OF THE FLOATING POINT NUMBER<\/p>\n<\/td>\n<td>\n<p>FUN212 P<\/p>\n<p>FNEG<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-417.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>-&gt;<\/p>\n<p>IF R_TRIG( S:= X0 ) Then<\/p>\n<p>Tag_FlR0 := &#8211; Tag_FlR0;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The instruction at left negates the value of the DR0 register, and stores it back to DR0.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-418.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-14  FLOATING POINT NUMBER ABSOLUTE VALUE<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN213 P<\/p>\n<p>FABS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT NUMBER ABSOLUTE VALUE<\/p>\n<\/td>\n<td>\n<p>FUN213 P<\/p>\n<p>FABS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-419.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>D: Register to be taken absolute value<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>D may combine with V, Z, P0~P9 to serve indirect address application<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When operation control &quot;EN&quot; = 1 or from 0 to 1 (P instruction), calculate the absolute value of the floating point number register specified by D, and write it back into the original D register.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN213 P<\/p>\n<p>FABS<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT NUMBER ABSOLUTE VALUE<\/p>\n<\/td>\n<td>\n<p>FUN213 P<\/p>\n<p>FABS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-420.png\" \/><\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>This instruction calculates the absolute value of the DR0 register, and stores it back in DR0.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-421.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-15  FLOATING POINT ARC SINE FUNCTION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN218 P<\/p>\n<p>FASIN<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FLOATING POINT ARC SINE FUNCTION<\/p>\n<\/td>\n<td>\n<p>FUN218 P<\/p>\n<p>FASIN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u203bBecause floating-point numbers occupy two registers, when using indirect addressing, it should be noted that odd-numbered registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\218.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-422.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source data or register to be calculated the arc sine value.<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>D: Register for storing the result.<\/p>\n<p>S, D may combine with V, Z, P0~P9 to serve indirect address application.<\/p>\n<p>MD: In order to make the user more intuitive in use, MD can choose the output mode:<\/p>\n<p>MD is 0: the output value is the radius, and the output is a floating point number (32bit).<\/p>\n<p>MD is 1: the output value is an angle, and the output is a positive integer (16bit).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0,1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When the operation control &quot;EN&quot;=1 or from 0\u21921 (P instruction), the S value or the temporary register content value designated by S takes the arc sine function value (unit is Radian) and stores it in D specified register.<\/li>\n<li>Range of S data: -1~ +1; range of D value: -\u03c0\/2 ~ \u03c0\/2 (Unit in radian)<\/li>\n<li>If the value of S exceeds the valid range, or the indirect addressing is wrong, the error flag &quot;ERR&quot; is set to 1, and the contents of the register designated by D will not be updated.<\/li>\n<li>All floating point instructions can\u2019t be executed in interrupt service routine.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN218 P<\/p>\n<p>FASIN<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT ARC SINE FUNCTION, sin<sup>-1<\/sup><\/p>\n<\/td>\n<td>\n<p>FUN218 P<\/p>\n<p>FASIN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-423.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>  -&gt;<\/p>\n<p>IF M0 Then<\/p>\n<p>FSIN( S:= R0, D:= Tag_FlR4);<\/p>\n<p>FASIN_deg( S:= Tag_FlR4, D:= R6);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 = 1, calculate the arc sine value of DR4, then store the degree (MD=1) to DR6.<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-424.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>7-24-16  FLOATING POINT ARC COSINE FUNCTION<\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN219 P<\/p>\n<p>FACOS<\/p>\n<\/td>\n<td colspan=\"3\">\n<p>FLOATING POINT ARC COSINE FUNCTION<\/p>\n<\/td>\n<td>\n<p>FUN219 P<\/p>\n<p>FACOS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>\u203bBecause floating-point numbers occupy two temporary registers, when using indirect addressing, it should be noted that odd-numbered temporary registers cannot be used.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\219.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-425.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S: Source data or register to be calculated the arc cosine value.<\/p>\n<p>The register used by the operand must be an even address. For example, R8 is legal, but R7 is not.<\/p>\n<p>D: Register for storing the result.<\/p>\n<p>S, D may combine with V, Z, P0~P9 to serve indirect address application.<\/p>\n<p>MD: In order to make the user more intuitive in use, MD can choose the output mode:<\/p>\n<p>MD is 0: the output value is the radius, and the output is a floating point number (32bit).<\/p>\n<p>MD is 1: the output value is an angle, and the output is a positive integer (16bit).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/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>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>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R34768<\/p>\n<p>\u2223<\/p>\n<p>R34895<\/p>\n<\/td>\n<td>\n<p>R35024<\/p>\n<p>\u2223<\/p>\n<p>R35151<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td>\n<p>floating point number<\/p>\n<\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/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<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/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<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0,1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<td colspan=\"4\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">\n<ul>\n<li>The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of the format please refer to 5.3 (Numbering System).<\/li>\n<li>When the operation control &quot;EN&quot;=1 or from 0\u21921 (P instruction), the S value or the temporary register content value designated by S takes the arc cosine function value (unit is Radian) and stores it in D specified register.<\/li>\n<li>Range of S data: -1~ +1; range of D value: -\u03c0\/2 ~ \u03c0\/2 (Unit in radian)<\/li>\n<li>If the value of S exceeds the valid range, or the indirect addressing is wrong, the error flag &quot;ERR&quot; is set to 1, and the contents of the register designated by D will not be updated.<\/li>\n<li>All floating point instructions can\u2019t be executed in interrupt service routine.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN219 P<\/p>\n<p>FACOS<\/p>\n<\/td>\n<td>\n<p>FLOATING POINT ARC COSINE FUNCTION<\/p>\n<\/td>\n<td>\n<p>FUN219 P<\/p>\n<p>FACOS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-426.png\" \/><\/p>\n<\/td>\n<td>\n<p>Generate corresponding tag in the label first<\/p>\n<p>  -&gt;<\/p>\n<p>IF M0 Then<\/p>\n<p>FCOS( S:= R0, D:= Tag_FlR4);<\/p>\n<p>FACOS_deg( S:= Tag_FlR4, D:= R6);<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>When M0 = 1, calculate the arc cosine value of DR4, then store the degree (MD=1) to DR6.<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m07-en-07\/mplc-m07-en-07-427.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>7-1 Arithmetical Operation Instructions\uff08FUN24\uff5e33\uff09 7-1-1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-3273","post","type-post","status-publish","format-standard","hentry","category-en-mplc-m07"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3273","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=3273"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3273\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}