Get ctrlX SAFETY FSoE Diagnosis on ctrlX CORE

Get ctrlX SAFETY FSoE Diagnosis on ctrlX CORE

Dias
Community Moderator
Community Moderator

This function block can be used to perform an error analysis of FSoE communication between an FSoE master and an FSoE slave in the PLC. The function block also monitors the command of an FSoE connection. If the command has the value 54, the following data is correct.

If the command has the value 42, the following data contains an error code instead the datas:

0: strError:= 'Local reset or acknowledgement of a RESET command'
1: strError:= 'Unexpected command (INVALID_CMD)'
2: strError:= 'Unknown command (UNKNOWN_CMD)'
3: strError:= 'Invalid connection ID (INVALID_CONNID)'
4: strError:= 'CRC error (INVALID_CRC)'
5: strError:= 'Watchdog has expired (WD_EXPIRED)'
6: strError:= 'Invalid FSoE Slave Address (INVALID_ADDRESS)'
7: strError:= 'Invalid safety data (INVALID_DATA)'
8: strError:= 'Invalid communication parameter length (INVALID_COMMPARALEN)'
9: strError:= 'Invalid communication parameter data (INVALID_COMPARA)'
10: strError:= 'Invalid application parameter length (INVALID_USERPARALEN)'
11: strError:= 'Invalid application parameter data (INVALID_USERPARA)'

If an error occurs, it is entered in a logbook with a time stamp.  The Loogbook can be analysed as internal instance Array arErrorLogthe TimeStamps are a different Array arErrorLogDateTime with the same Index.

This Functionblock can also be used to analyse the actual FSoE Cycletime between FSoE Master and FSoE Slave. This can be helpfull for configure the FSoE-Devices with the right FSoE Watchdog value. But the configured value should be higher as the monitored value of this Functionblock.
To determine the most accurate FSoE cycle time, the function block should be called up in the fastest possible task.
If it is only to record and save error entries, the task in which the function block is called can run significantly slower

In this example, there is an FSoE connection between 2 ctrlX SAFETY control units. One SAFEX is the FSoE master and one is the FSoE slave.

The FSoE command, the address %IB0, is monitored on the FSoE Master connection1. (direction FSoE master to FSoE slave).
The FSoE data , the address %IB1, is monitored on the FSoE Master Connection1.
The FSoE CRC (checksum), the address %IW4, is monitored on the FSoE Master Connection1. 

Functionblock SAFEX_FSoE_Diagnosis_1V05Functionblock SAFEX_FSoE_Diagnosis_1V05

 

 



 

Dias
Dias
I`m a member of the ctrlX AUTOMATION Community and responsible for Safety Systems and PLC
Must Read
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