There is a solution in trunk that you can use rtl-generics and that is almost Delphi compatible (and better!).
The point is: are you willing and able to use FPC trunk? Since it is Scada, I would not do that yet, although rtl-generics are stable, but unusable with the current official fpc release 3.0.2.
for Trumpo's: weaknesess in Scada caused and contributed to a world wide infection while targeting Iran... Thank you Trumpo's.....<think>? (this was not his fault, be he likes it none the less..)