rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
922 stars 396 forks source link

ReadCoil (0,1) falling into internal infinity loop #86

Open Sergio558 opened 2 years ago

Sergio558 commented 2 years ago

Other combinations of Adr and Quantity giving adequate responses. When calling 27.08.2022 10:37:14.99 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 - getting no return/exceptions to my program, while both catches TimeoutException and CRCCheckFailedException was set. Looks like it doesn't throw such exceptions at all , while StartingAddressInvalidException was catch OK. Debug log: 27.08.2022 10:37:06.76 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 7 27.08.2022 10:37:06.77 Send Serial-Data: 01-01-00-00-00-07-7D-C8 27.08.2022 10:37:07.77 StartingAddressInvalidException Throwed 27.08.2022 10:37:08.82 Received Serial-Data: 01-81-02-C1-91-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 27.08.2022 10:37:14.99 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:15.00 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:16.00 TimeoutException Throwed 27.08.2022 10:37:16.00 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:16.00 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:16.05 Received Serial-Data: 00-00-00-00-01-01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 27.08.2022 10:37:17.00 CRCCheckFailedException Throwed 27.08.2022 10:37:17.00 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:17.01 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:18.01 TimeoutException Throwed 27.08.2022 10:37:18.01 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:18.01 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:18.06 Received Serial-Data: 00-00-00-00-01-01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 27.08.2022 10:37:19.01 CRCCheckFailedException Throwed 27.08.2022 10:37:19.01 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:19.01 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:20.01 TimeoutException Throwed 27.08.2022 10:37:20.01 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:20.02 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:20.06 Received Serial-Data: 00-00-00-00-01-01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 27.08.2022 10:37:21.02 CRCCheckFailedException Throwed 27.08.2022 10:37:21.02 FC1 (Read Coils from Master device), StartingAddress: 0, Quantity: 1 27.08.2022 10:37:21.02 Send Serial-Data: 01-01-00-00-00-01-FD-CA 27.08.2022 10:37:22.02 TimeoutException Throwed <INFINITIVE LOOP after 27.08.2022 10:37:14.99 call :(> ...