Difference between revisions of "Extensions.Util.CopyByteField"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE: '''CopyByteField'''}}Category:Util == Classification == {{ClassificationActivity | CopyByteField | UPDATING...<!--Create an event source for change event-...")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:  '''CopyByteField'''}}[[Category:Util]]
 
{{DISPLAYTITLE:  '''CopyByteField'''}}[[Category:Util]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | CopyByteField | UPDATING...<!--Create an event source for change event--> | [[Term]] | [[Extensions.Util|OTX Util extension]] | UPDATING... | UPDATING... | UPDATING... }}
+
{{ClassificationActivity | CopyByteField | Copies the byteField | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
EventSourceTerm = EventHandling.MonitorChangeEventSource(Variable);
+
ByteFieldTerm = Util.CopyByteField(ByteFieldTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== Description ==
 
== Description ==
UPDATING...<!--
+
The OTX '''CopyByteField''' term returns a ByteField which is a copy of the <byteField> parameter.
The OTX '''MonitorChangeEventSource''' term creates an event source that monitors the value of a variable and an event triggers when the value changed. Event queue should start immediately as soon as the event source is created.
 
  
{{Note|The case when a value to a previously uninitialized variable is assigned to count as a change event and make no mistake.}}
+
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | The ByteField which is a copy of the <byteField> parameter.}}
 
 
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}}
 
  
 
== Properties ==
 
== Properties ==
UPDATING...//
 
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Variable | - | [[Variable]] | - | [1] | The variable which has to be monitored.}}
+
{{TableRowPropertie2| Term | - | [[Term]] | - | [1..1] | Represents the '''ByteField''' which shall be copied.}}
 
|}
 
|}
-->
 
  
 
== OTL Examples ==
 
== OTL Examples ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Boolean Bool1 = false;
+
ByteField ByteField1;
EventHandling.EventSource EventSource1;
+
 
EventHandling.Event Event1;
+
/// Flow
  
EventSource1 = EventHandling.MonitorChangeEventSource(Bool1);
+
ByteField1 = Util.CopyByteField(&0123456789ABCDEF);
parallel
 
{
 
  lane
 
  {
 
      Bool1 = true;
 
  }
 
  lane
 
  {
 
      EventHandling.WaitForEvent({EventSource1}, Event1);
 
  }
 
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== See also ==
 
== See also ==

Revision as of 08:10, 4 October 2018

Classification

Name CopyByteField
Short Description Copies the byteField
Class Term
Extension OTX Util extension
Group Util related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ByteFieldTerm = Util.CopyByteField(ByteFieldTerm);

Description

The OTX CopyByteField term returns a ByteField which is a copy of the <byteField> parameter.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
ByteField The ByteField which is a copy of the <byteField> parameter.

Properties

Name Data Type Class Default Cardinality Description
Term - Term - [1..1] Represents the ByteField which shall be copied.

OTL Examples

ByteField ByteField1;

/// Flow

ByteField1 = Util.CopyByteField(&0123456789ABCDEF);

See also

Compare
IsInitialized
ListIndexOf
ListIndexOfAny
ListReverse
ListSort
Max
Min
StringFormat