ロジック演算
リーダーから生成された値を表示することは便利ですが、演算子を使用して特定の値を他の値と組み合わせると、非常に興味深いものになります。すべての演算子はロジックプログラマーにあります。
まず、アイテム形式とブロック形式の両方で存在するロジックプログラマーを作成します。 GUIを開いて、すべてのプログラマーのリストを表示します。
次に、整数の演算子を検索してクリックします。すると、数値を入力するウィンドウが開きます。これが完了したら、空の 変数カード を挿入して、その整数を変数カードに割り当てます。完了したら、別の整数に対して同じ操作をもう一度行います。
最後に、加算の演算子を検索して開きます。これにより、2つの数値を加算できます。2つの整数の変数カードをこれらのスロットに挿入し、新しい変数カードに割り当てます。
After writing a value to a Variable Card, you can always modify it again later by inserting it again in the Logic Programmer.
As Integrated Dynamics evaluates variables in a lazy manner, this Addition Variable Card does not contain the addition of these Integers directly, but the addition will only be performed when the value is needed in the network, based on the variable references. For this, the network has to be able to find these referenced Variable Cards. For this, you will need to craft and place a Variable Store. Insert the two Integer Variable Cards into this store to make them available to the network.
Finally, you can now connect a cable to the Variable Store, attach a Display Panel, and insert the Addition Variable Card to display the addition.
The Logic Programmer and Variable Stores are going to be your best friends when you want to do more complex automation.
- 数値
- 数値
- 数値