adccommunitymod (AutomationDirect) asked a question.

CTRIO2 Error 143 - Trying to run CTAXTRAP

Created Date: August 02,2013

Created By: longbh

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Hello everyone! Still working on proving out our hardware and got the proportional speed working quite well for the stepper, both with the SCL and Dir/Clock control schemes. Now I am working on a new issue that has had me pulling my hair out for the last couple of days. Basically I'm using a Do-More controlled CTRIO2 to run an Anaheim driver/stepper based on the proportional input. That works fine and as expected. Then, once a desired position is reached, I would like the "trigger " to put the stepper through a few predetermined positions. As it sits now, the "trigger " sends the program into a different STAGE where I am trying to have it first pause, then move positions, pause, then move positions, the jump back to the previous stage. I have basically structured the program this way: - Enter STAGE - TIMER - On TIMER.Done, CTAXTRAP command to move ahead (relative position) - On CTAXTRAP success, 2nd TIMER begins - On TIMER2.Done, 2nd CTAXTRAP command to move ahead again - On 2nd CTAXTRAP success, jump back to previous STAGE The issue that I am having is that I receive an error as soon as the timer triggers the CTAXTRAP function - "Device driver error - $DriverError (ST143) " The best information I could find in the help was that this means the CTRIO2 module was "busy ". Reading this, I went into the program to make sure that I suspended the input from the previous stage before the program enters the stage in question. Any thoughts? Any help will be greatly appreciated!!!


  • adccommunitymod (AutomationDirect)

    Created Date: August 02,2013

    Created by: BobO

    Pull up the CTRIO monitor from the PLC menu to see what the last CTRIO error code is, if any.

    Remember that for all axis instructions, you must first call CTAXCFG to put it into axis mode.

  • adccommunitymod (AutomationDirect)

    Created Date: August 02,2013

    Created by: longbh

    Hello everyone!

    Still working on proving out our hardware and got the proportional speed working quite well for the stepper, both with the SCL and Dir/Clock control schemes. Now I am working on a new issue that has had me pulling my hair out for the last couple of days. Basically I'm using a Do-More controlled CTRIO2 to run an Anaheim driver/stepper based on the proportional input. That works fine and as expected. Then, once a desired position is reached, I would like the "trigger " to put the stepper through a few predetermined positions. As it sits now, the "trigger " sends the program into a different STAGE where I am trying to have it first pause, then move positions, pause, then move positions, the jump back to the previous stage. I have basically structured the program this way:

    - Enter STAGE

    - TIMER

    - On TIMER.Done, CTAXTRAP command to move ahead (relative position)

    - On CTAXTRAP success, 2nd TIMER begins

    - On TIMER2.Done, 2nd CTAXTRAP command to move ahead again

    - On 2nd CTAXTRAP success, jump back to previous STAGE

    The issue that I am having is that I receive an error as soon as the timer triggers the CTAXTRAP function -

    "Device driver error - $DriverError (ST143) "

    The best information I could find in the help was that this means the CTRIO2 module was "busy ". Reading this, I went into the program to make sure that I suspended the input from the previous stage before the program enters the stage in question. Any thoughts? Any help will be greatly appreciated!!!

    Expand Post