Modbus RTU Master Not Working on RS485 (X20CP0484) and Modbus Card (X20CS1030)

Now, your MBMopen instance is in a different error state 20242.
As long as MBMopen returns a status unequal 0, no data exchange can be executed anyway.

Error 20242 means that some event variable definition in your data module is wrong, for example a variable is used which is not declared or installed in the PLC.

Please note that variables are only installed in the PLC, if the’re used somewhere in the task code → if the’re just declared but nowhere referenced in any executing code file, the variables do not exist in the PLC → a data module is not a executing code file. So to ensure that every declared variable is installed inside the PLC, you can a.) check the compiler warnings for “unused variables”, and b.) just call the variables once in INIT UP.

Some more information about the data module and devent variables can be found in this thread: