Question about "IOL_COM" and "AsynCom_PN" function blocks

Hello.

We work with function blocks "IOL_COM" and "AsynCom_PN", but currently we have some problems.

If the value of variable "Trigger" is false, the function block runs normally, if the value of variable "Trigger" is true, the value of variable "iReadLength" is 0 and the function block reports an error. and the value of variable "dwAddDiagCode" and "dwDiagCodeWrite" are "16#DF80A100".

Anyone know how to solve this problem? thanks

The documentation for the IOL library includes this description of that error code:

[quote]16#DF80A1xx
Negative acknowledgment when writing to the module:
Caused by: Incorrect service content, index, subindex, port number or length of the data to be written.[/quote]
So this might be solved by giving the correct service content, index, subindex, port number or length of the data to be written.