Python socket reply with C153, but cannot capture it - too quick

Hi, I am using Python socket to get UR error messages.

However, it does not pickup Protective Stop message. C153

I capture this C153 error message once, and then it is gone. it show up only one time.

Question = Shouldnt that C153 continue to be send out/recorded until that window is closed? and, why it being sent out only once? based on luck and timing, Python might missed this C153 and never capture that Protective Stop event.

It capture so many other messages.

Example of other messages- with time.sleep(1)

C156586563A1869509746 Protective Stop: Wrong payload or mounting detected, or something is pushing the robot when entering Freedrive mode
C0A0 No error
C2088649277A3537977764
C0A0
C3526126211A448434751
C1705329054A0
C15492A2973778376
C25860A3218528894
C0A16449983
C196608A1788698230
C63A4176313064
C686846312A2147549441
C0A16240
C316226025A2219843584
C3221225536A1610612736
C2515910658A2873705005
C2365359104A0
C1904132050A463915221
C363300458A2747439552
C0A192
C1561413120A2312
C3333998572A3907817663
C192A2231054658
C0A0
C2101624126A3218222363 Socket is read-only when the robot is in local (Teach pendant) control
C1139863874A1044925249
C0A60
C253A101
C0A0
C3289251840A768
C1073278294A3758096384
C788529152A2683166
C8388608A0
C0A1074977081
C1A1069547520
C25134500A1808197311
C3221584154A1519189124
C3056757449A2062335167
C13577A1076006233
C1541627374A2147483648
C1065445426A376002264
C419377280A1069988039
C2147483648A0
C0A0
C3158306211A337088278
C3758096384A3201218056
C2559515776A0
C1104969728A0
C63A4026531840
C1059099967A116170752
C0A4248828141
C3423600640A3080192
C0A32768

C156586563A1869509746 14 Protective Stop:
Position deviates
from path

Python capture this Protective Stop message. However, the Protective Stop on the UR pendant show a different type of Protective Stop C153A1 ??

Hi,

MsgType = 10 = OK ?

while MsgType = 14 = Not OK ?

C153A 153 Protective Stop:
Position deviates
from path

for one single error - of joint limit,

i received many MsgType 14 for C150A. how do i filter this out, and get the one that matches the error message shown on the pendant?