connecting arduino to advancedHMI using arduino wifi shield via modbus tcp

hey guys, i am trying to connect my arduino to advanced hmi using arduino wifi shield. i am using the arduinomodbus library but it can't seem to be working. it outputs client connected then takes a second then disconnects the client. the basic indicator in the advancedHMI outputs "cannot connect to ip address, port 502. timed out.

please help me

AdvancedHMI Quick Start