Hi there,
There are two or more alternatives, depending on your set-up of the AC450 and S7-317. If both PLC´s have to be Profibus masters, then you will need a Profibus DP/DP gateway. If both PLC´s have an ethernet port, you might be able to use OPC to have communication between the two.
If one of the PLC´s can be set-up as Profibus slave, then use the one as master to poll the slave.
Good luck
Pat