Closed 2000dB closed 1 year ago
Hi. I can't find the ESI file. With it I might be easier to help you... maybe you can also provide a link to the product website.
Hi,
Yes of course should have included that in the first place. Product is VLAR-20-15 ESI
Thank you!
Did you have any progress on this?
In your InputPdo you missed the "digital_inputs":
class InputPdo(ctypes.Structure):
_pack_ = 1
_fields_ = [
('status_word', ctypes.c_uint16),
('position_actual_value', ctypes.c_int32),
('velocity_actual_value', ctypes.c_int32),
('torque_actual_value', ctypes.c_int16),
('digital_inputs', ctypes.c_uint32),
('modes_of_operation', ctypes.c_int8),
('complement', ctypes.c_int8)
]
But I don't think this is causing to much issues.
In the ESI I saw this:
<InitCmd>
<Transition>PS</Transition>
<Index>#x6060</Index>
<SubIndex>0</SubIndex>
<Data>08</Data>
<Comment>Op mode</Comment>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Index>#x60C2</Index>
<SubIndex>1</SubIndex>
<Data>02</Data>
<Comment>Cycle time</Comment>
</InitCmd>
You may need to set thees objects during the transition from PreOP to SafeOP.
This could be accomplished by adding a config function to the master.slave[i].config_func
like in the basic_example.py
Hi yes I got it to work, but turns out it was just a typo in my OutputPDO struct... I think the ESI the vendor gave me is also plain wrong as I had to remove some fields on both InputPDO and OutputPDO.
Appreciate your help!
Hello and thank you for this library!
My issue is most likely device specific and due to my limited experience with ethercat, but this seems like a good place to ask anyway. I have a voice coil actuator from DH Robotics for which I have the ESI file. I've parse what I could from that file and I have SDO communications working well enough and I can read from the PDO. However when I try to write it doesn't seem to make its way to the device. Am I missing something with the config_map() perhaps, but I'm not quite sure what registers I need to configure.
See script below based on one of your examples and ESI file attached.
Pointer welcome and appreciated, thank you!