Technical FAQs

Ask a Question

How can vijeo designer sync the time from a Allen Bradley Compactlogix PLC

Title

Syncing the Allen Bradley CompactLogix PLC clock to a Magelis HMISTU855/655.

Issue

The HMISTU Series do not have a Real Time Clock. Therefore in order to use alarms and events in the Vijeo Designer Application the hmi system clock must be synced with the Real Time Clock of the PLC.

Product Line

Magelis HMISTO and HMISTU series of HMIs

Environment

HMISTU/STO  Series HMI and an Allen Bradley CompactLogix PLC

Cause

The Magelis HMISTU and the HMISTO series do not have a Real Time Clock

Resolution

First define the the time variable array from the CompactLogix PLC in the Vijeo Designer variable editor.

Example:

[  ] WallClockTime_DataTime_UTC     DINT            EXTERNAL (Where the 3rd, 4th and 5th elements are the hours, minutes, seconds)
     

In an Action script you can set the magelis system time with the following method:


 Sys.setTime(WallClockTime_DataTime_UTC[3].getIntValue(),WallClockTime_DataTime_UTC[4].getIntValue(),WallClockTime_DataTime_UTC[5].getIntValue());
 

 

Was this helpful?
What can we do to improve the information ?