News:

  • February 19, 2026, 06:00:44 PM

Login with username, password and session length

Author Topic: How to read current position with Dynamic Positioning on a H2-CTRIO2  (Read 145 times)

jktucker92

  • Newbie
  • *
  • Posts: 3
I have a system that was built in 2010 with DL250 CPU and H2-CTRIO2 to move a stepper motor.  We used dynamic positioning for the programmed movements and dynamic velocity to jog the motor back and forth.  The system was built with an encoder, but we want the redundancy of being able to look at the position using the number of pulses also.  We upgraded to a DL260 recently, but the program is essentially the same as it always has been.  How can I read the current position of the system during dynamic positioning?  I tried using IB-1000 and IB-1016 to read Out0 Position, but when I execute that box, the system no longer functions and I have to power cycle the box.  Also, the success and error outputs from the IBox never change to indicate success or error.  The old H2-CTRIO had a memory location to read for current location, but my understanding is that's not available with the H2-CTRIO2.  The rest of my code still uses RLL code instead of Iboxes for the motion and that could be messing with the Ibox.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3794
    • Host Engineering
Re: How to read current position with Dynamic Positioning on a H2-CTRIO2
« Reply #1 on: February 17, 2026, 08:26:51 PM »
Yeah, you can't mix straight ladder with IBoxes.  You must choose one or the other.  The issue is in the details of the interlocking done by IBoxes - your ladder code has no clue how that is implemented.  Choose all IBoxes or choose your old all-ladder version.

jktucker92

  • Newbie
  • *
  • Posts: 3
Thanks for the reply.  Is there a way to get the position from the straight ladder?  Also, I don't see an iBox for dynamic velocity.  If I switch to iBoxes, how do I jog the motors?

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3794
    • Host Engineering
Sadly, I am not a CTRIO2 guru.  However, our main website has FAQ's on CTRIO2 with IBoxes.  That should help with some of your questions.

Also, there may be others out there that can point you to your specific question about "jog" with IBoxes.

https://hosteng.com/
Click on FAQ's in the left panel and select CTRIO/CTRIO2 (top left group)

I search on IBox, and that pointed me to some questions/answers.