pcdshub / lcls-twincat-motion

TwinCAT 3 Motion Control Utilities - PLC Motion Library for all PCDS Applications
https://pcdshub.github.io/lcls-twincat-motion
Other
33 stars 19 forks source link

DESC fields are too long #86

Open ZLLentz opened 3 years ago

ZLLentz commented 3 years ago

Limit is 40 chars

Can't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:bAllForwardEnable_RBV.DESC" to "Summary of axis permission to move forward" Error (512,512)
Error at or before ")" in path "."  file "lcls_plc_roving_spectrometer.db" line 477
Can't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:bAllBackwardEnable_RBV.DESC" to "Summary of axis permission to move backward" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nEnableMode_RBV.DESC" to "Describes when the axis will automatically get power" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nBrakeMode_RBV.DESC" to "Describes when the brake will be released" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:bExecute_RBV.DESC" to "Used internally and by the IOC to start or stop" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:bExecute.DESC" to "Used internally and by the IOC to start or stop" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nCommand_RBV.DESC" to "Used internally and by the IOC to pick move type" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nCommand.DESC" to "Used internally and by the IOC to pick move type" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nCmdData_RBV.DESC" to "Used internally and by the IOC to pass extra args" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nCmdData.DESC" to "Used internally and by the IOC to pass extra args" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fPosition_RBV.DESC" to "Used internally and by the IOC as the set position" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fPosition.DESC" to "Used internally and by the IOC as the set position" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fVelocity_RBV.DESC" to "Used internally and by the IOC to set velocity" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fVelocity.DESC" to "Used internally and by the IOC to set velocity" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fAcceleration_RBV.DESC" to "Used internally and by the IOC to set acceleration" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fAcceleration.DESC" to "Used internally and by the IOC to set acceleration" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fDeceleration_RBV.DESC" to "Used internally and by the IOC to set deceleration" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fDeceleration.DESC" to "Used internally and by the IOC to set deceleration" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fHomePosition_RBV.DESC" to "Used internally and by the IOC to pick home position" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:fHomePosition.DESC" to "Used internally and by the IOC to pick home position" Error (512,512)
ErrorCan't set "HXX:HXSS:ROV:MMS:ALL_H:PLC:nMotionAxisID_RBV.DESC" to "Unique ID assigned to each axis in the NC" Error (512,512)
klauer commented 3 years ago

This is fixed in newer pytmc versions - sorry...

ZLLentz commented 3 years ago

Even if the error goes away, we still need to cull the fields here so they can be useful, right?

klauer commented 3 years ago

That is true. The full length description will only be available as a comment in the db file, while the DESC field will be truncated.