-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to write pdo? #122
Comments
Hi @buctwp,
You don't write PDOs there but you do a SDO write.
Why do you expect a value of 18? |
the address 0x7031 is read by this code `
` this is a part of console messages: Subindex 0; Type: 5; BitSize: 8; Access: 0x7 Name: "b'SubIndex 000'" it seems the Index 0x7031 and subIndex 1 maps to the output: Module 4 Channel 1 about wkc, the code blow here: the expect wkc is read from the master's property above the codes, my question is how can i write output to send an Analog signal or Digital signal to the modules? |
you are doing sdo write which is usually to assign a PDO mapping, not doing PDO communication.
slave.input represent input data from slave, which is the slave send to master, it is not writeble. these data are only index's value, not include index SDO and PDO are 2 different communication way |
i have 6 slaves in my project.
when the salves state is OP, i try to write pdo like this:
master.slaves[0].sdo_write(0x7031, 1, struct.pack('H', 0xAAAA))
it raises an Excpetion:
pysoem.pysoem.SdoError:(1, 20721, 1, 100728834, 'Attempt to write to a read only object')
when i call this code:
the return actual_wkc is 6, not 18
I'm stuck on it for days now, Help would be very helpful.
The text was updated successfully, but these errors were encountered: