0% found this document useful (0 votes)
228 views72 pages

PLC Libraries Release 7 - 1

Uploaded by

anon_238578985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
228 views72 pages

PLC Libraries Release 7 - 1

Uploaded by

anon_238578985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 72

RTU560

Remote Terminal Unit

PLC Libraries Release 7.1

Document identity: 1KGT 150 526 V002 1


PLC Libraries Release 7.1 Revision

Revision

Document identity: 1KGT 150 526 V002 1

Revision: 0 Date: 2002-06-20


New document
Revision: 1 Date: 2002-09-09
Expanded of PLC User Library for limit-value
monitoring LIMVAL
Revision: 2 Date: 2006-07-26
Actualized RTULIB and RTU_FW library

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

ABB AG 1KGT 150 526 V002 1 iii


PLC Libraries Release 7.1 Contents

Contents

PLC LIBRARIES RELEASE 7.1 .................................................................................................................. 1

REVISION .....................................................................................................................................................III

CONTENTS .................................................................................................................................................. V

1 PLC USER LIBRARY RTULIB .......................................................................................................... 1-7


1.1 Purpose ................................................................................................................................. 1-7
1.2 RTU data point representation .............................................................................................. 1-7
2 FUNCTION BLOCKS RTULIB........................................................................................................... 2-8
2.1 AMI_IN................................................................................................................................... 2-9
2.2 AMI_OUT............................................................................................................................. 2-10
2.3 AMI_TR................................................................................................................................ 2-12
2.4 ASO_IN................................................................................................................................ 2-13
2.5 ASO_OUT............................................................................................................................ 2-14
2.6 BSI08_IN ............................................................................................................................. 2-15
2.7 BSI08_OUT ......................................................................................................................... 2-16
2.8 BSI16_IN ............................................................................................................................. 2-17
2.9 BSI16_OUT ......................................................................................................................... 2-18
2.10 BSO01_IN............................................................................................................................ 2-19
2.11 BSO01_OUT........................................................................................................................ 2-20
2.12 BSO02_IN............................................................................................................................ 2-21
2.13 BSO02_OUT........................................................................................................................ 2-22
2.14 BSO08_IN............................................................................................................................ 2-23
2.15 BSO08_OUT........................................................................................................................ 2-24
2.16 BSO16_IN............................................................................................................................ 2-25
2.17 BSO16_OUT........................................................................................................................ 2-26
2.18 CMD_TOGGLE_F ............................................................................................................... 2-27
2.19 CMD_TOGGLE_R............................................................................................................... 2-28
2.20 CMD_TRIG .......................................................................................................................... 2-29
2.21 COT_IN................................................................................................................................ 2-30
2.22 COT_OUT............................................................................................................................ 2-31
2.23 DCO_IN ............................................................................................................................... 2-32
2.24 DCO_OUT ........................................................................................................................... 2-33
2.25 DMI08_IN............................................................................................................................. 2-34
2.26 DMI08_OUT......................................................................................................................... 2-35
2.27 DMI16_IN............................................................................................................................. 2-36
2.28 DMI16_OUT......................................................................................................................... 2-37
2.29 DPI_IN ................................................................................................................................. 2-38
2.30 DPI_OUT ............................................................................................................................. 2-39
2.31 DSO08_IN ........................................................................................................................... 2-40
2.32 DSO08_OUT ....................................................................................................................... 2-41
2.33 DSO16_IN ........................................................................................................................... 2-42
2.34 DSO16_OUT ....................................................................................................................... 2-43

ABB AG 1KGT 150 526 V002 1 V


ABB AG, Mannheim/Germany
Contents PLC Libraries Release 7.1

2.35 DWORD_TO_BITVALUES ..................................................................................................2-44


2.36 ITI_IN....................................................................................................................................2-45
2.37 ITI_OUT................................................................................................................................2-46
2.38 LIB_RELEASE .....................................................................................................................2-47
2.39 MFI_IN..................................................................................................................................2-48
2.40 MFI_OUT..............................................................................................................................2-49
2.41 RCO_IN................................................................................................................................2-51
2.42 RCO_OUT............................................................................................................................2-52
2.43 SCO_IN ................................................................................................................................2-53
2.44 SCO_OUT............................................................................................................................2-54
2.45 SDI_IN..................................................................................................................................2-55
2.46 SDIX_IN ...............................................................................................................................2-58
2.47 SPI_IN ..................................................................................................................................2-59
2.48 SPI_OUT ..............................................................................................................................2-60
2.49 STI_IN ..................................................................................................................................2-61
2.50 STI_OUT ..............................................................................................................................2-62
2.51 TIMETAG_IN........................................................................................................................2-63
2.52 TIMETAG_OUT....................................................................................................................2-64
2.53 WORD_TO_BITVALUES .....................................................................................................2-65
3 FIRMWARE LIBRARY RTU_FW........................................................................................................3-1

4 FUNCTION BLOCKS RTU_FW..........................................................................................................4-2


4.1 AL_AS_IN ..............................................................................................................................4-2
4.2 ALARM_IN .............................................................................................................................4-3
4.3 ALARM_OUT .........................................................................................................................4-3
4.4 GI_OUT ..................................................................................................................................4-4
4.5 RTU_RTC ..............................................................................................................................4-5
4.6 WARNING_IN ........................................................................................................................4-6
4.7 WARNING_OUT ....................................................................................................................4-6

VI 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

1 PLC User Library RTULIB

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.

1.2 RTU data point representation


In a MULTIPROG wt project the RTU data points are represented as structured data
types.
The structure elements may be accessed directly using the format:
<I/O variable name>.<structure element>
Example: Using the data type AMI, Voltage01.Value would give access to the
structure element Value of the AMI data point Voltage01, defined before in RTU560
configuration.
Two categories of data types are supported:

• Data point types for monitoring direction


Data type definitions for RTU data points in monitoring
direction (RTU -> Control System)
• Data point types for command direction
Data type definitions for RTU data points in command
direction (Control System -> RTU).

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.

ABB AG 1KGT 150 526 V002 1 1-7


PLC User Library RTULIB PLC Libraries Release 7.1

2 Function Blocks RTULIB


There are three categories of function blocks (FBs) in RTULIB:

• Data point input function blocks


to evaluate received data points from SCADA or Control
System if connected to INPUT variables.
• Data point output function blocks
to transmit data points to SCADA or Control System if
connected to OUTPUT variables.
• Utility function blocks
All function blocks that are not directly connectable to data
point types.

The FB category is noted in the sub headline of each function block.

2-8 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.1 AMI_IN
Data point input function block.

Data type AMI (Analog measured value input), monitoring direction:


Structure element Type Description
Value INT 16 bit 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:

AMI_IN copies the elements of a type AMI input parameter to the corresponding
output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input AMI Input from structured variable type AMI

ABB AG 1KGT 150 526 V002 1 2-9


PLC User Library RTULIB PLC Libraries Release 7.1

2.2 AMI_OUT
Data point output function block.

Data type AMI (Analog measured value input), monitoring direction:


Structure element Type Description
Value INT 16 bit analog value
OV BOOL Overflow
BL BOOL Blocked
SB BOOL Substituted
NT BOOL Not topical
IV BOOL Invalid
TR BOOL Transmit: If FALSE->TRUE transition data point is
transmitted
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
OUTPUT condition:

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.

It calculates the transmit condition as follows:

• The value (in %) of the input parameter Threshold is greater


than the absolute change of Value (referred to the max.
value 32767) between two calls of the FB (typically between
two task cycles).
• positive edge (FALSE -> TRUE) is detected at the input
variable Transmit.

If Transmit is set to TRUE permanently, no threshold evaluation is done. If the


transmit condition is fulfilled, the AMI element TR is set.

2-10 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

FB representation in graphic editor:

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

ABB AG 1KGT 150 526 V002 1 2-11


PLC User Library RTULIB PLC Libraries Release 7.1

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:

• The input parameter Threshold (in %) is greater than the


absolute change of Value (referred to the max. value 32767)
between two calls of the FB (typically between two task
cycles).
• positive edge (FALSE -> TRUE) is detected at the input
variable Transmit.

FB representation in graphic editor:

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-12 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.4 ASO_IN
Data point input function block.

Data type ASO (Analog setpoint command), 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 16 bit analog 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:

ASO_IN copies the elements of a type ASO input parameter to the corresponding
output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input ASO Input from structured variable type ASO

ABB AG 1KGT 150 526 V002 1 2-13


PLC User Library RTULIB PLC Libraries Release 7.1

2.5 ASO_OUT
Data point output function block.

Data type ASO (Analog setpoint command), 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 16 bit analog 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:

ASO_OUT copies the input parameter to the corresponding elements of a type ASO
output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output ASO Output to structured variable type ASO

2-14 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.6 BSI08_IN
Data point input function block.

Data type BSI08 (Bitstring 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:

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.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value7 cover eight output parameter.

FB additional / differing parameter:


Parameter Data type Description
Input BSI08 Input from structured variable type BSI08
Value0 ... BOOL Bit wise representation of Value
Value7

ABB AG 1KGT 150 526 V002 1 2-15


PLC User Library RTULIB PLC Libraries Release 7.1

2.7 BSI08_OUT
Data point output function block.

Data type BSI08 (Bitstring 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 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.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value7 cover 8 input parameter.

FB additional / differing parameter:


Parameter Data type Description
Value0 ... BOOL Bit wise representation of Value
Value7
Output BSI08 Output to structured variable type BSI08

2-16 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.8 BSI16_IN
Data point input function block.

Data type BSI16 (Bitstring 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:

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.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value15 cover 16 output parameter.

FB additional / differing parameter:


Parameter Data type Description
Input BSI16 Input from structured variable type BSI16
Value0 ... BOOL Bit wise representation of Value
Value15

ABB AG 1KGT 150 526 V002 1 2-17


PLC User Library RTULIB PLC Libraries Release 7.1

2.9 BSI16_OUT
Data point output function block.

Data type BSI16 (Bitstring 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 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.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value15 cover 16 input parameter.

FB additional / differing parameter:


Parameter Data type Description
Value0 … BOOL Bit wise representation of Value
Value15
Output BSI16 Output to structured variable type BSI16

2-18 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.10 BSO01_IN
Data point input function block.

Data type BSO01 (Bitstring output command 1 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 BOOL BSO01 bit 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:

BSO01_IN copies the elements of a type BSO01 input parameter to the corresponding
output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input BSO01 Input from structured variable type BSO01

ABB AG 1KGT 150 526 V002 1 2-19


PLC User Library RTULIB PLC Libraries Release 7.1

2.11 BSO01_OUT
Data point output function block.

Data type BSO01 (Bitstring output command 1 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 BOOL BSO01 bit 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:

BSO01_OUT copies the input parameter to the corresponding elements of a type


BSO01 output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output BSO01 Output to structured variable type BSO01

2-20 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.12 BSO02_IN
Data point input function block.

Data type BSO02 (Bitstring output command 2 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 BYTE BSO02 binary 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:

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input BSO02 Input from structured variable type BSO02
Value0 … BOOL Bit wise representation of Value
Value1

ABB AG 1KGT 150 526 V002 1 2-21


PLC User Library RTULIB PLC Libraries Release 7.1

2.13 BSO02_OUT
Data point output function block.

Data type BSO02 (Bitstring output command 2 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 BYTE BSO02 binary 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:

BSO02_OUT copies the input parameter to the corresponding elements of a type


BSO02 output parameter. The BOOL values of parameter Value0 and Value1 are
evaluated and concentrated to bit0 and bit1 of BYTE element Value.

FB representation in graphic editor:

FB additional / differing parameter:


Parameter Data type Description
Value0 … BOOL Bit wise representation of Value
Value1
Output BSO02 Output to structured variable type BSO02

2-22 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.14 BSO08_IN
Data point input function block.

Data type BSO08 (Bitstring output command 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 BYTE BSO08 binary 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:

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.

FB representation in graphic editor:

FB is shown simplified, actually Value0 .. Value7 cover eight output parameter.

FB additional / differing parameter:


Parameter Data type Description
Input BSO08 Input from structured variable type BSO08
Value0 ... BOOL Bit wise representation of Value
Value7

ABB AG 1KGT 150 526 V002 1 2-23


PLC User Library RTULIB PLC Libraries Release 7.1

2.15 BSO08_OUT
Data point output function block.

Data type BSO08 (Bitstring output command 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 BYTE BSO08 binary 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:

BSO08_OUT copies the input parameter to the corresponding elements of a type


BSO08 output parameter. The BOOL values of parameter Value0 .. Value7 are
evaluated and concentrated to bit0 .. bit7 of BYTE element Value.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value7 cover eight input parameter.

FB additional / differing parameter:


Parameter Data type Description
Value0 ... BOOL Bit wise representation of Value
Value7
Output BSO08 Output to structured variable type BSO08

2-24 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.16 BSO16_IN
Data point input function block.

Data type BSO16 (Bitstring output command 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 BYTE BSO016 binary 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:

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.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value15 cover 16 output parameter.

FB additional / differing parameter:


Parameter Data type Description
Input BSO16 Input from structured variable type BSO16
Value0 ... BOOL Bit wise representation of Value
Value15

ABB AG 1KGT 150 526 V002 1 2-25


PLC User Library RTULIB PLC Libraries Release 7.1

2.17 BSO16_OUT
Data point output function block

Data type BSO16 (Bitstring output command 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 BYTE BSO16 binary 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:

BSO16_OUT copies the input parameter to the corresponding elements of a type


BSO16 output parameter. The BOOL values of parameter Value0 .. Value15 are
evaluated and concentrated to bit0 .. bit15 of BYTE element Value.

FB representation in graphic editor:

FB is shown simplified, actually Value0.. Value15 cover 16 input parameter.

FB additional / differing parameter:


Parameter Data type Description
Value0 .. BOOL Bit wise representation of Value
Value15
Output BSO16 Output to structured variable type BSO016

2-26 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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 representation in graphic editor:

FB parameter:
Parameter Data type Description
CLK BOOL Input variable type BOOL to toggle output
Q BOOL Toggle output variable type BOOL

ABB AG 1KGT 150 526 V002 1 2-27


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB parameter:
Parameter Data type Description
CLK BOOL Input variable type BOOL to toggle output
Q BOOL Toggle output variable type BOOL

2-28 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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 representation in graphic editor:

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!

ABB AG 1KGT 150 526 V002 1 2-29


PLC User Library RTULIB PLC Libraries Release 7.1

2.21 COT_IN
Utility function block (for command data types).

Data type COT (Cause of transmission)


Structure element Type Description
Act BOOL Activation ( numeric = 6 )
ActCon BOOL Activation Confirmation (numeric = 7 )
Deact BOOL Deactivation (numeric = 8 )
DeactCon BOOL Deactivation Confirmation (numeric = 9 )
ActTerm BOOL Activation Termination (numeric = 10 )

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 representation in graphic editor:

FB additional Parameter:
Parameter Data type Description
Input USINT Input of the numeric „cause of transmission“

2-30 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.22 COT_OUT
Utility function block (for command data types).

Data type COT (Cause of transmission)


Structure element Type Description
Act BOOL Activation ( numeric = 6 )
ActCon BOOL Activation Confirmation (numeric = 7 )
Deact BOOL Deactivation (numeric = 8 )
DeactCon BOOL Deactivation Confirmation (numeric = 9 )
ActTerm BOOL Activation Termination (numeric = 10 )

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output USINT Output of the numeric „cause of transmission“

ABB AG 1KGT 150 526 V002 1 2-31


PLC User Library RTULIB PLC Libraries Release 7.1

2.23 DCO_IN
Data point input function block.

Data type DCO (Double command output), 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 BYTE Command Value (bit 0 and 1 used only)
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:

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input DCO Input from structured variable type DCO

2-32 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.24 DCO_OUT
Data point output function block.

Data type DCO (Double command output), 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 BYTE Command Value (bit 0 and 1 used only)
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:

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output DCO Output to structured variable type DCO

ABB AG 1KGT 150 526 V002 1 2-33


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input DMI08 Input from structured variable type DMI08

2-34 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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:

DMI08_OUT copies the input parameter to the corresponding elements of a type


DMI08 output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output DMI08 Output to structured variable type DMI08

ABB AG 1KGT 150 526 V002 1 2-35


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input DMI16 Input from structured variable type DMI16

2-36 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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:

DMI16_OUT copies the input parameter to the corresponding elements of a type


DMI16 output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description

Output DMI16 Output to structured variable type DMI16

ABB AG 1KGT 150 526 V002 1 2-37


PLC User Library RTULIB PLC Libraries Release 7.1

2.29 DPI_IN
Data point input function block.

Data type DPI (Double point input), monitoring direction


Structure element Type Description
Value BYTE Value (bit 0 and 1 used only)
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:

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.

FB representation in graphic editor:

FB additional / differing parameter:


Parameter Data type Description
Input DPI Input from structured variable type DPI
Value0 ... BOOL Bit wise representation of Value
Value1

2-38 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.30 DPI_OUT
Data point output function block.

Data type DPI (Double point input), monitoring direction


Structure element Type Description
Value BYTE Value (bit 0 and 1 used only)
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 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.

FB representation in graphic editor:

FB additional / differing parameter:


Parameter Data type Description
Value0 ... BOOL Bit wise representation of Value
Value1
Output DPI Output to structured variable type DPI

ABB AG 1KGT 150 526 V002 1 2-39


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input DSO08 Input from structured variable type DSO08

2-40 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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:

DSO08_OUT copies the input parameter to the corresponding elements of a type


DSO08 output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output DSO08 Output to structured variable type DSO08

ABB AG 1KGT 150 526 V002 1 2-41


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input DSO16 Input from structured variable type DSO16

2-42 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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:

DSO16_OUT copies the input parameter to the corresponding elements of a type


DSO16 output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output DSO16 Output to structured variable type DSO16

ABB AG 1KGT 150 526 V002 1 2-43


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB is shown simplified, actually Bit0.. Bit31 cover 32 output parameter.

FB parameter:
Parameter Data type Description
Input DWORD Input from variable type DWORD
Bit0.. BOOL Bit wise representation of Input variable
Bit31

2-44 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.36 ITI_IN
Data point input function block.

Data type ITI (Integrated totals input), monitoring direction


Structure element Type Description
Value UDINT Count value (32 bit)
SEQ BOOL Sequence number
CY BOOL Carry flag
CA BOOL Counter adjusted
IV BOOL Invalid
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission

FB function description:

ITI_IN copies the elements of a type ITI input parameter to the corresponding output
parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input ITI Input from structured variable type ITI

ABB AG 1KGT 150 526 V002 1 2-45


PLC User Library RTULIB PLC Libraries Release 7.1

2.37 ITI_OUT
Data point output function block.

Data type ITI (Integrated totals input), monitoring direction


Structure element Type Description
Value UDINT Count value (32 bit)
SEQ BOOL Sequence number
CY BOOL Carry flag
CA BOOL Counter adjusted
IV BOOL Invalid
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output ITI Output to structured variable type ITI

2-46 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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 representation in graphic editor:

FB parameter:
Parameter Data type Description
ReleaseNo STRING Name of the current RTULIB release number

ABB AG 1KGT 150 526 V002 1 2-47


PLC User Library RTULIB PLC Libraries Release 7.1

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input MFI input from structured variable type MFI

2-48 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.40 MFI_OUT
Data point output function block.

Data type MFI (Analog measured value 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 Transmit: If FALSE->TRUE transition data point is
transmitted
TimeTag Timestamp Time of data point occurrence
COT USINT Cause of transmission
OUTPUT condition:

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.

It calculates the transmit condition as follows:

• The value of the input parameter Threshold is greater than


the absolute change of Value between two calls of the FB
(typically between two task cycles).
• positive edge (FALSE -> TRUE) is detected at the input
variable Transmit.

If Transmit is set to TRUE permanently, no threshold evaluation is done. If the


transmit condition is fulfilled, the MFI element TR is set.

ABB AG 1KGT 150 526 V002 1 2-49


PLC User Library RTULIB PLC Libraries Release 7.1

FB representation in graphic editor:

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-50 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.41 RCO_IN
Data point input function block.

Data type RCO (Regulation step command output), 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 BYTE Value (bit 0 and 1 used only)
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:

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input RCO Input from structured variable type RCO

ABB AG 1KGT 150 526 V002 1 2-51


PLC User Library RTULIB PLC Libraries Release 7.1

2.42 RCO_OUT
Data point output function block.

Data type RCO (Regulation step command output), 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 BYTE Value (bit 0 and 1 used only)
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:

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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output RCO Output to structured variable type RCO

2-52 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.43 SCO_IN
Data point input function block.

Data type SCO (Single command output), 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 BOOL Command single bit 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:

SCO_IN copies the elements of a type SCO input parameter to the corresponding
output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input SCO Input from structured variable type SCO

ABB AG 1KGT 150 526 V002 1 2-53


PLC User Library RTULIB PLC Libraries Release 7.1

2.44 SCO_OUT
Data point output function block.

Data type SCO (Single command output), 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.
With IEC 60870-5-101 sub device interface: 1 =
short pulse, 2 = long pulse, 3 = persistent
Value BOOL Command single bit 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:

SCO_OUT copies the input parameter to the corresponding elements of a type SCO
output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output SCO Output to structured variable type SCO

2-54 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.45 SDI_IN
Data point input function block.

Data type SDI (System data interface), monitoring direction

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

Index Output Description


16 OneIdFaulty_WARNING At least one indication is faulty
17 OneAvFaulty_WARNING At least one analog value faulty
18 OneDvFaulty_WARNING At least one digital value faulty
19 OneItFaulty_WARNING At least one pulse counter faulty
20 OneCoFaulty_WARNING At least one command is faulty
21 OneAoFaulty_WARNING At least one analog output faulty
22 OneDoFaulty_WARNING At least one digital output is faulty
23 RtuFaulty RTU is faulty
24 RtuActive RTU is active
25 RtuSynchronized RTU is synchronized
26 RtuClockInoperable_WARNI External clock is inoperable
NG
27 PrinterOffline_WARNING Local printer is offline
29 BatteryLow Battery voltage is low
30 AC_Failure AC power supply failure
44 OneDceFaulty At least one DCE is faulty
45 DeviceConnected Device is connected
46 OnePlcInactive At least one PLC function is not running
47 OnePlcCycletimeExceeded At least one PLC function cycle time is exceeded
48 RtuInOperable_WARNING Sub RTU is inoperable
49 RtuOutOfService RTU out of service
59 PowerSupplyFaulty_WARNI Power supply failure in RTU central subrack
NG
60 RtuAActive RTU 'A' is Active
61 RtuBActive RTU 'B' is Active
62 RtuAOperable RTU 'A' is operable
63 RtuBOperable RTU 'B' is operable
64.. CmdSupervisionFaulty1… Command supervision circuit disconnected or
95 CmdSupervisionFaulty32 faulty
96 SntpClienSynchronized1 SNTP Client 1 is synchronized
97 SntpClienSynchronized2 SNTP Client 2 is synchronized
100 LocalCtrlAuthActive Local control authority active
101.. HostOnline1.. Host is online
108 HostOnline8
117.. InfoChangeLost1.. At least one change of information is lost
124 InfoChangeLost8
133.. ItiLost1.. At least one pulse counter is lost
140 ItiLost8
174 (not supported for SDI_IN) -

ABB AG 1KGT 150 526 V002 1 2-55


PLC User Library RTULIB PLC Libraries Release 7.1

180.. (not supported for SDI_IN) Device is reachable on redundant line


183
184.. (not supported for SDI_IN) Device is active on redundant line
187
188.. (not supported for SDI_IN) Device is preferred on redundant line
191

2-56 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

FB representation in graphic editor:

FB is shown simplified, parameter with SDI offset 64..95, 101..108, 117..


124 and 133..140 (s. table above) cover the corresponding number of parameter.

,FB additional parameter:


Parameter Data type Description
Input SDI Input from variable type SDI

ABB AG 1KGT 150 526 V002 1 2-57


PLC User Library RTULIB PLC Libraries Release 7.1

2.46 SDIX_IN
Data point input function block.

Data type SDI (System data interface), monitoring direction

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 representation in graphic editor:

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-58 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.47 SPI_IN
Data point input function block.

Data type SPI (Single point input), monitoring direction


Structure element Type Description
Value BOOL 1 Bit 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:

SPI_IN copies the elements of a type SPI input parameter to the corresponding output
parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input SPI Input from structured variable type SPI

ABB AG 1KGT 150 526 V002 1 2-59


PLC User Library RTULIB PLC Libraries Release 7.1

2.48 SPI_OUT
Data point output function block.

Data type SPI (Single point input), monitoring direction


Structure element Type Description
Value BOOL 1 Bit 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 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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output SPI Output to structured variable type SPI

2-60 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.49 STI_IN
Data point input function block.

Data type STI (Step position input), monitoring direction


Structure element Type Description
Value USINT Step position value 8 bit
Sign BOOL Sign (pos or neg)
T BOOL Transient state
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:

STI_IN copies the elements of a type STI input parameter to the corresponding output
parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input STI Input from structured variable type STI

ABB AG 1KGT 150 526 V002 1 2-61


PLC User Library RTULIB PLC Libraries Release 7.1

2.50 STI_OUT
Data point output function block.

Data type STI (Step position input), monitoring direction


Structure element Type Description
Value USINT Step position value 8 bit
Sign BOOL Sign (pos or neg)
T BOOL Transient state
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 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 representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output STI Output to structured variable type STI

2-62 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

2.51 TIMETAG_IN
Utility function block.

Data type Timestamp


A timestamp is included in every monitoring direction data point. It is used to transmit
the absolute time information of data point occurrence.
Structure element Type Description
Milliseconds UINT Millisecond value (0 .. 59999)
Minutes USINT Minute value (0 .. 59)
IV BOOL Time Invalid (TRUE) or not (FALSE)
Hours USINT Hour value (0..23)
Summertime BOOL Summertime active (TRUE) or not (FALSE)
DayOfMonth USINT Day of month (1..31)
DayOfWeek USINT Day of week (1..7)
Month USINT Month (1..12)
Year USINT Year (0..99)

FB function description:

TIMETAG_IN copies the elements of a type Timestamp input parameter to the


corresponding output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Input Timestamp Input from structured variable type Timestamp

ABB AG 1KGT 150 526 V002 1 2-63


PLC User Library RTULIB PLC Libraries Release 7.1

2.52 TIMETAG_OUT
Utility function block.

Data type Timestamp


A timestamp is included in every monitoring direction data point. It is used to transmit
the absolut time information of data point occurrence.
Structure element Type Description
Milliseconds UINT Millisecond value (0 .. 59999)
Minutes USINT Minute value (0 .. 59)
IV BOOL Time Invalid (TRUE) or not (FALSE)
Hours USINT Hour value (0..23)
Summertime BOOL Summertime active (TRUE) or not (FALSE)
DayOfMonth USINT Day of month (1..31)
DayOfWeek USINT Day of week (1..7)
Month USINT Month (1..12)
Year USINT Year (0..99)

FB function description:

TIMETAG_OUT copies the input parameter to the corresponding elements of a type


Timestamp output parameter.

FB representation in graphic editor:

FB additional parameter:
Parameter Data type Description
Output Timestamp Output to structured variable type Timestamp

2-64 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 PLC User Library RTULIB

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 representation in graphic editor:

FB is shown simplified, actually Bit0.. Bit15 cover 16 output parameter.

FB parameter:
Parameter Data type Description
Input DWORD Input from variable type DWORD
Bit0.. BOOL Bit wise representation of Input variable
Bit15

ABB AG 1KGT 150 526 V002 1 2-65


PLC Libraries Release 7.1 Firmware Library RTU_FW

3 Firmware Library RTU_FW

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.

ABB AG 1KGT 150 526 V002 1 3-1


Firmware Library RTU_FW PLC Libraries Release 7.1

4 Function Blocks RTU_FW

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 representation in graphic editor:

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 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 Firmware Library RTU_FW

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 representation in graphic editor:

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 representation in graphic editor:

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.

ABB AG 1KGT 150 526 V002 1 4-3


Firmware Library RTU_FW PLC Libraries Release 7.1

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 representation in graphic editor:

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-4 1KGT 150 526 V002 1 ABB AG


PLC Libraries Release 7.1 Firmware Library RTU_FW

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 representation in graphic editor:

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

ABB AG 1KGT 150 526 V002 1 4-5


Firmware Library RTU_FW PLC Libraries Release 7.1

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 representation in graphic editor:

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 representation in graphic editor:

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.

4-6 1KGT 150 526 V002 1 ABB AG

You might also like