논리 연산
판독기의 값을 표시하는 것이 유용할 수 있지만 연산자를 사용하여 특정 값을 다른 값과 결합하기 시작하면 상황이 매우 흥미로워집니다. 모든 연산자는 논리 프로그래머에서 찾을 수 있습니다.
항목과 블록 모습으로 존재하는 논리 프로그래머를 만드는 것으로 시작하세요. 모든 연산자의 목록을 보려면 GUI를 여세요.
다음으로 Integer 연산자를 검색하고 클릭합니다. 그러면 숫자를 입력해야 하는 창이 열립니다. 이 작업을 완료했으면 빈 변수 카드를 삽입하여 해당 Integer를 변수 카드에 바인딩하십시오. 완료되면 다른 Integer에 대해 다시 한 번 수행하세요.
마지막으로 덧셈 연산자를 검색하여 엽니다. 이렇게 하면 두 개의 Number를 더할 수 있습니다. 두 개의 Integer 변수 카드를 이 슬롯에 삽입하고 새 변수 카드에 바인딩하세요.
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.
- Number
- Number
- Number