{"id":3164,"date":"2026-11-17T18:37:40","date_gmt":"2026-11-17T10:37:40","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m09-zh-03\/"},"modified":"2026-11-17T18:37:40","modified_gmt":"2026-11-17T10:37:40","slug":"mplc-m09-zh-03","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m09-zh-03\/","title":{"rendered":"\u7b2c3\u7ae0 Function Function Block\u7a0b\u5f0f"},"content":{"rendered":"<h2>\u7b2c3\u7ae0 Function\/Function Block\u7a0b\u5f0f<\/h2>\n<p>\u672c\u7ae0\u7bc0\u5c07\u4ecb\u7d39\u5982\u4f55\u5728UperLoigc\u4e2d\u65b0\u589eFCM\u7a0b\u5f0f,\u8a2d\u5b9aFCM\u53c3\u6578\u4ee5\u53ca\u5c6c\u6027\u3002<\/p>\n<h3>3-1 \u958b\u555f\u65b0\u5c08\u6848<\/h3>\n<p>Step 1.\t\u9078\u64c7UperLogic\u5de6\u4e0a\u89d2\u3010\u83dc\u55ae\u3011 &gt; \u3010\u958b\u65b0\u5c08\u6848\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-001.png\" \/><\/p>\n<p>Step 2.\t\u63a5\u8457\u5f48\u51faPLC\u6a21\u7d44\u9078\u578b\u8996\u7a97<\/p>\n<p>\u2460\t\u9078\u64c7\u7522\u54c1\u7cfb\u5217 (\u4e0b\u5716\u9078\u64c7ME\u7cfb\u5217)<\/p>\n<p>\u2461\t\u9078\u64c7\u578b\u865f (\u4e0b\u5716\u9078\u64c7ME3C6-1616)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-002.png\" \/><\/p>\n<p>Step 3.\t\u8a2d\u5b9a\u5c08\u6848\u8cc7\u8a0a<\/p>\n<p>\u2462\t\u9078\u64c7\u5e38\u7528\u7a0b\u5f0f\u8a9e\u8a00(\u4e0b\u5716\u9078\u64c7\u968e\u68af\u5716LD)<\/p>\n<ol>\n<li>\t\u5b8c\u6210<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-003.png\" \/><\/p>\n<p>Step 4.\t\u78ba\u8a8d\u5b8c\u6210\u5f8c\u6703\u986f\u793a\u4e3b\u7a0b\u5f0f\u55ae\u5143\u7de8\u8f2f\u756b\u9762<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-004.png\" \/><\/p>\n<h3>3-2 \u65b0\u589eFCM<\/h3>\n<p>Step 1.\t\u9078\u64c7\u3010UperLogic\u3011\u5de6\u908a\u7684\u3010\u5c08\u6848\u7ba1\u7406\u3011&gt;\u3010\u7a0b\u5f0f\u55ae\u5143\u3011&gt;\u3010FCM\u7a0b\u5f0f\u3011&gt;\u9ede\u64ca\u6ed1\u9f20\u53f3\u9375&gt;\u3010\u65b0\u589eFCM\u7a0b\u5f0f\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-005.png\" \/><\/p>\n<p>Step 2.\t\u63a5\u8457\u5f48\u51fa\u3010FCM\u5c6c\u6027\u3011\u8a2d\u5b9a\u8996\u7a97 &gt; \u8a2d\u5b9a\u3010FCM\u5c6c\u6027\u3011 &gt; \u8a2d\u5b9a\u5b8c\u6210\u5f8c\u6309\u4e0b\u3010OK\u3011\u4f86\u5b8c\u6210\u65b0\u589eFCM\u7a0b\u5f0f\u3002(FCM\u5c6c\u6027\u8acb\u53c3\u80033-4\u7ae0\u7bc0)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-006.png\" \/><\/p>\n<h3>3-3 FCM\u5167\u90e8\u8b8a\u6578<\/h3>\n<p>FCM\u64c1\u6709\u7368\u7acb\u7684\u5167\u90e8\u7e7c\u96fb\u5668\u548c\u5167\u90e8\u66ab\u5b58\u5668\uff0c\u5167\u90e8\u8b8a\u6578\u53ea\u80fd\u4f5c\u70baFCM\u7a0b\u5f0f\u904b\u7b97\u4f7f\u7528\u3002\u90e8\u5206\u7684\u5167\u90e8\u7e7c\u96fb\u5668\u548c\u5167\u90e8\u66ab\u5b58\u5668\u53ef\u4ee5\u8ddf\u5916\u9762\u7684\u7a0b\u5f0f\u55ae\u5143\u66ab\u5b58\u5668\u4f5c\u4ea4\u63db\u8cc7\u6599\u3002\u9019\u4e9b\u53c3\u6578\u5c6c\u65bc\u5340\u57df\u8b8a\u6578\uff0c\u50c5\u5728\u8a72\u529f\u80fd\u584a\uff08FCM\uff09\u5167\u90e8\u6709\u6548\u3002\u6bcf\u6b21\u57f7\u884c\u6642\uff0cFunction Block \u90fd\u6709\u81ea\u5df1\u7684\u7368\u7acb\u8b8a\u6578\u7a7a\u9593\uff0c\u4e0d\u6703\u53d7\u5230\u5176\u4ed6\u90e8\u5206\u7684\u5f71\u97ff\uff0c\u9019\u78ba\u4fdd\u4e86\u529f\u80fd\u584a\u53ef\u4ee5\u91cd\u8907\u4f7f\u7528\u800c\u4e0d\u6703\u5e72\u64fe\u5176\u4ed6\u908f\u8f2f\u3002<\/p>\n<p><strong>[\u6ce8\u610f]\u9032\u884cFCM\u529f\u80fd\u584a\u5c01\u88dd\uff0c\u9700\u6ce8\u610f\u5168\u57df\u66ab\u5b58\u5668\u985e\u578b\u7684\u4f7f\u7528\uff0c\u4f8b\u5982: R\/D\/M\u3002\u907f\u514d\u547c\u53eb\u6642\uff0c\u5728\u5176\u4ed6\u7a0b\u5f0f\u8aa4\u7528\u8207\u64cd\u4f5c\u5230\u91cd\u8986\u7684\u66ab\u5b58\u5668\u4f4d\u7f6e\uff0c\u5c0e\u81f4\u908f\u8f2f\u529f\u80fd\u7570\u5e38\u3002\u82e5\u9700\u5b8c\u6574\u5c01\u88dd\u8a72FCM\uff0c\u5fc5\u9808\u5728FCM\u7a0b\u5f0f\u4e2d\u53ea\u4f7f\u7528\u4e0b\u8ff0\u5404\u985e\u578b\u8b8a\u6578\u3002<\/strong><\/p>\n<p>FCM\u5167\u90e8\u8b8a\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\">\n<p>\u9805\u76ee<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>Bit<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>\u8f38\u5165\u8173\u4f4d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u8f38\u51fa\u8173\u4f4d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_STATIC<\/p>\n<\/td>\n<td>\n<p>\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"4\">\n<p>WORD<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_IN<\/p>\n<\/td>\n<td>\n<p>\u8f38\u5165\u53c3\u6578<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_PARA_OUT<\/p>\n<\/td>\n<td>\n<p>\u8f38\u51fa\u53c3\u6578<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>\u8f38\u5165\u8f38\u51fa\u53c3\u6578\/\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-007.png\" \/><\/p>\n<h3>3-4 FCM\u5c6c\u6027<\/h3>\n<p>FCM\u5c6c\u6027<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-008.png\" \/><\/p>\n<ul>\n<li>\u7a0b\u5f0f\u55ae\u5143\u540d\u7a31 : Function\/Function Block\u6307\u4ee4\u7684\u540d\u7a31\u3002(\u50c5\u80fd\u8f38\u5165\u82f1\u6587\u548c\u6578\u5b57)<\/li>\n<li>\u8a9e\u8a00 : \u7528\u4f86\u7de8\u5bebFunction\/Function Block\u6307\u4ee4\u5167\u90e8\u7a0b\u5f0f\u7684\u8a9e\u8a00\uff0c\u4f8b\u5982LD(Ladder),ST\u2026\u7b49\u3002<\/li>\n<li>\u8f38\u5165\u6578\u91cf : Function\/Function Block\u6307\u4ee4\u7684\u8f38\u5165\u8173\u4f4d\u6578\u91cf\u3002<\/li>\n<li>\u8f38\u51fa\u6578\u91cf : Function\/Function Block\u6307\u4ee4\u7684\u8f38\u51fa\u7dda\u5708\u6578\u91cf\u3002<\/li>\n<li>\u53c3\u6578\u6578\u91cf : Function\/Function Block\u6307\u4ee4\u7684\u8f38\u5165\/\u8f38\u51fa\u53c3\u6578\u6578\u91cf\u3002<\/li>\n<li>+VAR_STATIC : \u65b0\u589e\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/li>\n<li>+VAR_TEMP : \u65b0\u589e\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/li>\n<li>\u8b8a\u6578 :\u8a2d\u5b9a\u524d\u9762\u8a2d\u5b9a\u7684\u8f38\u5165\u8173\u4f4d\u8b8a\u6578,\u8f38\u51fa\u8173\u4f4d\u8b8a\u6578, \u8f38\u5165\u8f38\u51fa\u53c3\u6578\u8b8a\u6578\u548c\u5167\u90e8\u8b8a\u6578\u7684\u6a19\u7c64\u540d\u7a31\u548c\u985e\u578b\u3002<\/li>\n<\/ul>\n<h4>3-4-1 \u8b8a\u6578\u540d\u7a31<\/h4>\n<p>\u9664\u4e86EN\u4f5c\u70baFunction\u6307\u4ee4\u89f8\u767c\u8173\u4f4d\u6240\u4ee5\u56fa\u5b9a\u540d\u7a31\uff0c\u5176\u4ed6\u8b8a\u6578\u90fd\u53ef\u4ee5\u4fee\u6539\u6210\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u7684\u540d\u7a31\u3002\u91dd\u5c0d\u4e0d\u540c\u985e\u578b\u7684\u8b8a\u6578\u4f7f\u7528\u4e0d\u540c\u7684\u80cc\u666f\u984f\u8272\u4f5c\u5340\u5206\u3002<\/p>\n<p>\u8b8a\u6578\u540d\u7a31<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>\u540d\u7a31\u9577\u5ea6<\/p>\n<\/td>\n<td>\n<p>\u80cc\u666f\u984f\u8272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>EN<\/strong><\/p>\n<\/td>\n<td>\n<p>20\u500b\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u5b57\u5143<\/p>\n<\/td>\n<td>\n<p>\u7d05\u8272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>\u8f38\u5165<\/strong><\/p>\n<\/td>\n<td>\n<p>20\u500b\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u5b57\u5143<\/p>\n<\/td>\n<td>\n<p>\u9ec3\u8272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>\u8f38\u51fa<\/strong><\/p>\n<\/td>\n<td>\n<p>20\u500b\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u5b57\u5143<\/p>\n<\/td>\n<td>\n<p>\u7da0\u8272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>\u53c3\u6578<\/strong><\/p>\n<\/td>\n<td>\n<p>20\u500b\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u5b57\u5143<\/p>\n<\/td>\n<td>\n<p>\u85cd\u8272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/strong><\/p>\n<\/td>\n<td>\n<p>20\u500b\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u5b57\u5143<\/p>\n<\/td>\n<td>\n<p>\u767d\u8272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/strong><\/p>\n<\/td>\n<td>\n<p>20\u500b\u82f1\u6587\u548c\u6578\u5b57\u6df7\u5408\u5b57\u5143<\/p>\n<\/td>\n<td>\n<p>\u767d\u8272<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>3-4-2 \u8b8a\u6578\u985e\u5225Class<\/h4>\n<p>\u9019\u4e9b\u53c3\u6578\u5c6c\u65bc\u5340\u57df\u8b8a\u6578\uff0c\u50c5\u5728\u8a72\u529f\u80fd\u584a\uff08Function Block\uff09\u5167\u90e8\u6709\u6548\u3002\u6bcf\u6b21\u57f7\u884c\u6642\uff0cFCM \u90fd\u6709\u81ea\u5df1\u7684\u7368\u7acb\u8b8a\u6578\u7a7a\u9593\uff0c\u4e0d\u6703\u53d7\u5230\u5176\u4ed6\u90e8\u5206\u7684\u5f71\u97ff\uff0c\u9019\u78ba\u4fdd\u4e86\u529f\u80fd\u584a\u53ef\u4ee5\u91cd\u8907\u4f7f\u7528\u800c\u4e0d\u6703\u5e72\u64fe\u5176\u4ed6\u908f\u8f2f\u3002\u5982\u679c\u6709\u5169\u500bFCM\u547c\u53eb\u76f8\u540c\u7684\u908f\u8f2f\uff0c\u5167\u90e8\u53c3\u6578\u662f\u4e0d\u4e92\u76f8\u5f71\u97ff\u7684\u3002<\/p>\n<p>Function\u8b8a\u6578\u8ddf\u4e3b\u7a0b\u5f0f\u55ae\u5143\u4ea4\u4e92\u50b3\u8f38\u7684\u985e\u5225<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>\u985e\u5225<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<td>\n<p>Function\u5716\u793a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>\u7a0b\u5f0f\u55ae\u5143\u89f8\u767cFCM\u57f7\u884c\u7684\u8173\u4f4d<\/p>\n<p>FCM\u57f7\u884c\u6642\u63a5\u6536\u7a0b\u5f0f\u55ae\u5143\u7d66\u7684Bool\u72c0\u614b<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-009.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u5165<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>FCM\u57f7\u884c\u6642\u63a5\u6536\u7a0b\u5f0f\u55ae\u5143\u7d66\u7684Bool\u72c0\u614b<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-010.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u51fa<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u8f38\u51faFCM\u7684\u904b\u7b97\u7d50\u679cBool\u72c0\u614b\u7d66\u7a0b\u5f0f\u55ae\u5143<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-011.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_IN<\/p>\n<\/td>\n<td>\n<p>FCM\u57f7\u884c\u6642\u63a5\u6536\u7a0b\u5f0f\u55ae\u5143\u7d66\u7684\u6578\u503c<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-012.png\" \/><\/p>\n<p>*\u524d\u9762\u6a19\u793a\u3010\uff29\u3011\u8868\u793aIN<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_PARA_OUT<\/p>\n<\/td>\n<td>\n<p>\u8f38\u51faFCM\u904b\u7b97\u7d50\u679c\u7d66\u7a0b\u5f0f\u55ae\u5143<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-013.png\" \/><\/p>\n<p>*\u5f8c\u9762\u6a19\u793a\u3010\uff2f\u3011\u8868\u793aOUT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>FCM\u57f7\u884c\u6642\u5148\u63a5\u6536\u7a0b\u5f0f\u55ae\u5143\u7d66\u7684\u6578\u503c<br \/>FCM\u904b\u7b97\u5b8c\u6210\u6642\u8f38\u51fa\u904b\u7b97\u7d50\u679c\u7d66\u7a0b\u5f0f\u55ae\u5143<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-014.png\" \/><\/p>\n<p>*\u524d\u9762\u6a19\u793a\u3010\uff29\u3011\u8868\u793aIN<br \/>*\u5f8c\u9762\u6a19\u793a\u3010\uff2f\u3011\u8868\u793aOUT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>VAR_STATIC<\/p>\n<\/td>\n<td>\n<p>FCM\u7d50\u675f\u4ecd\u4fdd\u7559\u6578\u503c\u7d66\u4e0b\u4e00\u6b21\u6383\u63cf\u9031\u671f\u7684\u540c\u500bFCM\u57f7\u884c\u6642\u7e7c\u7e8c\u4f7f\u7528<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u96a8FCM\u904b\u7b97\u7d50\u675f\u800c\u81ea\u52d5\u6d88\u6ec5<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><strong>[\u6ce8\u610f]\u9032\u884cFCM\u529f\u80fd\u584a\u5c01\u88dd\uff0c\u9700\u6ce8\u610f\u5168\u57df\u66ab\u5b58\u5668\u985e\u578b\u7684\u4f7f\u7528\uff0c\u4f8b\u5982: R\/D\/M\u3002\u907f\u514d\u547c\u53eb\u6642\uff0c\u5728\u5176\u4ed6\u7a0b\u5f0f\u8aa4\u7528\u8207\u64cd\u4f5c\u5230\u91cd\u8986\u7684\u66ab\u5b58\u5668\u4f4d\u7f6e\uff0c\u5c0e\u81f4\u908f\u8f2f\u529f\u80fd\u7570\u5e38\u3002\u82e5\u9700\u5b8c\u6574\u5c01\u88dd\u8a72FCM\uff0c\u5fc5\u9808\u5728FCM\u7a0b\u5f0f\u4e2d\u53ea\u4f7f\u7528\u4e0a\u8ff0\u5404\u985e\u578b\u8b8a\u6578\u3002<\/strong><\/p>\n<p><strong>STATIC BIT\u3010\u5167\u90e8\u975c\u614b\u8b8a\u6578\u3011<\/strong>: <\/p>\n<ul>\n<li>FCM\u7d50\u675f\u4ecd\u4fdd\u7559\u6578\u503c\u7d66\u4e0b\u4e00\u500b\u6383\u63cf\u9031\u671f\u7684\u540c\u500bFCM\u57f7\u884c\u6642\u7e7c\u7e8c\u4f7f\u7528<\/li>\n<li>\u53ea\u6709\u88ab\u57f7\u884c\u7684\u7b2c\u4e00\u6b21\u57f7\u884c\u521d\u59cb\u5316<\/li>\n<\/ul>\n<p>VAR_STATIC BIT\t: VAR_STATIC (Bool)<\/p>\n<p>VAR_ STATIC WORD\t: \u4f7f\u7528\u53c3\u6578\u7684VAR_PARA_INOUT\u53d6\u4ee3<\/p>\n<p><strong>TEMP BIT\u3010\u5167\u90e8\u81ea\u52d5\u8b8a\u6578\u3011<\/strong>: <\/p>\n<ul>\n<li>\u96a8FCM\u7d50\u675f\u800c\u81ea\u52d5\u6d88\u6ec5<\/li>\n<li>\u6bcf\u6b21\u57f7\u884cFCM\u6642\u90fd\u5148\u88ab\u521d\u59cb\u5316<\/li>\n<\/ul>\n<p>VAR_TEMP BIT\t\t: VAR_TEMP (Bool)<\/p>\n<p>VAR_TEMP WORD\t: VAR_TEMP (16Bit-Int, 16Bit-Uint, 32Bit-Int, 32Bit-Uint, Float)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-015.png\" \/><\/p>\n<p>STATIC BIT &amp; TEMP BIT \u521d\u59cb\u5316\u884c\u70ba\u6642\u5e8f\u5716<\/p>\n<h4>3-4-3 \u8b8a\u6578\u8cc7\u6599\u985e\u578b<\/h4>\n<p>Function\u8b8a\u6578\u7684\u8cc7\u6599\u985e\u578b<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>\u6e96\u4f4d\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bool, Pulse Rising <\/p>\n<\/td>\n<td>\n<p>\u4e0a\u7de3\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u5165<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u51fa<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>16Bit-Int, 16Bit-Uint, 32Bit-Int, 32Bit-Uint, Float<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pointer<\/p>\n<\/td>\n<td>\n<p>\u53c3\u6578Class\u70baVAR_PARA_INOUT\u624d\u80fd\u9078\u64c7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>Bool, 16Bit-Int, 16Bit-Uint, 32Bit-Int, 32Bit-Uint, Float<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>EN\u8a0a\u865f\u89f8\u767c\u985e\u578b<\/p>\n<p><strong>\u6e96\u4f4d\u89f8\u767c(Bool)<\/strong> : EN\u8a0a\u865f\u70baON\u6642\uff0c\u6bcf\u6b21\u6383\u63cf\u9031\u671f\u6383\u63cf\u5230\u90fd\u57f7\u884cFunction\u6307\u4ee4\u3002<\/p>\n<p><strong>\u4e0a\u7de3\u89f8\u767c(Bool, Pulse Rising) <\/strong>: EN\u8a0a\u865f\u7684\u4e0a\u5347\u6cbf\u57f7\u884c\u4e00\u6b21Function\u6307\u4ee4\u3002<\/p>\n<p>\u4e0a\u7de3\u89f8\u767c\u6bd4\u6e96\u4f4d\u89f8\u767c\u66f4\u6709\u6548\u7387\uff0c\u56e0\u70ba\u4e0a\u7de3\u89f8\u767c\u50c5\u5728EN\u8a0a\u865f\u7684\u4e0a\u5347\u6cbf\u57f7\u884c\u4e00\u6b21\u3002\u9019\u53ef\u4ee5\u986f\u8457\u7684\u6e1b\u5c11PLC\u8ca0\u8f09\u3002<\/p>\n<p>\u7bc4\u4f8b: \u4f8b\u59823-5\u7ae0\u7bc0\u7684Function\u7bc4\u4f8b\uff0c\u7576\u4f7f\u7528\u8005\u60f3\u8981\u8a08\u7b97\u6c34\u4f4d\u6df1\u5ea6\u6642\uff0c\u4e0a\u7de3\u89f8\u767c\u53ea\u9700\u57f7\u884cContainer\u51fd\u6578\u4e00\u6b21\u5373\u53ef\u3002\u5982\u679c\u4f7f\u7528\u6e96\u4f4d\u89f8\u767c\uff0cContainer\u51fd\u6578\u5728\u6bcf\u6b21\u6383\u63cf\u5468\u671f\u90fd\u6703\u57f7\u884c\u4e00\u6b21\uff0c\u5728\u6c92\u6709\u6539\u8b8a\u8f38\u5165\u6c34\u91cf\u7684\u60c5\u6cc1\u4e0b\uff0c\u4e0d\u9700\u8981\u4e00\u76f4\u91cd\u8907\u8a08\u7b97\u6c34\u4f4d\u6df1\u5ea6\u3002<\/p>\n<p>\u3010\u6307\u6a19\u578b\u3011\u8207\u3010\u4e00\u822c\u578b\u3011\u7684\u5dee\u7570<\/p>\n<p><strong>\u3010\u6307\u6a19\u578b\u3011VAR_PARA_INOUT<\/strong>(\u8cc7\u6599\u985e\u578b\u70baPointer)<\/p>\n<p>1.\t\u5c07\u53c3\u6578\u7684\u8a18\u61b6\u9ad4<strong>\u4f4d\u5740<\/strong>\u50b3\u905e\u5230FCM\u5167\u90e8\uff08\u50b3\u5740\u547c\u53eb\uff09\u3002<\/p>\n<p>2.\t\u4e0d\u9700\u8981\u521d\u59cb\u503c\uff0c\u56e0\u70baFCM\u7e3d\u662f\u5f9e\u8a18\u61b6\u9ad4\u4f4d\u5740\u8b80\u53d6\u503c\u3002<\/p>\n<p>3.\tFCM\u7a0b\u5f0f\u76f4\u63a5\u6539\u8b8a\u53c3\u6578\u7684\u503c\u3002<\/p>\n<p>*\u53c3\u6578\u4f5c\u70baVAR_PARA_INOUT\u624d\u80fd\u9078\u64c7\u6307\u6a19\u578bPointer\u3002<\/p>\n<p><strong>\u3010\u4e00\u822c\u578b\u3011VAR_PARA_INOUT<\/strong>(\u8cc7\u6599\u985e\u578b\u70ba16Bit-Int, 16Bit-Uint, 32Bit-Int, 32Bit-Uint, Float)<\/p>\n<p>1.\t\u50c5\u5c07\u53c3\u6578\u503c\u8907\u88fd\u5230FCM\u5167\u90e8\u7684\u66ab\u5b58\u5668\uff08\u50b3\u503c\u547c\u53eb\uff09\u3002<\/p>\n<p>2.\t\u53ef\u4ee5\u4f7f\u7528\u521d\u59cb\u503c\u6216\u5f9e\u7a0b\u5f0f\u55ae\u5143\u50b3\u905e\u7684\u503c\u9032\u884c\u521d\u59cb\u5316\u3002<\/p>\n<p>3.\tFCM\u7a0b\u5f0f\u5167\u90e8\u8b8a\u66f4\u5f9e\u53c3\u6578\u50b3\u905e\u7684\u503c\u4e0d\u6703\u5f71\u97ff\u5916\u90e8\u53c3\u6578\u7684\u503c\u3002(FCM\u904b\u884c\u671f\u9593\u4e0d\u6703\u8b8a\u66f4\u5916\u90e8\u53c3\u6578\u7684\u503c\uff0c\u53ea\u6709FCM\u904b\u7b97\u5b8c\u6210\u6642\u5c07\u7d50\u679c\u8f38\u51fa\u624d\u4fee\u6539\u5916\u90e8\u53c3\u6578\u7684\u503c)<\/p>\n<p><strong>\u3010\u8907\u9031\u671f\u6307\u4ee4\u3011<\/strong><\/p>\n<p>\u8907\u9031\u671f\u6307\u4ee4\u5728\u80cc\u666f\u8de8\u6383\u63cf\u9031\u671f\u904b\u884c\uff0c\u4e26\u4e0d\u4ee5\u6383\u63cf\u9031\u671f\u7d50\u675f\u800c\u7d50\u675f\u3002 FCM\u7d50\u675f\u5f8cFCM\u8a18\u61b6\u9ad4\u5c07\u88ab\u7cfb\u7d71\u91cb\u653e\u3002 INOUT\u985e\u578b\u53c3\u6578\u5c07\u5f9e\u9019\u4e9b\u6c92\u88ab\u914d\u7f6e\u7684\u8a18\u61b6\u9ad4\u4e2d\u53d6\u5f97\u4e0d\u78ba\u5b9a\u7684\u503c\u3002\u6240\u4ee5\u8907\u9031\u671f\u6307\u4ee4\u8981\u7528\u3010\u6307\u6a19\u578b\u3011\u4f86\u8de8\u6383\u63cf\u9031\u671f\u904b\u884c\u3002<\/p>\n<p>*\u8acb\u53c3\u8003\u9644\u9304\u4e00(<a href=\"#\u8907\u9031\u671f\u6307\u4ee4\u8868\">\u8907\u9031\u671f\u6307\u4ee4\u8868<\/a>)<\/p>\n<h4>3-4-4 \u9663\u5217\u8b8a\u6578Array<\/h4>\n<p>Array\u70ba\u9663\u5217\u8b8a\u6578\uff0c\u80fd\u5920\u5c07\u4e00\u6bb5\u9577\u5ea6\u7684\u66ab\u5b58\u5668\u50b3\u905e\u5230Function\u6307\u4ee4\u5167\u90e8\u3002<\/p>\n<p>Array<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>\u985e\u5225<\/p>\n<\/td>\n<td>\n<p>Array<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u53c3\u6578\u6578\u91cf<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>PAR [0\u2026199] <\/p>\n<\/td>\n<td>\n<p>\u6700\u5927\u9577\u5ea6\u70ba200<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>*\u9664\u4e86\u9663\u5217\u5c6c\u6027\uff0cArray\u8ddf\u3010\u6307\u6a19\u578b\u3011\u7684\u884c\u70ba\u4e00\u81f4\u3002(\u8acb\u53c3\u80033-4-3\t\u8b8a\u6578_\u8cc7\u6599\u985e\u578b)<\/p>\n<p><strong>\u7bc4\u4f8b:<\/strong><\/p>\n<p>\u8a2d\u5b9a\u4e00\u500b\u53c3\u6578(VAR_PARA_INOUT)\uff0cArray\u8a2d\u70ba\u9577\u5ea65\uff0cFunction\u6307\u4ee4PAR\u586b\u5165R0\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-016.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-017.png\" \/><\/p>\n<p>\u4f7f\u7528EN\u89f8\u767cFunction\u6307\u4ee4\u6642\uff0cFunction\u6307\u4ee4\u6703\u5c07R0\u7684\u6578\u503c\u50b3\u905e\u5230Function\u6307\u4ee4\u5167\u90e8\u7684PAR[0]\uff0cR1\u7684\u6578\u503c\u50b3\u905e\u5230Function\u6307\u4ee4\u5167\u90e8\u7684PAR[1] \uff0cR2\u7684\u6578\u503c\u50b3\u905e\u5230Function\u6307\u4ee4\u5167\u90e8\u7684PAR[2]\u2026\u4f9d\u6b64\u985e\u63a8\u3002\u56e0\u70ba\u662fVAR_PARA_INOUT \u985e\u5225\uff0c\u6240\u4ee5Function\u6307\u4ee4\u904b\u7b97\u5b8c\u6210\u6642\uff0c\u6703\u5c07Function\u6307\u4ee4\u5167\u90e8\u7684PAR[0]\u50b3\u51fa\u56deR0\u3002<\/p>\n<p>EN\u89f8\u767cFunction\u6307\u4ee4\u6642\uff0c\u5c07ARRAY\u50b3\u5165Function\u3002<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u4e3b\u7a0b\u5f0f<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Function \u6307\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td>\n<p>\u2192<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>PAR[0]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td>\n<p>\u2192<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>PAR[1]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td>\n<p>\u2192<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>PAR[2]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td>\n<p>\u2192<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>PAR[3]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/p>\n<\/td>\n<td>\n<p>\u2192<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>PAR[4]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Function\u6307\u4ee4\u904b\u7b97\u5b8c\u6210\u6642\uff0c\u5c07ARRAY\u50b3\u51faFunction\u3002<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u4e3b\u7a0b\u5f0f<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Function \u6307\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>PAR[0]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R1<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>PAR[1]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R2<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>PAR[2]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R3<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>PAR[3]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R4<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u2190<\/p>\n<\/td>\n<td>\n<p>PAR[4]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>3-4-5 \u8b8a\u6578\u521d\u59cb\u503cVariable Initial Value<\/h4>\n<p>FCM\u8b8a\u6578\u521d\u59cb\u503c\u7684\u8a2d\u5b9a<\/p>\n<ul>\n<li>\u8f38\u5165\u8b8a\u6578\u4e0d\u9700\u8981\u6709\u521d\u59cb\u503c\uff0c\u56e0\u70ba\u4e3b\u7a0b\u5f0f\u55ae\u5143\u7e3d\u662f\u50b3\u905e\u4e00\u500b\u6578\u503c\u7d66\u8f38\u5165\u8b8a\u6578\uff08\u66ab\u5b58\u5668\u6216\u5e38\u6578\uff09<\/li>\n<li>\u8f38\u51fa\u8b8a\u6578\u5fc5\u9808\u4f7f\u7528\u521d\u59cb\u503c\u9032\u884c\u521d\u59cb\u5316<\/li>\n<li>\u8f38\u5165\u8f38\u51fa\u8b8a\u6578\u53ef\u4ee5\u7528\u4e3b\u7a0b\u5f0f\u50b3\u905e\u7684\u6578\u503c\u6216\u4f7f\u7528\u521d\u59cb\u503c\u9032\u884c\u521d\u59cb\u5316<\/li>\n<li>\u975c\u614b\u8b8a\u6578\u53ea\u5728\u7b2c\u4e00\u6b21\u57f7\u884cFCM\u6642\u4f7f\u7528\u521d\u59cb\u503c\u521d\u59cb\u5316<\/li>\n<\/ul>\n<p>\u8b8a\u6578\u521d\u59cb\u503c<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>\u985e\u5225<\/p>\n<\/td>\n<td>\n<p>\u521d\u59cb\u503c\u5716\u793a<\/p>\n<\/td>\n<td>\n<p>\u521d\u59cb\u5316\u7684\u6578\u503c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u5165<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u51fa<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-018.png\" \/> \u6bcf\u6b21\u57f7\u884cFCM\u90fd\u521d\u59cb\u5316<\/p>\n<\/td>\n<td>\n<p>\u4f9d\u64da\u8b8a\u6578\u7684\u8cc7\u6599\u985e\u578b\u6c7a\u5b9a\u521d\u59cb\u503c\u7684\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_PARA_OUT<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-019.png\" \/> \u6bcf\u6b21\u57f7\u884cFCM\u90fd\u521d\u59cb\u5316<\/p>\n<\/td>\n<td>\n<p>\u4f9d\u64da\u8b8a\u6578\u7684\u8cc7\u6599\u985e\u578b\u6c7a\u5b9a\u521d\u59cb\u503c\u7684\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-020.png\" \/> \u6bcf\u6b21\u57f7\u884cFCM\u90fd\u521d\u59cb\u5316<\/p>\n<\/td>\n<td>\n<p>\u4f9d\u64da\u8b8a\u6578\u7684\u8cc7\u6599\u985e\u578b\u6c7a\u5b9a\u521d\u59cb\u503c\u7684\u8cc7\u6599\u985e\u578b\u6216\u662f<\/p>\n<p>\u95dc\u9589\u521d\u59cb\u5316\u529f\u80fd\u7531\u4e3b\u7a0b\u5f0f\u55ae\u5143\u50b3\u905e\u7684\u6578\u503c\u9032\u884c\u521d\u59cb\u5316<\/p>\n<p>*\u586b\u5165\u7a7a\u767d\u503c\u8868\u793a[DISABLE], \u4e0d\u9032\u884c\u521d\u59cb\u5316\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5167\u90e8\u975c\u614b\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>VAR_STATIC<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-021.png\" \/> \u53ea\u6709\u7b2c\u4e00\u6b21\u57f7\u884cFCM\u6642\u521d\u59cb\u5316<\/p>\n<\/td>\n<td>\n<p>\u4f9d\u64da\u8b8a\u6578\u7684\u8cc7\u6599\u985e\u578b\u6c7a\u5b9a\u521d\u59cb\u503c\u7684\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5167\u90e8\u81ea\u52d5\u8b8a\u6578<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-022.png\" \/> \u6bcf\u6b21\u57f7\u884cFCM\u90fd\u521d\u59cb\u5316<\/p>\n<\/td>\n<td>\n<p>\u4f9d\u64da\u8b8a\u6578\u7684\u8cc7\u6599\u985e\u578b\u6c7a\u5b9a\u521d\u59cb\u503c\u7684\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>3-5 Function\/Function Block\u6307\u4ee4(\u4f7f\u7528FCM)\u904b\u4f5c\u65b9\u5f0f<\/h3>\n<p>FCM\u6307\u4ee4\u57fa\u672c\u8ddf\u4e00\u822cFunction\u6307\u4ee4\u4e00\u6a23\uff0c\u900f\u904e\u4e0d\u540c\u689d\u4ef6\u89f8\u767cEN\u8173\u4f4d\u57f7\u884cFCM\u6307\u4ee4\uff0cFCM\u6307\u4ee4\u6703\u4f9d\u64da\u8f38\u5165\u8173\u4f4d\u72c0\u614b\u548c\u8f38\u5165\u53c3\u6578\u6578\u503c\u57f7\u884cFCM\u5167\u90e8\u7684Ladder\u7a0b\u5f0f\uff0c\u63a5\u8457\u5c07\u904b\u7b97\u7d50\u679c\u653e\u5230\u8f38\u51fa\u53c3\u6578\u548c\u8f38\u51fa\u8173\u4f4d\uff0c\u7d66\u7a0b\u5f0f\u55ae\u5143\u505a\u5f8c\u7e8c\u7684\u63a7\u5236\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-023.png\" \/><\/p>\n<p>*PA0~PA2\u4f9d\u64daFCM\u7684\u5c6c\u6027\u8a2d\u5b9a\u53ef\u4ee5\u4f5c\u70ba\u8f38\u5165\u53c3\u6578\u6216\u8f38\u51fa\u53c3\u6578\uff0c\u6216\u662f\u540c\u6642\u4f5c\u70ba\u8f38\u5165\u53c3\u6578\u548c\u8f38\u51fa\u53c3\u6578\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-024.png\" \/><\/p>\n<h4>3-5-1 Function Block vs Function<\/h4>\n<p>Function<\/p>\n<p>Function\u6c92\u6709\u5c08\u7528\u8a18\u61b6\u9ad4\u7684\u7a0b\u5f0f\u5340\u584a\uff0c\u6bcf\u6b21\u57f7\u884c\u90fd\u662f\u5f9e\u521d\u59cb\u503c\u958b\u59cb\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-025.png\" \/><\/p>\n<p>Function Block<\/p>\n<p>Function Block \u80fd\u5920\u5c07\u5176\u503c\u6c38\u4e45\u5132\u5b58\u5728\u5c08\u7528\u8a18\u61b6\u9ad4\u7684\u7a0b\u5f0f\u5340\u584a\uff0c\u56e0\u6b64\u5728\u57f7\u884cFunction Blokc\u5f8c\u5b83\u5011\u4ecd\u7136\u53ef\u7528\uff0c\u4e0b\u4e00\u6b21\u57f7\u884c\u53ef\u4ee5\u5ef6\u7e8c\u4e0a\u4e00\u6b21\u7684\u7d50\u679c\u7e7c\u7e8c\u57f7\u884c\u3002\u5c08\u7528\u8a18\u61b6\u9ad4\u70baSTATIC\u53c3\u6578 *\u8acb\u53c3\u80033-4-2\u7ae0\u7bc0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-026.png\" \/><\/p>\n<h3>3-6 Function\u7a0b\u5f0f\u7bc4\u4f8b<\/h3>\n<h4>3-6-1 Water Container<\/h4>\n<p>\u61c9\u7528\u529f\u80fd<\/p>\n<p>\u5728\u5167\u90e8\u9577\u5ea6\u548c\u5bec\u5ea6\u56fa\u5b9a\u7684\u7acb\u65b9\u9ad4\u6c34\u5bb9\u5668\uff0c\u4e00\u500b\u80fd\u5920\u6839\u64da\u8f38\u5165\u6c34\u91cf\u8a08\u7b97\u51fa\u6c34\u6df1\u7684Function\u6307\u4ee4\u3002\u82e5\u8f38\u5165\u6c34\u91cf\u8d85\u904e6000\u55ae\u4f4d\uff0c\u4e0a\u9650\u8b66\u5831\u958b\u555f\u3002\u82e5\u8f38\u5165\u6c34\u91cf\u5c0f\u65bc1000\u55ae\u4f4d\uff0c\u4e0b\u9650\u8b66\u5831\u958b\u555f\u3002<\/p>\n<p>Function\u6307\u4ee4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-027.png\" \/><\/p>\n<p>\u8f38\u5165\/\u8f38\u51fa\u8173\u4f4d\u548c\u53c3\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>\u540d\u7a31<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u5165\u8173\u4f4d<\/p>\n<\/td>\n<td>\n<p>EN.P<\/p>\n<\/td>\n<td>\n<p>\u4e0a\u7de3\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u8f38\u51fa\u8173\u4f4d<\/p>\n<\/td>\n<td>\n<p>HLMT<\/p>\n<\/td>\n<td>\n<p>\u4e0a\u9650\u8b66\u5831<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LLMT<\/p>\n<\/td>\n<td>\n<p>\u4e0b\u9650\u8b66\u5831<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u5165\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>Lvol<\/p>\n<\/td>\n<td>\n<p>\u8f38\u5165\u6c34\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u51fa\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>LDep<\/p>\n<\/td>\n<td>\n<p>\u8a08\u7b97\u7684\u6c34\u6df1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Function \u5c6c\u6027<\/p>\n<p>1\u500b\u8f38\u5165\u6578\u91cf(\u8f38\u5165\u8173\u4f4d)\uff0c2\u500b\u8f38\u51fa\u6578\u91cf(\u8f38\u51fa\u8173\u4f4d)\uff0c2\u500b\u53c3\u6578\u6578\u91cf\uff0c3\u500b\u5167\u90e8\u81ea\u52d5\u8b8a\u6578(VAR_TEMP)\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-028.png\" \/><\/p>\n<p>\u8b8a\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u540d\u7a31<\/p>\n<\/td>\n<td>\n<p>\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<td>\n<p>Array<\/p>\n<\/td>\n<td>\n<p>Class<\/p>\n<\/td>\n<td>\n<p>\u521d\u59cb\u503c<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN.P<\/p>\n<\/td>\n<td>\n<p>Bool; Pulse Rising<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u4e0a\u7de3\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>HLMT<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u6c34\u91cf\u4e0a\u9650\u8b66\u5831<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LLMT<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u6c34\u91cf\u4e0b\u9650\u8b66\u5831<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Lvol<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>DISABLE<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u8f38\u5165\u7684\u6c34\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>LDep<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>DISABLE<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u8a08\u7b97\u7684\u6c34\u6df1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BoxW<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba20<\/p>\n<\/td>\n<td>\n<p>\u5bb9\u5668\u7684\u5bec\u5ea6\u56fa\u5b9a\u70ba20\u55ae\u4f4d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BoxL<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba50<\/p>\n<\/td>\n<td>\n<p>\u5bb9\u5668\u7684\u9577\u5ea6\u56fa\u5b9a\u70ba50\u55ae\u4f4d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TP0<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u8a08\u7b97\u904e\u7a0b\u4e2d\u66ab\u5b58<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Function \u5167\u90e8\u7a0b\u5f0f\u8aaa\u660e<\/p>\n<p>Function\u6307\u4ee4 \u3010Container\u3011\u5167\u90e8FCM\u7a0b\u5f0f<\/p>\n<p><img decoding=\"async\" alt=\"\u4e00\u5f35\u542b\u6709 \u6587\u5b57, \u87a2\u5e55\u64f7\u53d6\u756b\u9762, \u9673\u5217, \u5716\u8868 \u7684\u5716\u7247\n\n\u81ea\u52d5\u7522\u751f\u7684\u63cf\u8ff0\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-029.png\" \/><\/p>\n<p>N000\t\u4f7f\u7528Fun171\u5c07\u8f38\u5165\u7684Lvol(\u6c34\u91cf)\u4f5c\u6bd4\u8f03\uff0c\u8d85\u904e6000\u55ae\u4f4d\u6642\u89f8\u767cHLMT(\u8f38\u51fa\u4e0a\u9650\u8b66\u5831)\u3002<\/p>\n<p>N001\t\u4f7f\u7528Fun172\u5c07\u8f38\u5165\u7684Lvol(\u6c34\u91cf)\u4f5c\u6bd4\u8f03\uff0c\u4f4e\u65bc1000\u55ae\u4f4d\u6642\u89f8\u767cLLMT(\u8f38\u51fa\u4e0b\u9650\u8b66\u5831)\u3002<\/p>\n<p>N002\t\u5982\u679c\u8f38\u5165\u7684Lvol(\u6c34\u91cf)\u6c92\u6709\u8d85\u904eHLMT(\u4e0a\u9650\u8b66\u5831)\u548c\u4f4e\u65bcLLMT(\u4e0b\u9650\u8b66\u5831)\uff0c\u5c07Lvol(\u6c34\u91cf)\u9664\u4ee5\u5bb9\u5668\u7684\u5bec\u5ea6\u548c\u9577\u5ea6\u8a08\u7b97\u51faLDep(\u6c34\u6df1)\uff0c\u4e26\u8f38\u51fa\u7d66\u5916\u9762\u3002<\/p>\n<p>Function \u5167\u90e8\u7a0b\u5f0f_ST\u8a9e\u8a00<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>IF Lvol &gt; 6000 THEN<\/p>\n<p>    HLMT := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>IF Lvol &lt; 1000 THEN<\/p>\n<p>    LLMT := TRUE;<\/p>\n<p>END_IF<\/p>\n<p>IF NOT HLMT AND NOT LLMT THEN<\/p>\n<p>    TP0:= Lvol \/ BoxW;<\/p>\n<p>    LDep:= TP0 \/ BoxL;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u52d5\u4f5c\u8aaa\u660e<\/p>\n<p>Function\u6307\u4ee4 \u3010Container\u3011\u9019\u500bFunction\u7684\u4f7f\u7528\u8aaa\u660e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-030.png\" \/><\/p>\n<p>Step 1.\t\u5728R0\u8f38\u5165Lvol(\u6c34\u91cf)<\/p>\n<p>Step 2.\t\u4f7f\u7528M0\u89f8\u767cFunction\u6307\u4ee4\u7684EN.P (\u4e0a\u7de3\u89f8\u767c\u53ea\u8a08\u7b97\u4e00\u6b21)<\/p>\n<p>Step 3.\tR10\u5c07\u6703\u986f\u793a\u8a08\u7b97\u51fa\u7684LDep(\u6c34\u6df1)\u6216\u662f\u4e0a\u4e0b\u9650\u8b66\u5831(HLMT\/LLMT)\u8f38\u51fa\u8b66\u5831<\/p>\n<p>\u91cd\u8907\u4f7f\u7528<\/p>\n<p>\u5728\u4e3b\u7a0b\u5f0f\u91cd\u8907\u4f7f\u7528Function\u6307\u4ee4 \u3010Container\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-031.png\" \/><\/p>\n<p>N000\t\u8f38\u51651000\u55ae\u4f4d\u6c34\u91cf\uff0c\u8f38\u51fa1\u55ae\u4f4d\u6c34\u6df1<\/p>\n<p>N001\t\u8f38\u51652000\u55ae\u4f4d\u6c34\u91cf\uff0c\u8f38\u51fa2\u55ae\u4f4d\u6c34\u6df1<\/p>\n<p>\u4e92\u4e0d\u76f8\u5e72\u64fe\u904b\u7b97\u7d50\u679c<\/p>\n<h3>3-7 Function Block\u7a0b\u5f0f\u7bc4\u4f8b<\/h3>\n<h4>3-7-1 TV Remote<\/h4>\n<p>\u61c9\u7528\u529f\u80fd<\/p>\n<p>\u4e00\u500b\u4f7f\u7528\u9059\u63a7\u5668\u63a7\u5236\u96fb\u8996\u6a5f\u97f3\u91cf\u7684Function Block\u6307\u4ee4\uff0c\u80fd\u5920\u8a18\u61b6\u4e0a\u6b21\u8abf\u6574\u7684\u97f3\u91cf\u7e7c\u7e8c\u8abf\u6574\u97f3\u91cf\uff0c\u97f3\u91cf\u503c\u7bc4\u570d\u70ba0~10\u3002<\/p>\n<p>Function\u6307\u4ee4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-032.png\" \/><\/p>\n<p>\u8f38\u5165\u8f38\u51fa\u8173\u4f4d\u548c\u53c3\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>\u540d\u7a31<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>\u8f38\u5165\u8173\u4f4d<\/p>\n<\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>\u6e96\u4f4d\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolUp<\/p>\n<\/td>\n<td>\n<p>\u589e\u52a0\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolDn<\/p>\n<\/td>\n<td>\n<p>\u5c07\u4f4e\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u8f38\u51fa\u8173\u4f4d<\/p>\n<\/td>\n<td>\n<p>Max<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u6700\u5927\u503c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mute<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u975c\u97f3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f38\u5165\u8f38\u51fa\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>Volume<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Function Block \u5c6c\u6027<\/p>\n<p>3\u500b\u8f38\u5165\u6578\u91cf(\u8f38\u5165\u8173\u4f4d)\uff0c2\u500b\u8f38\u51fa\u6578\u91cf(\u8f38\u51fa\u8173\u4f4d)\uff0c1\u500b\u53c3\u6578\u6578\u91cf\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-033.png\" \/><\/p>\n<p>\u8b8a\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u540d\u7a31<\/p>\n<\/td>\n<td>\n<p>\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<td>\n<p>Array<\/p>\n<\/td>\n<td>\n<p>Class<\/p>\n<\/td>\n<td>\n<p>\u521d\u59cb\u503c<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u4e0a\u7de3\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolUp<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u589e\u52a0\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolDn<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u5c07\u4f4e\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Max<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u6700\u5927\u503c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mute<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u975c\u97f3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Volume<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>DISABLE<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>DISABLE<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>*\u70ba\u4e86\u80fd\u5920\u8a18\u61b6\u4e0a\u6b21\u97f3\u91cf\uff0c\u9019\u88e1\u7684\u97f3\u91cf\u4f7f\u7528VAR_PARA_INOUT\uff0c\u57f7\u884cFunction Block\u6642\u5f9e\u5916\u90e8\u66ab\u5b58\u5668\u5c07\u4e0a\u4e00\u6b21\u7684\u97f3\u91cf\u8f38\u5165Function Block\uff0cFunction Block\u7d50\u675f\u6642\u5c07\u97f3\u91cf\u8f38\u51fa\u7d66\u5916\u90e8\u66ab\u5b58\u5668\uff0c\u7d66\u4e0b\u4e00\u6b21\u57f7\u884cFunction Block\u6642\u4f7f\u7528\u3002<\/p>\n<p>Function Block \u5167\u90e8\u7a0b\u5f0f\u8aaa\u660e<\/p>\n<p>Function\u6307\u4ee4 \u3010TV Remote\u3011\u5167\u90e8FCM\u7a0b\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-034.png\" \/><\/p>\n<p>N000\tVolUp(\u97f3\u91cf\u589e\u52a0)\u4e0a\u7de3\u89f8\u767cFun15\u589e\u52a0\u97f3\u91cf\uff0c\u5305\u542b\u4e92\u9396\u6a5f\u5236\u3002<\/p>\n<p>N001\tVolDn(\u97f3\u91cf\u964d\u4f4e)\u4e0a\u7de3\u89f8\u767cFun16\u964d\u4f4e\u97f3\u91cf\uff0c\u5305\u542b\u4e92\u9396\u6a5f\u5236\u3002<\/p>\n<p>N002\t\u4f7f\u7528Fun171\u5c07Volume(\u97f3\u91cf)\u4f5c\u6bd4\u8f03\uff0c\u8d85\u904e9\u6642\u89f8\u767cMax(\u97f3\u91cf\u6700\u5927\u503c)\uff0c\u4e26\u7dad\u6301\u97f3\u91cf\u572810\u3002<\/p>\n<p>N003\t\u4f7f\u7528Fun172\u5c07Volume(\u97f3\u91cf)\u4f5c\u6bd4\u8f03\uff0c\u4f4e\u65bc1\u55ae\u4f4d\u6642\u89f8\u767cMute(\u97f3\u91cf\u975c\u97f3)\uff0c\u4e26\u7dad\u6301\u97f3\u91cf\u57280\u3002<\/p>\n<p>Function Block\u5167\u90e8\u7a0b\u5f0f_ST\u8a9e\u8a00<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>IF R_TRIG( S:=VolUp ) THEN<\/p>\n<p>    IF NOT VolDn THEN<\/p>\n<p>       Volume:= Volume+1;<\/p>\n<p>    END_IF<\/p>\n<p>END_IF<\/p>\n<p>IF R_TRIG( S:=VolDn ) THEN<\/p>\n<p>    IF NOT VolUp THEN<\/p>\n<p>        Volume:= Volume-1;<\/p>\n<p>    END_IF<\/p>\n<p>END_IF<\/p>\n<p>if Volume &gt; 9 THEN<\/p>\n<p>    Max:=TRUE;<\/p>\n<p>    Volume:=10;<\/p>\n<p>ELSEIF Volume &lt; 1 THEN<\/p>\n<p>    Mute:=FALSE;<\/p>\n<p>    Volume:=0;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u52d5\u4f5c\u8aaa\u660e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-035.png\" \/><\/p>\n<p>Step 1.\t\u4f7f\u7528VolUp(\u97f3\u91cf\u589e\u52a0)\u6216VolDn(\u97f3\u91cf\u964d\u4f4e)\u589e\u6e1b\u97f3\u91cf<\/p>\n<p>Step 2.\t\u97f3\u91cf\u589e\u52a0\u523010\u6642\uff0c\u7121\u6cd5\u518d\u7e7c\u7e8c\u589e\u52a0\u3002<\/p>\n<p>Step 3.\t\u97f3\u91cf\u964d\u4f4e\u52300\u6642\uff0c\u7121\u6cd5\u518d\u7e7c\u7e8c\u964d\u4f4e\u3002<\/p>\n<p>\u91cd\u8907\u4f7f\u7528<\/p>\n<p>\u5728\u4e3b\u7a0b\u5f0f\u91cd\u8907\u4f7f\u7528Function\u6307\u4ee4 \u3010TV Remote\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-036.png\" \/><\/p>\n<p>N000\t\u63a7\u5236R10\u97f3\u91cf<\/p>\n<p>N001\t\u63a7\u5236R110\u97f3\u91cf<\/p>\n<p>\u4e92\u4e0d\u76f8\u5e72\u64fe\u904b\u7b97\u7d50\u679c<\/p>\n<h4>3-7-2 TV Remote Timer<\/h4>\n<p>\u61c9\u7528\u529f\u80fd<\/p>\n<p>\u4f7f\u7528\u9059\u63a7\u5668\u63a7\u5236\u96fb\u8996\u6a5f\u97f3\u91cf\u7684Function Block\u6307\u4ee4\uff0c\u80fd\u5920\u8a18\u61b6\u4e0a\u4e00\u6b21\u7684\u97f3\u91cf\u7e7c\u7e8c\u8abf\u6574\u97f3\u91cf\uff0c\u8981\u8ddf\u771f\u6b63\u7684\u96fb\u8996\u9059\u63a7\u5668\u4e00\u6a23\uff0c\u5141\u8a31\u4f7f\u7528\u8005\u96a8\u8457\u6309\u9215\u6309\u4e0b\u6642\u9593\u7684\u5ef6\u9577\u800c\u66f4\u5feb\u5730\u589e\u52a0\u97f3\u91cf\uff0c\u97f3\u91cf\u503c\u7bc4\u570d\u70ba0~500\u3002<\/p>\n<p>Function\u6307\u4ee4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-037.png\" \/><\/p>\n<p>\u8f38\u5165\u8f38\u51fa\u8173\u4f4d\u548c\u53c3\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>\u540d\u7a31<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>\u8f38\u5165\u8173\u4f4d<\/p>\n<\/td>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>\u6e96\u4f4d\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolUp<\/p>\n<\/td>\n<td>\n<p>\u589e\u52a0\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolDn<\/p>\n<\/td>\n<td>\n<p>\u5c07\u4f4e\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>\u8f38\u51fa\u8173\u4f4d<\/p>\n<\/td>\n<td>\n<p>Max<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u6700\u5927\u503c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mute<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u975c\u97f3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>\u8f38\u5165\u8f38\u51fa\u53c3\u6578<\/p>\n<\/td>\n<td>\n<p>Volume<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCv1<\/p>\n<\/td>\n<td>\n<p>Fun87 Timer\u8a08\u6642\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCv2<\/p>\n<\/td>\n<td>\n<p>Fun87 Timer\u8a08\u6642\u7528<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Function Block\u5c6c\u6027<\/p>\n<p>3\u500b\u8f38\u5165\u6578\u91cf(\u8f38\u5165\u8173\u4f4d)\uff0c2\u500b\u8f38\u51fa\u6578\u91cf(\u8f38\u51fa\u8173\u4f4d)\uff0c3\u500b\u53c3\u6578\u6578\u91cf\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-038.png\" \/><\/p>\n<p>\u8b8a\u6578<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>\u540d\u7a31<\/p>\n<\/td>\n<td>\n<p>\u8cc7\u6599\u985e\u578b<\/p>\n<\/td>\n<td>\n<p>Array<\/p>\n<\/td>\n<td>\n<p>Class<\/p>\n<\/td>\n<td>\n<p>\u521d\u59cb\u503c<\/p>\n<\/td>\n<td>\n<p>\u8aaa\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>EN<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u4e0a\u7de3\u89f8\u767c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolUp<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u589e\u52a0\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VolDn<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_IN<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>\u5c07\u4f4e\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Max<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u6700\u5927\u503c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Mute<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_SIG_OUT<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf\u975c\u97f3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Volume<\/p>\n<\/td>\n<td>\n<p>16Bit-Int<\/p>\n<\/td>\n<td>\n<p>DISABLE<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>DISABLE<\/p>\n<\/td>\n<td>\n<p>\u97f3\u91cf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCv1<\/p>\n<\/td>\n<td>\n<p>Pointer<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>Fun87 Timer\u8a08\u6642\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCv2<\/p>\n<\/td>\n<td>\n<p>Pointer<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_PARA_INOUT<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>Fun87 Timer\u8a08\u6642\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>BtnP<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Add_S<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Add_M<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Add_L<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_TEMP<\/p>\n<\/td>\n<td>\n<p>\u6bcf\u6b21\u90fd\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>T_200ms<\/p>\n<\/td>\n<td>\n<p>Bool<\/p>\n<\/td>\n<td>\n<p>&#8212;<\/p>\n<\/td>\n<td>\n<p>VAR_STATIC<\/p>\n<\/td>\n<td>\n<p>\u7b2c\u4e00\u6b21\u521d\u59cb\u5316\u70ba0<\/p>\n<\/td>\n<td>\n<p>Fun87 Timer\u8a08\u6642\u8f38\u51fa\u7528<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>*\u70ba\u4e86\u80fd\u5920\u8a18\u61b6\u4e0a\u4e00\u6b21\u97f3\u91cf\uff0c\u9019\u88e1\u7684\u97f3\u91cf\u4f7f\u7528VAR_PARA_INOUT\uff0c\u57f7\u884cFunction Block\u6642\u5f9e\u5916\u90e8\u66ab\u5b58\u5668\u5c07\u4e0a\u4e00\u6b21\u7684\u97f3\u91cf\u8f38\u5165Function Block\uff0cFunction Block\u7d50\u675f\u6642\u5c07\u97f3\u91cf\u8f38\u51fa\u7d66\u5916\u90e8\u66ab\u5b58\u5668\uff0c\u7d66\u4e0b\u4e00\u6b21\u57f7\u884cFunction Block\u6642\u4f7f\u7528\u3002<\/p>\n<p>*\u9019\u908a\u4f7f\u7528\u4e86\u8907\u9031\u671f\u6307\u4ee4Fun87 \u7d2f\u8a08\u8a08\u6642\u5668\uff0c\u70ba\u4e86\u8b93TIMER\u7684\u8a08\u6642\u548c\u8f38\u51fa\u72c0\u614b\u53ef\u4ee5\u5728Function Block\u4e2d\u8de8\u8d8a\u591a\u500b\u6383\u63cf\u6642\u9593\uff0cTIMER\u7684\u8a08\u6642\u7528\u4e86Pointer(VAR_PARA_INOUT)\uff0cTIMER\u7684\u8f38\u51fa\u7528\u4e86VAR_STATIC\u3002<\/p>\n<p>Function Block\u5167\u90e8\u7a0b\u5f0f\u8aaa\u660e<\/p>\n<p>Function\u6307\u4ee4 \u3010TV Remote\u3011\u5167\u90e8FCM\u7a0b\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-039.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-040.png\" \/><\/p>\n<p>N000\t\u5c07VolUp(\u97f3\u91cf\u589e\u52a0)\u548cVolDn(\u97f3\u91cf\u964d\u4f4e)\u4e26\u806f\u6210\u4e00\u500bBtnP\u8a0a\u865f<\/p>\n<p>N001\t\u5728VolUp(\u97f3\u91cf\u589e\u52a0)\u6216VolDn(\u97f3\u91cf\u964d\u4f4e)\u88ab\u63a7\u5236\u6642\uff0c\u4f7f\u7528Fun87\u7522\u751f\u4e00\u500b200ms\u7684\u8108\u885d\u3002<\/p>\n<p>N002\t\u5728VolUp(\u97f3\u91cf\u589e\u52a0)\u6216VolDn(\u97f3\u91cf\u964d\u4f4e)\u88ab\u63a7\u5236\u6642\uff0c\u4f7f\u7528Fun87\u8a08\u6642\u3002<\/p>\n<p>N003\tFun87_TCv2\u8a08\u6642\u52301\u79d2\u6642\u8f38\u51faAdd_S<\/p>\n<p>N004\tFun87_TCv2\u8a08\u6642\u52301.5\u79d2\u6642\u8f38\u51faAdd_M<\/p>\n<p>N005\tFun87_TCv2\u8a08\u6642\u52302\u79d2\u6642\u8f38\u51faAdd_L<\/p>\n<p>N006\tVolUp(\u97f3\u91cf\u589e\u52a0)\u4e0a\u7de3\u589e\u52a0\u97f3\u91cf<\/p>\n<p>N007\tVolUp(\u97f3\u91cf\u589e\u52a0)\u6301\u7e8c\u6309\u4e0b\u8d85\u904e1\u79d2\u6642\uff0c\u4f9d\u64daFun87_TCv2\u4e0d\u540c\u6642\u9593\u7528200ms\u7684\u8108\u885d\u589e\u52a0\u4e0d\u540c<\/p>\n<p>N008\tVolDn(\u97f3\u91cf\u964d\u4f4e)\u4e0a\u7de3\u964d\u4f4e\u97f3\u91cf<\/p>\n<p>N009\tVolDn(\u97f3\u91cf\u964d\u4f4e)\u6301\u7e8c\u6309\u4e0b\u8d85\u904e1\u79d2\u6642\uff0c\u4f9d\u64daFun87_TCv2\u4e0d\u540c\u6642\u9593\u7528200ms\u7684\u8108\u885d\u964d\u4f4e\u4e0d\u540c\u7684\u97f3\u91cf\u3002<\/p>\n<p>N0010\t\u4f7f\u7528Fun171\u5c07Volume(\u97f3\u91cf)\u4f5c\u6bd4\u8f03\uff0c\u8d85\u904e499\u6642\u89f8\u767cMAX(\u97f3\u91cf\u6700\u5927\u503c)\uff0c\u4e26\u7dad\u6301\u97f3\u91cf\u5728500\u3002<\/p>\n<p>N0011\t\u4f7f\u7528Fun172\u5c07Volume(\u97f3\u91cf)\u4f5c\u6bd4\u8f03\uff0c\u4f4e\u65bc1\u55ae\u4f4d\u6642\u89f8\u767cMUTE(\u97f3\u91cf\u975c\u97f3)\uff0c\u4e26\u7dad\u6301\u97f3\u91cf\u57280\u3002<\/p>\n<p>Function Block\u5167\u90e8\u7a0b\u5f0f_ST\u8a9e\u8a00<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>BtnP:=VolUp or VolDn;<\/p>\n<p>ACTimer_10MS( TIM:= true, EN:=BtnP AND NOT T_200ms , CV:=TCv1 , PV:=20   , TUP=&gt;T_200ms , NUP=&gt;InZone);<\/p>\n<p>ACTimer_10MS( TIM:= true, EN:=BtnP , CV:=TCv2 , PV:=200  , TUP=&gt;InZone  , NUP=&gt;InZone);<\/p>\n<p>IF TCv2&gt;=200 Then<\/p>\n<p>    Add_L:=true;<\/p>\n<p>elseIF TCv2&gt;=150 Then<\/p>\n<p>    Add_M:=true;<\/p>\n<p>elseIF TCv2&gt;=100 Then<\/p>\n<p>    Add_S:=true;<\/p>\n<p>END_IF<\/p>\n<p>IF R_TRIG( S:=VolUp ) THEN<\/p>\n<p>   Volume:= Volume+1;<\/p>\n<p>END_IF<\/p>\n<p>IF VolUp and T_200ms THEN<\/p>\n<p>        IF Add_S THEN<\/p>\n<p>        Volume:= Volume+5;<\/p>\n<p>    ELSEIF Add_M THEN<\/p>\n<p>        Volume:= Volume+12;<\/p>\n<p>    ELSEIF Add_L THEN<\/p>\n<p>        Volume:= Volume+20;<\/p>\n<p>    END_IF<\/p>\n<p>END_IF<\/p>\n<p>IF R_TRIG( S:=VolDn ) THEN<\/p>\n<p>    Volume:= Volume-1;<\/p>\n<p>END_IF<\/p>\n<p>IF VolDn and T_200ms THEN<\/p>\n<p>        IF Add_S THEN<\/p>\n<p>        Volume:= Volume-5;<\/p>\n<p>    ELSEIF Add_M THEN<\/p>\n<p>        Volume:= Volume-12;<\/p>\n<p>    ELSEIF Add_L THEN<\/p>\n<p>        Volume:= Volume-20;<\/p>\n<p>    END_IF<\/p>\n<p>END_IF<\/p>\n<p>if Volume &gt; 499 THEN<\/p>\n<p>    Max:=TRUE;<\/p>\n<p>    Volume:=500;<\/p>\n<p>ELSEIF Volume &lt; 1 THEN<\/p>\n<p>    Mute:=TRUE;<\/p>\n<p>    Volume:=0;<\/p>\n<p>END_IF<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u52d5\u4f5c\u8aaa\u660e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-041.png\" \/><\/p>\n<p>Step 1.\t\u4f7f\u7528VolUp(\u97f3\u91cf\u589e\u52a0)\u6216VolDn(\u97f3\u91cf\u964d\u4f4e)\u589e\u6e1b\u97f3\u91cf<\/p>\n<p>Step 2.\t\u6309\u58d31\u79d2\u5167\u589e\u52a0\u6216\u6e1b\u5c111\u683c\u97f3\u91cf\uff0c\u6309\u58d31~1.5\u79d2\u6bcf0.2\u79d2\u589e\u52a0\u6216\u6e1b\u5c115\u683c\u97f3\u91cf\uff0c\u6309\u58d31.5~2\u79d2\u6bcf0.2\u79d2\u589e\u52a0\u6216\u6e1b\u5c1112\u683c\u97f3\u91cf\uff0c\u6309\u58d32\u79d2\u4ee5\u4e0a\u6bcf0.2\u79d2\u589e\u52a0\u6216\u6e1b\u5c1120\u683c\u97f3\u91cf\u3002<\/p>\n<p>Step 3.\t\u97f3\u91cf\u589e\u52a0\u5230500\u6642\uff0c\u7121\u6cd5\u518d\u7e7c\u7e8c\u589e\u52a0\u3002<\/p>\n<p>Step 4.\t\u97f3\u91cf\u964d\u4f4e\u52300\u6642\uff0c\u7121\u6cd5\u518d\u7e7c\u7e8c\u964d\u4f4e\u3002<\/p>\n<p>\u91cd\u8907\u4f7f\u7528<\/p>\n<p>\u5728\u4e3b\u7a0b\u5f0f\u91cd\u8907\u4f7f\u7528Function\u6307\u4ee4 \u3010TV Remote\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m09-zh-03\/mplc-m09-zh-03-042.png\" \/><\/p>\n<p>N002\t\u63a7\u5236R0\u97f3\u91cf<\/p>\n<p>N003\t\u63a7\u5236R100\u97f3\u91cf<\/p>\n<p>\u4e92\u4e0d\u76f8\u5e72\u64fe\u904b\u7b97\u7d50\u679c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c3\u7ae0 Function\/Function Block\u7a0b\u5f0f \u672c\u7ae0\u7bc0\u5c07\u4ecb\u7d39\u5982\u4f55\u5728UperLoigc\u4e2d\u65b0\u589eFCM\u7a0b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-3164","post","type-post","status-publish","format-standard","hentry","category-zh-mplc-m09"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3164","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=3164"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3164\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}