Hi,
I'm currently trying to create an AOI (Add-On Instruction) to process possible faults on some of my equipment. To do so, I need to read the fault codes from my drives using a MSG (MESSAGE instruction) and this is where my problem start.
What I've done so far:
I created an INOUT parameter with a MESSAGE data type.
I created a tag with a MESSAGE data type in my controller scope to be pass as a parameter in my AOI block
I can set up the MSG in my AOI block but not in the AOI (but I do belive it's normal)
Where I block:
I can't figure out how to set up the destination element of the MSG so i can access it in the AOI. Or maybe it is something else i don't know.
I tried to pass the destination element of my MSG as a parameter of my AOI but it didn't seem to work at all.
The way i found to get around this problem is to create a MSG instruction outside of the AOI, send the information in another tag in my controller scope (destination element of the MSG) and then pass this tag as a reference for one of my parameter in my AOI block. Then i would have to do this for each of my drives which i would prefer not to.
Anyone can help me through this or have any useful idea?
I'm currently trying to create an AOI (Add-On Instruction) to process possible faults on some of my equipment. To do so, I need to read the fault codes from my drives using a MSG (MESSAGE instruction) and this is where my problem start.
What I've done so far:
I created an INOUT parameter with a MESSAGE data type.
I created a tag with a MESSAGE data type in my controller scope to be pass as a parameter in my AOI block
I can set up the MSG in my AOI block but not in the AOI (but I do belive it's normal)
Where I block:
I can't figure out how to set up the destination element of the MSG so i can access it in the AOI. Or maybe it is something else i don't know.
I tried to pass the destination element of my MSG as a parameter of my AOI but it didn't seem to work at all.
The way i found to get around this problem is to create a MSG instruction outside of the AOI, send the information in another tag in my controller scope (destination element of the MSG) and then pass this tag as a reference for one of my parameter in my AOI block. Then i would have to do this for each of my drives which i would prefer not to.
Anyone can help me through this or have any useful idea?
Last edited: