News:

  • May 01, 2026, 04:23:53 PM

Login with username, password and session length

Author Topic: 2 Ecom Cards in the Same Base Blues  (Read 42143 times)

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: 2 Ecom Cards in the Same Base Blues
« Reply #15 on: September 21, 2012, 12:10:23 PM »
sgsims,

Looking at your program I see a few things wrong. There are no conflicts, which is good, however, things to change:
- Rung 4 has an ECOM100 IBox. That IBox needs to be on the same Rung as the other ECOM100 IBox, i.e. Rung 1. The ECOM100 IBoxes always need to be at the top of your scan.
- Rung 2 needs to have a contact on it, SP1 (always ON), otherwise it is tied to the power flow above it (which in this case is not a bad thing).
- Rung 6 needs to also have a contact on it, SP1 (always ON), otherwise it is tied to the power flow above it (which in this case IS bad, because the power flow is going to go all the way up to C106). Thus if C106 is not ON, then Rung 6 is not executing. I think this is the problem.

Please make the above changes and see if it works.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

sgsims

  • Hero Member
  • *****
  • Posts: 127
Re: 2 Ecom Cards in the Same Base Blues
« Reply #16 on: September 21, 2012, 01:59:13 PM »
Greg:

You are the man!  That worked like a charm.  Guess I can send back the two new cards that AD RMAd for me!

A couple of questions though.  When I tried to but both configuration I-Boxes on the same rung the accept button would push the second ibox to another rung.  So now the two ibox configs are on rungs 1 & 2 respectively.

Not sure I understand the power flow concept with respect to the sp1 contact.  I get that sp1 is an always on contact.  But I didn't follow the rest of your explanation.  Seems like something I should understand moving forward.

Again....you are the MAN!

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: 2 Ecom Cards in the Same Base Blues
« Reply #17 on: September 21, 2012, 04:16:45 PM »
Cool!  ;D

You wrote, "When I tried to but both configuration I-Boxes on the same rung the accept button would push the second ibox to another rung.  So now the two ibox configs are on rungs 1 & 2 respectively."

That's good. I forgot it would do that. As long as they are at the top. Notice how the title of the IBox is bolded and italicized. Generally speaking this means it needs to go at the top of the ladder. Minimally it means it needs to be executed every scan.

You wrote, "Not sure I understand the power flow concept with respect to the sp1 contact.  I get that sp1 is an always on contact.  But I didn't follow the rest of your explanation.  Seems like something I should understand moving forward."

When you connect any output box directly to the left rail (power rail), DirectSOFT will redraw it. Notice the drawings attached and then refer to the following:

(1) Even though the OUT V3000 (Rung 2) is attached to the power rail, it gets redrawn by DirectSOFT to look like (2). So you can see that the OUT V3000 doesn't get automatically executed all the time just because it is attached to the power rail... it depends on C0.

(2) When DirectSOFT redraws the circuit you can now see that the OUT V3000 is dependent upon the power flow through C0.

(3) If you put an intervening NOP instruction (which is similar to what you did), DirectSOFT will not redraw it to connect it. However, it is still functionally equivalent to (2)! So it is quite deceptive to see the OUT V3000 connected directly to the power rail, but it is actually dependent upon C0!

(4) This is also functionally equivalent to (2). The reason-being, the ECOM100 IBox is just a ladder macro. And the first instructions in that IBox are to store the power flow. The last instruction in that IBox is to restore the original power flow. This effectively passes the power flow right around the IBox. Thus whatever the power flow is before the ECOM100 IBox, gets passed through to the rung below. What is above the ECOM100? C0! So, again, it is quite deceptive to see the OUT V3000 connected directly to the power rail and also having an intervening ECOM100 IBox instruction, and yet it is actually still dependent upon C0!

Hope this helps!
« Last Edit: September 21, 2012, 04:49:07 PM by Greg »
There are two types of people in the world; those that can extrapolate from incomplete data sets.

sgsims

  • Hero Member
  • *****
  • Posts: 127
Re: 2 Ecom Cards in the Same Base Blues
« Reply #18 on: September 24, 2012, 10:05:59 AM »
Thanks Greg!  Very thorough explanation.  I had no idea that sort of behavior would exist.  Good to know!

Again...thanks.  Your solution probably saved me two or three days of swapping out cards and trying different configurations to isolate the problem.  Which in the end I would never have found any solution.

Cheers!

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: 2 Ecom Cards in the Same Base Blues
« Reply #19 on: September 24, 2012, 11:20:47 AM »
Thanks also Greg. Even though I have been working with the DL line aa long time I didn't know about the NOP or the IBox effect on the power flow. (But then again, I don't use either.)

I would think that re-drawing the situation of the intervening NOP so that all are shown in the same rung would be better (if possible). I have no idea how any type of re-drawing would make the IBox situation clear though.
« Last Edit: September 24, 2012, 11:28:22 AM by b_carlton »
An output is a PLC's way of getting its inputs to change.