Posted 13 Apr 2014 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
Posted 14 Apr 2014 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
Posted 15 Apr 2014 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
Posted 15 Apr 2014 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
Posted 15 Apr 2014 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
Posted 16 Apr 2014 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