Vai al contenuto
PLC Forum

Partecipa anche tu alla Live su Youtube martedì 28/01/2025 per festeggiare i 24 anni di PLC Forum

Per ulteriori informazioni leggi questa discussione: https://www.plcforum.it/f/topic/326513-28012025




Protocollo Siemens S7-200 Porta Seriale


Messaggi consigliati

Inserito:

Visto che non si hanno le specifiche e visto che si puo' banalmente monitorare la porta seriale (spiare cosa si scrive sopra) puo' essere utile la cosa per carpire il protocollo?

questo è quanto viene trasmesso e ricevuto dalla porta nella fasce d'apertura dal programma PC_SIMU (spagnolo):

0    0.00005280    PC_SIMU.exe    IRP_MJ_CREATE    Serial0    SUCCESS    Options: Open  
1    0.00000475    PC_SIMU.exe    IOCTL_SERIAL_SET_WAIT_MASK    Serial0    SUCCESS    Mask: RXCHAR TXEMPTY ERR RX80FULL  
2    0.00000140    PC_SIMU.exe    IOCTL_SERIAL_SET_QUEUE_SIZE    Serial0    SUCCESS    InSize: 4096 OutSize: 1024    
3    0.00000251    PC_SIMU.exe    IOCTL_SERIAL_PURGE    Serial0    SUCCESS    Purge: TXABORT RXABORT TXCLEAR RXCLEAR    
4    0.00000112    PC_SIMU.exe    IOCTL_SERIAL_GET_BAUD_RATE    Serial0    SUCCESS  
5    0.00000112    PC_SIMU.exe    IOCTL_SERIAL_GET_LINE_CONTROL    Serial0    SUCCESS  
6    0.00000140    PC_SIMU.exe    IOCTL_SERIAL_GET_CHARS    Serial0    SUCCESS  
7    0.00000112    PC_SIMU.exe    IOCTL_SERIAL_GET_HANDFLOW    Serial0    SUCCESS  
8    0.00000084    PC_SIMU.exe    IOCTL_SERIAL_GET_BAUD_RATE    Serial0    SUCCESS  
9    0.00000112    PC_SIMU.exe    IOCTL_SERIAL_GET_LINE_CONTROL    Serial0    SUCCESS  
10    0.00000056    PC_SIMU.exe    IOCTL_SERIAL_GET_CHARS    Serial0    SUCCESS  
11    0.00000084    PC_SIMU.exe    IOCTL_SERIAL_GET_HANDFLOW    Serial0    SUCCESS  
12    0.00000698    PC_SIMU.exe    IOCTL_SERIAL_SET_BAUD_RATE    Serial0    SUCCESS    Rate: 9600    
13    0.00000335    PC_SIMU.exe    IOCTL_SERIAL_SET_RTS    Serial0    SUCCESS  
14    0.00000335    PC_SIMU.exe    IOCTL_SERIAL_SET_DTR    Serial0    SUCCESS  
15    0.00000251    PC_SIMU.exe    IOCTL_SERIAL_SET_LINE_CONTROL    Serial0    SUCCESS    StopBits: 1 Parity: EVEN WordLength: 8    
16    0.00000112    PC_SIMU.exe    IOCTL_SERIAL_SET_CHAR    Serial0    SUCCESS    EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13    
17    0.00000251    PC_SIMU.exe    IOCTL_SERIAL_SET_HANDFLOW    Serial0    SUCCESS    Shake:1 Replace:80000040 XonLimit:100 XoffLimit:100    
18    0.00000112    PC_SIMU.exe    IOCTL_SERIAL_SET_TIMEOUTS    Serial0    SUCCESS    RI:30 RM:0 RC:100 WM:20 WC:0    

questo in fase di lettura (stò leggendo solo Q1.0 e Q2.0):

0    0.01511058    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 27: h..h..l2...................    
1    0.06522198    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
2    0.00002682    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
3    0.09367028    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 29: h..h...2.....................    
4    0.03106261    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 39: h!!h..|2.........(..........P_PROGRAM..    
5    0.06222746    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
6    0.00002766    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
7    0.07794678    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 22: h..h...2...........(h.    
8    0.04707973    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 51: h--h..l2..............H............................    
9    0.05137273    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
10    0.00003520    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
11    0.06124549    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
12    0.04709816    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 45: h''h..l2.....................................    
13    0.06158353    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 6: ......    
14    0.00002794    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
15    0.09343534    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 36: h..h...2............................    
16    0.04711409    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 51: h--h..l2..............H............................    
17    0.06036577    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
18    0.00002794    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
19    0.09339343    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 36: h..h...2............................    
20    0.04709621    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 45: h''h..l2.....................................    
21    0.04657100    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
22    0.00002738    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
23    0.09366777    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 41: h##h...2................[at]............=WQ.    
24    0.04709621    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 51: h--h..l2..............H............................    
25    0.05867282    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
26    0.00003073    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
27    0.09292913    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 36: h..h...2............................    
28    0.04703866    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 45: h''h..l2.....................................    
29    0.04622263    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
30    0.00002710    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
31    0.09366582    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 41: h##h...2................[at]............=WQ.    
32    0.04707721    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 51: h--h..l2..............H............................    
33    0.06050518    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
34    0.00002235    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
35    0.09369990    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 36: h..h...2............................    
36    0.04709090    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 45: h''h..l2.....................................    
37    0.04650340    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
38    0.00002403    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
39    0.09363760    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 41: h##h...2................[at]............=WQ.    
40    0.04710655    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 51: h--h..l2..............H............................    
41    0.06048786    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
42    0.00002682    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
43    0.09365436    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 36: h..h...2............................    
44    0.04713197    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 45: h''h..l2.....................................    
45    0.04585722    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
46    0.00002682    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
47    0.09354094    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 41: h##h...2................[at]............=WQ.    
48    0.04707414    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 51: h--h..l2..............H............................    
49    0.06035180    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
50    0.00002095    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
51    0.09368816    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 36: h..h...2............................    
52    0.04709286    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 45: h''h..l2.....................................    
53    0.04563541    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
54    0.00002626    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\_.    
55    0.09361860    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 41: h##h...2................[at]............=WQ.    
56    0.01512203    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 27: h..h..l2...................    
57    0.06133489    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
58    0.00002989    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
59    0.09324984    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 29: h..h...2.....................    
60    0.03112882    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 35: h..h..|2.........)......P_PROGRAM..    
61    0.06202855    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
62    0.00003269    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
63    0.07732296    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 22: h..h...2...........)i.    


e questo in fase di chiusura:

0    0.01511393    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 27: h..h..l2...................    
1    0.05964389    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
2    0.00002347    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
3    0.09367280    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 29: h..h...2.....................    
4    0.03108132    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 37: h..h..|2..............H............U.    
5    0.06257667    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
6    0.00003073    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
7    0.06183551    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
8    0.00003380    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...|~.    
9    0.06039259    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
10    0.00002682    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
11    0.09364486    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 35: h..h...2...........................    
12    0.00003213    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...|~.    
13    0.06161621    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
14    0.00002039    PC_SIMU.exe    IRP_MJ_WRITE    Serial0    SUCCESS    Length 6: ...\^.    
15    0.04682997    PC_SIMU.exe    IRP_MJ_READ    Serial0    TIMEOUT    Length 1: .    
16    0.00000419    PC_SIMU.exe    IRP_MJ_CLEANUP    Serial0    SUCCESS  
17    0.01476668    PC_SIMU.exe    IRP_MJ_CLOSE    Serial0    SUCCESS  

scusate per la lunghezza ma non so inserire i file.

Attendo vostre gradite deduzioni e commenti.


Crea un account o accedi per commentare

Devi essere un utente per poter lasciare un commento

Crea un account

Registrati per un nuovo account nella nostra comunità. è facile!

Registra un nuovo account

Accedi

Hai già un account? Accedi qui.

Accedi ora
×
×
  • Crea nuovo/a...