Hi,
Can you describe your intension more precisely, what for? Is it real PLC or PLCSIM you have to communicate with?
You may consider your task as transfer data between PLC and Simulink with neural network model. One of solutions available - OPC Toolbox and Simatic Net OPC Server.
Best regards
MATLAB/Sumulink & PLC developer
SimPanel - Multifunctional industrial control panel designer/emulator
PLCSIM OPC Server - an OPC DA2/DA3 Server for S7-PLCSIM