I have written a guide for easily determining the “pDeviceName”. Linking it here as it might be useful.
https://community.br-automation.com/t/how-to-find-the-devicename-for-communication-library-function-blocks-slot-subslot-interface-nodenumber-channelnumber/