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

FIX: hotfix for couple issues found on plcprog-console #317

Closed klauer closed 1 year ago

klauer commented 1 year ago
ZLLentz commented 1 year ago

This did pass the unit tests last time, right? I can't comprehend how these changes would cause the st.cmds to generate without the motion sections...

klauer commented 1 year ago

So perhaps I fixed DUT_MotionStage and broke ST_MotionStage with the parsing utilities? More to investigate tomorrow :sigh: ...

ZLLentz commented 1 year ago

This behavior is reproducible offline using my random lfe motion plc project clone (which is all DUT_MotionStage)

ZLLentz commented 1 year ago

This must be related to the specifics of the st.cmd template that I edited to search for ST_MotionStage

klauer commented 1 year ago

Back to draft with this one - not an appropriate fix here.

This quick "fix" hid the issue rather than resolved it. Hmm...

klauer commented 1 year ago

Yeah, upon further investigation this is very much not the right fix. Test suites to the rescue!