Hello, Eli;
In order to exchange data between 2 CPUs over Profibus, you must set-up network "connections" between them, and use specialised exchange blocks (AG_SEND, AG_RCV for example).
Go to the Siemens support website, and look up Entry ID: 17853532 for a detailed explanation, with examples.
Hope this helps,
Daniel chartier