Page 1 of 1

Modbus master not sending anything

Posted: Fri Nov 02, 2012 9:56 am
by charliehbeijer
I have a modbus master set up on com1. I have tags mapped to addresses on the modbus master controller. The controller is enabled. The poll group is set to 500 ms.

But it won't send anything out on the com port.

I know I have the com port hooked up OK, because I have another program which sends to com1, and I see my hardware monitor blinking, and I can see the serial data in hyperterminal. But in this program there is no activity on the serial port.

Re: Modbus master not sending anything

Posted: Fri Nov 02, 2012 10:21 am
by mark.monroe
Try setting some of your tags to Always active. The system will only send out data to the slave if tag values change or if a tag is displayed on a screen that is currently shown on the HMI. With always active turned on, it will continuously poll the tags.

You should also be able to unplug the serial cable from the modbus controller and get a Comm error indicating that the unit can not reach a controller.

Re: Modbus master not sending anything

Posted: Fri Nov 02, 2012 10:40 am
by charliehbeijer
I changed to Modbus over TCP just to see what would happen. I also set all the tags to "always active" as you suggested. The panel sends out modbus polls at regular intervals, and the slave responds. Good.

But if I change back to serial, what I see in hyperterminal is
"TEST IF ECHO". It sends that out once when the program starts, and then the com port goes silent. There is no polling error popup.

"Hide Comm Error" is set to false.

Re: Modbus master not sending anything

Posted: Fri Nov 02, 2012 10:52 am
by charliehbeijer
I found it.

When it's tcp, the "Default Station" is an index into the station table, default zero. When it's serial, the "Default Station" becomes the node number. Zero is not a valid node number. I changed that to 2, and now it is polling. I see the polls in my slave emulator.

Now I'm getting comm errors on the panel, but that is another issue. At least it's polling now.

Re: Modbus master not sending anything

Posted: Fri Nov 02, 2012 11:10 am
by mark.monroe
If your memory addresses are invalid the driver will not send out a command. You have addressing set for Decimal in your controller driver, but your using hex memory addresses assigned to the tags.

Change the Addressing field in your controller driver on the iX panel to hex and it will work.

Holding registers (0x3/0x6*) 400000 - 465535
40000 - 4FFFF Read Hex address range
400000 - 465535 Decimal address range.