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

Read datalayer node from PLC

Highlighted
Member

Read datalayer node from PLC

Hello,

If I use the fb DL_ReadNode to read a data from the DataLayer.

How do I know the value of the Clien_Id to make it work?
 
 

5.png6.jpg

Do I have to put that value? in what format?

Thanks.

Tags (1)
2 REPLIES 2
Highlighted
New Poster

Re: Read datalayer node from PLC

Hi David,

I have been trying to read data between two applications (loaded in PLC) and read data from virtual axes:

read_axisPos.PNG

As you can see I don't use clientId, but I define 'Value' input as REAL variable in other cases I get an error.

 

I add another question, how should I use the FBs 'DL_ReadNodeValue' and 'DL_NodeValue?

 

Thanks!

 

Highlighted
Established Member

Re: Read datalayer node from PLC

 

Some extented explantation:

The FB DL_ReadNode can be used to read every values from the datalayer, independent to the type.

Jochen_Mueller_3-1603869259970.png

Link to docu of DL_ReadNode (Here you find the description and an example.)

 

But the variable you connet at "Value" must fit the datalyer type. Means you have to check the type of the datalayer-node and depending on this declaring the PLC-variable. Here you see it's a "number" (float).

Jochen_Mueller_0-1603868613386.png

if you don't see it clearly 🙂 additional you have the possibility to check it at the DataLayer tree under "types". (I know it's not nice to read.)

Jochen_Mueller_2-1603869199551.png

Schema of the lim:

{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "motion_core_fbtypes_AxsCfgLimits" : { "type" : "object", "properties" : { "posMin" : { "type" : "number" }, "posMax" : { "type" : "number" }, "velPos" : { "type" : "number" }, "velNeg" : { "type" : "number" }, "acc" : { "type" : "number" }, "dec" : { "type" : "number" }, "jrkAcc" : { "type" : "number" }, "jrkDec" : { "type" : "number" } }, "additionalProperties" : false } }, "$ref" : "#/definitions/motion_core_fbtypes_AxsCfgLimits"}

 

Hope this helps.

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