MBTCPRead Error Code -6829
I am getting an error code of -6829 in MBTCPRead Block.
MBTCPConnect is fine.
The screenshot is attached for reference.
Looking in your MBTCPConnect block, for me the channel and partner parameters are wrong.
Channel should be position of the port from hardware configuration (e.g. 1.1 for CI867 at position 1, port 1)
Partner should be the address of your slave (e.g. 3)
Also in your MBTCPRead block the address %MW40045 seems too long. May be it should be %MW45 or %MW1045 depends in your slave mapping. As recommendation, try first with %MW0 and look for successful comminication (status 1, no errors), then try to find the right address in the slave
-6821 cGCInvalideHandle = Generic client invalide handle