Edwin Schwellinger hat geschrieben:
Hi,
and your Raspberry Pi Image is a realtime patched kernel,
not Rasbian Jessi...?
Additonal you use Ethercat 1:1 connected to your drive on an (exclusive for Ethercat used) Interface?
BR
Edwin
I don't think that the problem is in Raspberry Pi Image or in Ethercat connection, because the tutorial project with START application works fine.
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Edwin,
I continue with my work with raspberry and Digitax. The example project SoftMotionStartupDrive, which use for control Visu application "START" works fine. I can see that when I set all inputs in MC_Power then Power.status is true and Power.busy is false. After this I can execute MC_Move blocks. It really works. In case, that I write my own program, the MC_Power.busy is permanently true. If I attempted to execute MC_move block then SMC_Axis_State_ErrorStop occured. Fb error: SMC_Error.SMC_FB_ACTIVE_AXIS_DISABLED, but when I check all MC_Power outputs, they are Ok. As I noticed, there is only one difference compare to example project, power.busy is permanently true.
Have you any idea what is wrong?
peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
SoftMotion does supervise/monitor the motion functionblock calls,
in case you do not call the fb you get an errorstop and a SMC_FB_WASNT_CALLED_DURING_MOTION
Example:
IFRunOKTHEN
  wt:=wt+1;
  IFwt=1000THEN
    //InthispointtheDriveisinError  -hereyoudonotcalltheinstaceanymore
    MoveRelative(Execute:=TRUE, Distance:=100, Velocity:=30, Acceleration:=30, Deceleration:=30, Axis:=Drive);
  END_IF Â
END_IF
so better call the instance outside... and only set the Inputs of the FB
IFRunOKTHEN
  wt:=wt+1;
  IFwt=1000THEN
    //InthispointtheDriveisinError  -hereyoudonotcalltheinstaceanymore
        MoveRelative.Execute:=TRUE;
        MoveRelative.Distance:=100;
        MoveRelative.Velocity:=30;
        MoveRelative.Acceleration:=30;
        MoveRelative.Deceleration:=30);
  END_IF Â
END_IFMoveRelative(Axis:=Drive);
Think you know what I want to say with that... also needed for MC_Power.
Check the "c:\Program Files (x86)\3S CODESYS\CODESYS\Projects\SoftMotion\Examples\Tutorial\" examples.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tested my Digitax drive, it works fine. Now I would like to add another device. It is a drive FlexiPro from MotorPower Company, Italy. Actually it is not their product, it is branded Servotronix CDHC. I tried to insert Servotronix device, but it doesn't work. I asked supplier for correct XML file. Now I have it. Is there any way how to implement it to my project?
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if the drive is DS402 comptible (should support at least cyclic sync mode_8)
Then you could install the ESI file and then rightclick add DS402 generic SoftMotin driver...
Then it might work.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
does not work means what exactly?
Drive does not startup?
You could try under expertsettings to disable the product and vendor checks.
Then it might work give this a try.
to use the genericDS402 approach:
1) Tools->DeviceRepository->Install.
2) add the drive -> add DS402 generic
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I used your recommendation, but the result is the same. It seems, that communication works and startup process finished in pre-operation state and Status is "configuration error". You can see the warning in log screenshot. Does it mean that ESI (.XML) file is different to actual drive configuration. Simply is it wrong?
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I did several tests today. All my attempts finished without success. Ethercat master and slave didn't work, as you can see above, the StartUp ended in pre-operational state. Finely I came back to my working project with Digitax, it still work fine. Then I simply disconnected ethercat cable from Digitax and connected it to FlexiPro and restarted. On my surprise the StartUp finished in operational state. Of course the axis error occurred. Do you have any idea how to proceed?
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
AL Status Error Code 0x001E
means:
Invalid Input Configuration
SM configuration for input process data is invalid
are you sure this ESI does fit to the device?
What about the CODESYS Ethercat scan does it find the right device which is installed in the device repository on scan?
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I did several attempts to launch my project, but without success. Exactly what I did: I created project containing only Ethercat master. Then I did SCAN for DEVICES. After scanning I copied the device to project. Both, Scanned device and configured device are green as you can see above. There is missing SoftMotion Axis on right side of compare window. Anyway, if I run program the Ethercat master finished in pre-operational state and Status read from slave is 16#1E. Have you any idea, what I can do now to find reason why doesn't it work?
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't think that the problem is in Raspberry Pi Image or in Ethercat connection, because the tutorial project with START application works fine.
Peter
Hi,
but then it is project related could you attach it?
BR
Edwin
Hi,
I am trying to send you my project, but it is too long, 830kB, to send it by this post. Have you any suggestion?
Peter
Hello Edwin,
I continue with my work with raspberry and Digitax. The example project SoftMotionStartupDrive, which use for control Visu application "START" works fine. I can see that when I set all inputs in MC_Power then Power.status is true and Power.busy is false. After this I can execute MC_Move blocks. It really works. In case, that I write my own program, the MC_Power.busy is permanently true. If I attempted to execute MC_move block then SMC_Axis_State_ErrorStop occured. Fb error: SMC_Error.SMC_FB_ACTIVE_AXIS_DISABLED, but when I check all MC_Power outputs, they are Ok. As I noticed, there is only one difference compare to example project, power.busy is permanently true.
Have you any idea what is wrong?
peter
Hi,
hm.. could you attach your project to check?
BR
Edwin
Hi,
I tryed to send my project last week, but it failed. The reason was that the file is too big (817kB). Is it realy too big?
Peter
Hi,
you could send it to e support@codesys.com e this will work.
BR
Edwin
Thank, I will do it tomorrow
Hi
I sent you my project to e support@codesys.com e . Please, confirm reception.
Peter
Hi Peter,
SoftMotion does supervise/monitor the motion functionblock calls,
in case you do not call the fb you get an errorstop and a SMC_FB_WASNT_CALLED_DURING_MOTION
Example:
so better call the instance outside... and only set the Inputs of the FB
Think you know what I want to say with that... also needed for MC_Power.
Check the "c:\Program Files (x86)\3S CODESYS\CODESYS\Projects\SoftMotion\Examples\Tutorial\" examples.
BR
Edwin
Hello,
Thank you for excellent help. My project works. Now I am ready to do more complicated project.
Peter
Hi Edwin,
I tested my Digitax drive, it works fine. Now I would like to add another device. It is a drive FlexiPro from MotorPower Company, Italy. Actually it is not their product, it is branded Servotronix CDHC. I tried to insert Servotronix device, but it doesn't work. I asked supplier for correct XML file. Now I have it. Is there any way how to implement it to my project?
Peter
Hi,
if the drive is DS402 comptible (should support at least cyclic sync mode_8)
Then you could install the ESI file and then rightclick add DS402 generic SoftMotin driver...
Then it might work.
BR
Edwin
Hi,
Yes it is Compatible. Can you please navigate how to install ESI file and add a generic driver
Peter
Hi,
does not work means what exactly?
Drive does not startup?
You could try under expertsettings to disable the product and vendor checks.
Then it might work give this a try.
to use the genericDS402 approach:
1) Tools->DeviceRepository->Install.
2) add the drive -> add DS402 generic
BR
Edwin
Hi,
I used your recommendation, but the result is the same. It seems, that communication works and startup process finished in pre-operation state and Status is "configuration error". You can see the warning in log screenshot. Does it mean that ESI (.XML) file is different to actual drive configuration. Simply is it wrong?
Peter
Hi,
I did several tests today. All my attempts finished without success. Ethercat master and slave didn't work, as you can see above, the StartUp ended in pre-operational state. Finely I came back to my working project with Digitax, it still work fine. Then I simply disconnected ethercat cable from Digitax and connected it to FlexiPro and restarted. On my surprise the StartUp finished in operational state. Of course the axis error occurred. Do you have any idea how to proceed?
Peter
Hi Peter,
AL Status Error Code 0x001E
means:
Invalid Input Configuration
SM configuration for input process data is invalid
are you sure this ESI does fit to the device?
What about the CODESYS Ethercat scan does it find the right device which is installed in the device repository on scan?
BR
Edwin
Hi
Please see device scan. Can you see something important?
Peter
Now it looks like this. What I have to do now?
should fit...
Yes It does, but if I add a GenericDSP402, there is still difference and the same error occured.
Hi, I did several attempts to launch my project, but without success. Exactly what I did: I created project containing only Ethercat master. Then I did SCAN for DEVICES. After scanning I copied the device to project. Both, Scanned device and configured device are green as you can see above. There is missing SoftMotion Axis on right side of compare window. Anyway, if I run program the Ethercat master finished in pre-operational state and Status read from slave is 16#1E. Have you any idea, what I can do now to find reason why doesn't it work?
Peter
Hi Peter,
could you do a test with disabled distributed clocks?
Could this get then to operational?
BR
Edwin
Do you mean to select DC to free run? If yes, I did it. Without success.