Menu

Topic-icon CanOpen Comunication with PC

More
3 years 2 months ago #29532309 by edmodi
Hi, I'm newer with bus Can and I'm try to comunicate my MDC2130 with CanOpen Bus with my PC with serial adapter USB/Can ( www.fischl.de/usbtin/ ). With usbtinViewer I read the controller Heartbeat but I don't Know how I can send a command to read VAR or Counter,.... The goal is make a serial app to send command to my controller using VAR user variable with MicroBasic Script code to move a motor

Can anyone help me? Thanks in advanced

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #29532316 by niko
Replied by niko on topic CanOpen Comunication with PC
I suppose MiniCAN will be adequate to your requirements. Please read in user manual section 13 and especially section Using MiniCAN Mode at page 120.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #29532353 by edmodi
Replied by edmodi on topic CanOpen Comunication with PC
Thanks niko, finally I can send commands with CanOpen. To read VAR 1 I send "t601 4 4F 0621 01" in hex codification. If someone need an explanation, please contact with me.

And now, I need to create Emergency state in mbs script controller and detect it with canopen. It's pisible?. If affirmative, how can I do it?

Thanks

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #29532356 by niko
Replied by niko on topic CanOpen Comunication with PC
What do you mean emergency state? You want to notify the master node about an emergency?

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #29532357 by edmodi
Replied by edmodi on topic CanOpen Comunication with PC
The idea is if my script go to a internal error state, for example a incorrect value of analogic sensor, y would like to send this error to others node

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #29532358 by niko
Replied by niko on topic CanOpen Comunication with PC
So you want to make an emergency mechanism.

You can choose one general purpose variable (VAR) and fill it with a value that will be interpreted in emergency state.

This VAR needs to be part of the TPDOs (VAR1 - VAR8) which periodically will be sent to the master node.
The following user(s) said Thank You: edmodi

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #29532359 by edmodi
Replied by edmodi on topic CanOpen Comunication with PC
Ok but I would like to create a emergency error. I'll do it like that

Thanks for your time

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.124 seconds
Go to top