It is possible to update the cpu time from the NTP time provided by the BMENOC0321 MODule installed on the same rack. This is not done automatically, and we need to program It:
1- Enable the "Network Time Service" on the DTM of the BMENOC0321:
2- Open the "Network Time Service " in the service list and put the NTP remote server IP address. You can customise the Polling period, the Time Zone option, etc:
3- Import the attached program section in your program:
4- Configure the DFB by putting the module rack position and its IP address:
5- Use the "Enable" pin to activate the DFB and the Sync_PLC to enable the time synchronization.
6- Enable "Dynamic Arrays" variables in the project settings:
The CPU time will be updated after enabling the DFB:
PS: No need to enable the "NTP client" service of the CPU.
1- Enable the "Network Time Service" on the DTM of the BMENOC0321:
2- Open the "Network Time Service " in the service list and put the NTP remote server IP address. You can customise the Polling period, the Time Zone option, etc:
3- Import the attached program section in your program:
4- Configure the DFB by putting the module rack position and its IP address:
5- Use the "Enable" pin to activate the DFB and the Sync_PLC to enable the time synchronization.
6- Enable "Dynamic Arrays" variables in the project settings:
The CPU time will be updated after enabling the DFB:
PS: No need to enable the "NTP client" service of the CPU.