I’m doing a final year project which incorporates a Mitsubshi Fx-16MR plc controlling two FX-IPG blocks that control two stepper motors. The stepper motors control the X and Y axis of a pick and place rig. The rig is currently working with a pre-programmed set of movoments. It basically sorts a 3*3 array of three sets of three coloured discs placed in a certain order in this array. I’m now trying to implement a program that will be able to handle a random placement of these discs. The actual position of the discs will be inputed via a Mac 40 user interface. There turns out to be 280 possibilities of placing these discs randomly into the array, which of course means writing a different line of movements for each random placement would turn out to be very tedious. Thus I’m trying to implement a sorting algorithm. Anybody wish to help.