bnjmnp / pysoem

Cython wrapper for the Simple Open EtherCAT Master Library
MIT License
95 stars 36 forks source link

read and write PDOS question #136

Open GoesWithoutSaying opened 3 months ago

GoesWithoutSaying commented 3 months ago

i have read the basic.py and minimal.py. based on my coding level, i'm still confusing, hers is some question hope someone can help 1.for master.config_map() , slave.input and slave.output are the pdo data that mapped? 2.for master.send_processdata() and master.receive_processdata(), is slave.input and slave.output are the data that sending and receiving?

  1. to write a PDO mapping, is it correct that using SDO?
GoesWithoutSaying commented 2 months ago

problem solved. slave.input represent input data from slave slave.output represent output data to slave to send processdata, slave.output = bytes([data1, data2]) master.send_processdata() to read received process data master.receive_processdata() input_from_slave = slave.input print(input_from_slave)

bnjmnp commented 1 week ago

I think you got it now and we can close this issue?