The problem can occur if python chooses an unsuitable type of data when it converts the data from a python to a .NET type.
Please enforce the correct type for the passed data as follows:
error = sdoWrite(nodeId, sdoChannel, index, subIndex, data & 0xFFFFFFFFL, DT_UNSIGNED32) |
|