F_SplitBIC

The F_SplitBIC function splits the Beckhoff Identification Code (BIC) sBICValue into its components using known identifiers and returns the recognized substrings in a structure ST_SplittedBIC as return value. Spaces at the end of substrings are automatically removed. Unused substrings are returned as empty strings. If an unknown identifier is found, then the remaining string of the BIC is passed on as sUndefined in the return structure. The BIC can be read e.g. with the function blocks FB_EcCoEReadBIC or FB_EcReadBIC (Tc2_EtherCAT Library) from EtherCAT slaves.
Return value
Name | Type | Description |
---|---|---|
F_SplitBIC | ST_SplittedBIC |
|
Inputs
VAR_INPUT
sBICValue : STRING;
END_VAR
Name | Type | Description |
---|---|---|
sBICValue | STRING | This input must contain the Beckhoff Identification Code (BIC), which is split into substrings using the F_SplitBIC function, e.g. "1P193995SBTN0002agdw1KEL7411 Q1 2P112104020018". |
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, Arm®) | Tc2_Utilities (System) |