Logic Machine Forum
Touch visu status update issue - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Touch visu status update issue (/showthread.php?tid=2874)



Touch visu status update issue - p_xatzi - 29.09.2020

Hi,

For the last FW, in the attached video I have binary object (set for main and status object) which status is set to not respond to main object's commands. If status is changed manually, graphic shows correct state. However, if graphic element is used in visu environment then in order for the graphic status to update correctly it is necessary to "align" first to the main's object state.

Is it a bug or is the way touch visu is set? I there any way around this issue?

https://1drv.ms/v/s!ApPVtjvdHVa6hIMcetZztkonuYnJmw?e=ck4vqv+

Thanks in advance!


RE: Touch visu status update issue - admin - 29.09.2020

Control changes state only when status object is changed, but in your case status object value remains the same. If your status object does not represent real object value then don't use it at all.


RE: Touch visu status update issue - p_xatzi - 29.09.2020

(29.09.2020, 10:53)admin Wrote: Control changes state only when status object is changed, but in your case status object value remains the same. If your status object does not represent real object value then don't use it at all.

Hi,

Actually, there are some real cases. Suppose, we have a PLC communicating through Modbus TCP. The main object would energize a power relay (through PLC's output) and from the relay itself we would get the status (through PLC's input). If the relay would not respond for any reason (selector switch, damaged e.t.c.) status would not be sent. This way in visu we would get ON indication instead of OFF state which is normal as long as we did not receive a reply.

However, we could request the state of PLC's after a small delay (we would get value OFF) and then Touch visu would show ON state incorrectly.

P.S. How, is it possible to request the state of some variable through script (as long as LM only updates values on change)? Actually, how to perform a modbus read function which would update LM objects' value?

Thanks!


RE: Touch visu status update issue - admin - 29.09.2020

The icon in the visualization represents the status object value.
If you are using modbus mapper then read commands are set periodically.


RE: Touch visu status update issue - p_xatzi - 29.09.2020

(29.09.2020, 12:15)admin Wrote: The icon in the visualization represents the status object value.
If you are using modbus mapper then read commands are set periodically.

Truly, visualization represents status of object. Excuse me if I don't understand. Isn't the case I described an "issue".  We send "on command" (through visu), receive status of the object ("value off" through Modbus) but visualization does not update (shows "status on")... It is exactly the case of the previously attached video.


RE: Touch visu status update issue - admin - 29.09.2020

You are describing a very rare case. The normal behavior is that status object follows control object value. If you want to have a more visible status then create a separate read-only element and do not use status object for control element.