Multi-task data access synchronization

Description

There are various ways of synchronizing multi-task data accesses in the PLC. The following PLC samples show the following options:

  • Mutex procedure (TestAndSet, FB_IecCriticalSection) for securing critical sections
  • Data exchange via synchronized buffers
  • Data exchange via the PLC process image

Sample project

TC3_PlcSample_MultiTaskSync_IecCriticalSection.zip

TC3_PlcSample_MultiTaskSync_TestAndSet.zip

TC3_PlcSample_MultiTaskSync_DataBuffer.zip

TC3_PlcSample_MultiTaskSync_PlcProcessImage.zip

Further information

In the documentation PLC: Multi-task data access synchronization in the PLC