SillyBoy

NB HMI and CP1L-E PLC RTC Setup

5 posts in this topic

Hello,

 

How to SET the RTC of the CP1L-EM40 PLC Using NB7Q-TW01 HMI.

 

Is it any way to transfer the data of LW10000 to LW10005 (Which is RTC of HMI) to the Auxiliary area of PLC which stores the RTC of PLC ?

Share this post


Link to post
Share on other sites

Not directly no. In the PLC you need to use the DATE(735) instruction to set the PLC clock.

1 person likes this

Share this post


Link to post
Share on other sites

So basically to get your desired operation write the RTC from the HMI to some intermediate registers in the PLC. You will need to do some shuffling around of the data to get it in the right format for the DATE(735) instruction. You'll need all the values in BCD and then pack them into a few words using MOVD(083). The layout is outlined in the instruction help file for DATE(735).

1 person likes this

Share this post


Link to post
Share on other sites

In order to transfer the clock words from NB to PLC, use the Data Transmission object in NB-Designer. 

1 person likes this

Share this post


Link to post
Share on other sites

Okay got it, only option is to use indirect registers.

 

It's strange, PLC & HMI both have RTC but no direct sync option available.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now