Menu

Error Twincat Connection

Help
Amuro78
2012-02-22
2013-05-30
  • Amuro78

    Amuro78 - 2012-02-22

    Hello,

    I start using the Advanced HMI with the twincat, i haven't the plc but I'm using the simulator twincat on my laptop, the twincat and the Advanced HMI are on the same pc. I've set the property of the twincatComm1  control like the example i've replaced only iTargetAMSNetID like the Twincat System Property and in the TargetIPAddress i've used the '127.0.0.1'. I've used the DigitalPanelMeter control I've set the PLCAddress Value in this way "Main.timer.ET" (I've the same variable in the main pou of the plc control program) and after i've run the software. In the control I've this error "No Response from twincat(GetSymbolInfo)" I don't understand this problem. Have I a connection problem or an other problem ? Thank you

    Amuro78

     
  • Archie

    Archie - 2012-02-22

    The current TwinCAT driver is a pure .NET driver that bypasses the AMS router. Beckhoff has been unwilling to release the methods needed to go through the router without using their driver. The effect of this is that AdvancedHMI will not work on the same PC with TwinCAT installed. If you have another PC on the network that does not have TwinCAT installed, you can copy the runtime files from the bin\debug directory and it should work.

    Also if you used a PC for programming TwinCAT, even after uninstalling, the router entries still exist on the PC/CX that was programmed and prevents AdvancedHMI from working. You must be sure the router entries on the controller side are also deleted.

    Just a note, in a future release the driver will go back to using the Beckhoff DLLs which avoid these issues.

     
  • Amuro78

    Amuro78 - 2012-02-22

    Thank you very much for your fast answer, I'm using two pc now and all work very well, I've one other question how can i use  a global variable with AHMI ? I have been trying to use directly the name of the variable but it doesn't work.

    Thank you for all suggestions

     
  • Archie

    Archie - 2012-02-22

    To use a global variable, precede it with a ".", for example:

    .MyGlobalVariable

     
  • Amuro78

    Amuro78 - 2012-02-22

    Thank you very much

     

Log in to post a comment.