radu_harceaga Posted October 12, 2009 Share Posted October 12, 2009 Hello, I am trying to set a timer value in an s7 300 using Daqfactory. I have set up comunications through simaticNET using an ethernet cable. I can read data from the PLC and write bits just fine. The problem I have is that I have to send a time data type: hh:mmsss. Does anybody have an ideea how this is done? and if Daqfactoy has such a data type? Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted October 12, 2009 Share Posted October 12, 2009 Do you mean as a number? So 3pm would be: 150000? If so, use formatdatetime() to format it into a string "150000" then use the strtodouble() function to make it into a number that you can send to the PLC. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.