Your program can use the ModbusSlave(Modbus_Slave, Communicate as Modbus slave) instruction to communicate as a Modbus slave by using a CM. The MB_DB parameter of the ModbusCommonLoad instruction must be connected to the (static) MB_DB parameter of the ModbusSlave instruction.