Function block FB_KL320xConfig
The function block FB-KL320xConfig can be used to configure the KL320x terminals. A more detailed description can be found in the Beckhoff Information System:
TwinCAT2: TwinCAT PLC Lib: I/O functions/Bus Terminal configuration
TwinCAT3: TwinCAT 3 PLC Lib:Tc2_I/O functions/Function blocks/Bus Terminal configuration