Function Block VISUDTSET

The Function Block VISUDTSET controls the communication with the visualization and converts the data type DT# to another format.

It is recommended to use the Function Block for the input fields Date and Date And Time.

Note: If scaling is performed, this must be done on both sides of the Function Block if both sides communicate via the same address.

WARNING: Never set two VISUSET or VISUDTSET with the same database in succession using SET. This leads to high unnecessary load on the PLC. Instead, use logic before the input SET.

Database

The Database DB defines the variable for communication with the visualization. The variables of the database cannot be accessed directly as with a normal database.

Input ➜

Here, the data type DT# or D# is expected. If the value at the input changes, it will be transferred to the visualization and to the output ➜. The value is transferred to the visualization without milliseconds. However, here the input is compared with its own internal variable. This way, this Function Block can be used multiple times in the same element.

Input DIS

If the input is true, it deactivates the transfer from the input ➜ to the visualization and to the output ➜. The internal markers are not written in this case. This means that after deactivation, the values will be compared again and possibly transferred.

Input SET

If the input is true, it forces setting of the value at the input ➜ to the visualization and to the output ➜. It has priority over the input DIS.

Output ➜

The last changed value is present at the output. This can come from the visualization or the input ➜, unless blocked by the input DIS. The value is transferred from the visualization without milliseconds.