FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
06-28-2024 10:13 AM
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.
The Node path is : fieldbuses/ethercat/master/instances/ethercatmaster/admin/distributed_clocks/config_info
Any advice would be helpFull
Thank You
Solved! Go to Solution.
06-28-2024 11:25 AM
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:
This then can be found in the CXA_EtherCatMaster_fbs library that is including all flatbuffer access functions:
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: