Rohit: As per Ken's very valuable insight, it seems your configuration will use the MicroLogix 1400 as the Modbus TCP client, and the other device is the Modbus TCP server. (Please double-check this)
If the MicroLogix 1400 is the client, then before trying to write a program for it, it is much easier first to use a Windows tool that has Modbus TCP client funcionality, such as Ken's first comment about Modscan.
So I recommend you get Modscan or another Windows Modbus TCP client tool, then confirm the functions and registers that are supported by the Modbus TCP server device. Make sure you can read or write those registers first with the Modscan, and then, proceed to test the Micrologix program.
I cannot tell if your program is right or wrong because I do not the capability of the Modbus device. If the program did not work some parameter may be wrong. It seems that the program expects a device with IP address 192.168.10.6, TCP port 502 (very common in Modbus), register 40002, Modbus device address 1. As I said in an earlier post, we would need a Wireshark trace to see why you cannot get the communication to work properly properly but since this requires an Ethernet TAP, then the Windows client is a good choice.
Unfortunately, I cannot help with the screenshots you sent.