gudiya - 2021-01-27

I am trying to read modbus data from a modbus slave simulator in codesys2.3 using Ethernet_Modbusmaster_TCP/UDP FB.
It is giving me error code 1 which is incorrect function code, I am using FC3 for this purpose.

But when I do modbus read from a Wago controller, it is working fine.
Please can anyone help me on this.

also find the attached code for reference.