Author Topic: COMUNICATION FAILURE BIT  (Read 10329 times)

rnpico

  • Newbie
  • Posts: 5
    • View Profile
COMUNICATION FAILURE BIT
« on: June 23, 2005, 02:00:23 PM »
If I want to see a Readmodbus or writemodbus communication failure I must to use the status(2) instruction, but when I want to see an incomm or outcomm communication failure the status(2) instruction doest'n work.  How can I see since my T100M+ a failure communication using incomm or outcomm instruction?

Regards,

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:COMUNICATION FAILURE BIT
« Reply #1 on: June 23, 2005, 02:41:04 PM »
If you use outcomm to send command and Incomm to receive command, then your TRiLOGI program  will have to check the data obtained from the Incomm statement and find out whether any response data has been received and if so, are the received data correct.

If you are using Incomm and Outcomm because you need to implement your own protocol, then your protocol must support some form of error check in order for your program to check if the response data is correct. Obviously the "status(2)" does not work since in this case the communication exchange is implemented by your own TBASIC program and not a built-in function.
« Last Edit: June 23, 2005, 02:42:06 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS