Wednesday, May 20, 2009

Ch. 17-- Logic


This chapter took a while to fully understand. The logic block is an advanced block with many uses. THe logic block takes a yes/no response from other blocks via data wires and interprets them based on what you tell it to do. The logic block has a drop down menu with four options: And, Or, Xor, and Not. For the and option, both responses must be yes for a final yes to be generated from the logic block. For the or option, only one response must be yes for a final response of yes. For the Xor option, only one plug can be yes for a final yes value. For the not option, plug A is reversed and plug B will be disabled. Data wires must be connected for the logic block to work. The Logic block has 3 data ports. A port A, a port B, and a yes/no output. Take a sensor or anything else you want to use logic on, and and take a data wire and connect it to a or b.

No comments:

Post a Comment