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

Read EthecatCycle time with PLC : Flatbuffer

Read EthecatCycle time with PLC : Flatbuffer

Fred74
Established Member

Hello, 

I need to read with PLC the Ethercat cycle time which has been conifgured.

The NodeValue is Flattbuffer and I don't understand How to read it with PLC.

Fred74_2-1719562416335.png

 

The Node path is : fieldbuses/ethercat/master/instances/ethercatmaster/admin/distributed_clocks/config_info

Fred74_1-1719562321085.png

 

Any advice would be helpFull

Thank You 

 

1 REPLY 1

CodeShepherd
Community Moderator
Community Moderator

Like any other flatbuffer it needs to be decoded after reading the value.

See how to for possible access: Comfortable data exchange of PLC and FlatBuffer variables using watchlist in Data Layer NRT

If you want to decode it on your own check for the data type used for this node:

ctrlX OS web UI - data alyer browser - ethercat configctrlX OS web UI - data alyer browser - ethercat config

This then can be found in the CXA_EtherCatMaster_fbs library that is including all flatbuffer access functions:

ctrlX PLC Engineering - CXA_EtherCatMaster_fbs - DCConfigInfoctrlX PLC Engineering - CXA_EtherCatMaster_fbs - DCConfigInfo

As the data object has two leves, you first extract the "Response" and then the values out of it via the used type comm_ethercat_master_fbs_DcConfigInfoResponse.

See examples: 

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