I successfully enabled a beaglebone with BB-View 7" display as VISU server for a HOME-Automation environment. The codesys runtime is running and I can program PLC logic and VISU elements. Now I tried to connect the beaglebone to the WAGO PLCs running as home automation controller using Modbus TCP. I got it to the point, that the beaglebone sends a Modbus request to the WAGO and the WAGO (750-881) answers with the correct values, but in the PLC logic the values did not appear.
It seems to me, that there is a final misconfiguration within my Modbus-Slave settings - but I did not found it yet. May be you can help - I will provide my sample project and also a wireshark screenshot and mobus slave screenshot ...
Hi,
this 'light gray' values mean that you do not use the mapped variable in any POU of the project.
Due performane reasons CODESYS does only updated values if the variables are really used. (This is fieldbus independet for all io's - not used io's are not needed to update)
How to come out from this situation.
Either use the the mapped variable in a POU or change the setting to always update Enable 2 (maybe set this only in commissioning phase of your application)
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for your hint - that was the final misconfiguration - now it works. But I thought, that I used the variables - within the VISU-elements - but this seems to me is not enough to force the update.
best regards
Mario
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Codesys Support,
I successfully enabled a beaglebone with BB-View 7" display as VISU server for a HOME-Automation environment. The codesys runtime is running and I can program PLC logic and VISU elements. Now I tried to connect the beaglebone to the WAGO PLCs running as home automation controller using Modbus TCP. I got it to the point, that the beaglebone sends a Modbus request to the WAGO and the WAGO (750-881) answers with the correct values, but in the PLC logic the values did not appear.
It seems to me, that there is a final misconfiguration within my Modbus-Slave settings - but I did not found it yet. May be you can help - I will provide my sample project and also a wireshark screenshot and mobus slave screenshot ...
thanks in advance
Mario
HolzHausVisu.project [228.81 KiB]
Hi,
this 'light gray' values mean that you do not use the mapped variable in any POU of the project.
Due performane reasons CODESYS does only updated values if the variables are really used. (This is fieldbus independet for all io's - not used io's are not needed to update)
How to come out from this situation.
Either use the the mapped variable in a POU or change the setting to always update Enable 2 (maybe set this only in commissioning phase of your application)
BR
Edwin
Hi Edwin,
thanks for your hint - that was the final misconfiguration - now it works. But I thought, that I used the variables - within the VISU-elements - but this seems to me is not enough to force the update.
best regards
Mario