pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

Functionality for disabled NC axes and integration with ads-ioc #266

Open klauer opened 3 years ago

klauer commented 3 years ago

Question: Should pytmc/ads-deploy not generate a motor record for disabled NC axes?

Sub-question: can a disabled-at-build-time NC axis be dynamically enabled during runtime?

In my opinion:

cc @slactjohnson @ZLLentz @slacAWallace

ZLLentz commented 3 years ago

I don't think any item in the TwinCAT tree can be dynamically enabled during runtime. I've always needed to reactivate config, so I assumed that a disabled item wasn't even sent to the PLC- could be wrong on the implementation detail, but I'm pretty sure that you cannot (and am 100% sure that you should not) enable NC items dynamically during runtime.

klauer commented 3 years ago

Then that solves it: pytmc/ads-deploy should skip the axis entirely.