Prof. Dr. Thorsten Jungmann (last updated 2026-10-12)

Relates to DET-02 Logic operations

Task

A press in a car factory may move down only if its guard is closed () and the operator presses its two buttons, one with each hand ( and ). The output is , ‘press may move down’. Subtasks a) and b) are based on exercises in the textbook by LaMeres [5, pp. 84–85].

a) Set up the truth table of .

b) Sketch the timing diagram of when the inputs , and run through all eight combinations one after another, in the order of the truth table and each for the same time. Assume an ideal gate without delay.

c) Draw the contact logic of between the rails L+ and L−.

◀️ Back to the task


Solution

Given

Given explicitly:

  • the inputs (‘guard closed’), and (‘button pressed’); all three are needed
  • the output , ‘press may move down’
  • b) the inputs run through all eight combinations in the order of the truth table, each for the same time; ideal gate

Known:

  • Truth table: all combinations of the inputs in ascending order, like a binary count (DET-02); the AND gate (DET-02) and gates with more than two inputs (DET-02)
  • Timing diagram (DET-02); contact logic: a normally open contact stands for the variable, contacts in series stand for AND (DET-02)

Required

a) the truth table of
b) the timing diagram of
c) the contact logic of

a) Truth table

The press may move down only if all three conditions are met. This is the AND operation with three inputs (DET-02, 3.4):

With three inputs, the truth table has rows, in ascending order like a binary count and numbered from row 0 to row 7 (DET-02, 2.2):

0000
0010
0100
0110
1000
1010
1100
1111

Check with the rule of the AND gate: a product of 0s and 1s is 1 only if every factor is 1, which is the case only in row 7 ✓

b) Timing diagram

In the timing diagram, the inputs run through the eight rows of the truth table one after another, each for the same time (DET-02, 2.7): keeps its value for four sections at a time, for two and for one, as in the columns of the truth table. Section by section, the output follows the column :

Timing diagram of the AND gate with three inputs through all eight combinations, in which Y is high only in the last section.
Timing diagram of the AND gate with three inputs through all eight combinations, in which Y is high only in the last section.

is 0 in the first seven sections and rises to 1 only in the last one, where , and are all 1.

Check: each of the eight sections agrees with the row of the same number in the truth table; is 1 in one section only ✓

c) Contact logic

In contact logic, a normally open contact stands for its variable, and contacts in series stand for AND (DET-02, 2.5). The three normally open contacts therefore lie in series with the lamp , which lights only if all three are actuated:

Contact logic of the AND gate with three inputs between the rails L+ and L−, three normally open contacts A, B and C in series with the lamp Y.
Contact logic of the AND gate with three inputs between the rails L+ and L−, three normally open contacts A, B and C in series with the lamp Y.

Check with row 6 of the truth table, , and : the open contact interrupts the series, and the lamp stays out, , as in the table ✓

In the simulation, you can check all three subtasks: switch the inputs through the eight combinations and compare with the truth table, the timing diagram and the contact logic. At the start, and are 1, but is 0, and shows 0, as in row 6.

Simulation of an AND gate with three inputs in which A and B are high and C is low, so that the output Y is low.
Simulation of an AND gate with three inputs in which A and B are high and C is low, so that the output Y is low.

Open in the simulator