Automatic,
In cases like this I always study the user manual, CAREFULLY! I do not have one handy right now for your specific ETN11 card & Omron PLC. I would search for any info on communications parameters or instructions. There should be both Receive and Transmit Buffers (temporary storage locations), with commands and flags that can be used to determine what is going on inside the Buffers, whether or not they are receiving data. This is probably where your Error Flag will get set.