Raspberry and PLC S7

i want to connect my raspberry in virtuel machine with PLC S7 1500 in tia portal ?
Any solution ??

Have you tried node-red-contrib-s7 node?
Your devices has to be in the same network.