4. Configuration
59
QUALITY_PB_NX6100.FLAGS.FLAG_RESTART:= FALSE;
QUALITY_PB_NX6100.FLAGS.FLAG_FAILURE:= FALSE;
QUALITY_PB_NX6100.FLAGS.FLAG_INACCURATE:= FALSE;
QUALITY_PB_NX6100.FLAGS.FLAG_OLD_DATA:= FALSE;
ELSE
// Condition to turns on imprecision indication
// (check first, because invalid validity must prevail)
IF DG_NX6100_4_AO_Voltage_Current.tGeneral.bCalibrationError = TRUE THEN
QUALITY_PB_NX6100.VALIDITY:= VALIDITY_QUESTIONABLE;
QUALITY_PB_NX6100.FLAGS.FLAG_INACCURATE:= TRUE;
ELSE
QUALITY_PB_NX6100.FLAGS.FLAG_INACCURATE:= FALSE;
END_IF
// Condition to turns on general failure indication (priority)
IF (DG_NX5110.tPbusHeadA.dwModuleNotPresent AND SHL(1, 4)) > 0 OR
DG_NX5110.tPbusHeadA.tSummarized.bConfigMismatch = TRUE OR
DG_NX6100_4_AO_Voltage_Current.tGeneral.bConfigMismatch = TRUE OR
DG_NX6100_4_AO_Voltage_Current.tGeneral.bFatalError = TRUE OR
DG_NX6100_4_AO_Voltage_Current.tGeneral.bNoExternalSupply = TRUE OR
DG_NX6100_4_AO_Voltage_Current.tDetailed.tAnalogOutput_00.bOpenLoop = TRUE OR
DG_NX6100_4_AO_Voltage_Current.tDetailed.tAnalogOutput_00.bShortCircuit = TRUE THEN
QUALITY_PB_NX6100.VALIDITY:= VALIDITY_INVALID;
QUALITY_PB_NX6100.FLAGS.FLAG_FAILURE:= TRUE;
// If the point have ever been updated once ...
IF NOT QUALITY_PB_NX6100.FLAGS.FLAG_RESTART AND
NOT DG_NX6100_4_AO_Voltage_Current.tDetailed.tAnalogOutput_00.bOpenLoop THEN
QUALITY_PB_NX6100.FLAGS.FLAG_OLD_DATA:= TRUE;
END_IF
ELSE
QUALITY_PB_NX6100.FLAGS.FLAG_RESTART:= FALSE;
QUALITY_PB_NX6100.FLAGS.FLAG_FAILURE:= FALSE;
QUALITY_PB_NX6100.FLAGS.FLAG_OLD_DATA:= FALSE;
END_IF
END_IF
END_IF
// In PROFIBUS communication failure with the PROFIBUS slave ...
ELSE
QUALITY_PB_NX6100.VALIDITY:= VALIDITY_INVALID;
QUALITY_PB_NX6100.FLAGS.FLAG_COMM_FAIL:= TRUE;
QUALITY_PB_NX6100.FLAGS.FLAG_FAILURE:= FALSE;
// If the point have ever been updated once ...
IF NOT QUALITY_PB_NX6100.FLAGS.FLAG_RESTART AND
NOT DG_NX6100_4_AO_Voltage_Current.tDetailed.tAnalogOutput_00.bOpenLoop THEN
QUALITY_PB_NX6100.FLAGS.FLAG_OLD_DATA:= TRUE;
END_IF
END_IF
Serial Interfaces Configuration
COM 1 (NX3010/NX3020/NX3030)
The COM 1communicationinterface, present in the NX3010, NX3020 and NX3030 CPUs, is
composed by a DB9 female connector for RS-232C pattern. It allows the point to point
communication (or in network by using a converter) in MODBUS RTU slave or MODBUS RTU
master the open protocols.
The parameters which must be configured for the proper functioning of the application are described
below.
When using the MODBUS master/slave protocol, some of these parameters (such as Serial Mode,
Data Bits, RX Threshold and Serial Events) are automatically adjusted by MasterTool for the correct
operation of this protocol.
Serial channel type
configuration
Serial communication port
speed configuration
200, 300, 600, 1200, 1800, 2400, 4800,
9600, 19200, 38400, 57600, 115200 bps