How to use the Object?

Hi guys,Does anyone have used the <AtmoEpcDecoder> object for a DMC decoding?I  did some test program for testing this lib,but when I simulated,some errors in TwinCAT system occured, I dont konw wether I use it in a wrong way. If you have some experience, please share it to me.thank you.

 

xxxx_20240805142701.png
81.6KB
WeChat_20240805142545.mp4
4.07MB
Best reply by Thorsten_Brach

Looks like a simple mistake :

You have defined your "_epcInfos" variable as "REFERENCE TO DataTagDecoderDecodedInfos" , but you never set the reference to valid variable.

Either you have to assign the reference to valid variable :

_epcInfos  REF= YourEpcInfosInstance;

or you change the data type :

_epcInfos : DataTagDecoderDecodedInfos;   instead of  _epcInfos : REFERENCE TO DataTagDecoderDecodedInfos;

 

View original
2 replies
Resolved