Re: [I] about ads Test (plc4x)

2023-03-28 Thread via GitHub


splatch commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1487185983

   Hello @,
   The program you linked is an old symbol scanner I implemented and proved to 
work ~3 years ago. @chrisdutz ported it last year, so you can use 
AdsDiscoveryDriver he made as starting point.
   
   Please note that symbol scanning logic may differ between TwinCAT 2 and 
TwinCAT 3 (that's where I got stuck 3 years ago). The index out of bounds error 
reminds me it could be related to how TC3 reported data. This issue is for sure 
gone in Chris work.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] about ads Test (plc4x)

2023-03-28 Thread Cesar Garcia
For Modbus:
http://sourceforge.net/projects/modrssim2/
https://www.modbusdriver.com/diagslave.html

For Siemens:
https://support.industry.siemens.com/cs/document/109807113/tia-portal-test-suite-advanced-v18-trial-download?dti=0=en-VE
 Your 15 days trial, Including PLCSIM Advance for tests.

For CodeSys
https://www.codesys.com/
Free

Don't forget! WireShark
https://www.wireshark.org/download.html




El mar, 28 mar 2023 a las 3:24,  (via GitHub) ()
escribió:

>
>  opened a new issue, #870:
> URL: https://github.com/apache/plc4x/issues/870
>
>I wrote an acquisition program using plc4x's ads and would like to ask
> if there is an ads simulator or a test program generated from ads
> simulation data to test the correctness of my program.
>I hope you can give me advice, thank you very much!
>
>
> --
> This is an automated message from the Apache Git Service.
> To respond to the message, please log on to GitHub and use the
> URL above to go to the specific comment.
>
> To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org.apache.org
>
> For queries about this service, please contact Infrastructure at:
> us...@infra.apache.org
>
>

-- 
*CEOS Automatización, C.A.*
*GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
*PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*

*FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI*
*Ing. César García*

*Cel: +58 414-760.98.95*

*Hotline Técnica SIEMENS: 0800 1005080*

*Email: support.aan.automat...@siemens.com
*


Re: [I] about ads Test (plc4x)

2023-03-28 Thread via GitHub


 commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1486834051

   I installed Beckhoff xae, I can connect to PlcConnection using plc4x's ads, 
but the execution of PlcReadRequest's execute() does not return anything, is 
there any operation that needs to be done on Beckhoff xae, is there any related 
documentation, this is the link to my test program 
https://gist.github.com/splatch/7a886f76ee2482a77b501cb07fd238ae


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] about ads Test (plc4x)

2023-03-28 Thread via GitHub


 commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1486531100

   After getting the ads data plc4x will report an error, can you help to look 
at it?
   `17:32:42.305 [nioEventLoopGroup-2-1] WARN 
org.apache.plc4x.java.spi.GeneratedDriverByteToMessageCodec - Error decoding 
package with content 
[2000c0a8a3090101bd80c0a8a3015303090005004100]: 
Index 38 out of bounds for length 38
   java.lang.ArrayIndexOutOfBoundsException: Index 38 out of bounds for length 
38
at 
com.github.jinahya.bit.io.ArrayByteInput.read(ArrayByteInput.java:106)
at 
com.github.jinahya.bit.io.DefaultBitInput.read(DefaultBitInput.java:57)
at 
com.github.jinahya.bit.io.AbstractBitInput.unsigned8(AbstractBitInput.java:63)
at 
com.github.jinahya.bit.io.AbstractBitInput.unsigned16(AbstractBitInput.java:92)
at 
com.github.jinahya.bit.io.AbstractBitInput.readInt(AbstractBitInput.java:135)
at 
com.github.jinahya.bit.io.AbstractBitInput.readInt(AbstractBitInput.java:118)
at 
com.github.jinahya.bit.io.AbstractBitInput.readLong(AbstractBitInput.java:156)
at 
org.apache.plc4x.java.spi.generation.ReadBufferByteBased.readUnsignedLong(ReadBufferByteBased.java:172)
at 
org.apache.plc4x.java.ads.readwrite.io.AdsReadWriteResponseIO.staticParse(AdsReadWriteResponseIO.java:65)
at 
org.apache.plc4x.java.ads.readwrite.io.AdsDataIO.staticParse(AdsDataIO.java:138)
at 
org.apache.plc4x.java.ads.readwrite.io.AmsPacketIO.staticParse(AmsPacketIO.java:101)
at 
org.apache.plc4x.java.ads.readwrite.io.AmsTCPPacketIO.staticParse(AmsTCPPacketIO.java:75)
at 
org.apache.plc4x.java.ads.readwrite.io.AmsTCPPacketIO.parse(AmsTCPPacketIO.java:48)
at 
org.apache.plc4x.java.ads.readwrite.io.AmsTCPPacketIO.parse(AmsTCPPacketIO.java:42)
at 
org.apache.plc4x.java.spi.GeneratedDriverByteToMessageCodec.decode(GeneratedDriverByteToMessageCodec.java:79)
at 
io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42)
at 
io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507)
at 
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446)
at 
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
at 
io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at 
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at 
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at 
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] about ads Test (plc4x)

2023-03-28 Thread via GitHub


chrisdutz commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1486370902

   If you install the Beckhoff xae engineering software, this comes with a 
local plc runtime. You should be able to run with with a trial license (you 
need to type in a code every day) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[I] about ads Test (plc4x)

2023-03-28 Thread via GitHub


 opened a new issue, #870:
URL: https://github.com/apache/plc4x/issues/870

   I wrote an acquisition program using plc4x's ads and would like to ask if 
there is an ads simulator or a test program generated from ads simulation data 
to test the correctness of my program.
   I hope you can give me advice, thank you very much!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org