FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
08-22-2024 06:40 PM - last edited on 08-31-2024 07:30 AM by MichaelB
Is there a state diagram of how the different states move from state to state in the kinematic interface and the axis interface?
I would like to know the correct sequence for moving through these states. I have an issue when the drives are put in STO that the state machine becomes unresponsive. I cannot find a good explanation of how the transitions between states are supposed to be commanded. The state machine appears to get lost, no longer controlling the drive states. As of now, only a cold reset on the PLC will make it recover. I am not sure if I am doing something incorrectly or not.
08-22-2024 09:14 PM
Does this help? There's a lot more relevant documentation adjacent to the links below.
08-22-2024 09:47 PM
I appreciate the information and I had found these too. But I was looking for something directly related to the interface commands. To explain the specifics of my problem, if I have an EStop on my system, it puts the drives in STO. I have not figured out a way to re-attach them to the kinematic after this. The drives are stuck in AB after this event. No command of the drive, for example to ModeAH has an effect. The kinematic commands also have no effect, moving from Mode_Coord_AB to _AH or _Standby, etc.
My thought is that when an STO event occurs on the axes that are joined to the kinematic, that I need to command the kinematic in a certain way to follow the actual drive state. And then, I'm suspecting, there is a sequence to recover from the STO state once the safety controller releases the drive from STO. But I have not found a way to do this yet. Right now, the only sure way is to Cold Stop the PLC which is similar to a power cycle. Then the kinematic works as expected to coordinated the axes correctly.
08-23-2024 09:33 AM
Could you please the versions of the ctrlX OS, ctrlX MOTION, ctrlX PLC and ctrlX PLC Engineering?
Also the used versions of the CXA_MotionInterface and MotionInterfaceUser would be helpful to check what could be going wrong or give you further information.
As we are having the same application for Cartesian robots and STO axis working fine, we need to check why it could not be working on your side.
Recovering to COORDINATED_MOTION from STO using our handling template is quite simple:
08-23-2024 05:09 PM
ctrlX OS - 2.4.0, ctrlX Motion - 2.4.3, ctrlX PLC - 2.4.0, ctrlX PLC Engineering - WRK-V-0204.1, CXA_MotionInterface - 2.4.0.0, MotionInterfaceUser - 2.4.0.0
I think this condition is a result of making many program changes in different states. We are commissioning a machine and the error is not consistent. A "Reset Cold" on the PLC always seems to bring it back.
But my original question was about where to find documentation. As I commission the machine and run into errors I am wondering if my commands are wrong. The suggestion to Retrigger the OpMode is helpful but I'm not sure what this does exactly or why it is needed. The only mention of it I can find is in the library documentation where it simply says "Restart the same OpMode again". Is there any description of why to use the RetriggerOpMode command, or what state that it is intended to recover from? I was hoping there was a description of how the drives interact with the kinematic. In some cases, one drive of the three coordinated axes will enable but not the others. I'm not sure why. But again, it could be because we are making many program downloads and online changes.
09-04-2024 01:18 PM - edited 09-04-2024 01:20 PM
"Restart the same OpMode again" is exactly describing what it does. If one opmode is commanded but from external interference the actual mode is different the retrigger is used to just tell the MotionInterface to switch to the still/currently commanded opmode again.
If many online changes are made, especially when new variables/pointers are created a "clean all" and complete download is sometimes needed to recreate storage stack and reinitialize pointers.