pcdshub / lcls-twincat-optics

TwinCAT 3 Motion Control for LCLS Optics
https://pcdshub.github.io/lcls-twincat-optics/
Other
0 stars 6 forks source link

Cooling panels #21

Closed nrwslac closed 9 months ago

nrwslac commented 9 months ago

Description

Motivation and Context

Where Has This Been Documented?

Pre-merge checklist

nrwslac commented 9 months ago

This looks great to me, no need to refactor further based on my info here, but just so you know:

You can assign pragmas to sub-items, this is a bit underexplored though so your mileage may vary, but you can do things like:

{attribute 'pytmc' := '
    pv: FWM:1
    fReal.field: EGU lpm
    fReal.field: HIGH 2.3
'}
fbFlow_1 : FB_AnalogInput

And then you'd get a PV ending in :FWM:1:VAL_RBV without having to create an extra variable in the program.

I think it's debatable which way is better but I thought you should be aware of the option

This is a good tip thank you.