Plc Programming Create Function Sql