adccommunitymod (AutomationDirect) asked a question.

ibox CTRIO

Created Date: June 02,2006

Created By: foxprints

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I'm trying to use the load profile iboxes and running into trouble. I'm using a toggle bit to switch between dynamic positioning and dynamic velocity profiles, & I can get it to load a dynamic positioning profile & execute moves fine, but when I toggle the bit to load the other profile it will not load & it remains stuck in the dynamic positioning mode. I thought it might be timing since it only makes one attempt on the rising edge, so I added an sp4 contact & a "not the current ibox success bit " contact in series, so that if it was just timing it would keep seeing more rising edges until it did succeed. Obviously that didn't work. Is there a bit somewhere that needs to be cleared to release the 1st load profile ibox before another can be loaded?


  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: foxprints

    I got frustrated last night & wiped out what I had done yesterday. I reproduced it today and now I can't even get the 1st profile to load. the first profile does not produce an error, but it also does not load & turn on the success bit. The second profile at least turns on the error bit, but the error code is not displayed in the address directed by the read error msg box. Does anyone use these iboxes?

    Again the help file is no help.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: marksji

    Can't say that I 've used the CITRO iBoxes, but I have used the ones for communications and math and they seem to work ok. I think you probably should call tech support and see what they know.

  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: franji1

    I don't know if this is what you are seeing, but you can NOT execute a Pulse Output Runtime command whenever the Output Enable is ON.

    This will cause the CTRVELO to fail. Is the Error bit turning on when you try to run it? If so, it's probably due to the fact that the Output is Enabled when trying to execute this IBox.

    Wait for the previous move to complete, turn off the specific Output Enable, execute the CTRVELO IBox, when its success bit comes on, turn back on the Output Enable.

    You will need similar logic for the other command, too, whenever you try to toggle back.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: foxprints

    More accurate info:

    The enable bit is off and the feedback bit verifies it is off.

    If I load the first load profile box it successfully loads (per the success bit), hoever, the CTRIO monitor i/o window does not show the correct file number loaded (I'm loading file 4 & the monitor show file 1), but I don't know if that window is accurate or not.

    If I attempt to load the second box first, or second it does not succeed. The second box always produces an error bit, but the error word shows no error message (0).

    I don't think the first box is actually successfully in spite of the success bit because the CTRIO monitor window shows the wrong file # loaded for that output & if I toggle the enable out bit of that output, it executes the profile shown in the CTRIO monitor window, not the profile supposedly loaded.

    It is set up basically the same as the example program, each box has a different vmem address for workspace, I don't know if it needs a word or dword so I left an empty word between each.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: foxprints

    Ah finally something works!

    can anyone spot why this won't work properly?

  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: franji1

    Just looking at the parameters, V406 is used twice, once as the output error code in the CTRRDER and once as Workspace parameter in the CTRLDPR IBox - this will break the program.

    Make sure that ANY and ALL Workspace parms are used once and only once in the ENTIRE program (use XRef View for that). These parameters contain state information about that IBox from scan to scan and so cannot be used anywhere else in your program.

    V400

    V402

    V404

    V406

    V410

    must not be used anywhere else in your program except that ONE Workspace parm in that ONE specific IBox.

    Please check ALL of the other IBox Workspace parameters in your program. XRef View is great for checking that.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: foxprints

    True, corrected, never got an error on that rung anyway, but it still dosen't work.

    These are mostly unnamed because I wrote new rungs today to try and start fresh, I checked each one again and they are only referenced in one place, still dosent work.

  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: franji1

    ZIP up your ladder program and your CTRIO Workbench config and email them to support at hosteng.com (you know what to do to make it a valid email address).

  • adccommunitymod (AutomationDirect)

    Created Date: June 02,2006

    Created by: foxprints

    I eliminated rung 4 completely and I still can't get it to load file 4 into the CTRIO, it says it is successful with the bit (c100), but the profile is still file 1 in the CTRIO monitor window and the pulse output is consistent with that profile (1) not profile 4. I assume the monitor window is correct because if I toggle the enable and go to pos. bits I can see them change states in the monitor window.

    Expand Post
10 of 13