Plc Programming Create Function In Matlab Code