TagSetClock - SetClock tag command


The TagSetClock function block sends a SetClock command to a tag.


REQBOOL R_EDGEInputA rising edge starts the SetClock command.
TAGNAMESTRINGInputThe name of the tag to send the SetClock command on.
BUSYBOOLOutputSet to true while the SetClock command is in progress.
DONEBOOLOutputSet to true for 1 execution after the SetClock command has completed.
ERRORBOOLOutputSet to TRUE if the SetClock command failed.
ERRORMSGWSTRINGOutputIf ERROR is TRUE, the reason why the SetClock tag command failed.

Once the SetClock command begins, additional requests from the input signal REQ are ignored until the tag command completes.

These timing diagrams show the relationship of the REQ, BUSY, DONE, and ERROR signals processing two requests. The first request completes with an error, the second request completes normally:

        +--------+     +-+ +------+
  REQ   |        |     | | |      |
      --+        +-----+ +-+      +------
        +------+       +------+
 BUSY   |      |       |      |
      --+      +-------+      +----------
               ++             ++
 DONE          ||             ||
ERROR          |       |
      ---------+       +-----------------

The BUSY signal is TRUE while the tag command is in progress. The DONE signal is TRUE for 1 execution after the completion of the tag command.

Further Information

Tag Command Function Blocks

To learn about other tag command function blocks.

Elementary Data Types

To learn about the different types supported by Fernhill SCADA.

Common Elements

To learn about other IEC 61131-3 Common Elements.


For the meaning of terms used in Fernhill SCADA.