I did some work around by adding IN switch on top of OUT bulb picture(SwitchImage) and setting IN switch button to invisible but this is not quite elegant. How to combine it to one visu element?
Just to clarify. Output for lamp will have two inputs: from plc IN (wall switch) and from visu button. Until now I had separate object for visu button and separate for visu lamp. Now I want it to be one object, bulb icone which will change color on lamp status and yet by touching it will change visu button state. Tried "Switch Image" object but there is no way to assign switch var.
Just to claryfi. Output for lamp will have two inputs: from plc IN (wall switch) and from visu button. Until now I had separate object for visu button and separate for visu lamp. Now I want it to be one object, bulb icone which will change color on lamp status and yet by touching it will change visu button state. Tried "Switch Image" object but there is no way to assign switch var.
Hi, Im struggle with making custom button. The idea is simple grey light bulb after touch (input var) it changes to yellow but shows output var status not switch status. So if light is physically on, switched by physical switch, bulb is also yellow. How to do it?
I think I have sort it out. Set "Auto reconnect" and 3sec timeout in Master modbus. So far it works, however status of modbus modules shows that errors for timeouts occurs quite often.
Hi, I am fresh to codesys, using latest version for raspberry pi. I have two modbus RTU modules 16DI and 16DO, connected by TCP/RTU gateway. Modules and all Inputs and Outputs are added to the system, assigned variables and program starts and run without any error data is read (switches) and write (lamp outputs) and all works great. But just for 15-20m minutes later one of the modules stop exchanging data. Codesys show no error, connection seems be ok , sending request as expected but no response...