Recommended Posts

Posted

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

Posted

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.

Archived

This topic is now archived and is closed to further replies.