使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


Accessing the S7 Date_and_Time Value from an S7-300 PLC


Last Update: 2018/11/12

Date_and_Time items can be stored in Input addresses, Flag addresses, or Data Blocks. In all cases, String should be used as the data type. For more information on address syntax, refer below.

  • For Inputs, use the address syntax IDTx, where x is equal to the Input address number used to store the item. For example, "IDT1".
  • For Flags, use the address syntax MDTx, where x is equal to the Flag address number used to store the item. For example, "MDT1".
  • For Data Blocks, use the syntax DBx,DTy, where x is equal to the Data Block address number and y is equal to the Word address number within the Data Block where the item is stored. For example, "DB100,DT1".

Note: A result example is 1/4/1994 5:17:59 AM.