![]() |
![]() |
|
![]() |
||
Ladder Logic Examine of Open / Examine if Closed Instruction |
XIC-Examine if Closed,XIO-Examine if Open,OTE-Output Energize
Example 1Lets construction a simple circuit with one switch as a contact and one output as a coil. When the switch is on the light will go on and when the switch is off the light will turn off. Input / Output
Ladder Logic SolutionWhen the switch is on the input Address: I:1.0/0 will be on and hence the rung will be energized hence the outputs on address O:2.0/0 will be energize and the light will go on. When the switch is off the rung will be de-energized and the light will go off. ![]() Example 2Lets build an alarm system. Let's assume that we have 3 signals (Inputs) that we get from the field that warn us about some kind of fire danger.
Input / Output
Ladder Logic SolutionWe put all the alarm signals in parallel. This is equivalent to an or statement. This means that when either Alarm1 or Alarm2 or Alarm3 becomes on the rung will be energized and hence the Fire light will be turned on. This does not take care of the count of the alarms. It only look at whatever alarm is on. ![]() Here we put every possible combination of 2 alarms in a separate line. This is equivalent to an end statement. (Alarm1 and Alarm2) or (Alarm1 and Alarm3) or This takes care of 2 alarms at a time in which case if any of these combinations becomes true the Fire siren will go on. ![]() As you can see the 2 alarms are in series. This is equivalent to an and statement. Which is (Alarm1 and Alarm2 and Alarm3) if and only if alarm1 and alarm2 and alarm3 are on (3 of them) it is only then that the fire spray will be turned on. ![]() Note
|
|