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

Read Log data in Datalayer in PLC

Read Log data in Datalayer in PLC

WesleyTsai
New Poster

Hello, I would like to read Log data in PLC, but the data return is always wrong data.

Datalayer.jpg

I used these 2 functions "DL_ReadNodeValue" and "common_log_diagnosis_fbs_DiagnosisIdentification" to read MainDiagnosisNumber, DetailedDiagnosisNumber and Entity back to PLC.

Program.jpg

But the data return only "(" in Main Diagnosis, "timestamp" in Detailed Diagnosis and no data return in Entity.

Execute.jpg

I using the same programs to read PLC info by CXA_PLC_fbs fuction, the results returned correctly without problem. Could you help me check whether there is any mistake of the fuction of read diagnosis log?

Thanks.

 

3 REPLIES 3

bostroemc
Occasional Contributor

Data layer node diagnosis/get/actual/log is associated to schema types/diagnosis/identification-timestamp.  The POU for this schema is common_log_diagnosis_fbs_DiagnosisIdentificationWithTimestamp, not common_log_diagnosis_fbs_DiagnosisIdentification.

2024-07-01_08h07_48.png

After the initial call to DL_ReadNodeValue, use common_log_diagnosis_fbs_DiagnosisIdentificationWithTimestamp to get the root structure, then a pointer to common_log_diagnosis_fbs_DiagnosisIdentification to get the inner structure:

2024-07-01_08h07_19.png

EDIT: Tested with ctrlX CORE 2.6.x, but should apply equally with ctrlX CORE 1.20.x.

HmiGuide
Community Moderator
Community Moderator

Please always tell which ctrlX version you are using, while newer ctrlX version have more FB's which might help you.

I have already tried it in ctrlX CORE 2.4.0, it could use without problem.

Thanks a lot.

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