pcdshub / lcls-twincat-general

A PLC code toolkit for LCLS TwinCAT PLC projects
https://pcdshub.github.io/lcls-twincat-general/
Other
16 stars 20 forks source link

Add string and integer equivalents of FB_LREALFromEPICS to monitor such values on a PLC #52

Open klauer opened 3 years ago

klauer commented 3 years ago

The current function block works, but is limited to floating point types.

Integers have the potential to work as-is with a cast from LREAL<->INT for at least a portion of all UINT32s.

There is no current way, however, to get a string value over this function block. I think it could be added to the library, but a bit of care will be required.