Error Screenshot:

Solution:
Open C:\TwinCAT\3.1\System, run win8settick with administrator privileges and restart the computer 
Error Screenshot:

Solution:
Open C:\TwinCAT\3.1\System, run win8settick with administrator privileges and restart the computer 