You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible that the following line may be correct for periodic PDOs but not for non-periodic messages?
self.period = timestamp - self.timestamp # base.py line 301
The issues I am encountering are in some functions in the 402 profile. For example, the check_statusword function is experiencing timeout issues because messages aren't being received or transmitted.
If I remove the line above, everything works fine.
Best regards,
David
The text was updated successfully, but these errors were encountered:
Hi @af-silva ,
in my case the PDO is not periodic, even the statusword is not periodic. After the first call of on_message (base.py line 294)
the PDO is defined as periodic
if self.timestamp is not None: self.period = timestamp - self.timestamp
The .period member is reserved for use within the library, as it tells the DS402 logic whether periodic updates can be expected or the statusword needs to be polled. If you want to store that calculation result somewhere, rename your attribute to something else, or make sure the PDO actually is periodic. The latter can be done by configuring it with a transmission type that triggers with a periodic SYNC object.
Hi,
Is it possible that the following line may be correct for periodic PDOs but not for non-periodic messages?
self.period = timestamp - self.timestamp # base.py line 301
The issues I am encountering are in some functions in the 402 profile. For example, the check_statusword function is experiencing timeout issues because messages aren't being received or transmitted.
If I remove the line above, everything works fine.
Best regards,
David
The text was updated successfully, but these errors were encountered: