Mushu Posted November 2, 2005 Report Posted November 2, 2005 Hi, I need to syncronize the PLC date andtime with the SCADA date and Time. I will get 6 integers (my Set Points) and I have to set the PLC clock. I know how to check if a syncronization is needed. But I don't know how to get the Date_and_Time data type needed for the SFC0 (SET_CLK). I have thought to convert SP Integers into BCD and them move into a Date_and_time variable, but I don't know how to calculate the day of the week. Thanks Quote
Guest Guest Posted November 7, 2005 Report Posted November 7, 2005 The day of the week is not needed; so it is enough to convert the integers into BCD, and then move into the right place of the variable. I left the day of the week = 0 and it works!!!!! Thanks. Quote
iic_hyd Posted May 13, 2006 Report Posted May 13, 2006 Hi Open your project and select an S7/M7 program, or open the "Accessible Nodes" window using the menu command PLC - Display Accessible Nodes and select a node (MPI) Select the menu command PLC - Diagnostics/Settings - Set Date and Time. The menu command can be selected only if an S7/M7 program is selected in the project window (online view) or a node (MPI)is selected in the "Accessible Nodes" window. In the dialog box displayed you can read the current time and date on the selected module. If required, you can enter new values in the "Date" and "Time" fields or you can use the default option to accept the time and date on your programming device/PC. regards N.Subrahmanyam iic_hyd@rediffmail.com Quote
Groo Posted May 17, 2006 Report Posted May 17, 2006 Open the Hardware Configuration and open the CPU object properties by right clicking on it. Click the tab Diagnostic/Clock there's a section synchronisation and in the 'In The PLC' pull down select 'As Slave'. This enables an external PC to send the time. On our systems it goes through the ethernet card CP443-1. So still in hardware profile, by selecting the properties of the CP443-1 and selecting tab Time of Day Synchronisation, select 'Activate NTP time of day Synchronisation', this makes the CP card send a time enquirey you can then add the IP address of the NTP server, the time interval for requests and your time zone. The help on both these tabs bring up some good info. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.