Author Topic: Multipoint host-link trouble  (Read 12355 times)

ICIII

  • Newbie
  • Posts: 2
  • I love YaBB 1G - SP1!
    • View Profile
Multipoint host-link trouble
« on: September 09, 2003, 01:12:35 PM »
I am testing to send to the T 100 M+ PLC commands via multipoint host-link with the Trilogi Server and seeing the result with the simulator of the Trilogi 5.2 using the two com port. When I send a command to write  a DM(), this is visualized immediately in the simulator, on the other hand, if I send a command to write a INPUT () channel cannot be able to see the change in the simulator even to capture the message through  the LCD display and to see that it is correct.
The sent commands are:
 
To Write a DM(1) the letter ?A?
 @ 02WVD0001004103 * +CR
 the answer is @02WVD07 *
 
To write an  INPUT(9) the value 66H
@02WI096655 *   +CR
  the answer is @02WI5C *
 
Please, tell me where I make the mistake?
 
Thank you in advance
  
Roberto G?mez
 
 Sorry for my English
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: Multipoint host-link trouble
« Reply #1 on: September 09, 2003, 07:37:48 PM »
The PLC is refreshing all its physical input bit at every scan of the ladder logic even if the PLC program is halted. As such, when you write to the input register using the host link command "@01WIxxxxx", it will only change the input register temporarily,  and the PLC will on the next I/O scan change the input bits back to what it receive from the physical input.

The only inputs that you can change permenantly are those not controlled by the PLC. For the M-series PLC, the maximum inputs are 96, so above 96 you can change them. Since WI treat each channel as 8 bit, the input from 97 to 104 will occupy channel 12, or 0C hex. Try "@01WI0Cxxxxx*" and it should work on input #97 to 104 and so on.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

ICIII

  • Newbie
  • Posts: 2
  • I love YaBB 1G - SP1!
    • View Profile
Re: Multipoint host-link trouble
« Reply #2 on: September 10, 2003, 11:43:59 AM »
Thank you for your quick answer. I have made the test and everything worked correctly.
A last question:
 I'll  to send the command of a swich via a serial port   to act on the LADER
Is a good practice to send a WIxxxx host-link command , or is  better to make it to a DM [] with a WVDxxxxxxxx  host-link command and then to use a CusFn?
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: Multipoint host-link trouble
« Reply #3 on: September 10, 2003, 04:07:27 PM »
You can use either methods. Using WI is more straight forward (and the program will run quicker) but it affects 8 inputs in one command. If you only need one input the the rest of the inputs are not used then it does not matter.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS