WOLFRAM SYSTEM MODELER

TriggeredWrite

A block for writing data to items on an OPC server at intervals determined by an external Boolean signal (trigger)

Wolfram Language

In[1]:=
SystemModel["OPCUA.Blocks.SamplerBoolean.TriggeredWrite"]
Out[1]:=

Information

This block writes data of scalar type Boolean to the OPC UA server it is connected to. Unlike the write blocks that have a parameter for setting the sample period, the triggered write blocks write data when Boolean input signal trigger has a rising edge. The block inherits the properties of the partial model TriggeredSampler. Only scalar nodes can be written to; i.e. no array or matrix nodes are supported.

At every sampling instant, external function writeExternalBoolean is called from within the block.

Relevant Parameters

  • nodeID: which OPC UA node to write data to (ID value should always be inside quotes)
  • nodeNamespace: which namespace the node is located in
  • nodeIDType: which ID type to use, numeric or string

Interfaces

  • u: a Boolean input, which is the signal to be sampled and written to the OPC server
  • serverID: the connector that connects the block to the OPC server component
  • trigger: a Boolean input that determines when the block should sample data from the input signal

Parameters (3)

nodeIDType

Value:

Type: UANodeIdType

Description: The node identifier type

nodeID

Value:

Type: String

Description: The node identifier

nodeNamespace

Value:

Type: Integer

Description: The node namespace

Connectors (3)

trigger

Type: BooleanInput

Description: Boolean input that determines when sampling should occur

serverID

Type: BlockConnector

Description: The unique ID of the server the block is connected to

u

Type: BooleanInput

Description: Input signal to be sampled

Used in Examples (1)

TriggeredReadAndWrite

OPCUA.Examples

Basic example that demonstrates how to write to and read from nodes on an OPC UA server using a signal trigger