1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
procedure TForm1.ipwIPPort_InDataIn(Sender: TObject; Text: string; EOL: Boolean);
begin
// Chargement trame reçue
Rfid[Lect_In].Trame_Rx_Tcp := Text;
// Conversion trame dans structure
conv_trame_rx_Tcp(Lect_In);
// Compteur Rx
Rfid[Lect_In].Ctp_Rx := Rfid[Lect_In].Ctp_Rx +1;
Label_Cpt_Rx_In_Stock.Caption := 'Cpt RX: '+inttostr(Rfid[Lect_In].Ctp_Rx);
// Affichage trame reçue en hexa
Edit_Rx_In_Stock.Text := Rfid[Lect_In].Trame_Rx_Aff;
// Affichage Tag reçu et informations de lecture
Edit_Nr_Tag_In_Stock.Text := inttostr(Rfid[Lect_In].Nr_Tag);
Label_Status_lecture_Tag_In_Stock.Caption := 'ID: '+ Rfid[Lect_In].ID+' CG: '+ Rfid[Lect_In].CG+' EF: '+ Rfid[Lect_In].EF+' Cpt Vue: '+ inttostr(Rfid[Lect_In].Nbr_Vue);
// Trace trame reçue dans memo
if Ckb_Trace_In_Stock.Checked
then
begin
Memo_In_Stock.Items.Add(FormatDateTime('dd/mm/yyyy hh:nn:ss', Now )+' Tag: '+ inttostr(Rfid[Lect_In].Nr_Tag)+' Trame: '+Rfid[Lect_in].Trame_Rx_Aff);
end;
end;
// Réception data sur ip port
procedure TForm1.ipwIPPort_OutDataIn(Sender: TObject; Text: string;
EOL: Boolean);
begin
// Chargement trame reçue
Rfid[Lect_Out].Trame_Rx_Tcp := Text;
// Conversion trame dans structure
conv_trame_rx_Tcp(Lect_Out);
// Compteur Rx
Rfid[Lect_Out].Ctp_Rx := Rfid[Lect_Out].Ctp_Rx +1;
Label_Cpt_Rx_out_Stock.Caption := 'Cpt RX: '+inttostr(Rfid[Lect_Out].Ctp_Rx);
// Affichage trame reçue en hexa
Edit_Rx_Out_Stock.Text := Rfid[Lect_Out].Trame_Rx_Aff;
// Affichage Tag reçu et informations de lecture
Edit_Nr_Tag_Out_Stock.Text := inttostr(Rfid[Lect_Out].Nr_Tag);
Label_Status_lecture_Tag_Out_Stock.Caption := 'ID: '+ Rfid[Lect_Out].ID+' CG: '+ Rfid[Lect_Out].CG+' EF: '+ Rfid[Lect_Out].EF+' Cpt Vue: '+ inttostr(Rfid[Lect_Out].Nbr_Vue);
// Trace trame reçue dans memo
if Ckb_Trace_Out_Stock.Checked
then
begin
Memo_Out_Stock.Items.Add(FormatDateTime('dd/mm/yyyy hh:nn:ss', Now )+' Tag: '+ inttostr(Rfid[Lect_Out].Nr_Tag)+' Trame: '+Rfid[Lect_Out].Trame_Rx_Aff);
end;
end; |
Partager