Posts Tagged ‘logical’
Timer, Counters and Relays
Relays:
A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an electromagnet to open or close one or many sets of contacts.
A simple relay has 5 pins. The left 2 pins are the operating part by taking input, the rest of the pins are the switching part to get output. A 4 pin relay doesn’t have NC pin. Read the rest of this entry »
Program Structure and the Decision Control Structure
Program Structure:
Structured programming divides complex programming problems and breaks them down into a number of smaller, simpler tasks. Each task is performed by a function in which code and variables are isolated from the rest of the program.
A simple example of program structure is shown below:

