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

Datalayer vs EOE

Datalayer vs EOE

Fixstuff5555
New Poster

Hello,

I have a question about using the CXA_Datalayer library (DL_ReadNode) to read drive status vs CXA_Ethercatmaster library (IL_EcatSoeRead).

What are the advantages to using the datalayer vs the other method?  Logically, it just seems easier to simply read the parameter I want, using the known ethercat address (say 1001), vs having to build a query message using DL_BrowseNode to get the list of serialnumbers from the Datalayer, and then read the actual status with DL_ReadNode.  I can do all that with IL_Ecat_SoeRead much easier.

Thanks in advance,

James

 

1 REPLY 1

J0sh
New Poster

Hello James,

I would always recomend the libraries and functions provided for your specific use case (in this case CXA_Ethercatmaster.IL_ECATSoeRead). Most of them already have checks, timeouts and examples included in them and are much easier to implement.

However not all Datalayer Nodes have a PLC library or FB´s. For this case you could build your own FB´s using CXA_Datalayer.

(Just to clarify: EoE (EthernetOverEtherCAT) as mentioned in the title has nothing to do with both cases)

 

Edit/Followup:

I just saw that you want to read the SoE Drive status word (S-0-0135). This is a realtime variable which can be read in realtime through the "DataLayer_Realtime" object of the ctrlX Core in PLC-Engineering. Please take a look at the documentation for more information.
Realtime Data from the EtherCAT bus can be read once the EtherCAT-Master (and the Slaves) are in State "SafeOp" or "Op".

J0sh_0-1677601203884.png

 

Both CXA_Datalayer and CXA_Ethercatmaster do not access the data in realtime.

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