Forum Discussion

sreekanth332's avatar
sreekanth332
New Contributor
7 years ago

can we generate and perform a Modbus Communication in Test Complete with Python Scripts

Hi All,

 

Have a question reg Modbus Communication.

 

Can we generate and perform a Modbus Communication in Test Complete with Python Scripts.

 

Want to write a Modbus communication code in Python Test Complete scripts and use it to communicate with a PLC.

 

Can it be achieved?

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Have you tried it?

     

    Basically, TestComplete's script code is executed within the Windows environment.  So, assuming you can access environmental objects and such, theoretically, it SHOULD work...  

    • AlexKaras's avatar
      AlexKaras
      Champion Level 3

      Hi,

       

      Robert is correct.

      https://www.google.com/search?q=python+modbus returns references to different libraries. So, basically, you should get the library, make it accessible for the Python runtime provided with TestComplete and use it from your Python-based test code in TestComplete.