Programming
Fig. 35: Function block RW_FIELDBUSPRMBC9000
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)
BC9000 and BC9100
Version: 4.0.0
47