TcUtilities BC9000
Download library:
(tcbc9000.zip)
FUNCTION_BLOCK RW_FieldbusPrmBC9000
This function block can be used to modify fieldbus parameter data. Only one instance of this function block is permitted.

VAR_INPUT
bStart_R :BOOL;
bStart_W :BOOL;
NetID: :STRING;
W_BC9000_PRM :BC9000_Fieldbus;
AutoReboot :BOOL;
bStart_R: Reads the data and outputs it to R_BC9000_Prm
bStart_W: Reads and writes the data of the data structure W_BC9000Prm
NetID: String - AMSNetId
W_BC9000_Prm: Data structure for the parameters
AutoReboot: "TRUE" - the coupler starts and reboots automatically once the parameters have been set successfully, after which the modified settings apply.
VAR_OUTPUT
bBusy :BOOL;
bError :BOOL;
iErrorId :DWORD;
R_BC9000_Prm :BC9000_Fieldbus;
RebootNecessary :BOOL;
bBusy: The function block is active as long it is TRUE.
bError: Error bit.
iErrorId: Error number.
W_BC9000_Prm: Fieldbus data structure.
RebootNecessary: The parameters are new, a restart of the BC Controller is required.
TYPE BC9000_Fieldbus:
STRUCT
Disable_ADS :BOOL;
WD_ADS :WORD;
CloseIP_Port_ADS :WORD;
DisableModbus :BOOL;
WD_Modbus :WORD;
Close_IP_Port_Modbus :WORD;
FastModbus :BOOL;
IP_Port_Number_Modbus :WORD;
END_STRUCT
END_TYPE
Key
Disable_ADS: Disables the ADS protocol (table 100, offset 15.1)
WD_ADS: ADS watchdog: if no telegram was received after this time, the outputs are set to zero (table 100, offset 14)
Close_IP_Port_ADS: The TCP/IP service is closed after this time, if no more telegrams reach the coupler (table 100, offset 27)
Disable_Modbus: Disables the Modbus protocol (table 100, offset 15.0)
WD_Modbus: ModbusTCP watchdog: if no telegram was received after this time, the outputs are set to zero (table 100, offset 24)
Close_IP_Port_Modbus: The TCP/IP service is closed after this time, if no more telegrams reach the coupler (table 100, offset 28)
FastModbus: Enables Fast Modbus (table 100, offset 29.0)
IP_Port_Number_Modbus: TCP port number (table 100 offset 26)
Return parameter iErrId | Meaning |
---|---|
0 | No error |
> 0 | Error number (#not documented#) |
FUNCTION_BLOCK RW_ParameterBC9000
This function block can be used to modify the PLC parameters. Only one instance of this function block is permitted.

VAR_INPUT
bStart_R :BOOL;
bStart_W :BOOL;
NetID: :STRING;
W_BC9000_PRM :BC9000_Prm;
AutoReboot :BOOL;
bStart_R: Reads the data and outputs it to R_BC9000_Prm
bStart_W: Reads and writes the data of the data structure W_BC9000Prm
NetID: String - AMSNetId
W_BC9000_Prm: Data structure for the parameters
AutoReboot: "TRUE" - the coupler starts and reboots automatically once the parameters have been set successfully, after which the modified settings apply.
VAR_OUTPUT
bBusy :BOOL;
bError :BOOL;
iErrorId :DWORD;
R_BC9000_Prm :BC9000_Prm;
RebootNecessary :BOOL;
bBusy: The function block is active as long it is TRUE.
bError: Error bit.
iErrorId: Error number.
W_BC9000_Prm: Fieldbus data structure.
RebootNecessary: The parameters are new, a restart of the BC Controller is required.
TYPE BC9000_Fieldbus:
STRUCT
Byte_Offset_Output :WORD;
Byte_Offset_Input :WORD;
PLC_Offset_Input :WORD;
PLC_Len_Input :WORD;
PLC_Offset_Output :WORD;
Task_Time :WORD;
Background_Time :WORD;
RetainData :WORD;
PersistentData :WORD;
Terminal_Refresh :WORD;
Check_Terminals: :BOOL;
END_STRUCT
END_TYPE
Key
Byte_Offset_Output: Specifies the offset for the digital output terminals (table 0, offset 19)
Byte_Offset_Input: Specifies the offset for the digital input terminals (table 0, offset 20)
PLC_Offset_Input: Specifies the offset for the fieldbus input data (PLC variables) (table 1, offset 0)
PLC_Len_Input: Specifies the length of the fieldbus input data (PLC variables) (table 1, offset 1)
PLC_Offset_Output: Specifies the offset for the fieldbus output data (PLC variables) (table 1, offset 2)
PLC_Len_Output: Specifies the length of the fieldbus output data (PLC variables) (table 1, offset 3)
Task_Time: Task time (table 1, offset 12)
Background_Time: Background time (table 1, offset 13)
RetainData: Number of retain data (table 1, offset 15)
PersistentData: Number of persistent data (table 1, offset 18)
Terminal_Refresh: K-bus refresh (table 1, offset 17)
Check_Terminals: Deactivate Bus Terminal verification during start-up (table 1 offset 14.6)
Return parameter iErrId | Meaning |
---|---|
0 | No error |
> 0 | Error number (#not documented#) |
Download sample:
(parameter_example.zip)