S7-1200 Clear Ethernet Buffer

Jonnie_R

Member
Join Date
Feb 2012
Location
Brecon
Posts
216
Hello,


I am using an S7-1200 with a Moxa N5250A to read data from a weigh scale, but occasionally the scale will send a couple of frames of data after I cancel the weight reading.

Is there any way to clear the Ethernet buffer, or do I just have to let the receive block complete to empty the data?


Thanks,




Jon
 
You can use block_move to zero buffer or copy data only from buffer if read was succesful.


Thanks for the reply. I already only do certain actions when the TRCV_C block .DONE output is activated, as I need to extract the weight from the CHAR array by converting it to a string etc.


I'll just leave the TRCV block enabled continuously and ignore any unwanted data.
 

Similar Topics

Hello! How can I clear (delete, write zeros, false) a DB in TIA V11 SP2 Upd5, CPU 1214C, if the size of the DB is NOT known? More exactly I...
Replies
2
Views
4,653
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
2
Views
19
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
63
Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
114
commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
88
Back
Top Bottom