PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. alexsanchez
  2. PLCnext Engineer
  3. Wednesday, 24 June 2020

Hello,

I would like to read and display the temperature of the CPU. I am using the variable deviceState.BOARD_TEMPERATURE but it always reads zero.

 

I am using PLCEngineer and Firmware 2020.3. How to do this?

 

Thanks,

 

Alex

 

PLCNext temp

 

 

Accepted Answer
Martin PLCnext Team Accepted Answer Pending Moderation
1
Votes
Undo

Hi Alex,

What data type is your deviceState struct?

How have you linked this to the global variable DEVICE_STATE ?

If you add the DEVICE_STATE global variable to the Watch window while you are online, do you see the correct BOARD_TEMPERATURE value there?

~ Martin

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

alexsanchez Accepted Answer Pending Moderation
0
Votes
Undo

Thanks Martin,

Your suggestion helped. It is working now.

Regards,

 

Alex

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.