Programming
Return parameter iErrId
0
> 0
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.
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
48
Meaning
No error
Error number (#not documented#)
Version: 4.0.0
BC9000 and BC9100