Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: No value in component

No value in component 6 years 5 days ago #9691

  • TrygveHe
  • TrygveHe's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
Hi.

I have an issue with a level sensor component. I have connected it to an analog input which for my test setup is a variable resistor knob connected through an Arduino Mega. The analog input is responding as expected, but when i connect it to the component there is no response. I have followed Bruno's video tutorial but in my case the BaseSensorFo reports 0 even when the analog input is responding.

Are there any suggestions of what I have missed?

Regards,
Trygve
The administrator has disabled public write access.

No value in component 6 years 4 days ago #9692

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Trygve,

You have to create a LevelSensor object in the plant hierarchy and a BaseSensorFo in the plc code. The Ai object LevelSensor.Value should be connected to the ChanAi, and the BaseSensorFo should be connected to the LevelSensor object. Then you have to make sure you compile and build without errors and restart ProviewR runtime.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.074 seconds