Hi,
I think it seems acquired data will be stored in area that as assigned as pData. But no data was stored.
Get attribute single request was succussed in captured packed.
Is acquired data stored in pData assigned area?
Hi, yes, I set wAttribute input.
.xError bit is false and .xDone bit is accumulated. So it seems getAttributeSingle request is succeeded.
What will be the problem that no data is acquired even in requested is succeeded??
Any advice will be appreciated.
I also tried String64 type but no data is appeared in the program.
I referred webinar video of youtube and acquired data is indicated in the bottom of the HMI faceplate.
But latest faceplate is not.
And received data size is different even in same eClass, instance and attribute.
Any idea?
Does anyone know where is the acquired data stored using getAttributeSingle insturuction?
I'm not sure I understand - the acquired values are stored in whichever variable you write them into...?
Hi,
I think it seems acquired data will be stored in area that as assigned as pData. But no data was stored.
Get attribute single request was succussed in captured packed.
Is acquired data stored in pData assigned area?
It looks as though you are not receiving the data, as the ReceivedDataSize is 0...
Have you set the wAttribute input? Sorry if you have, I can't see it there.
Hi, yes, I set wAttribute input.
.xError bit is false and .xDone bit is accumulated. So it seems getAttributeSingle request is succeeded.
What will be the problem that no data is acquired even in requested is succeeded??
Any advice will be appreciated.
I haven't used this tbh I thought someone else might chime in by now haha!
Are you sure you are supposed to be using an array of bytes? I see in the instance for Host name they are using a type String64.
https://content.helpme-codesys.com/en/libs/EtherNetIP%20Services/4.3.0.0/EtherNetIPServices/Function-Blocks/DataExchange/Get_Attribute_Single.html
Are you sure you shouldn't be obtaining a string value and converting to an array of bytes if that is what you need?
Last edit: ben1 2023-04-19
I also tried String64 type but no data is appeared in the program.
I referred webinar video of youtube and acquired data is indicated in the bottom of the HMI faceplate.
But latest faceplate is not.
And received data size is different even in same eClass, instance and attribute.
Any idea?