I assume you are using serial modbus?
here is the basic idea:
EMC Documentation Wiki: ClassicLadder Ver 7.124
What version of EMC are you using?
Its been a while since I used modbus with CL but some are using it.
Running EMC / CL in a terminal will give much more info while debugging modbus