PFC200 - Modbus TCP Server

damian177
2020-08-01
2020-08-03
  • damian177 - 2020-08-01

    Hi,
    I try connected WEINTEK HMI with my PFC200 (CODESYS v3.5).
    Firstly, I try only read register according with documentation for example :
    variable in %MW0 should be in 12288 modbus register. But it doesn't work.

    So, in my project I add ModbusTCP_Slave_Device and it is works. I can read / write data form HMI.
    Why in my project in Mapping window I have only input and holding register? How can I read coils ?
    I can use M memory area? - not Q.
    It is possible write/read REAL variable ?

     
  • i-campbell

    i-campbell - 2020-08-02

    Hi Damian. It looks like you are trying to setup a modbus slave to talk to your Weintek.

    Is it easier to use the CODESYS V3 (Ethernet) driver on the Weintek? Page 150 of this document for the details.
    https://dl.weintek.com/public/PLC_Connect_Guide/eng/PLC_connection_guide.pdf

    For coils, in the current version, you need to tick "discrete bit areas" in the general tab of the modbus TCP device.

    The modbus TCP device is only for %I and %Q areas, and can be mapped to specific tags.

     
    • damian177 - 2020-08-03

      Exactly, the CODESYS V3 driver from Weintek is amazing simple. I left Modbus. Thanks for help.

       

Log in to post a comment.