From the course: Learning PLC Ladder Logic: 1 The Basics

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

I/O with alternating lights

I/O with alternating lights - Ladder Logic Tutorial

From the course: Learning PLC Ladder Logic: 1 The Basics

Start my 1-month free trial

I/O with alternating lights

- [Narrator] So, let's take another simple example to show the uses of input and output instruction. In this example, we are trying to achieve an alternating light. We have a Pushbutton connected to the input module of the PLC and the two lights are connected to the output module of the PLC. When the Pushbutton is pressed, a green light is on. When the Pushbutton is not pressed, a red light is on indicating that the Pushbutton is not pressed. In any example, try to do it one step at a time, so first, we are using an XIC instruction to program the Pushbutton. Remember, XIC instruction is highlighted when the memory location is one and then, we add a green light as an output, so now the program works this way. When the Pushbutton is pressed, the instruction is highlighted. The green light turns on as a results. Now, the question is, when the Pushbutton is not pressed, a red light turns on. Remember, we are using the same Pushbutton. So, let's take an advantage of the XIO instruction…

Contents