Hi!
I have not connected an OP17 to an S7400H, but I have connected a T270/MP370 etc on profibus.
You will need a 2 repeaters to bring both profibus cables into one cable.
The OP project must not be integrated into Step7 (you can develop it integrated, but must unintegrate before downloading)
In Not Integrated Protool go to controllers ->double click on the PLC and click on parameters ->select profibus and make sure that the baud rate matches, etc each panel should have a unique profibus address Under peer parameters the address, expansion slot, and rack should all be 0(zeros).
Now both panels will be talking to whichever CPU has primary control and they will switch when the CPUs switch.
Hope that helps.