Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-31 02:48 AM
Hello everybody,
I would like to connect my M172 28-42 I/O (firmware 596.13) to an server SNTP, I check in "target block" and I see sysSNTP_GetTime / sysSNTP_Reset(). I testing to use this but my M172 say SYSTEM FAULT WDT:0.
Exemple code :
usiSNTP_Status := sysSNTP_GetTime(TRUE, 123, 0, 0, 0, 0, Seconds , Minutes , Hours, Day , Month , Year);
Seconds / Minutes / Hours / Day / Month / Year are "@USINT"
Thank's for your help.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-31 03:16 AM
Hello,
try with:
usiSNTP_Status := sysSNTP_GetTime(TRUE, 123, 0, 0, 0, 0,ADR(Seconds) , ADR(Minutes) , ADR(Hours),ADR(Day) , ADR(Month) , ADR(Year));
where Seconds / Minutes / Hours / Day / Month / Year are "USINT"
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-31 03:16 AM
Hello,
try with:
usiSNTP_Status := sysSNTP_GetTime(TRUE, 123, 0, 0, 0, 0,ADR(Seconds) , ADR(Minutes) , ADR(Hours),ADR(Day) , ADR(Month) , ADR(Year));
where Seconds / Minutes / Hours / Day / Month / Year are "USINT"
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-31 04:48 AM
Thanks for your help, everything works now !!
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.