<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[威纶通宏setdata]]></title>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313.html]]></link>
 <description><![CDATA[Latest 50 replies of 威纶通宏setdata]]></description>
 <copyright><![CDATA[Copyright(C) 工控人家园]]></copyright>
 <generator><![CDATA[www.ymmfa.com]]></generator>
 <lastBuildDate><![CDATA[Fri, 03 Apr 2026 20:34:29 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[工控人家园]]></title>
 <link><![CDATA[http://www.ymmfa.com]]></link>
 <description><![CDATA[工控人家园]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第4楼hong0618于2024-07-10 17:32发表的&nbsp;&nbsp;:
macro_command main()

short a
short b[10]
FILL (b[0],a,10)
.......
[/quote]

写反了

macro_command main()

short a
short b[10]
GetData(a, &quot;Local HMI&quot;, LW, 100, 1)
FILL (b[0],a,10)
SetData(b[0], &quot;Local HMI&quot;, LW, 300,  ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2477568.html]]></link>
 <author><![CDATA[xiaoganglu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Tue, 26 Nov 2024 09:20:46 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[macro_command main()
short a,i=1
GetData(a, &quot;Local HMI&quot;, RW, 100, 1)

for i= 1 to 60
SetData(a, &quot;MODBUS TCP/IP&quot;, 4x, i, 1)
next i

end macro_command]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2452936.html]]></link>
 <author><![CDATA[moder7364]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Tue, 06 Aug 2024 05:21:55 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[搞定，开心 [s:26]]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2446002.html]]></link>
 <author><![CDATA[hong0618]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 10 Jul 2024 10:11:40 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[macro_command main()

short a
short b[10]
FILL (b[0],a,10)
GetData(a, &quot;Local HMI&quot;, LW, 100, 1)
SetData(b[0], &quot;Local HMI&quot;, LW, 300, 10)

end macro_command

编译通过了。感谢1楼
 模拟了一下a的数值只传给了309.&nbsp;&nbsp;&nbsp;&nbsp;300-308都是***。不知是什么原因]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2445994.html]]></link>
 <author><![CDATA[hong0618]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 10 Jul 2024 09:32:07 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[macro_command main()
short a
GetData(a, &quot;Local HMI&quot;, RW, 100, 1)
SetData(a, &quot;MODBUS TCP/IP&quot;, 4x, 1, 1)

end macro_command

这样可以。
我想咨询的是，是不是要写60个setdata .不能1个setdata搞定吗？]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2445953.html]]></link>
 <author><![CDATA[hong0618]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 10 Jul 2024 07:24:13 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[macro_command main()
short a
short b[60]
FILL(b[0],a,60)
GetData(a, &quot;Local HMI&quot;, RW, 100, 1)
SetData(b[60], &quot;MODBUS TCP/IP&quot;, 4x, 1, 60)

end macro_command

是这样吗？但是报错的更多。

屏用的TK8072IP]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2445935.html]]></link>
 <author><![CDATA[hong0618]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 10 Jul 2024 06:43:37 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[short b[60]
FILL(b[0],a,60)]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1771313#2445931.html]]></link>
 <author><![CDATA[你不早点说]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Wed, 10 Jul 2024 06:26:39 +0000]]></pubdate>
</item>
</channel></rss>