Using Modbusserver to communicate from pc to plc

2015-02-12
2015-02-17
  • martinus1971 - 2015-02-12

    Hello there,

    Maybe there is here somebody to help me.

    I want to communicate from my Laptop to my plc by modbus tcp.

    Can anybody point me in the right direction. i thought about using the Modbusserver fb.
    But do i have to ad ethernet and a master or slave to my program?

    already thanks for the help

    greets

    martinuus

     
  • Strucc - 2015-02-15

    The easiest, built in solution, is to add Ethernet and Modbus TCP slave to your device...
    A slave will listen to TCP connection requests, and deal with all the communication tasks.
    You can configure the number of registers, and the addressing offset of different Modbus objects, and then simply "map", "assign" variables from your PLC application to the modbus registers.
    This way, you don't have to call any function blocks, or add a line of code....

     
  • martinus1971 - 2015-02-16

    Strucc hat geschrieben:
    The easiest, built in solution, is to add Ethernet and Modbus TCP slave to your device...
    A slave will listen to TCP connection requests, and deal with all the communication tasks.
    You can configure the number of registers, and the addressing offset of different Modbus objects, and then simply "map", "assign" variables from your PLC application to the modbus registers.
    This way, you don't have to call any function blocks, or add a line of code....

    Hello Strucc,

    Sorry for the late answer....busy at work:-)

    Can you give a short example of how you mean this, i think i understand but i want to know for sure

    already thanks for your answer

    Martinus

     
  • Strucc - 2015-02-17

    Doest this help?

    IMG: Screenshoot.png

     

Log in to post a comment.