cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Reading IO IndraDrive in PLC programming

Reading IO IndraDrive in PLC programming

AndroidzZ
New Contributor

I am trying to read out the IO of my indradrive and use the values in my PLC program. With a virtual axis I can do this without any problem I can call the data from the datalayer into my PLC program.  As soon as I try it with the IO coming from the IndraDrive into the datalayer, nothing happens. in the datalayer itself I get the actual values of the IO back so the communication is working, am i missing something? 

The images should clarify what I am doing. Maybe it's something with the blue message "string constant" but i cant seem to find a problem there. Backslash infront of 'fieldbus' doesnt change anything.

DataLayer_Value: INT;

4 REPLIES 4

AndroidzZ
New Contributor

forgot extra image

The first thing I see is that your paths are different. The real data has a starting "/" and the virtual not.

What is the error message that your function block is showing?

For your real time data you can of course also use the Codesys standard ways:

2021-03-11_09h27_22.png

2021-03-11_09h27_34.png

Thanks for the reply i got what i needed with the codsys standard ways! 

But ReadNode should work too, right? 

As said in my first post the "/" doesn't change a thing and the function block has no error message the output value of readnode is just 0. While the value in the datalayer is not 0.

Sorry I kind of over read this. In my opinion it should work. I will do some tests. Thanks for mentioning.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist