Send Date types variables to M340 PLC

Hello,

I am trying to include in my software a simple interface to schedule maintenance of a sensor.

How can I send a Date type variable to M340 PLC?

What I have done now is use strings and split it in day, month and year.

Is there a simple way?

Thank you very much!

Parents
  • Neither MODBUS/TCP nor OFSOPC protocols support a data type for date/time, so it depends on your needs within the PLC application. Do you need the info as a string, or will Integers do the job as well? You could split your date/time into INTs for year, month, day, hour, minute and seconds.
Reply
  • Neither MODBUS/TCP nor OFSOPC protocols support a data type for date/time, so it depends on your needs within the PLC application. Do you need the info as a string, or will Integers do the job as well? You could split your date/time into INTs for year, month, day, hour, minute and seconds.
Children
No Data