Hello everbody, I’ve a problem with an AXC F 2152 Controller and the PDI_Read Function from the standard library and i hope someone can give me a hint for resolving the problem. My aim was to read the productname from PDI information of a plugged AXL SE AI4 U Element. Therefore i’ve created a functionblock (Read_Property) for call the PDI_Read Function. My Problem is now that the error output is always true also when there was no positive flank on the request input. But in the statusdword is no errorcode. With Best Regards Dominic MAIN (IdleTask): Read_Property1(iSlot := iSlot, xRead => xRead, wIndex := wIndex); // iSlot=1 & wIndex=16#0007 Read_Property(FB): PDI_READ_1( REQ := NotFirstCycle, SLOT := TO_WORD(iSlot), SUBSLOT := 0, INDEX := wIndex, SUBINDEX := 0, RD_1 := RD_1, STATUS := STATUS_1); IF NOT NotFirstCycle THEN NotFirstCycle := TRUE; xRead := FALSE; END_IF; IF PDI_READ_1.NDR THEN xRead := TRUE; tes := RD_1; NotFirstCycle := FALSE; END_IF; IF PDI_READ_1.ERROR THEN NotFirstCycle := FALSE; END_IF; Attachments: - Picture of Debugging
Hi Dominic, I’m probably missing something … where do you see that 16#0007 is the index corresponding to Product Name for the AXL SE AI4 U ? I have attached the section of the AXL SE AI4 U user manual that I am looking at, and even when I follow the references to the other Axioline manuals, I can’t see this PDI Index listed for this module. If you can confirm that this is a valid PDI index, then I will investigate further. ~ Martin.
