Joesteva Posted May 12, 2017 Report Share Posted May 12, 2017 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 More sharing options...
MVP 2023 Joe Tauser Posted May 13, 2017 MVP 2023 Report Share Posted May 13, 2017 A 1X is an input in Modbus land. If you're working with MBs you have to stay with 0x addresses. List some the addresses you're trying to write. Joe T. Link to comment Share on other sites More sharing options...
Joesteva Posted May 15, 2017 Author Report Share Posted May 15, 2017 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 More sharing options...
Joesteva Posted May 24, 2017 Author Report Share Posted May 24, 2017 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 More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now