DeMorgan's Invert Problem

Corsair

Lifetime Supporting Member
Join Date
Dec 2020
Location
Missouri
Posts
248
A B D E G
---| |----| / |---+---| / |---| |------+----( )---
| |
| |
C | |
---| |------------+ |
|
|
F |
---| |-----------------------------------+


The problem is that the rung is backwards. G is On when it's supposed to be Off and Off when it's supposed to be On. The rung needs to be modified by inspection to product the correct output. Slashing the coil is not allowed.


A PLC programmer should be able to recognize and do simple DeMorgan's inversions in this head.


As a hint, DeMorgan would have us convert ANDs to ORs, ORs to ANDS, and invert inputs.
 
Last edited:
I'm not sure how to read this. It seems to me the formatting gets lost when posted as text. Would you be able to improve the formatting with either CODE tags or LADDER tags? If I just copy and paste your puzzle with LADDER tags it gives this:


A        B           D       E               G
---| |----| / |---+---| / |---| |------+----( )---
| |
| |
C | |

---| |------------+ |
|
|
F |
---| |-----------------------------------+




With some minor shifting of the letters between CODE tags it becomes mostly readable, not entirely sure if this is what you had in mind:

Code:
    A      B         D     E          G
---| |----|/|---+---|/|---| |---+----( )
                |               |
                |               |
    C           |               |
---| |----------+               |
                                |
                                |
    F                           |
---| |--------------------------+


Also, convention with puzzles is that we send answers to you by PM, rather than posting here (in other words: no spoilers). Is that your intention?
 
what does no slashing the coil mean? changing closed to an open or vica versa??? (or examine if ON, examine if OFF AB rubbish )
 
Last edited:
Where you draw the line at simple depends on the individual, but I go for three black boxes and invert that, and then invert the contents of each of the black boxes until there are no black boxes left.

demorg.jpg
 
Some PLCs include -(/)- in their instruction set. It is an output that evaluates true when the controlling logic is false and evaluates false when the controlling logic is true.


Codesys for instance allows for that. I find it quite useful.

When combined with the option to assign the output of a rung to two coils, you can do things like simultaneously creating an ALLOWED and a DISALLOWED bit. Or an ENABLED and a DISABLED bit.
 
Some PLCs have an "invert" instruction you can place ahead of your output "coil", or indeed anywhere you want to.

e.g. --------[INV]---( )-

Produces the same result as -(/)-

Personally I wouldn't modify the rung as it is, except to change the output bit to a temp bit, and then on a new rung just use...


Code:
   temp     G
---|/|-----( )--

I very often use "inverse logic" turning a bit on when conditions not satisfied, then add the inverting rung to get the result I need.
 
Last edited:
Some PLCs have an "invert" instruction you can place ahead of your output "coil", or indeed anywhere you want to.

e.g. --------[INV]---( )-

Produces the same result as -(/)-

Personally I wouldn't modify the rung as it is, except to change the output bit to a temp bit, and then on a new rung just use...


Code:
   temp     G
---|/|-----( )--
I very often use "inverse logic" turning a bit on when conditions not satisfied, then add the inverting rung to get the result I need.


Sounds like a voting machine. Get the results you want... LOL
 

Similar Topics

Hi, Has anyone had this problem: - I send a speed reference to my ABB ACS550 Drive via Modbus TCP to it's register via an INT. However when I...
Replies
1
Views
1,012
Converting an iFix 5.0 HMI to Ignition, not developed by me. Been a long time since using iFix. On Digital Input tags, what does the property...
Replies
3
Views
1,878
Hi everybody, I’m trying to find the best way to do invert a 4-20 mA signal in the device, PLC and citect. I have a Rotork actuator...
Replies
16
Views
6,168
how to Invert the Analog water Level Sensor values? It messure number in int from 27565 (tank empty) to 0 (tank Full) It there som kind of...
Replies
14
Views
6,203
Good evening everyone (or good morning) I am writing a program that has a analog input, I have scaled it to my 0-10v and its working great...
Replies
15
Views
4,833
Back
Top Bottom