of course it should be in the packet =) problem is how to put it into the packet with AHMI ? this is modbuspool tx rx page.
000026-Tx:00 11 00 00 00 06
03 01 05 02 00 01
000027-Rx:00 11 00 00 00 04
03 01 01 02
its "read single coil"
and
this is a explanaiton the packet,
Summary
The equivalent request to this Modbus RTU example
11 03 006B 0003 7687
in Modbus TCP is:
0001 0000 0006 11 03 006B 0003
0001: Transaction Identifier
0000: Protocol Identifier
0006: Message Length (6 bytes to follow)
11: The Unit Identifier (17 = 11 hex)
03: The Function Code (read Analog Output Holding Registers)
006B: The Data Address of the first register requested. (40108-40001 = 107 =6B hex)
0003: The total number of registers requested. (read 3 registers 40108 to 40110)
http://www.simplymodbus.ca/TCP.htm