Hello, Is it possible to use the AXC F 2152 and run Modbus RTU, Modbus TCP and CANopen communications simultaneously? What would be the best way to run the programs? I don’t quite understand how the ESMs work. Would this put too much strain on the processing? Regards, Sean
Hello sean, each ESM (Execution and synchronisation Manager) represents a processor core. In the screenshot above you have instantiated one Task with the program instances. In this case the task (Cyclic100) executes the program instances successively. But you have to note, that the FB’s inside the program instances mostly need more as one tasc cycle for execution. For calculating the FB’s execution times you can implement a counter for task calls and the variables for caching the FB’s status (e.g. the events “xActivate” and “xDone” of FB’s). Then you can calculate: Task Calls (between xActivate = true and xDone=true) x Task cyclic time (e.g.100ms). Question: What would be the best way to run the programs? Answer: The programs must be executed in real time (this does not mean as fast as possible). Question: Would this put too much strain on the processing? Answer: If the program are executed in realtime and the task watch dog will be not triggered (program execution time < task cyclic time), there are no problems. If the first ESM1 (Core1) Load is to high, you can instantiate the Tasks/Program instances under the ESM2 (Core2). From my point of view, the communication protocols must be not executed simultaneously (it is also not possible, because the transmission times of physical layers are diffrent). I hope the answers help you. ~Eduard

