Only use OpcUa any device if you need to communicate a few basic datatype values between PLCs, but from my experience one should avoid using it completely.
More elegant and performant communications can be done using the AsOpcUac library.
Many OpcUa samples can be found in the Automation studio installation path here:
C:\BRAutomation\AS412\Samples