Profinet IO-Link Example Code Error

I’m having issues getting the example code included in the IOL_Basic library to work properly in PLCnext Engineer 2020.3.1. For the highlighted bit of code included in the IOL_6_EXA_IOL_MA8_PN_DI8 PLCnext project file, I’m getting an error of “SEM2010: The external usage of VAR_IN_OUT parameters is not allowed. No code will be generated for this statement.” (* Instances *)

BUF_TO_STRING_1(
DST := strTmp, (* Destination variable of standard data type *)
BUFFER := udtExample.arrIOL_ReadData (* Array with received data *)
);

strTmp := BUF_TO_STRING_1.DST;
iStatus := BUF_TO_STRING_1.STATUS; Does this even mean anything for this case? It’s just a warning, so do I just ignore it? There was another forum post with this same error message, but it’s marked resolved without actually indicating how it was resolved, so that’s not very helpful. Thoughts? https://www.plcnext-community.net/en/discussions/warning-sem2010.html

Hi Tony, Please try checking (ticking) this box in the Options dialog shown below. You can open this using the “Extras → Options” menu item in PLCnext Engineer: 2020 07 13 13 00 25 Please let us know if this works. ~ Martin.

That didn’t help; same error pops up.

So, nothing on this then?

Sorry, nothing yet. I will send another reminder to the developers.

This example was converted from PC Worx 6. In PC Worx 6 this statement is needed for inouts. In PLCnext Engineer >= 2020.0 it generates this warning. This is not an error. You can ignore this warning. Or you can delete the line “strTmp := BUF_TO_STRING_1.DST;” from your PLCnext Engineer project. The example will be updated (new build of IOL_Basic).