Ask our Experts
Didn't find what you are looking for? Ask our experts!
New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.
Search in
Please select a country to continue with beta search.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-02-10 03:56 AM
Hello,
I would like to read energy from masterpact circuit breaker.
Value is stored in 64 bit value
Is it a way to read such value ?
Regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-02-11 12:07 AM
Yes, you can. Declare a new variable as type "REAL". You might also have to check the communication driver setting for the Double Word order.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-04 06:50 AM
Vijeo Designer math is 32bit based. INT64 is not possible to present at standard way. I see only possibility to write JAVA code it Vijeo Designer script to convert value to kWh or MWh float32. Good demand for AI.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-06 06:50 AM
I tested this small script 64bit resolution solution for MasterPacT energy value to be able represent it in Vijeo Designer runtime as MWh real value with 7+3 digits of Float.
Define Variables arINT64_01 as UINT with dimension 4 and rMvalue as REAL value.
//run this script periodically
int[] uiINT64 = { 0, 0, 0, 0 };
float[] rINT64 = { 0, 0, 0, 0 };
float rMINT64;
//get data to script
uiINT64[0] = arINT64_01[0].getIntValue();
uiINT64[1] = arINT64_01[1].getIntValue();
uiINT64[2] = arINT64_01[2].getIntValue();
uiINT64[3] = arINT64_01[3].getIntValue();
//convert double types to float and rescale to MEGA x1 000 000 * 2^16 by WORD
rINT64[0] = (((float)uiINT64[0])/1000000);
rINT64[1] = (((float)uiINT64[1])/1000000)*65536;
rINT64[2] = (((float)uiINT64[2])/1000000)*65536*65536;
rINT64[3] = (((float)uiINT64[3])/1000000)*65536*65536*65536;
//Max value of MWh if 6000A =4MW*30years=1 092 439MWh = 0xFE 5A71 9126 Wh
//rINT64[2] max = 254
//rINT64[3] max = 0
rMINT64 = rINT64[3]+rINT64[2]+rINT64[1]+rINT64[0];
rMvalue.write(rMINT64);
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2026-03-22 08:55 PM
Another idea, you could just examine the bottom 32 bits and treat it as a UDINT. The value will roll over more often (but a Udint is still a long time between rollovers)
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.