Contents
Connect a jumper wire from the 5-volt pin to one side of the pushbutton. Connect a jumper wire from pin 2 to the other side of the pushbutton. Connect one side of the 10k resistor from the ground rail on the breadboard to the other side to the pushbutton – on the same side that pin 2 connects.
Where do the red and black wires go on a light switch?
The black (hot) wire goes to the brass screw or into the hole in the back of the device on the same side as the brass screw. This wire is sometimes red. The green or bare copper (ground) wire, if the device has one, attaches to the green screw terminal on the switch or to the electrical box.
What is 2 wire and 3 wire control?
Two wire control means, two wires for drive start command of “Forward and Reverse”. Three wire control means, one wire for stop command (“NC” Pushbutton) and two wires for drive start command of “Forward and Reverse(“NO” Push button)”. In three wire control, the stop command is provided separately.
How to turn an LED on or off with pushbutton?
This is a simple routine to turn an LED on or off with a single pushbutton. The trick to it (as you will see in the code) is to reserve an integer (ledflag) for storing the current status of the LED. Thus giving the rest of the routine some idea of whether the LED is currently on (1) or off (0).
What happens when you press the start push button?
When the selector switch is in the OFF position the RED LED of the Stop Pushbutton will be illuminated. (ON) If the selector switch is in the HAND position both PB Lamps will not be on. When the START PB is pressed the four stack lights will be energized. (ON) This will be for the duration of time the start push button is pressed.
Fuji Electric 22mm devices are rugged yet economical and include a wide assortment of pushbuttons, indicators, selector switches, and joysticks. The number of contact blocks allowed is device-dependent. Pushbuttons and selector switches can be ordered as an entire unit, or as individual components.
The selector switch usually locks into a position. We will be wiring two illuminated pushbutton switches into our Click PLC. A selector switch will also be wired in. Let’s get started. Additional discrete component connections to PLC include the following: