NB master Clock (to sync NB-time with CJ2M)

Modified on Mon, 24 Feb, 2025 at 2:14 PM

Here's a sample program to sync the NB real time clock with the CJ. This has as advantage that the logging on the NB has the correct date and time. 


The Syncronize Clock button is only active when the seconds are <57 seconds. This to give some time for the FB on the CJ to work correctly and get the time in sync. The little indicator-light on the right of the button shows when the button is active.


The NB-Project is using a Data Transmission to send the real time clock data to the PLC, only when the button is pressed.


In the example the Synchronize-trigger is W300.00. This can be triggered in the PLC as well, by setting the bit.

The FB responds to the rising edge of the bit.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article