Author Topic: MODBUS/TCP CONNECTION Problem  (Read 4894 times)

Prayuktibid

  • Newbie
  • Posts: 15
  • I am Prayuktibid
    • View Profile
MODBUS/TCP CONNECTION Problem
« on: August 24, 2017, 04:02:26 AM »
Hello Folks,
 I am using Trilogi PLC FDMD88-10 model and I am using it for Industrial purpose. I was trying to Connect with a Cluster Controller(MODBUR RTU and MODBUS TCP both are supported)  to Read Modbus Registers value from it through MODBUS/TCP.  I could not connect with CLUSTER CONTROLLER. I have given proper IP address of Cluster Controller, Proper Input Register address also I have checked the Connection Status from INPUT$() function it also returns nothing. I don't understand what is my fault. I have uploaded my PLC code my humble request is please check the code and help me to solve my problem.
« Last Edit: August 24, 2017, 04:03:04 AM by Prayuktibid »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:MODBUS/TCP CONNECTION Problem
« Reply #1 on: August 24, 2017, 11:39:43 PM »
You code did not wait for the MBTCPCONNECT to complete the connection before you run the READMODBUS command. The program execute much faster than the time it takes to make connection and that's why the READMODBUS command will not be able to obtain the data.

Please follow the example in your TRiLOGI\TL6\usr\samples\Ethernet\ModbusTCPTest.PC6 or download from the following link:

http://www.triplc.com/yabbse/attachments/ModbusTCPTest.PC6
Email: support@triplc.com
Tel: 1-877-TRI-PLCS