I don't have the program anymore, but it was only one call of the FB GET and one FB PUT. You should find examples on the Siemens supplay pages.
I did only use DBs in my prog., but Markers was allowed as well.
Be sure that the IP-adress/subnet fits.
Make an active connection in the S7.
If you get trouble, it is likely caused by the TSAP (RACK/SLOT number) in the connection setup. I cannot remember what I used, but it could be it is mentioned in the PC-Link docu.
Good luck!
Kalle