Programming
BC9000 and BC910048 Version: 4.0.0
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.
Fig.36: Function block RW_PARAMETERBC9000
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.
TYPEBC9000_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