Omron MX2
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
11 Apr 2023 11:23 #268813
by TheRoslyak
Omron MX2 was created by TheRoslyak
Hi everyone.
Has anyone been able to configure the Omron MX2 VFD for EtherCAT?
I was able to do it in TwinCAT 3, where everything is working fine.
However, I'm having trouble connecting the PDO variables in LinuxCNC.
The values are being sent through sdoRaw, but I've tried with and without dfcon and it still doesn't work.
Has anyone been able to configure the Omron MX2 VFD for EtherCAT?
I was able to do it in TwinCAT 3, where everything is working fine.
However, I'm having trouble connecting the PDO variables in LinuxCNC.
The values are being sent through sdoRaw, but I've tried with and without dfcon and it still doesn't work.
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
Less
More
- Posts: 790
- Thank you received: 275
11 Apr 2023 22:11 #268842
by db1981
Replied by db1981 on topic Omron MX2
target velocity / actual velocity should be Bitlen 16 (2 Bytes) you did set 32 bit.
Control word , should be S32 for haltype.
Control word , should be S32 for haltype.
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
12 Apr 2023 07:50 #268875
by TheRoslyak
Replied by TheRoslyak on topic Omron MX2
I already tried switching from 32-bit to 16-bit, but it didn't help. With controlword in float, everything is fine - I always do it that way and it works. There's no need to use a converter in *.hal. I'm tracking the connection via statusword.
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
Less
More
- Posts: 790
- Thank you received: 275
12 Apr 2023 08:07 #268876
by db1981
Replied by db1981 on topic Omron MX2
maybe i missunderstood the problem.
please descripe your actual errors in detail.
Does the slaves reaches op state?
please descripe your actual errors in detail.
Does the slaves reaches op state?
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
12 Apr 2023 09:22 - 12 Apr 2023 09:48 #268878
by TheRoslyak
Replied by TheRoslyak on topic Omron MX2
"Does the slaves reaches op state?"
No.
UPD
Everything worked.
With 16 bits and no Dfconf - everything works.
Last time I just tried to do it separately)
No.
UPD
Everything worked.
With 16 bits and no Dfconf - everything works.
Last time I just tried to do it separately)
Last edit: 12 Apr 2023 09:48 by TheRoslyak.
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
12 Apr 2023 10:04 - 12 Apr 2023 10:05 #268881
by TheRoslyak
Replied by TheRoslyak on topic Omron MX2
Now the question is about the control system of this drive.
I want to try and set it up so it works like any other servo. By vector control. (Target position).
I can control this drive only by velocity (there is also a frequency, but this is not my case).
The position I can read with another device (For example EL5151)
By register Actual velocity. I can get the velocity by driving but I'm not sure if it's correct and how it is calculated in terms of physics in the drive itself.
I have the ability to read the velocity and position by EL5151.
Can linuxcnc give me the velocity according to the diagram.
Now I use " joint.0.vel-cmd => lcec.0.0.TargetVelocity "
Has anyone solved this task?
I want to try and set it up so it works like any other servo. By vector control. (Target position).
I can control this drive only by velocity (there is also a frequency, but this is not my case).
The position I can read with another device (For example EL5151)
By register Actual velocity. I can get the velocity by driving but I'm not sure if it's correct and how it is calculated in terms of physics in the drive itself.
I have the ability to read the velocity and position by EL5151.
Can linuxcnc give me the velocity according to the diagram.
Now I use " joint.0.vel-cmd => lcec.0.0.TargetVelocity "
Has anyone solved this task?
Last edit: 12 Apr 2023 10:05 by TheRoslyak.
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
Less
More
- Posts: 790
- Thank you received: 275
12 Apr 2023 12:03 #268891
by db1981
Replied by db1981 on topic Omron MX2
is this for anxis or spindle control?
if for axis , just handle this drive as any other velocity controlled drive.
if for axis , just handle this drive as any other velocity controlled drive.
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 238
- Thank you received: 37
12 Apr 2023 12:54 #268896
by TheRoslyak
Replied by TheRoslyak on topic Omron MX2
Axis
The question here is whether the drive works out the desired position, whether it is necessary to receive signals from the encoder and how linuxcnc will calculate this.
The question here is whether the drive works out the desired position, whether it is necessary to receive signals from the encoder and how linuxcnc will calculate this.
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
Less
More
- Posts: 790
- Thank you received: 275
12 Apr 2023 14:16 #268898
by db1981
Replied by db1981 on topic Omron MX2
this is the same case as using analog 0-10V Drive with velocity control.
Lcnc Axis -> pos_cmd -> pid -> velocity_cmd -> drive
Encoder Position Feedback -> Lcnc Axis
Important is the correct PID scaling to machine units.
Lcnc Axis -> pos_cmd -> pid -> velocity_cmd -> drive
Encoder Position Feedback -> Lcnc Axis
Important is the correct PID scaling to machine units.
The following user(s) said Thank You: endian
Please Log in or Create an account to join the conversation.
- eduard
- Offline
- Premium Member
Less
More
- Posts: 80
- Thank you received: 12
02 Dec 2023 21:22 #287050
by eduard
Replied by eduard on topic Omron MX2
Hello @TheRoslyak,
May I ask you to share the xml and hal file for the omron MX2 VFD? I have this and will help a lot to have the configs.
Thanks!
May I ask you to share the xml and hal file for the omron MX2 VFD? I have this and will help a lot to have the configs.
Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.152 seconds