pcdshub / lcls-plc-kfe-rix-motion

Beckhoff motion control for RIX beamline components in the FEE
https://pcdshub.github.io/lcls-plc-kfe-rix-motion
Other
1 stars 14 forks source link

TM1K2 PLC limits and IM4K2 ppm 24-bit readout fix #67

Closed jyotiphy closed 4 months ago

jyotiphy commented 4 months ago

Description

Motivation and Context

Attempt to fix scaling for 24-bit ppm readout

How Has This Been Tested?

Haven't yet tested

Screenshots (if appropriate):

Pre-merge checklist

ZLLentz commented 4 months ago

Reference link to the underlying bug that requires us to handle the analog input this way: https://github.com/pcdshub/lcls-twincat-general/issues/54

jyotiphy commented 4 months ago

@ZLLentz Changing TermMin value to 0 gives, raw voltage of about -68mV. Phil said that he's expecting ~10mV. 🤔

ZLLentz commented 4 months ago

Well, that's much better than the -10V we saw before! Maybe it's worth checking the pins with a multimeter to confirm the behavior?

We need to separate any potential grounding/wiring issues from code issues and address them separately.