Author Topic: XServer comm problems  (Read 6475 times)

lberridge

  • Newbie
  • *
  • Posts: 19
  • I'm a llama!
    • View Profile
XServer comm problems
« on: March 18, 2009, 09:48:47 AM »
When attempting to monitor a fairly complex program running on an MD100-888 after connecting to XServer I get "No Response from Node1" after initial success.

On-Line Monitoring works fine, although very sluggish, when using TLServer.

Similar problem (commexception A0, no response from PLC) when running JAVA applet xhmi1.

Tried changing baud rate to 9600...same result.

Monitoring a very simple program (continuously sampling and displaying all eight ADC inputs) seems to work fine.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:XServer comm problems
« Reply #1 on: March 18, 2009, 06:25:23 PM »
Your program may have interfered with the communication routine. Please check the following:

1) You did not run the commands such as OUTCOMM, PRINT, NETCMD, READMODBUS, WRITEMODBUS, READMB2, WRITEMB2 on the same COMM port that is used for online monitoring.

2) You did not have a lot of LOAD_EEP or SAVE_EEP command. On the T100MD888 the system interrupt is shut off during the EEPROM read/write routine and if you have continous access to the EEP then it will affect the communication badly. Use these command sparingly usually during start up or shut down of the system.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

lberridge

  • Newbie
  • *
  • Posts: 19
  • I'm a llama!
    • View Profile
Re:XServer comm problems
« Reply #2 on: March 18, 2009, 09:38:43 PM »
Thank you for your prompt reply.
My program does not use either comm port, but does access EEPROM, I believe at initialization only.
I will do some further checking.

lberridge

  • Newbie
  • *
  • Posts: 19
  • I'm a llama!
    • View Profile
Re:XServer comm problems
« Reply #3 on: March 19, 2009, 11:28:49 AM »
I found a few LOAD_EEP and SAVE_EEP statements in my program. Once they were all eliminated, on-line monitoring through XServer started working perfectly.
I never would have suspected this without your suggestion.
Perhaps a warning in the Programmer's Reference Manual is warranted.
Thanks again for your help.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:XServer comm problems
« Reply #4 on: March 19, 2009, 02:26:34 PM »
Thank you for your suggestion.

Did you use the differentiated form of custom function {dCusF} instead of the continuous {CusFn}? If you use the SAVE_EEP or LOAD_EEP in the {CusFn} then the EEPROM are read/written every scan of the ladder logic as long as the execution condition to this custom function is true. While it does no harm to read the EEP often (except affecting communication and slowing down the CPU greatly), writing to EEPROM continously can wear it out rather quickly due to the EEPROM's limited erase/write cycle and must be avoided. Always use the DM or A to Z, EMINT[1] to EMINT[16] to store frequently access data.  EEPROM can be used to save data that can be loaded back into DM during initialization.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

alexandermorgantop

  • Newbie
  • Posts: 4
  • I'm a llama!
    • View Profile
Re:XServer comm problems
« Reply #5 on: March 27, 2009, 04:33:22 AM »
Thanks Your Information
Best Regards
http://program-plc.blogspot.com/
 ;D