<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "en"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "reference"/><meta name = "abstract" content = "Definition of logical variables."/><meta name = "description" content = "Definition of logical variables."/><meta name = "DC.relation" scheme = "URI" content = "../TsoUserMap/tso-c-usr-post-toolbox-logVar.htm#tso-c-usr-post-toolbox-logVar"/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-r-cmd-logical"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>LOGICAL</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-r-cmd-logical">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>LOGICAL</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3"><table class = "DocHeaderIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
<span class = "shortdesc">Definition of logical variables.</span>

</p>
<p>This page discusses: </p><ul><li><a href = "#tso-r-cmd-logical__tso-r-cmd-logical-base" id = "toc_rg" title = "">Items for DEF_TYPE = BASE</a></li><li><a href = "#tso-r-cmd-logical__tso-r-cmd-logical-boolean" id = "toc_rg" title = "">Items for DEF_TYPE = BOOLEAN</a></li><li><a href = "#tso-r-cmd-logical__tso-r-cmd-logical-rmk" id = "toc_rg" title = "">Remarks</a></li><li><a href = "#tso-r-cmd-logical__tso-r-cmd-logical-expl" id = "toc_rg" title = "">Examples</a></li></ul>
</p></td></tr></table></td><td class = "DocHeader2"><table class = "DocTopicsSeeAlso" id = "table13"><tr><td class = "TopicsTitle">See Also</td></tr></table><table class = "DocTopicsInOtherGuides" id = "table14"><tr><td height = "8px"/></tr><tr><td class = "TopicsTitleNormal">In Other Guides</td></tr><tr><td><a title = "Logical variables are discussed within this section." href = "../TsoUserMap/tso-c-usr-post-toolbox-logVar.htm#tso-c-usr-post-toolbox-logVar">Logical Variables (LOGICAL)</a></td></tr></table></td></tr></table>




<div class = "body refbody">
<table class = "table" id = "tso-r-cmd-logical__aa1166094"><caption/><colgroup><col/><col/><col/></colgroup><tbody class = "tbody">
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">ID_NAME</span></p></td>
<td class = "entry"><p>= &lt;<code class = "ph codeph">id_name_of_logical_variable</code>&gt;</p></td>
<td class = "entry"><p>Name of the logical variable.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">DEF_TYPE</span></p></td>
<td class = "entry"><p>= BASE</p></td>
<td class = "entry"><p>Definition of a logical variable by comparison of existing numerical variables.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= BOOLEAN</p></td>
<td class = "entry"><p>Definition by linking logical variables with Boolean operations.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">OPER</span></p></td>
<td class = "entry" colspan = "2"><p>DEF_TYPE = BASE:</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= GE</p></td>
<td class = "entry"><p>Variable A is greater than and equal to variable B.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= LE</p></td>
<td class = "entry"><p>Variable A is less than and equal to variable B.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= GT</p></td>
<td class = "entry"><p>Variable A is larger than variable B.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= LT</p></td>
<td class = "entry"><p>Variable A is smaller than variable B.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= EQ</p></td>
<td class = "entry"><p>Variable A equals variable B.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry" colspan = "2"><p>DEF_TYPE = BOOLEAN:</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= AND</p></td>
<td class = "entry"><p>And-linkage of logical variable LOG_A to LOG_D.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= OR</p></td>
<td class = "entry"><p>Or-linkage of logical variable LOG_A to LOG_D.</p></td>
</tr>
</tbody></table>

<div class = "section" id = "tso-r-cmd-logical__tso-r-cmd-logical-base"><h2 class = "title sectiontitle">Items for DEF_TYPE = BASE</h2>

<table class = "table" id = "tso-r-cmd-logical__aa1318981"><caption/><colgroup><col/><col/><col/></colgroup><tbody class = "tbody">
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">VAR_A</span></p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_1st_variable</code>&gt;</p></td>
<td class = "entry"><p>Name of a defined numerical variable.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p>VAR_B</p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_2nd_variable</code>&gt;</p></td>
<td class = "entry"><p>Name of a defined numerical variable.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p>FIX_VAL</p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">value</code>&gt;</p></td>
<td class = "entry"><p>Real value instead of VAR_B.</p></td>
</tr>
</tbody></table>

</div>

<div class = "section" id = "tso-r-cmd-logical__tso-r-cmd-logical-boolean"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Items for DEF_TYPE = BOOLEAN</h2>

<table class = "table" id = "tso-r-cmd-logical__aa1319031"><caption/><colgroup><col/><col/><col/></colgroup><tbody class = "tbody">
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">LOG_A</span></p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_1st_logical _variable</code>&gt;</p></td>
<td class = "entry"><p>Name of a defined logical variable.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">LOG_B</span></p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_2nd_logical _variable</code>&gt;</p></td>
<td class = "entry"><p>Name of a defined logical variable.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p>LOG_C</p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_3rd_logical _variable</code>&gt;</p></td>
<td class = "entry"><p>Name of a defined logical variable.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p>LOG_D</p></td>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_4th_logical _variable</code>&gt;</p></td>
<td class = "entry"><p>Name of a defined logical variable.</p></td>
</tr>

</tbody></table>
</div>


<div class = "section" id = "tso-r-cmd-logical__tso-r-cmd-logical-rmk"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Remarks</h2>

<ol class = "ol">
<li class = "li">The direct definition of logical variables (<code class = "ph codeph">DEF_TYPE = BASE</code>) can be done by a comparison of two numerical variables or one numerical variable 
    and a fixed value. The numerical variables must already be defined.</li>
<li class = "li">Definitions relating to Boolean operations (<code class = "ph codeph">DEF_TYPE = BOOLEAN</code>) must include at least two already defined logical variables that are referenced.
    A maximum of up to four logical variables might be combined.</li>
</ol>
</div>


<div class = "section" id = "tso-r-cmd-logical__tso-r-cmd-logical-expl"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Examples</h2>

<pre class = "codeblock">
<code class = "ph codeph">
LOGICAL
 ID_NAME  = my_logical_01
 DEF_TYPE = BASE
 OPER     = LT
 VAR_A    = volume_part_a
 FIX_VAL  = 100.0
END_
</code>
</pre>
</div>

</div>

<div class = "related-links"/>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
