PLC Libraries Release 7 - 1
PLC Libraries Release 7 - 1
Revision
We reserve all rights in this document and in the information contained therein.
Reproduction, use or disclosure to third parties without express authority is strictly forbidden.
Copyright 2006 ABB AG, Mannheim/Germany
Contents
REVISION .....................................................................................................................................................III
CONTENTS .................................................................................................................................................. V
1.1 Purpose
The function block library RTULIB is needed to enable data point transfer between the
PLC function INPUT and OUTPUT data area and SCADA on the RTU560. If not
included in the MULTIPROG wt project, no PLC data processing of data points in the
RTU is possible.
RTULIB includes structured data type and function block definitions. These elements
are consequently adapted to the data type definitions in the RTU firmware and should
not be changed by the user.
This document describes RTULIB Release 7.1 that is used for RTU560 firmware
version 7.1.
Compatibility
RTULIB library release 7.1 is not compatible with older RTU560 firmware versions.
After installation of RTULIB library release 7.1, MULTIPROG wt projects (that are
created using an RTULIB library release below 7.1) maybe have to be adapted and
anyway must be recompiled.
The structured data types include several elements of simple data types that are listed
in the column Type in the tables below.
In principle, if no special remarks are given, the description for a structure element is
meant for local RTU560 I/O use only (basing on the IEC 60870-5-101 protocol).
If data points are intended to be transmitted via a special communication protocol, the
specific interface description applies.
2.1 AMI_IN
Data point input function block.
When the data point is received, element TR changes from FALSE to TRUE for one
task cycle.
FB function description:
AMI_IN copies the elements of a type AMI input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input AMI Input from structured variable type AMI
2.2 AMI_OUT
Data point output function block.
The data point is transmitted when element TR changes from FALSE to TRUE, or any
of the flags OV .. IV changes compared to the last task cycle.
FB function description:
AMI_OUT copies the input parameter to the corresponding elements of a type AMI
output parameter.
FB additional parameter:
Parameter Data type Description
Threshold INT Threshold value in % for transmission condition
Transmit BOOL If set to TRUE for one task cycle, data point is transmitted
Output AMI Output to structured variable type AMI
2.3 AMI_TR
Utility function block.
FB function description:
AMI_TR calculates a transmit condition for an INT value evaluating its change
between two task cycles. The algorithm is the same as used for AMI_OUT. The output
parameter TR is set for one task cycle if one of the following conditions is fulfilled:
FB parameter
Parameter Data type Description
Value INT 16 bit analog value
Threshold INT Threshold value in % for transmission
Transmit BOOL If set to TRUE for one task cycle, TR is set
TR BOOL Set for one task cycle if transmit condition fulfilled
2.4 ASO_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
ASO_IN copies the elements of a type ASO input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input ASO Input from structured variable type ASO
2.5 ASO_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
ASO_OUT copies the input parameter to the corresponding elements of a type ASO
output parameter.
FB additional parameter:
Parameter Data type Description
Output ASO Output to structured variable type ASO
2.6 BSI08_IN
Data point input function block.
BSI08_IN copies the elements of a type BSI08 input parameter to the corresponding
output parameter. Bit0 .. bit7 of element Value are evaluated and written to the eight
BOOL type parameter Value0 .. Value7.
2.7 BSI08_OUT
Data point output function block.
The data point is transmitted when element Value or any of the quality flags OV .. IV
changes compared to the last task cycle.
FB function description:
BSI08_OUT copies the input parameter to the corresponding elements of a type BSI08
output parameter. The BOOL values of parameter Value0 .. Value7 are evaluated and
concentrated to bit0 .. bit7 of BYTE element Value.
2.8 BSI16_IN
Data point input function block.
BSI16_IN copies the elements of a type BSI16 input parameter to the corresponding
output parameter. Bit0 .. bit15 of element Value are evaluated and written to the 16
BOOL type parameter Value0 .. Value15.
2.9 BSI16_OUT
Data point output function block.
The data point is transmitted when element Value or any of the quality flags OV .. IV
changes compared to the last task cycle.
FB function description:
BSI16_OUT copies the input parameter to the corresponding elements of a type BSI16
output parameter. The BOOL values of parameter Value0 .. Value15 are evaluated
and concentrated to bit0 .. bit15 of BYTE element Value.
2.10 BSO01_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
BSO01_IN copies the elements of a type BSO01 input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input BSO01 Input from structured variable type BSO01
2.11 BSO01_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
FB additional parameter:
Parameter Data type Description
Output BSO01 Output to structured variable type BSO01
2.12 BSO02_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
BSO02_IN copies the elements of a type BSO02 input parameter to the corresponding
output parameter. Bit0 and bit1 of element Value are evaluated and written to the
BOOL type parameter Value0 and Value1.
FB additional parameter:
Parameter Data type Description
Input BSO02 Input from structured variable type BSO02
Value0 … BOOL Bit wise representation of Value
Value1
2.13 BSO02_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
2.14 BSO08_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
BSO08_IN copies the elements of a type BSO08 input parameter to the corresponding
output parameter. Bit0 .. bit7 of element Value are evaluated and written to the BOOL
type parameter Value0 .. Value7.
2.15 BSO08_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
2.16 BSO16_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
BSO16_IN copies the elements of a type BSO16 input parameter to the corresponding
output parameter. Bit0 .. bit15 of element Value are evaluated and written to the BOOL
type parameter Value0 .. Value15.
2.17 BSO16_OUT
Data point output function block
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
2.18 CMD_TOGGLE_F
Utility function block.
FB function description:
Toggles the output parameter Q on every falling edge of the input parameter CLK:
1
CLK
0
t
1
Q
0
t
FB parameter:
Parameter Data type Description
CLK BOOL Input variable type BOOL to toggle output
Q BOOL Toggle output variable type BOOL
2.19 CMD_TOGGLE_R
Utility function block.
FB function description:
Toggles the output parameter Q on every rising edge of the input parameter CLK:
1
CLK
0
t
1
Q
0
t
FB parameter:
Parameter Data type Description
CLK BOOL Input variable type BOOL to toggle output
Q BOOL Toggle output variable type BOOL
2.20 CMD_TRIG
Utility function block.
Only for compatibility: RTU560 Version 5.0 together with older MULTIPROG
Projects
FB function description:
CMD_TRIG copies the input parameter Trig to the output parameter Output.
FB Parameter:
Parameter Data type Description
Trig BOOL Input signal
Output BOOL = Value of Trig
Remarks:
CMD_TRIG could be (in older versions than RTULIB 5.0!) used for triggering the
transmission of command data points. It set Output to a positive edge in case of any
edge at the Trig input. In older Versions commands were only sent by a FALSE-
>TRUE transition at the EX or SE input.
From RTU560 Firmware Version 5.0 commands are transmitted by any change of EX
or SE input. For compatibility CMD_TRIG has now a bypass function only.
If older MULTIPROG wt projects are used together with RTU560 Firmware Version
5.0, RTULIB Version 5.0 has to be installed and the project has to be re-compiled.
Since CMD_TRIG is useless in that case, it may also be removed!
2.21 COT_IN
Utility function block (for command data types).
COT represents the numeric “cause of transmission” that is used in a command data
point as a BOOL type structure element.
FB function description:
COT_IN evaluates Input for a valid numeric “cause of transmission” (6..10) and sets
the corresponding output parameter to TRUE, the other output parameter are set to
FALSE.
FB additional Parameter:
Parameter Data type Description
Input USINT Input of the numeric „cause of transmission“
2.22 COT_OUT
Utility function block (for command data types).
COT represents the numeric “cause of transmission” that is used in a command data
point as a BOOL type structure element.
FB function description:
COT_OUT evaluates the bool type input parameter. The first input parameter in
sequence Act .. ActTerm that is TRUE leads to assignment of the corresponding
numeric “cause of transmission” value (6..10) to Output. If no input parameter is
TRUE, Output is set to 0.
FB additional parameter:
Parameter Data type Description
Output USINT Output of the numeric „cause of transmission“
2.23 DCO_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
DCO_IN copies the elements of a type DCO input parameter to the corresponding
output parameter. Bit0 and bit1 of element Value are evaluated and written to the
BOOL type parameter Value0 and Value1.
FB additional parameter:
Parameter Data type Description
Input DCO Input from structured variable type DCO
2.24 DCO_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
DCO_OUT copies the input parameter to the corresponding elements of a type DCO
output parameter. The BOOL values of parameter Value0 and Value1 are evaluated
and concentrated to bit0 and bit1 of BYTE element Value.
FB additional parameter:
Parameter Data type Description
Output DCO Output to structured variable type DCO
2.25 DMI08_IN
Data point input function block.
Data type DMI08 (Digital measured input value 8 bit), monitoring direction
Structure element Type Description
Value BYTE 8 bit binary value
OV BOOL Overflow
BL BOOL Blocked
SB BOOL Substituted
NT BOOL Not topical
IV BOOL Invalid
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
FB function description:
DMI08_IN copies the elements of a type DMI08 input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input DMI08 Input from structured variable type DMI08
2.26 DMI08_OUT
Data point output function block.
Data type DMI08 (Digital measured input value 8 bit), monitoring direction
Structure element Type Description
Value BYTE 8 bit binary value
OV BOOL Overflow
BL BOOL Blocked
SB BOOL Substituted
NT BOOL Not topical
IV BOOL Invalid
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
OUTPUT condition:
The data point is transmitted when element Value or any of the flags OV .. IV changes
compared to the last task cycle.
FB function description:
FB additional parameter:
Parameter Data type Description
Output DMI08 Output to structured variable type DMI08
2.27 DMI16_IN
Data point input function block.
Data type DMI16 (Digital measured input value 16 bit), monitoring direction
Structure element Type Description
Value WORD 16 bit binary value
OV BOOL Overflow
BL BOOL Blocked
SB BOOL Substituted
NT BOOL Not topical
IV BOOL Invalid
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
FB function description:
DMI16_IN copies the elements of a type DMI16 input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input DMI16 Input from structured variable type DMI16
2.28 DMI16_OUT
Data point output function block.
Data type DMI16 (Digital measured input value 16 bit), monitoring direction
Structure element Type Description
Value WORD 16 bit binary value
OV BOOL Overflow
BL BOOL Blocked
SB BOOL Substituted
NT BOOL Not topical
IV BOOL Invalid
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
OUTPUT condition:
The data point is transmitted when element Value or any of the flags OV .. IV changes
compared to the last task cycle.
FB function description:
FB additional parameter:
Parameter Data type Description
2.29 DPI_IN
Data point input function block.
FB function description:
DPI_IN copies the elements of a type DPI input parameter to the corresponding output
parameter. Bit0 and bit1 of element Value are evaluated and written to the BOOL type
parameter Value0 and Value1.
2.30 DPI_OUT
Data point output function block.
The data point is transmitted if structure element Value or any of the quality flags OV ..
IV changes compared to the last task cycle.
FB function description:
DPI_OUT copies the input parameter to the corresponding elements of a type DPI
output parameter. The BOOL 75
3values of parameter Value0 and Value1 are evaluated and concentrated to bit0 and
bit1 of BYTE element Value.
2.31 DSO08_IN
Data point input function block.
Data type DSO08 (Digital setpoint command output 8 bit), command direction
Structure element Type Description
SE BOOL Select (transmit command with select)
EX BOOL Execute (transmit command with execute)
AQ BOOL Acknowledge (TRUE = negative confirmation!)
QU BYTE Qualifier: 0 (default) for local RTU560 I/O use, else
s. protocol specific interface description
Value INT Digital value
COT USINT Cause of Transmission (s. COT_IN / COT_OUT)
INPUT condition:
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
DSO08_IN copies the elements of a type DSO08 input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input DSO08 Input from structured variable type DSO08
2.32 DSO08_OUT
Data point output function block.
Data type DSO08 (Digital setpoint command output 8 bit), command direction:
Structure element Type Description
SE BOOL Select (transmit command with select)
EX BOOL Execute (transmit command with execute)
AQ BOOL Acknowledge (TRUE = negative confirmation!)
QU BYTE Qualifier: 0 (default) for local RTU560 I/O use, else
s. protocol specific interface description
Value INT Digital value
COT USINT Cause of Transmission (s. COT_IN / COT_OUT)
OUTPUT condition:
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
FB additional parameter:
Parameter Data type Description
Output DSO08 Output to structured variable type DSO08
2.33 DSO16_IN
Data point input function block.
Data type DSO16 (Digital setpoint command output 16 bit), command direction
Structure element Type Description
SE BOOL Select (transmit command with select)
EX BOOL Execute (transmit command with execute)
AQ BOOL Acknowledge (TRUE = negative confirmation!)
QU BYTE Qualifier: 0 (default) for local RTU560 I/O use, else
s. protocol specific interface description
Value INT Digital value
COT USINT Cause of Transmission (s. COT_IN / COT_OUT)
INPUT condition:
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
DSO16_IN copies the elements of a type DSO16 input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input DSO16 Input from structured variable type DSO16
2.34 DSO16_OUT
Data point output function block.
Data type DSO16 (Digital setpoint command output 16 bit), command direction
Structure element Type Description
SE BOOL Select (transmit command with select)
EX BOOL Execute (transmit command with execute)
AQ BOOL Acknowledge (TRUE = negative confirmation!)
QU BYTE Qualifier: 0 (default) for local RTU560 I/O use, else
s. protocol specific interface description
Value INT Digital value
COT USINT Cause of Transmission (s. COT_IN / COT_OUT)
OUTPUT condition:
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
FB additional parameter:
Parameter Data type Description
Output DSO16 Output to structured variable type DSO16
2.35 DWORD_TO_BITVALUES
Utility function block.
FB function description:
Converts a variable type DWORD to it’s bit wise representation of BOOL type
parameter Bit0 .. Bit31.
FB parameter:
Parameter Data type Description
Input DWORD Input from variable type DWORD
Bit0.. BOOL Bit wise representation of Input variable
Bit31
2.36 ITI_IN
Data point input function block.
FB function description:
ITI_IN copies the elements of a type ITI input parameter to the corresponding output
parameter.
FB additional parameter:
Parameter Data type Description
Input ITI Input from structured variable type ITI
2.37 ITI_OUT
Data point output function block.
OUTPUT condition:
The data point is transmitted if structure element Value or any of the quality flags SEQ
.. IV changes compared to the last task cycle.
FB function description:
ITI_OUT copies the input parameter to the corresponding elements of a type ITI output
parameter.
FB additional parameter:
Parameter Data type Description
Output ITI Output to structured variable type ITI
2.38 LIB_RELEASE
Utility function block.
FB Function description:
LIB_RELEASE copies a string constant with the current RTULIB release number to the
output parameter ReleaseNo.
FB parameter:
Parameter Data type Description
ReleaseNo STRING Name of the current RTULIB release number
2.39 MFI_IN
Data point input function block.
Data type MFI (Analog measured value floating point input), monitoring direction
Structure element Type Description
Value REAL 32 bit floating point analog value
OV BOOL Overflow
BL BOOL Blocked
SB BOOL Substituted
NT BOOL Not topical
IV BOOL Invalid
TR BOOL Transmitted -> TRUE for one task cycle after
receive
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
INPUT condition:
When the data point is received, element TR changes from FALSE to TRUE for one
task cycle.
FB function description:
MFI_IN copies the elements of a type MFI input parameter to the corresponding output
parameter.
FB additional parameter:
Parameter Data type Description
Input MFI input from structured variable type MFI
2.40 MFI_OUT
Data point output function block.
The data point is transmitted when element TR changes from FALSE to TRUE, or any
of the flags OV .. IV changes compared to the last task cycle.
FB function description:
MFI_OUT copies the input parameter to the corresponding elements of a type MFI
output parameter.
FB additional parameter:
Parameter Data type Description
Threshold REAL Threshold value for transmission condition
Transmit BOOL If set to TRUE for one task cycle, data point is transmitted
Output MFI Output to structured variable type MFI
2.41 RCO_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
RCO_IN copies the elements of a type RCO input parameter to the corresponding
output parameter. Bit0 and bit1 of element Value are evaluated and written to the
BOOL type parameter Value0 and Value1.
FB additional parameter:
Parameter Data type Description
Input RCO Input from structured variable type RCO
2.42 RCO_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
RCO_OUT copies the input parameter to the corresponding elements of a type RCO
output parameter. The BOOL values of parameter Value0 and Value1 are evaluated
and concentrated to bit0 and bit1 of BYTE element Value.
FB additional parameter:
Parameter Data type Description
Output RCO Output to structured variable type RCO
2.43 SCO_IN
Data point input function block.
When the data point is received in execute mode, element EX changes from FALSE to
TRUE for one task cycle, else the same applies for SE.
FB function description:
SCO_IN copies the elements of a type SCO input parameter to the corresponding
output parameter.
FB additional parameter:
Parameter Data type Description
Input SCO Input from structured variable type SCO
2.44 SCO_OUT
Data point output function block.
The data point is transmitted if element SE or EX changes compared to the last task
cycle.
FB function description:
SCO_OUT copies the input parameter to the corresponding elements of a type SCO
output parameter.
FB additional parameter:
Parameter Data type Description
Output SCO Output to structured variable type SCO
2.45 SDI_IN
Data point input function block.
A variable of type SDI includes an array of system events that are generated on the
local RTU560. Warning relevant events are named with a “_WARNING” suffix.
Data type Type definition Description
SDI ARRAY[0..255] OF BOOL System data interface type
2.46 SDIX_IN
Data point input function block.
See 2.45
FB function description:
SPIX_IN copies value of system event SPI input parameter with array index of input
parameter EventNumber to the output parameter.
FB parameter:
Parameter Data type Description
Input SDI Input from variable type SDI
EventNumber BYTE Number of system event (see 2.45)
Output BOOL Value of system event at array index [EventNumber] of
SDI type
2.47 SPI_IN
Data point input function block.
FB function description:
SPI_IN copies the elements of a type SPI input parameter to the corresponding output
parameter.
FB additional parameter:
Parameter Data type Description
Input SPI Input from structured variable type SPI
2.48 SPI_OUT
Data point output function block.
OUTPUT condition:
The data point is transmitted if structure element Value or any of the quality flags OV ..
IV changes compared to the last task cycle.
FB function description:
SPI_OUT copies the input parameter to the corresponding elements of a type SPI
output parameter.
FB additional parameter:
Parameter Data type Description
Output SPI Output to structured variable type SPI
2.49 STI_IN
Data point input function block.
FB function description:
STI_IN copies the elements of a type STI input parameter to the corresponding output
parameter.
FB additional parameter:
Parameter Data type Description
Input STI Input from structured variable type STI
2.50 STI_OUT
Data point output function block.
OUTPUT condition:
The data point is transmitted if structure element Value, Sign or any of the quality
flags T .. IV changes compared to the last task cycle.
FB function description:
STI_OUT copies the input parameter to the corresponding elements of a type STI
output parameter.
FB additional parameter:
Parameter Data type Description
Output STI Output to structured variable type STI
2.51 TIMETAG_IN
Utility function block.
FB function description:
FB additional parameter:
Parameter Data type Description
Input Timestamp Input from structured variable type Timestamp
2.52 TIMETAG_OUT
Utility function block.
FB function description:
FB additional parameter:
Parameter Data type Description
Output Timestamp Output to structured variable type Timestamp
2.53 WORD_TO_BITVALUES
Utility function block.
FB function description:
Converts a variable type WORD to it’s bit wise representation of BOOL type parameter
Bit0 .. Bit15.
FB parameter:
Parameter Data type Description
Input DWORD Input from variable type DWORD
Bit0.. BOOL Bit wise representation of Input variable
Bit15
The firmware library RTU_FW provides firmware function blocks that give access to
the hardware of the RTU.
Firmware function blocks are PLC sub programs that are included in the PLC runtime
software and may be called by a PLC application. They cannot be changed by the
user.
4.1 AL_AS_IN
FB function description:
On change of the alarm list the Alarm output parameter of the function block will be
triggered (pulse output for one cycle).
FB additional parameter:
Parameter Data types Description
Alarm BOOL Pulse output parameter type BOOL indication alarm list
change
Precondition:
The process archive with configured alarms must be configured on one of the CMU
boards of the RTU.
4.2 ALARM_IN
FB function description:
The Function Block ALARM_IN reads the RTUs current alarm condition if the
parameter EN is TRUE.
FB additional parameter:
Parameter Data types Values Description
EN BOOL TRUE / FALSE TRUE = the Function block is
executed
Value BOOL TRUE / FALSE TRUE = the alarm condition is
recognized as “set”
To ensure that the read alarm condition is the condition of the alarm relay, this function
block must be used with a PLC application that runs on the MASTER board.
4.3 ALARM_OUT
FB function description:
The Function Block ALARM_OUT writes an alarm condition to the RTU. If Value is set
to TRUE. If Value is FALSE, the alarm condition in the RTU may be set because of
other reasons.
FB additional parameter:
Parameter Data types Values Description
Value BOOL TRUE / FALSE The alarm condition on the CMU is set
to the relating Value:
TRUE = the alarm condition is set
To ensure correct alarm relay handling, this function block must be used with a PLC
application that runs on the MASTER board.
4.4 GI_OUT
FB function description:
Function block to send general interrogation to host interface with number of input
parameter HostNumber on a rising edge of the input parameter Trigger.
FB additional parameter:
Parameter Data types Description
Trigger BOOL Input parameter variable type BOOL to trigger general
interrogation on a rising edge
HostNumber BYTE Input parameter variable type BYTE for host number
4.5 RTU_RTC
FB function description:
The function block RTU_RTC reads the current time of a CMU if the parameter EN is
TRUE.
FB additional parameter:
Parameter Data types Values Description
EN BOOL TRUE / FALSE TRUE = the Function block is
executed
Milliseconds UINT 0 .. 59999 The current millisecond value
Minutes USINT 0 .. 59 The current minute value
IV BOOL TRUE / FALSE TRUE = the time is invalid, e.g.
because of
Hours USINT 0 .. 23 The current hour value
Summertime BOOL TRUE / FALSE TRUE = summertime is active
DayOfMonth USINT 1 .. 31 The current day of month
DayOfWeek USINT 1 .. 7 The current day of week
Months USINT 1 .. 12 The current month value
Year USINT 0 .. 99 The current year value
4.6 WARNING_IN
FB function description:
The function block WARNING_IN reads the RTUs current warning condition if the
parameter EN is TRUE.
FB additional parameter:
Parameter Data types Values Description
EN BOOL TRUE / FALSE TRUE = the Function block is
executed
Value BOOL TRUE / FALSE TRUE = the warning condition is
recognized as “set”
To ensure that the read warning condition is the condition of the warning relay, this
function block must be used with a PLC application that runs on the MASTER board.
4.7 WARNING_OUT
FB function description:
The function block WARNING_OUT writes a warning condition to the RTU if Value is
TRUE.
The warning condition may be switched exclusively by the PLC if the EXCL parameter
is set. This means that other warning conditions in the RTU (as missing I/O data points
etc.) are ignored. If Value and EXCL are FALSE, the warning condition in the RTU
may be set because of other reasons.
FB additional parameter:
Parameter Data types Values Description
EXCL BOOL TRUE / FALSE TRUE = the warning condition is
exclusively handled by the PLC, other
warning conditions are ignored
Value BOOL TRUE / FALSE The warning condition is set to the
relating Value:
TRUE = the warning condition is set
To ensure correct warning relay handling, this function block must be used with a PLC
application that runs on the MASTER board.