Clavinova CLP123 sequence of cables to pedals

The cable running from the pedals to the mainframe got torn out of the plug, leaving me with 6 small cables in different colors. These small cables have to be attached again to the plug with 6 holes numbered 1 to 6. Does anyone know which color has to be attached to which number?

You will have to look at the pedal itself and then follow the schematic:

… and a little update:

Had a look at another YAMAHA pedal assy - seems the wires are colour coded.
blk(1) - brn(2) - red(3) - org(4) - yel(5) - grn(6)

May be wrong in your case (haven’t found any description apart from schematic above)