Ethercat AX5206 stuck in SAFEOP
For the AX5801 Safety Card, you only need to configure the safey parameter, look for your .xml file, look for this configuration.
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Configured safety option]]></Comment>
<Timeout>0</Timeout>
<OpCode>3</OpCode>
<DriveNo>0</DriveNo>
<IDN>34768</IDN>
<Elements>64</Elements>
<Attribute>0</Attribute>
<Data>0100</Data>
</InitCmd>
regards
Chimeno
Please Log in or Create an account to join the conversation.
Safety card is ok, and AX5203 both channels with motors woks with twincat drive config.
When I start linuxcnc, ethercat slaves look like this:
0 0:0 OP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 OP + EL1008 8K. Dig. Eingang 24V, 3ms
2 0:2 OP + EL2004 4K. Dig. Ausgang 24V, 0.5A
3 0:3 PREOP + AX5203-0000 EtherCAT Drive (SoE, 2 Ch.)
AX5203_drive_config.xlm is exported from twincat.
I try to get servo drive to transit op mode with drive-config_AX5203.xml
File witch is basically same than drive-config before I just replaced Drive parameters with My
startup parameter (from that exported twincat file).
Here is also .hal file.. I don't know how to configure/use AX5203 hal pins...
Drive stays in PREOP and there is no errors, I haven't been able to find reason why drive is not
transit to op mode.
Br
Stoneland
Please Log in or Create an account to join the conversation.
Another possibility is that it looks like you don't have any actual motor settings yet. It may not go into operational mode until you set up motor / encoder parameters etc... but I'm not sure about that.
Please Log in or Create an account to join the conversation.
I think you have the DC-MODE configured incorrectly, can you test this configuration?
<dcConf assignActivate="730" sync0Cycle="250000" sync0Shift="0" sync1Cycle="750000" sync1Shift="0"/>
</slave>
I also attached the configuration file of only the AX5203 can you test it without a motor connected if it enters OP mode?
Hola @cman1024
Another possibility is that it looks like you don't have any actual motor settings yet. It may not go into operational mode until you set up motor / encoder parameters etc... but I'm not sure about that.
The AX5000 unit can enter OP mode without having the motor connected and the engine configuration,
Please Log in or Create an account to join the conversation.
I tested DC-MODE configuration and AX5203 configuration.
DC-MODE works Ok.
AX5203 configuration went to SAFEOP but not OP.
I increased +#define EC_AL_STATE_CHANGE_TIMEOUT 15 to
+#define EC_AL_STATE_CHANGE_TIMEOUT 25
and recompiled the ethercat driver.
After recompile, AX5203 transit to OP mode without motors.
I made AX5203 config with motors and it also works Ok now.
Please Log in or Create an account to join the conversation.
I'm glad it works!
regards
Chimeno
Please Log in or Create an account to join the conversation.
Now I have .hal problem, linuxcnc gives error:
./machine.hal:53: Signal 'x-pos-fb' of type 'float' cannot add pin 'lcec.0.3.ch0.srv-pos-fb' of type 's32'
Error comes from this line in hal:
net x-pos-fb lcec.0.3.ch0.srv-pos-fb => axis.0.motor-pos-fb
What is wrong?
Br
Stoneland
Please Log in or Create an account to join the conversation.
try if this works for you.
net x-pos-fb lcec.0.3.ch0.enc-pos => axis.0.motor-pos-fb
Chimeno
Please Log in or Create an account to join the conversation.
How did you manage to change the timeout value? I have found the function "ecrt_sdo_request_timeout" in "ecrt.h" however cannot find where it is called.
Thanks in advance
Please Log in or Create an account to join the conversation.
it is in /master/fsm_change.c
github.com/sittner/ec-debianize/blob/mas..._change_timeout.diff
Please Log in or Create an account to join the conversation.