News:

  • June 06, 2026, 10:38:16 PM

Login with username, password and session length

Author Topic: H2-CTRIO2 Load Trapezoid File Problem  (Read 36802 times)

MVetrano

  • Full Member
  • ***
  • Posts: 27
H2-CTRIO2 Load Trapezoid File Problem
« on: June 16, 2016, 11:54:56 AM »
I am having trouble loading a trapezoid profile. I am programming in Stage. I am able to jog the axis in and out and home it if it is not on the home sensor.
If the axis is on the home sensor, I want it to move off the sensor when the operator presses the "Home Y Axis " button (C20). Rung 8 should load file #5 and set the "Move Off Home" bit C75. Rung 9 should initiate an alarm if there was an error loading the file. Rung 10 should reset the success and error bits and jump to stage 5 for the move. Stage 5 should return to stage 1 after the move is complete.
Right now, rung 8 will set the C75 bit, but does not load the file and I get no success or error bit indications.

I tried removing the C75 bit from rung 8 and it would execute the move but stay in stage 5. It did this a few times but then stopped loading the file.

I have been working on this for a few days, can someone tell me what I am doing wrong?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #1 on: June 16, 2016, 01:59:57 PM »
I have been working on this for a few days, can someone tell me what I am doing wrong?

The short answer? You're not using Do-more. ;) Joking. Kinda. It gets way easier when you do.

But regardless, we'll get you some help here. Stand by...
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #2 on: June 16, 2016, 04:25:21 PM »
I first want to qualify what I'm about to say with, it is always difficult to troubleshoot someone else's code ESPECIALLY if you don't have their physical setup. So I haven't tried to emulate your setup... yet.

But just looking at Rung 8 it would be possible to SET C75 ON WITHOUT triggering the CTRLDPR just for the fact that the CTRLDPR is edge-triggered (i.e. must see the logic go FALSE and then go TRUE) and the SET instruction is NOT edge-triggered.

So, are you sure your Rung 8 is seeing the FALSE and then the TRUE at the right time? I would suggest you might put the two CTRLDPRs (Rung 8 and Rung 5) in separate Stages to insure that they are not interfering with one another inadvertently.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

MVetrano

  • Full Member
  • ***
  • Posts: 27
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #3 on: June 17, 2016, 06:49:05 AM »
Thanks, I'll try that this morning.

MVetrano

  • Full Member
  • ***
  • Posts: 27
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #4 on: June 17, 2016, 12:44:33 PM »
Bob, I put rung 8 and 5 into their own separate stages. It actually worked once or twice but then it seems like it just stopped loading the file.
The last thing I did before it stopped working was add a RST command for the file success bit at the end of stage 5. I took it out but still nothing.
I don't have a lot of experience with Ladder so I'm not sure how to verify that the rung is seeing the False and then True signal.

FYI - I purchased a DoMore CPU, should be here next week. I hope it is as easy as you say it is. In the mean time, anything else I should try?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #5 on: June 17, 2016, 01:02:03 PM »
FYI - I purchased a DoMore CPU, should be here next week. I hope it is as easy as you say it is.

With Do-more you'll want to use Axis mode. No CtrioWB, module is configured through the SysConfig (go to the module config tab), and very little configuration is required there. For what you are doing, you mostly just need to set the pulse output mode...it's very similar to the way workbench works. Once the pulse output is configured, the CTAXCFG instruction will set up the axis, then CTAXTRAP to run a profile. No need to create or load profiles from the WB. Really easy. You'll be glad you did, not only for making CTRIO2 easier, but Do-more is so much easier to use than DL.

You're using Stage, which is a great thing in Do-more. Each program block has its own group of stages, starting with the first stage in the module. You can take a motion sequence and put it in its own program, and then RUN it from $Main (the top level program block). Device-centric instructions like CTRIO instructions have built-in stage transition logic, where you can set them to jump to the next stage in your sequence when they complete. When your sequence is complete, add an EXIT instruction to terminate the program.

It will take you just a little bit to start thinking in Do-more, but once you do, you will really like it. We've seen it over and over.

One more small teaser: The new platform we are developing now has tons of CTRIO2 type functionality built into the bricks...and even far more capable, with true motion functions like axis following, gearing, camming, etc., in addition to basic trapezoid, velocity, jog, home search functions. If you like Do-more with CTRIO2, you're really gonna like the new stuff.

In the mean time, anything else I should try?

Greg, can you offer any more ideas?

"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

MVetrano

  • Full Member
  • ***
  • Posts: 27
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #6 on: June 23, 2016, 10:23:52 AM »
Bob, I got my DoMore CPU the other day. I set up a home routine with just 3 lines of code and it worked great. That is until I hooked up my HMI and found out DoMore does not support DirectNet protocol. Do you have a work around for this so I don't have to learn Modbus or rewrite the HMI program?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: H2-CTRIO2 Load Trapezoid File Problem
« Reply #7 on: June 24, 2016, 12:15:44 PM »
Split this topic to the Do-more board.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO