You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by "ppppoooo (via GitHub)" <gi...@apache.org> on 2023/03/28 07:24:20 UTC
[I] about ads Test (plc4x)
ppppoooo 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-unsubscribe@plc4x.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by Cesar Garcia <ce...@ceos.com.ve>.
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&lc=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, ppppoooo (via GitHub) (<gi...@apache.org>)
escribió:
>
> ppppoooo 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-unsubscribe@plc4x.apache.org.apache.org
>
> For queries about this service, please contact Infrastructure at:
> users@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.automation@siemens.com
<su...@siemens.com>*
Re: [I] about ads Test (plc4x)
Posted by "ppppoooo (via GitHub)" <gi...@apache.org>.
ppppoooo commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1495522817
Hello @chrisdutz ,
Can you send me the link to the demo, thank you very much!
> This
--
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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by "ppppoooo (via GitHub)" <gi...@apache.org>.
ppppoooo 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 [000020000000c0a8a3090101bd80c0a8a3000001530309000500000000004000000001000000]: 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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by "chrisdutz (via GitHub)" <gi...@apache.org>.
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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by "splatch (via GitHub)" <gi...@apache.org>.
splatch commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1495564243
@ppppoooo In my earlier comment I wrote exact class name you need to look for. Please check present ads driver sources.
--
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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by "ppppoooo (via GitHub)" <gi...@apache.org>.
ppppoooo 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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by "splatch (via GitHub)" <gi...@apache.org>.
splatch closed issue #870: about ads Test
URL: https://github.com/apache/plc4x/issues/870
--
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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] about ads Test (plc4x)
Posted by "splatch (via GitHub)" <gi...@apache.org>.
splatch commented on issue #870:
URL: https://github.com/apache/plc4x/issues/870#issuecomment-1487185983
Hello @ppppoooo,
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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org