Jump to content

MODBUS IP address list in Unistream using unilogic 1.16


Joesteva

Recommended Posts

We have an issue regarding the Modbus TCP/IP communication with a third party HMI(Weintek), the read only bits can be read but I can't seem to write data on the PLC, how can I match the address that unilogic uses to the Modbus Standard( 0x 1, 0x 2, 1X 1 and so on) does this address matches exactly to that standard, say, If we configure a Coil to address 1 read only does this translate to 0X 1?, and if a second coil is configured as address 2 read/write does this means 1X 1? or 1x 2?. As I stated before, Our master HMI can read the coils configured as read only, we can even read and write registers, but we haven't been able to write to the PLC.

Link to comment
Share on other sites

When I create an HMI Slave in unilogic the unistream doesn't generates a Modbus address relation for the tags we are creating, it just shows address 1 or address 2, what I want to know, is the relationship between these and the 0x from Modbus, my issue is that with my  HMI I can read registers and read 1x coils from my master HMI, but when I try to write (I programmed a button on my hmi to start a motor) the signal never arrives to the PLC. 

List of Master HMI tags:

  • 1X 1: XS-MR102
  • 1X 2: XS-MR101
  • 1X 3:PRUEBA OUT
  • 0X 1: START BANDA
  • 0X 2: STOP BANDA
  • 0X 3: CERO
  • 0X 4: PRUEBA IN

List of Slave Unistream tags:

  • COIL 1 XS-MR102 ADDRESS 0 READ ONLY (XS-MR102)
  • COIL 2 XS-MR101 ADDRESS 1 READ ONLY (XS-MR101)
  • COIL 3 START BANDA ADDRESS 2 READ/WRITE (START BANDA)
  • COIL 4  STOP BANDA ADDRESS 3 READ/WRITE (STOP BANDA)
  • COIL 5 HS-BOT ADDRESS 4 READ/WRITE (CERO)
  • COIL 6 PRUEBA HMI ADDRESS 5 READ/WRITE (PRUEBA IN)
  • COIL 7 HMI SALIDA ADDRESS 6 READ ONLY (PRUEBA OUT)
Link to comment
Share on other sites

  • 2 weeks later...

I contacted support and Guy Sela helped us, he explained this:

Quote

The addresses should be like the first list.

Each coil needs to have its own address and promotions.

Adress  Nombre              Tipo                         Dirección Modbus

0            XS-MR102           READ ONLY         1X-1

1             XS-MR101           READ ONLY         1X-2

2             START                   READWRITE       0X-3

3             STOP                     READWRITE       0X-4

4             CERO                    READWRITE       0X-5

5             PRUEBAIN          READWRITE       0X-6

6             PRUEBAOUT      READ                    1X-7

We were confused with the addressing of the directions, it seems that the read only and the readwrite are stored on the same byte regardless of the type.

I hope somebody else find this helpfull too.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...