Hi JoeW,
Sounds like you need to configure your H0-CTRIO for Dynamic Positioning. Here's what you need to do assuming your mapping as you stated:
1. Use CTRIO Workbench and configure a Dynamic Position pulse profile for your H0-CTRIO, setting the min/max frequencies and accel/decel rate.
2. To use this from your ladder logic, first make sure you program a CTRIO (IB-1000) IBox instruction at the top of your ladder that points to your H0-CTRIO in slot 2. This needs to be the first rung in your program and requires no contact on the input leg.
3. To execute the dynamic position, execute a CTRLDPR "CTRIO Load Profile" (IB-1001) IBox instruction that points to your dynamic positioning profile file number that you created in Step #1 above.
4. If the CTRLDPR completes with success (Succes bit ON) then you can enable the output (bit V2056.0).
5. When the CTRIO indicates the output has been enabled (bit V2022.0) then you can write your target position parameter (a double-word: V2030-2031).
NOTE: The direction (clockwise or counter-clockwise) is inferred from the difference between the target position you wrote and the CTRIO's current position, that is, if your target position is greater than the current position, pulses for a clockwise move are emitted; if your target position is less than the current position, pulses for a counter-clockwise move are emitted. When you first load the dynamic position profile with the CTRLDPR IBox the CTRIO's current position is assumed to be zero.
6. Once you have written the target position, to actually make the move happen, you must then set the Goto Position bit (bit V2056.1).
7. The CTRIO will, in turn, set the Position Loaded bit (bit V2022.1) to tell you it heard your command and is executing. When you see this bit is ON you can then reset the Goto Position bit (V2056.1) in prep for a possible next position you desire.
8. The CTRIO will accel toward max freq and then decel to the position you told it.
9. At this point, if you want to do another position simply repeat steps 5-8 above (i.e. there is no need to re-execute the CTRLDPR again).
When you're done, simply turn OFF the enable output (bit V2056.0).
Hope this helps!
