Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


Accessing the S7 Date_and_Time Value from an S7-300 PLC


Last Update: 11/12/2018

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.