Page 1 of 1

[iX Developper 2.1] Modbus RTU TCP - Config Adress IP

Posted: Mon Mar 30, 2015 11:36 am
by emaitre
Hi,

I'm developing an HMI on T4A panel and I try to communicate with it from my computer with TCP Modbus.
I discovered the Beijer environment. Big project , I have only one weight value to display :shock:

Create the variable and the link to the communication , we will stand that 's fine.
Setting the Modbus adesse of the screen and IP address , so good.

But I'm not sure to understand the communication with the PLC . Normally you have to specify the IP address and Modbus address ? (Where !?)

Image

Second question, how to map the read addresses with the PLC variables ...?
First input reguster 30,000 0 means the address of the controller ?

Re: [iX Developper 2.1] Modbus RTU TCP - Config Adress IP

Posted: Mon Apr 13, 2015 3:42 pm
by AMitchneck
The Modbus TCP driver uses the IP address of the panel.

Based on the settings you gave, the addresses are 0-based Big-Endian format. This means the first coil address is 00000, the first input status register is 10000, and so on. The Modbus driver has a limited number of registers it can support so to enable a input register range of 31000-33047 instead of 30000-32047 you set the starting address to 31000.

To address the variables, switch to the tags tab and edit the address in the modbus tcp driver's column. For example, based on your settings, if you set you weight tag to address 30000 it will be addresses as an input register (relative address 0x0000). To have values shared between drivers (i.e. PLC to Modbus) you will need to also setup the data exchange for the tag.