How do I configure 2 slave devices via pm564 eth com1 modbus rtu?(1-temp sensor, 2- energy analyzer)
Voted best answer
At first look your code should work. Better put variables at input parameters of COM_MOD_MAST, of type as it is written in the help, and initial value as in your example.
For two slaves you have to use 2 separate COM_MOD_MAST blocks.
EN input of second block could be = DONE of the first block. Add to your logic for EN of the first block's DONE output of the second block (recommended is the COM_MOD_MAST blocks to be executed one after the other)