News:

  • October 27, 2025, 06:55:52 AM

Login with username, password and session length

Author Topic: HELP !!!!! H2-CTRIO Names of control bits  (Read 5748 times)

eric14779

  • Full Member
  • ***
  • Posts: 30
HELP !!!!! H2-CTRIO Names of control bits
« on: May 15, 2012, 04:48:37 PM »
The descriptions of these is called different things from different sources:

Output 0 - Pulse (Step)

   V40602.0 (C40) = Output Enabled, Out0_OutEnbld
   V40602.1 (C41) = Position Loaded, Out0_PosLoded
   V40602.2 (C42) = Output Suspended, Out0_OutSuspd
   V40602.4 (C44) = Output Active, Out0_OutActiv
   V40602.5 (C45) = Output Stalled, Out0_OutStald
   V40602.6 (C46) = Cmd Error, Out0_CmdError
   V40602.7 (C47) = Cmd Complete, Out0_CmdCmplt

   V2040 = Command Code, Out0_CmdCode
   V2041 = Parameter 1, Out0_Param1
   V2042 = Parameter 2, Out0_Param2
   V2030-2031 = Parameter 3, Out0_Param3
   V40612.0 (C240) = Enable Output, Out0_EnablOut
   V40612.1 (C241) = Goto Position, Out0_GotoPos
   V40612.2 (C242) = Suspend Output, Out0_SuspOut
   V40612.4 (C244) = Direction, Out0_Dirction
   V40612.7 (C247) = Process Cmd, Out0_ProcCmd

I am using the CTRIO I-Boxes

IB-1000
IB-1001

I get success on loading my Dynamic Positioning file #1

I am using Stage Programing

I have the I-Boxes on lines 1 & 2 of the program outside of any stages...

as I understand:

the I-boxes take care of:

command Code  ( I am getting 10 )

Parameter #1  ( I am getting 1 )  my Dynamic Positioning file is #1  OK...

Process Command  (Success outputs to C400 Error on C401) C400 comes on... C401 stays off

after that I am having trouble...

in a Stage:
I load LDD from V10000 and OUTD to V2030

then I OUT C241

how do I turn off C241 when the CTRIO acknowledges the move,  and how do I know when it is in the new loaded position ???

I want to Jump out of the "position" stage and into my stage that fires the output for this position.

then wait 1/2 a second turn off the output, and increment my position counter CTA0 and jump back to the Position Stage to move to next position.

I am having problems with this portion...




Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: HELP !!!!! H2-CTRIO Names of control bits
« Reply #1 on: May 16, 2012, 01:53:59 PM »
You wrote, "...then I OUT C241..."

First you need to Enable Output (SET C240). The feedback bit for this is C40 (Output Enabled). When you SET C241 (Goto Position); the feedback bit for this is the Position Loaded bit (C41); this means the CTRIO has accepted the new position and is on its way. When you get that bit then the Output Active (C44) will come on indicating the CTRIO output is generating pulses and moving toward the new position. When this bit goes OFF, you will know you are at your new position.

The problem with Dynamic Position is there is no encoder feedback. That's why it has to be done like this.

You wrote, "...how do I turn off C241 when the CTRIO acknowledges the move..."

The best thing to do is SET C241 (Goto Position) and when you see Position Loaded (C41), use that to RST C241 (Goto Position).

You wrote, "...and how do I know when it is in the new loaded position..."

See above. Monitor Output Active (C44).

You wrote, "...I want to Jump out of the 'position' stage and into my stage that fires the output for this position..."

If you jump out of the Stage then, of course, that will turn all the OUT-puts OFF. Just be aware of that. This is why I use SET for initiating an action, and when I get feedback for that, I use RST. Jumping out of Stages will not affect these.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

eric14779

  • Full Member
  • ***
  • Posts: 30
Re: HELP !!!!! H2-CTRIO Names of control bits
« Reply #2 on: May 17, 2012, 06:29:02 AM »
Thanks Greg...

That Cleared it up for me....

It was all the examples for differing CPU's, with I-BOX , w/o I-BOX, I was confused...

I knew that if I posted my exact config, someone would get me on the right track...

I am glad it was the developer of the unit...

Thanks Again.