When I select MOVE inst and select source $CTRIO_000_C1F1 it does not have .iReg1 appended and it does not like my choice. ERROR; Source parameter is invalid. Element is an excluded size.
$CTRIO_000_C1F1 is the structure associated with channel 1 / function 1 of the CTRIO module located in the local base in slot 0. That is the default name, but it can be changed to whatever you like. Since you referred to the entire structure...and not just the .iReg1 field...it cannot be used in the MOVE instruction. If you want to move the encoder value, you would need to enter $CTRIO_000_C1F1.iReg1.
I look further...... CTREGRD instruction.
You don't need to use CTREGRD. It is for accessing values internal to the CTRIO...which isn't necessary...because the value you need is already contained in $CTRIO_000_C1F1.iReg1. Just use it.
This looks more usable anyway as it sets a bit on completion and error.
On completion I do a greater than compare and branch accordingly.
Pump it every second to see if the conveyor is still moving.
Again...not needed. We already put it there for you...every scan. If all you are need to do is to determine whether the conveyor is moving, add a rate scale to your quad input. Go to the module config page, select your CTRIO's config from the list, select 'Configure I/O...' from the CTRIO config page, then click on the yellow ruler icon in the upper left corner of Function 1. From there, select Rate and take the wizard's defaults. The module will automatically compute the conveyor's velocity in encoder counts per second and put it in .iReg1. In your code, simply compare against 0. When the value in .iReg1 is 0...it isn't moving.
One more thing...be sure to check out the CTRIO monitor dialog. It is accessed at the bottom of the PLC menu, and will show you what fields are available, and give you the fully qualified name for each field.
I just got an on line offer for Do-more training from AD. I'm going to have to get a little higher on the learning curve before I can use it. I don't know enough to know what to ask. I have ZERO previous experience with PLCs. I'm an assembly language programmer, helps a little I guess.
Training is a good thing. Do-more is super powerful...but with that power comes a learning curve.