Christian Dam
Member
I need some help to creat a communication where I can receive TCP/IP telegrams with variable length on a Siemens CP343-1 ethernet-card.
I have already tried to read the first 2 bytes (which contain the telegram length) with one block (I use AG_RECV), and then creat an any pointer with this length for the next receive block, this works fine until I send a new telegran with another length. Then my receive blocks lockup, and I have to put them into stop and run again i order to get the communication working again.
Do anyone know if it is possible to reset the communicationsblocks from the PLC program??
Or do anyone have any exampel for this type of problem??
I know that Siemens recomend that you always use fix length telegrams, and we normally do this, but in this case our customer wants to use variable length telegrams.
Christian
I have already tried to read the first 2 bytes (which contain the telegram length) with one block (I use AG_RECV), and then creat an any pointer with this length for the next receive block, this works fine until I send a new telegran with another length. Then my receive blocks lockup, and I have to put them into stop and run again i order to get the communication working again.
Do anyone know if it is possible to reset the communicationsblocks from the PLC program??
Or do anyone have any exampel for this type of problem??
I know that Siemens recomend that you always use fix length telegrams, and we normally do this, but in this case our customer wants to use variable length telegrams.
Christian