Connecting a Keyence Scanner via EtherNet/IP with CoDeSys PLC-App

Hey all together,
our CoDeSys knowledge is very little - we're still learning. Maybe someone can give us a hint how it could work:

We're trying to connect a Keyence SR-X100 Scanner via Ethernet/IP with PLC-App. We're able to trigger the scanner and we recieve data from Scanner.
There's a code with 20 characters which is read. The scanner reads all the data and in datafield "Result Data Size" it shows the value "20". So we'll recieve 20 Byte of data (thats correct).

Now I like to watch the "Result Data". I'm able to see the first sign. Input %IB60 says "57". It's ASCII coded and it is the value "9" (thats also correct).
But how can I watch the following 19 characters? I can't find a opportunity for mapping the other inputs... I think there's a little setting which has to be changed..?

Thanks a lot!
-HaRo

Code:

 

Assemblys:

EtherNet/IP E/A-Abbild:

 

Best reply by bostroemc

It looks to me like the Keyence EDS file is not reserving memory necessary for mapping the ResultData string.

Can you try the following?

Under the assembly configuration, delete the Result Data entry:

Next, add a new Result Data entry, this time with Bit length = 8, Count = 128 as shown below:

The I/O mapping should then look as follows:

I do not have a Keyence scanner and have not tested this configuration.  I have reached out to my local Keyence representative to try to get a loaner for testing, but do not yet have confirmation.  I will pursue this further with them if this recommendation is unsuccessful.

View original
5 replies