ModBus Communication
- jiji.thankappan
- Posts:44
- Joined: Tue Sep 18, 2018 7:39 am
ModBus Communication
I have created a demo project in winccoa, and I connected it with PLC through ModBus Driver. Also I created the same tag address that is in the PLC, but it is not showing the data. pls give me a solution for this, am new to winccoa
- mkerk
- Posts:75
- Joined: Wed Oct 20, 2010 12:25 pm
Re: ModBus Communication
Hello,
Please check the following:
1- if the Modbus driver is running correctly .
2- If the connection to the PLC is established correctly. you can check this in the Modbus driver configuration panel.
3- If the address config is configured correctly and for the used Modbus driver manager number.
4- If the address config is activated.
5- no error messages in the logViewer
BR,
Mousser
Please check the following:
1- if the Modbus driver is running correctly .
2- If the connection to the PLC is established correctly. you can check this in the Modbus driver configuration panel.
3- If the address config is configured correctly and for the used Modbus driver manager number.
4- If the address config is activated.
5- no error messages in the logViewer
BR,
Mousser
- jiji.thankappan
- Posts:44
- Joined: Tue Sep 18, 2018 7:39 am
Re: ModBus Communication
Hi Mousser,
Thanks for the response.....
1- if the Modbus driver is running correctly .
Yes
2- If the connection to the PLC is established correctly. you can check this in the Modbus driver configuration panel.
In the configuration panel its showing that it is connected (screenshot attached)
3- If the address config is configured correctly and for the used Modbus driver manager number.
Yes, I have given the same number in the Modbus
4- If the address config is activated.
how to check if the address config is activated or not?
5- no error messages in the logViewer
WCCOAmod (1), 2018.10.11 10:10:47.901, SYS, WARNING, 54, Unexpected state, ModModbusMaster, processResponse, 192.168.1.99: Exception code received: EC=2 FC=1 for UA: 1 Ref: 0
WCCOAmod (1), 2018.10.11 10:10:57.888, PARAM,WARNING, 54, Unexpected state, ModModbusMaster, writeData, No host/unit address defined for PLC number: 0
also its repeating...
Thanks for the response.....
1- if the Modbus driver is running correctly .
Yes
2- If the connection to the PLC is established correctly. you can check this in the Modbus driver configuration panel.
In the configuration panel its showing that it is connected (screenshot attached)
3- If the address config is configured correctly and for the used Modbus driver manager number.
Yes, I have given the same number in the Modbus
4- If the address config is activated.
how to check if the address config is activated or not?
5- no error messages in the logViewer
WCCOAmod (1), 2018.10.11 10:10:47.901, SYS, WARNING, 54, Unexpected state, ModModbusMaster, processResponse, 192.168.1.99: Exception code received: EC=2 FC=1 for UA: 1 Ref: 0
WCCOAmod (1), 2018.10.11 10:10:57.888, PARAM,WARNING, 54, Unexpected state, ModModbusMaster, writeData, No host/unit address defined for PLC number: 0
also its repeating...
- jiji.thankappan
- Posts:44
- Joined: Tue Sep 18, 2018 7:39 am
Re: ModBus Communication
- mkerk
- Posts:75
- Joined: Wed Oct 20, 2010 12:25 pm
Re: ModBus Communication
Hi,
in the Address configuration panel in the left bottom corner there is a check box to activate the address config. This has to be checked.
The error message "ModModbusMaster, processResponse, 192.168.1.99: Exception code received: " means that the PLC could not handle the request. MAybe you have configured an illegal data address. Please check the address-configs again.
The error message "Unexpected state, ModModbusMaster, writeData, No host/unit address defined for PLC number: 0" means that There is no Host/Unit address defined for the PLC number. It seems that you are using the wrong PLC-number (field "PLC"-Number is = 0) in the DPE address-configuration. Please check and correct this.
BR,
Mousser
in the Address configuration panel in the left bottom corner there is a check box to activate the address config. This has to be checked.
The error message "ModModbusMaster, processResponse, 192.168.1.99: Exception code received: " means that the PLC could not handle the request. MAybe you have configured an illegal data address. Please check the address-configs again.
The error message "Unexpected state, ModModbusMaster, writeData, No host/unit address defined for PLC number: 0" means that There is no Host/Unit address defined for the PLC number. It seems that you are using the wrong PLC-number (field "PLC"-Number is = 0) in the DPE address-configuration. Please check and correct this.
BR,
Mousser
- jiji.thankappan
- Posts:44
- Joined: Tue Sep 18, 2018 7:39 am
Re: ModBus Communication
Hi Mousser,
Thanks for the reply.... I ll check...
Thanks for the reply.... I ll check...