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["OPCClassic.Blocks.SamplerInteger.TriggeredWrite"]
Out[1]:=

Information

This block writes data of type Integer to the OPC 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.

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

Relevant Parameters

  • itemName: which OPC item to write data to
  • uMax: if useUMax is true, then uMax is the upper limit for the written data
  • uMin: if useUMin is true, then uMin is the lower limit for the written data
  • useUMax: if true, respect upper limit uMax
  • useUMin: if true, respect lower limit uMin

Interfaces

  • u: an Integer 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 (5)

itemName

Value:

Type: String

Description: The OPC item that data should be written to or read from

useUMax

Value: false

Type: Boolean

Description: If true, use upper limit for written signal

uMax

Value: 1

Type: Integer

Description: Upper limit of written signal

useUMin

Value: false

Type: Boolean

Description: If true, use lower limit for written signal

uMin

Value: 0

Type: Integer

Description: Lower limit of written signal

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: IntegerInput

Description: 'input Integer' as connector

Used in Components (1)

MultipleTriggeredWrite

OPCClassic.Blocks.SamplerInteger

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