How to monitor OP mode in Panasonic A6B Ethercat

More
2 years 3 months ago #304913 by rodw

I think I already tried using "not" component, can you confirm this is right format?
I know nothing about EtherCAT, so I have no idea if you can get an inverted value back from the drive. What I suggested was using the built in HAL component called 'NOT'. For which you would need to use 'loadrt' and 'addf' commands and connect the input and output pins in hal.

You really should give Ethercat a try! Some Ethercat settings can have the direction altered by changing a SDO setting. But I doubt a status pin will. 
The following user(s) said Thank You: marq_torque

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

More
2 years 3 months ago #304918 by Aciera

You really should give Ethercat a try!

It's not for lack of interest. Seems to be the way things are headed but I'm usually in need of all kinds of different digital/analog IO, encoder inputs and generally more unconventional setups. When you factor in support for such things MESA hardware is just really hard to beat.
The following user(s) said Thank You: marq_torque, endian

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

More
2 years 3 months ago #304932 by tommylight

You really should give Ethercat a try!
I would, if someone is willing to go through hell of sending me an EtherCat drive that can handle a 3.5KW Siemens (or was it Indramat?) servo motor, for free! :)

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

More
2 years 3 months ago #304933 by marq_torque

I think I already tried using "not" component, can you confirm this is right format?
I know nothing about EtherCAT, so I have no idea if you can get an inverted value back from the drive. What I suggested was using the built in HAL component called 'NOT'. For which you would need to use 'loadrt' and 'addf' commands and connect the input and output pins in hal.

You really should give Ethercat a try! Some Ethercat settings can have the direction altered by changing a SDO setting. But I doubt a status pin will. 

Can you pl share any relevant example? with "loadrt" and "addf" commands?

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

More
2 years 3 months ago #304934 by marq_torque

You can run it multiple times to find the servo drive that can OP every time. Use ethercat sii_read to read the sii data in it and compare it with the sii data in the drive that cannot OP to find the difference. The easiest way is to use ethercat sii_write to write the good sii data. It has been several months since I solved this problem and this problem has never appeared again.
 
Can you educate me more about ssi and all? how to capture? Totally banging my head in wall

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

More
2 years 3 months ago #304937 by Aciera
in your hal file:
To load the realtime component (the name 'not.myexample' is arbitrary)
Code:
loadrt not names=not.myexample

For the component to be executed in the servo-thread we need to add it.
Note: The order of how components are added to the thread matter. You will want this after the ethercat read and before the ethercat write. Otherwise you may loose a cycle before the state is valid.
Code:
addf not.myexample servo-thread


Then you can connect the signals:
Code:
net some_signal_name <= hal_pin_to_be_inverted => not.myexample.in
Code:
net some_other_signal_name <= not.myexample.out => some_hal_pin

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

Time to create page: 0.323 seconds
Powered by Kunena Forum