Sign in to follow this  
Followers 0
Dinos

NS5SQ

7 posts in this topic

I want to set the time from the PLC "CJ2m"To a NS5SQ11-v2 I know the address is $SW14-$SW16, How do I write to those bits from the PLC, I am connected VIA Ethernet. Thanks! Dino's

Share this post


Link to post
Share on other sites
You will have to write a fairly simple macro. Use READHOSTW to read the time that you wish to set from a PLC memory location. Then use the SETTIME command to set the time. The Macro Reference instruction manual is installed with CX-Designer and can be found in your start menu under Omron - CX-One - CX-Designer - Manuals.

Share this post


Link to post
Share on other sites
Isn't there way to pass the data between the common memory areas to just read a data register in the PLC? Thanks! Dino's

Share this post


Link to post
Share on other sites
Yes, you can read the value in the PLC for the Time, but it is read only. The PLC cannot directly write that data using the mapped system words in the PLC. See below: Notification means read only. Control means read / write. You have to use the SETTIME instruction to change it.

Share this post


Link to post
Share on other sites
You could also use the Date & Time Sync smart active part to sync the NS time with the PLC time every hour automatically. There is also a Settime PLC>>NS smart active part that can be activated manually.

Share this post


Link to post
Share on other sites
Great I will look at where that option is, I really appropriate everyone's input! Thanks! Dino's

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
Sign in to follow this  
Followers 0