Access to data layer with multi application projects

Is it possible to connect from a 2nd application to the data layer to communicate i.e. global variables between both applications?

 

Currently I can find the data via <F2> only in the 1st application of the device at IoConfig_Globals_Mapping. 

Best reply by CodeShepherd

For clarification:

  • As each of the applications in a PLC project has their own memory area, it is not possible to access data that is declared in the other one
  • Only one application can the set to be actively update IOs, same for the data layer realtime area
  • A global variable list set up in the POU area gets instanced by each application

Possible data exchange:

  • Create data in the data layer with one application using the symbol configuration and access them via read/write function blocks out of CXA_DataLayer
  • Create an shared memory with one application and access it via the other
  • Create network variables with one application and access it via the other
  • Use any other TCP based protocol to exchange data, e.g. OPC-UA, sockets, UDP...
View original
1 reply