Alternatively, you can program the latch effect on your PLC tag rows instead of using an intermediate variable:
onlatchValue, BOOL, C0, “value = if theButton then !onlatchValue;”
offlatchValue, BOOL, C1, “value = !onlatchValue;”
Said that, we always recommend to program this kind of things right in your PLC if you are able, then just use a regular button on ScadaMobile. This helps to keep things clean and ultimately leaves all control to the hands of the PLC. At least, you should consider to perform the reversed state of the second bit in your PLC program, instead of letting ScadaMobile to set it. This would be safer against network disconnections and makes sure that the set/reset state changes of both bits are always keep in sync at all times and that they will happen exactly on the same PLC execution cycle.
I want to use two different tags in one button, My application is for a pressure pump, when I pressed the button once, First tag should be set and the second tag should be reset, and once again when I press the same button, First tag should be reset & the seond tag should be set and the comments should be display on the button, Please give a solution how use code in .cvs file