<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[最近在学习Codesys,有几个小问题请教一下 ..]]></title>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301.html]]></link>
 <description><![CDATA[Latest 50 replies of 最近在学习Codesys,有几个小问题请教一下 ..]]></description>
 <copyright><![CDATA[Copyright(C) 工控人家园]]></copyright>
 <generator><![CDATA[www.ymmfa.com]]></generator>
 <lastBuildDate><![CDATA[Fri, 03 Apr 2026 21:55:56 +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[闪灯程序
 [attachment=260887]]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232222.html]]></link>
 <author><![CDATA[tingfenghu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sun, 24 Oct 2021 16:29:11 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第9楼uthman于2021-10-24 13:41发表的&nbsp;&nbsp;:
INT_TO_TIME
DINT_TO_TIME
LINT_TO_TIME
[/quote]
谢谢，
原来这么麻烦，要类型转换。]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232160.html]]></link>
 <author><![CDATA[tingfenghu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sun, 24 Oct 2021 09:43:10 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[INT_TO_TIME
DINT_TO_TIME
LINT_TO_TIME]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232124.html]]></link>
 <author><![CDATA[uthman]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sun, 24 Oct 2021 05:41:24 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第7楼uthman于2021-10-24 12:32发表的&#160;&#160;:
数据类型不一致，需要time类型
[/quote]
继续请教，谢谢！
之前是用C或者VBS多点，
对TIMIE这个类型不熟悉，
定义一个变量为TIME类型，
变量仍然不能整型数值，只能是T#1S，T#100ms
触摸屏这类设备如何将整型数值关联到TIME类型的变量。

谢谢！]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232117.html]]></link>
 <author><![CDATA[tingfenghu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sun, 24 Oct 2021 04:57:26 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[数据类型不一致，需要time类型]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232111.html]]></link>
 <author><![CDATA[uthman]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sun, 24 Oct 2021 04:32:35 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[PROGRAM PLC_PRG
VAR
&nbsp;&nbsp;&nbsp;&nbsp;uintRunTime_Values : USINT;
&nbsp;&nbsp;&nbsp;&nbsp;tRunTime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ton;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
END_VAR

tRunTime.PT := T#1s;

如何将uintRunTime_Values关联到tRunTime.PT？
直接 ..]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232110.html]]></link>
 <author><![CDATA[tingfenghu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sun, 24 Oct 2021 04:29:14 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[上机测试了一下，
if&#160;&#160;x0&#160;&#160;then
&#160;&#160;&#160;&#160;y0:=true;
end_if
就相当于LDP X0&#160;&#160; SET Y0

 [attachment=260872]]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232047.html]]></link>
 <author><![CDATA[tingfenghu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sat, 23 Oct 2021 13:20:33 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote]引用第2楼书香伴侣于2021-10-23 17:44发表的&nbsp;&nbsp;:
上升沿和下降沿应该可以直接调用功能块
[/quote]
用ST来写，
Codesys是可以嵌入梯形图，和功能块，想用函数形式来写。]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232039.html]]></link>
 <author><![CDATA[tingfenghu]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sat, 23 Oct 2021 11:56:34 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[基础不行，这些东西跟CODESYS，还是单片机无关]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232034.html]]></link>
 <author><![CDATA[塞外海岛]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sat, 23 Oct 2021 11:21:06 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[上升沿和下降沿应该可以直接调用功能块]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2232018.html]]></link>
 <author><![CDATA[书香伴侣]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sat, 23 Oct 2021 09:44:58 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[Y0 S=X0 AND NOT xBuff;
xBuff:=X0;]]></description>
 <link><![CDATA[http://www.ymmfa.com/read-gktid-1718301#2231970.html]]></link>
 <author><![CDATA[uthman]]></author>
 <category><![CDATA[综合讨论]]></category>
 <pubdate><![CDATA[Sat, 23 Oct 2021 05:34:35 +0000]]></pubdate>
</item>
</channel></rss>