Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as pdf or txt
Download as pdf or txt
You are on page 1of 124

Concept

IEC block library


Part: EXTENDED
840 USE 494 00 eng Version 2.5
33001611.00
2
Table of Contents

About the book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Part I General information on the block


library EXTENDED . . . . . . . . . . . . . . . . . . . . . . . . .7
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Chapter 1 Parametering functions and function blocks. . . . . . . . . . . . . . . 9


Parametering functions and function blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Part II EFB-descriptions . . . . . . . . . . . . . . . . . . . . . . . . .11


Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Chapter 2 AVE_***: Averaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13


Chapter 3 AVGMV: Floating mean with fixed window size . . . . . . . . . . . 17
Chapter 4 AVGMV_K: Floating mean with frozen correction factor . . . . 21
Chapter 5 BIT_TO_BYTE: Type conversion. . . . . . . . . . . . . . . . . . . . . . . . 25
Chapter 6 BIT_TO_WORD: Type conversion. . . . . . . . . . . . . . . . . . . . . . . 29
Chapter 7 BYTE_AS_WORD: Type conversion . . . . . . . . . . . . . . . . . . . . . 33
Chapter 8 BYTE_TO_BIT: Type conversion. . . . . . . . . . . . . . . . . . . . . . . . 35
Chapter 9 CTD_***: Down counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Chapter 10 CTU_***: Up counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Chapter 11 CTUD_***: Up/Down counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Chapter 12 DEAD_ZONE_REAL: Dead zone . . . . . . . . . . . . . . . . . . . . . . . . 45
Chapter 13 DINT_AS_WORD: Type conversion . . . . . . . . . . . . . . . . . . . . . 49

3
Chapter 14 DIVMOD_***: Division and Modulo . . . . . . . . . . . . . . . . . . . . . . 51
Chapter 15 HYST_***: Indicator signal for maximum
value delimiter with hysteresis. . . . . . . . . . . . . . . . . . . . . . . . . 53
Chapter 16 INDLIM_***: Indicator signal for delimiters
with hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Chapter 17 LIMIT_IND_***: Limit with indicator . . . . . . . . . . . . . . . . . . . . . 61
Chapter 18 LOOKUP_TABLE1: Traverse progression
with 1st degree interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Chapter 19 NEG_***: Negation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Chapter 20 REAL_AS_WORD: Type conversion . . . . . . . . . . . . . . . . . . . . 73
Chapter 21 SAH: Detecting and holding with rising edge . . . . . . . . . . . . . 75
Chapter 22 SIGN_***: Sign evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Chapter 23 TIME_AS_WORD: Type conversion . . . . . . . . . . . . . . . . . . . . . 79
Chapter 24 TRIGGER: Detection of all types of edges . . . . . . . . . . . . . . . 81
Chapter 25 UDINT_AS_WORD: Type conversion . . . . . . . . . . . . . . . . . . . . 83
Chapter 26 WORD_AS_BYTE: Type conversion . . . . . . . . . . . . . . . . . . . . 85
Chapter 27 WORD_AS_DINT: Type conversion . . . . . . . . . . . . . . . . . . . . . 87
Chapter 28 WORD_AS_REAL: Type conversion . . . . . . . . . . . . . . . . . . . . 89
Chapter 29 WORD_AS_TIME: Type conversion . . . . . . . . . . . . . . . . . . . . . 91
Chapter 30 WORD_AS_UDINT: Type conversion . . . . . . . . . . . . . . . . . . . . 93
Chapter 31 WORD_TO_BIT: Type conversion . . . . . . . . . . . . . . . . . . . . . . 95

Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

4
About the book

At a Glance

Document Scope This documentation should be of some help in configuring the functions and the
function blocks.

Validity Note This documentation is valid for Concept 2.5 in Microsoft Windows 98, Microsoft Win-
dows 2000 and Microsoft Windows NT 4.x.

Note: Further current information can be found in the Concept README file.

Related Docu-
ments
Title of Documentation Reference Number
Concept installation instructions 840 USE 492 00
Concept User Manual 840 USE 493 00
Concept EFB User Manual 840 USE 495 00
Concept LL984 Block Library 840 USE 496 00

User Comments We welcome your comments about this document. You can reach us by e-mail at
TECHCOMM@modicon.com

840 USE 494 00 May 2000 5


About the book

6 840 USE 494 00 May 2000


General information on the block
library EXTENDED I
Overview

Introduction This section contains general information on the block library EXTENDED.

What's in this This Part contains the following Chapters:


part?
Chapter Chaptername Page
1 Parametering functions and function blocks 9

840 USE 494 00 May 2000 7


General information

8 840 USE 494 00 May 2000


Parametering functions and func-
tion blocks 1
Parametering functions and function blocks

General Each FFB consists of an operation, the operands needed for the operation and an-
dinstance name or function counter.

FFB
(e.g. ON-delay)

Item name/
Operation Operand
Function counter
(e.g. TON)

Formal Actual parameter


parameter Variable, element of
(e.g. a multi-element
IN,PT,Q,ET) variable, literal, direct
address
(e.g. ENABLE,
EXP.1, TIME,

FBI_2_22 (18)
TON
ENABLE EN ENO ERROR
EXP.1 IN Q OUT
TIME PT ET %4:00001

840 USE 494 00 May 2000 9


Parametering

Operation The operation determines which function is to be executed with the FFB, e.g. shift
register, conversion operations.

Operand The operand specifies what the operation is to be executed with. With FFBs, this
consists of formal and actual parameters.

Formal/actual The formal parameter holds the place for an operand. During parametering, an ac-
parameters tual parameter is assigned to the formal parameter.

The actual parameter can be a variable, a multi-element variable, an element of a


multi-element variable, a literal or a direct address.

Conditional/ un- "Unconditional" or "conditional" calls are possible with each FFB. The condition is
conditional calls realized by pre-linking the input EN.
z Expanded EN
conditional calls (the FFB is only processed if EN = 1)
z EN collapsed
unconditional calls (FFB is always processed)

Note: If the EN input is not parametered, it must be collapsed. As non-parametered


inputs are automatically used with a "0", the FFB would otherwise never be pro-
cessed.

Calling func- Information on calling functions and function blocks in IL (Instruction List) and ST
tions and func- (Structured Text) can be found in the relevant chapters of the user manual.
tion blocks in IL
and ST

10 840 USE 494 00 May 2000


EFB-descriptions
II
Overview

Introduction These EFB descriptions are documented in alphabetical order.

Note: The number of inputs of the EFBs can be increased to a maximum of 32 by


changing the size of the FFB symbols vertically. Please consult the individual EFB
descriptions to know which EFBs are concerned.

What's in this This Part contains the following Chapters:


part?
Chapter Chaptername Page
2 AVE_***: Averaging 13
3 AVGMV: Floating mean with fixed window size 17
4 AVGMV_K: Floating mean with frozen correction factor 21
5 BIT_TO_BYTE: Type conversion 25
6 BIT_TO_WORD: Type conversion 29
7 BYTE_AS_WORD: Type conversion 33
8 BYTE_TO_BIT: Type conversion 35
9 CTD_***: Down counter 37
10 CTU_***: Up counter 39
11 CTUD_***: Up/Down counter 41
12 DEAD_ZONE_REAL: Dead zone 45
13 DINT_AS_WORD: Type conversion 49
14 DIVMOD_***: Division and Modulo 51
15 HYST_***: Indicator signal for maximum value delimiter with 53
hysteresis
16 INDLIM_***: Indicator signal for delimiters with hysteresis 57
17 LIMIT_IND_***: Limit with indicator 61

840 USE 494 00 May 2000 11


EFB-descriptions

Chapter Chaptername Page


18 LOOKUP_TABLE1: Traverse progression with 1st degree in- 65
terpolation
19 NEG_***: Negation 69
20 REAL_AS_WORD: Type conversion 73
21 SAH: Detecting and holding with rising edge 75
22 SIGN_***: Sign evaluation 77
23 TIME_AS_WORD: Type conversion 79
24 TRIGGER: Detection of all types of edges 81
25 UDINT_AS_WORD: Type conversion 83
26 WORD_AS_BYTE: Type conversion 85
27 WORD_AS_DINT: Type conversion 87
28 WORD_AS_REAL: Type conversion 89
29 WORD_AS_TIME: Type conversion 91
30 WORD_AS_UDINT: Type conversion 93
31 WORD_TO_BIT: Type conversion 95

12 840 USE 494 00 May 2000


AVE_***: Averaging
2
Overview

Introduction This chapter describes the AVE_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 14
Representation 14

840 USE 494 00 May 2000 13


AVE_***: Averaging

Brief description

Function de- The Function calculates the mean of weighted input values, and the result is then
scription given at the output.
Each two successive inputs (K_Xn) represent one pair of values. The first K_Xn in-
put corresponds to K1, the next to X1, the one after that to K2, etc.
The number of K_Xn inputs can be increased to 32 by vertically modifying the size
of the block frame. This corresponds to a maximum of 16 value pairs.
The number of inputs must be even.
Data types of the ANY_NUM group can be processed.
The data types of all input and output values must be identical. A specific function is
available to process each of the different data types.

It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


AVE_***
*** K_X1 ***
*** K_X2 *** = INT, DINT, UINT, UDINT, REAL
: :
*** K_Xn
*** K_Xm

Formula Block formula:


Σ ( Ki × Xi )
OUT = ---------------------------
Σ ( Ki )

14 840 USE 494 00 May 2000


AVE_***: Averaging

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
K_X1 INT, DINT, UINT, Factor (K1) for first value
UDINT, REAL
K_X2 INT, DINT, UINT, First value (X1)
UDINT, REAL
K_X3 INT, DINT, UINT, Factor (K2) for second value
UDINT, REAL
K_X4 INT, DINT, UINT, Second value (X1)
UDINT, REAL
:
K_Xn INT, DINT, UINT, Factor for nth value
UDINT, REAL
K_Xm INT, DINT, UINT, nth value
UDINT, REAL
OUT INT, DINT, UINT, Mean value
UDINT, REAL

840 USE 494 00 May 2000 15


AVE_***: Averaging

16 840 USE 494 00 May 2000


AVGMV: Floating mean with fixed
window size 3
Overview

Introduction This chapter describes the AVGMV block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 18
Representation 18
Detailed description 19
Runtime error 20

840 USE 494 00 May 2000 17


AVGMV: Floating mean with fixed window size

Brief description

Function de- The function block forms a floating mean from a fixed number of input values (Input
scription X). The output is the mean of all values between the current X value and the oldest
X-value (N-1). It is possible to save up to 50 input values (N).
The function block can operate in manual and automatic mode.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


AVGMV
BOOL MAN
REAL X Y REAL
INT N RDY BOOL
REAL YMAN

Formula With RDY = 1:


N–1

∑ Xi
Y ( new ) = ----------------
i=0 -
N
or

X X(N – 1)
Y ( new ) = Y ( old ) + ---- – ----------------------
N N
Explanation of variables
Variable Meaning
Y (new) Y value in current program cycle
Y (old) Y value from last program cycle
N Window size (number of values in buffer)
X(N-1) oldest X value in buffer

18 840 USE 494 00 May 2000


AVGMV: Floating mean with fixed window size

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
MAN BOOL "0" = automatic operating mode
"1" = manual operating mode
X REAL Input
N INT Window size (number of input values that are load-
ed into the buffer; 50 max.)
YMAN REAL Manual value
Y REAL Mean value
RDY BOOL "1" = n values in buffer, i.e. buffer ready
"0" = buffer not ready

Detailed description

Automatic oper- In N program cycles, N X-values are read into an internal buffer. The arithmetic
ating mode mean of these values is calculated, and is delivered at the Y output. From the N+1
program cycle onwards, the oldest X-value in the buffer is deleted and replaced with
the current x-value.

Note: As long as RDY = 0, the mean is not derived from N values but from the cur-
rent updated read-in number (n < N).

After a modification of the N value or after a cold/warm start, the internal buffer is
deleted. The output is set to the input value X and RDY to "0". The buffer is filled
during the next N cycles. The Y output contains an mean of the values accumulated
so far. RDY remains "0" until the buffer is filled with correct X values after N program
cycles then RDY becomes "1".

Manual operat- The value YMAN is transferred to the Y output. The buffer is completely filled with
ing mode the value YMAN and marked as full (RDY = 1).

840 USE 494 00 May 2000 19


AVGMV: Floating mean with fixed window size

Diagram Floating mean with limited memory of N = 50 values

RDY
1
0

Runtime error

Runtime error An Error message appears if,


z N = 0 or N>50

20 840 USE 494 00 May 2000


AVGMV_K: Floating mean with
frozen correction factor 4
Overview

Introduction This chapter describes the AVGMV_K block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 22
Representation 22
Detailed description 23

840 USE 494 00 May 2000 21


AVGMV_K: Floating mean with frozen correction factor

Brief description

Function de- The function block establishes a floating mean (with frozen correction factor) of up
scription to 10 000 input values.
The function block can operate in manual and automatic mode.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


AVGMV_K
BOOL MAN
REAL X Y REAL
INT K
REAL YMAN

Formula Block formula:


X – Y ( old )
Y ( new ) = Y ( old ) + ----------------------------
K
Explanation of variables
Variable Meaning
Y (new) Y value in current program cycle
Y (old) Y value from last program cycle
K Correction factor
X X value in current program cycle

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
MAN BOOL "0" = Automatic Mode; "1" = Manual Mode
X REAL Input
K INT Correction factor (max. 10 000)
YMAN REAL Manual value
Y REAL Mean value

22 840 USE 494 00 May 2000


AVGMV_K: Floating mean with frozen correction factor

Detailed description

Automatic oper- One X value is read in every program cycle. 1/N is deducted from the Y value of the
ating mode last program cycle, and then 1/N of the current X value is added. The result is deliv-
ered at the Y output.
After a cold or warm (re)start, the X value is assigned to output Y.

Manual operat- The value YMAN is transferred to the Y output.


ing mode

Diagram Floating mean with frozen correction factor (K = 50)

840 USE 494 00 May 2000 23


AVGMV_K: Floating mean with frozen correction factor

24 840 USE 494 00 May 2000


BIT_TO_BYTE: Type conversion
5
Overview

Introduction This chapter describes the BIT_TO_BYTE block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 26
Representation 26

840 USE 494 00 May 2000 25


BIT_TO_BYTE: Type conversion

Brief description

Function de- The Function converts 8 input values of the Data type BOOL to an output of the data
scription type BYTE.
The input values are assigned to the individual bits of the byte at the output accord-
ing to the input names.
0
BIT0 (2 )
1
BIT1 (2 ) BYTE

27 26 21 20

BIT6 (26 )
BIT7 (27 )
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:

BIT_TO_BYTE
BOOL BIT0 BYTE
BOOL BIT1
BOOL BIT2
BOOL BIT3
BOOL BIT4
BOOL BIT5
BOOL BIT6
BOOL BIT7

Formula Block formula:


OUT = { BIT7 ,BIT6 ,… ,BIT0 }

26 840 USE 494 00 May 2000


BIT_TO_BYTE: Type conversion

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
BIT0 BOOL Input bit 0
BIT1 BOOL Input bit 1
: : :
BIT7 BOOL Input bit 7
OUT BYTE Output value

840 USE 494 00 May 2000 27


BIT_TO_BYTE: Type conversion

28 840 USE 494 00 May 2000


BIT_TO_WORD: Type conversion
6
Overview

Introduction This chapter describes the BIT_TO_WORD block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 30
Representation 30

840 USE 494 00 May 2000 29


BIT_TO_WORD: Type conversion

Brief description

Function de- The Function converts 16 input words from Data type BOOL to an output value of
scription data type WORD.
The input values are assigned to the individual bits of the word at the output accord-
ing to the input names.
0
BIT0 (2 )
1
BIT1 (2 ) WORD

2 15 2 14 21 20

BIT14 (214 )
BIT15 (215 )
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


BIT_TO_WORD
BOOL BIT0 DATA WORD
BOOL BIT1
BOOL BIT2
BOOL BIT3
BOOL BIT4
BOOL BIT5
BOOL BIT6
BOOL BIT7
BOOL BIT8
BOOL BIT9
BOOL BIT10
BOOL BIT11
BOOL BIT12
BOOL BIT13
BOOL BIT14
BOOL BIT15

30 840 USE 494 00 May 2000


BIT_TO_WORD: Type conversion

Formula Block formula:


OUT = { BIT15 ,BIT14 ,… ,BIT0 }

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
BIT0 BOOL Input bit 0
BIT1 BOOL Input bit 1
: : :
BIT15 BOOL Input bit 15
OUT WORD Output value

840 USE 494 00 May 2000 31


BIT_TO_WORD: Type conversion

32 840 USE 494 00 May 2000


BYTE_AS_WORD: Type conver-
sion 7
Overview

Introduction This chapter describes the BYTE_AS_WORD block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 34
Representation 34

840 USE 494 00 May 2000 33


BYTE_AS_WORD: Type conversion

Brief description

Function de- The Function converts 2 input words from Data type BYTE to an output value of data
scription type WORD.
The input values are assigned to the word at the output according to the input
names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


BYTE_AS_WORD
BYTE LOW DATA WORD
BYTE HIGH

Formula Block formula:

OUT = {HIGH, LOW}

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
LOW BYTE less significant byte
HIGH BYTE more significant byte
OUT WORD Output value

34 840 USE 494 00 May 2000


BYTE_TO_BIT: Type conversion
8
Overview

Introduction This chapter describes the BYTE_TO_BIT block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 36
Representation 36

840 USE 494 00 May 2000 35


BYTE_TO_BIT: Type conversion

Brief description

Function de- Thisfunction block converts one input word from Data type BYTE into 8 output val-
scription ues of data type BOOL.
The individual bits of the byte at the input are assigned to the outputs according to
the output names.
0
BIT0 (2 )
1
BYTE BIT1 (2 )

27 26 21 20

BIT6 (26 )
BIT7 (27 )
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


BYTE_TO_BIT
BYTE IN BIT0 BOOL
BIT1 BOOL
BIT2 BOOL
BIT3 BOOL
BIT4 BOOL
BIT5 BOOL
BIT6 BOOL
BIT7 BOOL

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN BYTE Input
BIT0 BOOL Output bit 0
BIT1 BOOL Output bit 1
: : :
BIT7 BOOL Output bit 7

36 840 USE 494 00 May 2000


CTD_***: Down counter
9
Overview

Introduction This chapter describes the CTD_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 38
Representation 38

840 USE 494 00 May 2000 37


CTD_***: Down counter

Brief description

Function de- The Function block is used for counting down.


scription A "1" signal at the LD input causes the value of the PV input to be allocated to the
CV output. With each transition from "0" to "1" at the CD input, the value of CV is
reduced by 1.
When CV is ≤ 0, the output Q becomes "1".
The Data types of the PV input and the CV output must be identical. A specific func-
tion block is available to process each of the different data types.

Note: The counter only works up to the minimum values of the data type being
used. No overflow occurs.

The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


CTD_***
BOOL CD Q BOOL
BOOL LD
*** PV CV *** *** = INT, DINT, UINT, UDINT

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
CD BOOL Trigger input
LD BOOL Load data
PV INT, DINT, UINT, Presettings value
UDINT
Q BOOL Output
CV INT, DINT, UINT, Count value (actual value)
UDINT

38 840 USE 494 00 May 2000


CTU_***: Up counter
10
Overview

Introduction This chapter describes the CTU_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 40
Representation 40

840 USE 494 00 May 2000 39


CTU_***: Up counter

Brief description

Function de- The Function block is used for counting up.


scription A "1" signal at the R input causes the value "0" to be allocated to the CV output. With
each transition from "0" to "1" at the CU input, the value of CV is increased by 1.
When CV ≥ PV, the Q output is set to "1".
The Data types of the PV input and the CV output must be identical. A specific func-
tion block is available to process each of the different data types.

Note: The counter only works up to the maximum values of the data type being
used. No overflow occurs.

The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


CTU_***
BOOL CU Q BOOL
BOOL R
*** PV CV *** *** = INT, DINT, UINT, UDINT

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
CU BOOL Trigger input
R BOOL Reset
PV INT, DINT, UINT, Presettings value
UDINT
Q BOOL Output
CV INT, DINT, UINT, Count value (actual value)
UDINT

40 840 USE 494 00 May 2000


CTUD_***: Up/Down counter
11
Overview

Introduction This chapter describes the CTUD_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 42
Representation 42

840 USE 494 00 May 2000 41


CTUD_***: Up/Down counter

Brief description

Function de- The Function block is used for counting up and down.
scription A "1" signal at the R input causes the value "0" to be allocated to the CV output. A
"1" signal at the LD input causes the value of the PV input to be allocated to the CV
output. With each transition from "0" to "1" at the CU input, the value of CV is in-
creased by 1. With each transition from "0" to "1" at the CD input, the value of CV is
reduced by 1.
If there is a simultaneous "1" signal at input R and input LD, input R has precedence.
When CV ≥ PV, output QU is "1".
When CV is ≤ 0, output QD is "1".

Note: The down counter only works up to the minimum values of the data type be-
ing used, and the up counter only up to the maximum values of the data type being
used. No overflow occurs.

The Data types of input PV and input CV must be identical. A specific Function block
is available to process each of the different data types.
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


CTUD_***
BOOL CU QU BOOL
BOOL CD QD BOOL
BOOL R
BOOL LD
*** PV CV *** *** = INT, DINT, UINT, UDINT

42 840 USE 494 00 May 2000


CTUD_***: Up/Down counter

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
CU BOOL Up counter trigger input
CD BOOL Down counter trigger input
R BOOL Reset
LD BOOL Load data
PV INT, DINT, UINT, Presettings value
UDINT
QU BOOL Up display
QD BOOL Down display
CV INT, DINT, UINT, Count value (actual value)
UDINT

840 USE 494 00 May 2000 43


CTUD_***: Up/Down counter

44 840 USE 494 00 May 2000


DEAD_ZONE_REAL: Dead zone
12
Overview

Introduction This chapter describes the DEAD_ZONE_REAL block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 46
Representation 46
Detailed Description 47

840 USE 494 00 May 2000 45


DEAD_ZONE_REAL: Dead zone

Brief description

Function de- The Function is used to specify a deadzone for control variables.
scription It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


DEAD_ZONE_REAL
REAL X REAL
REAL DZ
REAL GAIN

Formula Block formula:


Assuming: DZ≥0
Y = GAIN x X for -DZ ≤ X ≤ DZ
Y = (X - DZ) + GAIN x DZ for X > DZ
Y = (X + DZ) - GAIN x DZ for X < DZ

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
X REAL Input variable
DZ REAL Half width of the deadzone
GAIN REAL Gradient within deadzone
Y REAL Output variable

46 840 USE 494 00 May 2000


DEAD_ZONE_REAL: Dead zone

Detailed Description

Characteristic The function block has the following characteristic curve:


Curves Deadzone with 0 < GAIN < 1
Y

GAIN
DZ

-DZ X

Deadzone with GAIN > 1


Y

GAIN
DZ

-DZ X

840 USE 494 00 May 2000 47


DEAD_ZONE_REAL: Dead zone

Deadzone with GAIN < 0


Y

GAIN
DZ

-DZ X

Note: Outside the dead zone, a gradient of 1 has been specified.

48 840 USE 494 00 May 2000


DINT_AS_WORD: Type conver-
sion 13
Overview

Introduction This chapter describes the DINT_AS_WORD block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 50
Representation 50

840 USE 494 00 May 2000 49


DINT_AS_WORD: Type conversion

Brief description

Function de- This function block converts one input value of Data type DINT to 2 output values of
scription data type WORD.
The individual words of the DINT input are assigned to the outputs corresponding to
the output names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


DINT_AS_WORD
DINT IN LOW WORD
HIGH WORD

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN DINT Input
LOW WORD less significant word
HIGH WORD more significant word

50 840 USE 494 00 May 2000


DIVMOD_***: Division and Modulo
14
Overview

Introduction This chapter describes the DIVMOD_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 52
Representation 52
Runtime error 52

840 USE 494 00 May 2000 51


DIVMOD_***: Division and Modulo

Brief description

Function de- This function block divides the value at input IN1 by the value at input IN2. The result
scription of the division (quotient) is delivered at output DV. The remainder of the division
(Modulo) is delivered at output MD.
If there is a decimal place in the division result, the division will truncate it.
Data types of the ANY_INT group can be processed.
The data types of all input and output values must be identical. A specific function is
available to process each of the different data types.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


DIVMOD_***
*** IN1 DV ***
*** IN2 MD *** *** = INT, DINT, UINT, UDINT

Formula Block formula:


DV = IN1 / IN2
MD = IN1 mod IN2

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN1 INT, DINT, UINT, UDINT Dividend
IN2 INT, DINT, UINT, UDINT Divisor
DV INT, DINT, UINT, UDINT Quotient
MD INT, DINT, UINT, UDINT Modulo

Runtime error

Runtime error An Error message appears, when


z IN2=0

52 840 USE 494 00 May 2000


HYST_***: Indicator signal for
maximum value delimiter with
hysteresis
15
Overview

Introduction This chapter describes the HYST_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 54
Representation 54
Detailed Description 55

840 USE 494 00 May 2000 53


HYST_***: Indicator for maximum value delimiter with hysteresis

Brief description

Function de- The function block monitors the input variable X for violation of the upper threshold.
scription
Note: If the lower threshold should be monitored as well, use the INDLIM function
block.

Data types of the ANY_NUM group can be processed.


The data types of all input values must be identical. A specific function is available
process each of the different data types.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


HYST_***
*** X IND BOOL
*** HIGH
*** LOW
*** = INT, DINT, UINT, UDINT, REAL

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
X INT, DINT, UINT, Input variable
UDINT, REAL
HIGH INT, DINT, UINT, Maximum upper threshold
UDINT, REAL
LOW INT, DINT, UINT, Minimum upper threshold
UDINT, REAL
IND BOOL Anzeige: reached upper threshold

54 840 USE 494 00 May 2000


HYST_***: Indicator for maximum value delimiter with hysteresis

Detailed Description

Parameter de- If X violates the upper HIGH limit, the function block reports this condition with IND
scription = 1.
If, subsequently, X violates the LOW threshold, IND will be reset to "0".

Function Function description


INDi = 1, if X > HIGH
INDi = 0, if X < LOW
otherwise
INDi = INDi-1

If LOW is greater than HIGH, there is no hysteresis, and IND shows X is greater than
HIGH.

Diagram Maximum value delimiter with hysteresis


X

HIGH
LOW
X

Zeit

IND

840 USE 494 00 May 2000 55


HYST_***: Indicator for maximum value delimiter with hysteresis

56 840 USE 494 00 May 2000


INDLIM_***: Indicator signal for
delimiters with hysteresis 16
Overview

Introduction This chapter describes the INDLIM_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 58
Representation 58
Detailed description 59

840 USE 494 00 May 2000 57


INDLIM_***: Indicator signal for delimiters with hysteresis

Brief description

Function de- The function block monitors the input variable X for violation of the upper threshold
scription and violation of the lower threshold.

Note: If only the upper threshold should be monitored as well, use the HYST func-
tion block.

It is possible to process data types of the ANY_NUM group.


The data types of all input values must be identical. A specific function is available
to process each of the different data types.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


INDLIM_***
*** X MX_IND BOOL
*** MX_HIGH MN_IND BOOL
*** MX_LOW
*** MN_LOW
*** MN_HIGH *** = INT, DINT, UINT, UDINT, REAL

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
X INT, DINT, UINT, Input variable
UDINT, REAL
MX_HIGH INT, DINT, UINT, Maximum upper limit
UDINT, REAL
MX_LOW INT, DINT, UINT, Minimum upper limit
UDINT, REAL
MN_LOW INT, DINT, UINT, Minimum lower limit
UDINT, REAL
MN_HIGH INT, DINT, UINT, Maximum lower limit
UDINT, REAL
MX_IND BOOL Display: reached upper limit
MN_IND BOOL Display: reached lower limit

58 840 USE 494 00 May 2000


INDLIM_***: Indicator signal for delimiters with hysteresis

Detailed description

Parameter de- If X exceeds the upper limit MX_HIGH, the function block reports this condition with
scription MX_IND = 1.
If, subsequently, X is less than the limit MX_LOW, MX_IND will be reset to "0".

Function Function description:


MX_INDi = 1, if X > MX_HIGH
MX_INDi = 0, if X < MX_LOW
otherwise
MX_INDi = MX_IND(i-1)
If X is less than the lower limit MN_HIGH, the function block reports this condition
with MN_IND =1.
If, subsequently, X exceeds the limit MN_LOW, MX_IND is reset to "0".

Function Function description:


MX_INDi = 1, if X < MX_HIGH
MX_INDi = 0, if X > MX_LOW
otherwise
MX_INDi = MX_IND(i-1)
If MX_LOW is greater than MX_HIGH, there will be no hysteresis, and MX_IND dis-
plays the fact that X is greater than MX_HIGH.
If MN_HIGH is greater than MN_LOW, there will be no hysteresis, and MN_IND dis-
plays the fact that X is smaller than MN_HIGH.

840 USE 494 00 May 2000 59


INDLIM_***: Indicator signal for delimiters with hysteresis

Diagram Delimiters with hysteresis INDLIM


X

MX_HIGH
MX_LOW
X
MN_LOW
MN_HIGH

Time

MX_IND

MN_IND

60 840 USE 494 00 May 2000


LIMIT_IND_***: Limit with indicator
17
Overview

Introduction This chapter describes the LIMIT_IND_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 62
Representation 62

840 USE 494 00 May 2000 61


LIMIT_IND_***: Limit with indicator

Brief description

Function de- This function block transfers the unchanged input value (IN) to the output OUT, if the
scription input value is not less than the minimum value (MN) and does not exceed the max-
imum value (MX). If the input value (IN) is less than the minimum value (MN), the
minimum value will be transferred to the output. If the input value (IN) exceeds the
maximum value (MX), the maximum value is transferred to the output.
Furthermore, a signal indicates the violation of a minimum or maximum value. If the
value at input IN is less than the value at input MN, output MN_IND becomes "1". If
the value at input IN exceeds the value at input MX, the output MX_IND becomes
"1".
Data types of the ANY_ELEM group can be processed.
The data types of the input values MN, IN, MX as well as of the output value OUT
must be identical. A specific function is available to process each of the different
data types.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


LIMIT_IND_***
*** MN MN_IND BOOL
*** IN OUT ***
*** MX MX_IND BOOL

*** = INT, DINT, UINT, UDINT, REAL, TIME,


BOOL, BYTE, WORD

Formula Block formula:


OUT = IN, if (IN ≤ MX) & IN ≤ MX
OUT = MN, if (IN < MN)
OUT = MN, if (IN < MN)

MN_IND = 0, if IN ≤ MN
MN_IND = 1, if IN > MN

MX_IND = 0, if IN ≤ MX
MX_IND = 1, if IN > MX

62 840 USE 494 00 May 2000


LIMIT_IND_***: Limit with indicator

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
MN INT, DINT, UINT, Limit of minimum value
UDINT, REAL, TIME,
BOOL, BYTE, WORD
IN INT, DINT, UINT, Input
UDINT, REAL, TIME,
BOOL, BYTE, WORD
MX INT, DINT, UINT, Limit of maximum value
UDINT, REAL, TIME,
BOOL, BYTE, WORD
MN_IND BOOL Display of minimum value violation
OUT INT, DINT, UINT, Output
UDINT, REAL, TIME,
BOOL, BYTE, WORD
MX_IND BOOL Display of maximum value violation

840 USE 494 00 May 2000 63


LIMIT_IND_***: Limit with indicator

64 840 USE 494 00 May 2000


LOOKUP_TABLE1: Traverse pro-
gression with 1st degree interpo-
lation
18
Overview

Introduction This chapter describes the LOOKUP_TABLE1 block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 66
Representation 66
Detailed description 67

840 USE 494 00 May 2000 65


LOOKUP_TABLE1: Traverse progression with 1st degree interpolation

Brief description

Function de- This function block linearizes characteristic curves by means of interpolation. The
scription function block works with variable width.
The number of XiYi inputs can be increased to 30 by modifying the size of the block
frame vertically. This corresponds to a maximum of 15 support point pairs.
The number of inputs must be even.
The X values must be in ascending order.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:

LOOKUP_TABLE
REAL X Y REAL
REAL XiYi1 QXHI BOOL
REAL XiYi2 QXLO BOOL
: :
REAL XiYin
REAL XiYim

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
XiYi1 REAL X-coordinate 1st support point
XiYi2 REAL Y-coordinate 1st support point
XiYin REAL X-coordinate mth support point
XiYim REAL Y-coordinate mth support point
X REAL Input variable
Y REAL Output variable
QXHI BOOL Display: X > Xm
QXLO BOOL Indicator signal X < X1

66 840 USE 494 00 May 2000


LOOKUP_TABLE1: Traverse progression with 1st degree

Detailed description

Parameter de- Each two sequential inputs (XiYi) represent a support point pair. The first input XiYi
scription corresponds to X1, the next one to Y1, the one after that to X2, etc.
For all types of input value in X found between these support points, the correspond-
ing Y output value is interpolated, while the traverse progression between the sup-
port points is viewed linearly.
For X < X1 Y is = Y1
For X > X1 is Y = Y1
If the value at input X is higher than the value of the last support point Xm, the output
QXHI becomes "1".
If the value at input X is less than the value of the first support point X1, the output
QXLO becomes "1".

Principle of inter- Traverse progression with 1st degree interpolation


polation
Y

Ym
Yi+1
Ym-1
Y

Yi

0
X
Xi X Xi+1 Xm-1 Xm

840 USE 494 00 May 2000 67


LOOKUP_TABLE1: Traverse progression with 1st degree interpolation

Interpolation The following algorithm applies to a Point y:


Yi + 1 – Yi
Y = Y i + ---------------------------- × ( X – X i )
Xi + 1 – Xi

for Xi ≤ X ≤ Xi+1 and i = 1 ... (m-1)


Assuming: X1 ≤ X2 ≤ ... ≤ Xi ≤ Xi+1 ≤ ... ≤ Xm-1 ≤ Xm

The X values must be in ascending order.


Two consecutive X values can be identical. This could cause a discrete curve pro-
gression.
In this instance, the special case applies:
Y = 0.5 x (Yi + Yi+1)
for
Xi = X = Xi+1 und i = 1 ... (m-1)

68 840 USE 494 00 May 2000


NEG_***: Negation
19
Overview

Introduction This chapter describes the NEG_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 70
Representation 70
Runtime error 71

840 USE 494 00 May 2000 69


NEG_***: Negation

Brief description

Function de- The Function negates the input value and delivers the result at the OUT output.
scription Data types of the ANY_NUM group can be processed.
The negation causes a sign reversal, e.g.
6 -> -6
-4 -> 4

Note: When the data types are processedDINT and INT it is not possible to convert
very long negative values into positive ones. However, the ENO output is not set
to 0 when this error occurs.

Note: When the data types are processedUDINT and UINT there is always an Er-
ror message.

The data types of the input and output values must be identical. A specific function
is available to process each of the different data types.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


NEG_***
*** ***
*** = INT, DINT, UINT, UDINT, REAL

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN INT, DINT, UINT, Input
UDINT, REAL
OUT INT, DINT, UINT, Negated output
UDINT, REAL

70 840 USE 494 00 May 2000


NEG_***: Negation

Runtime error

Runtime error A violation of the value range at the input during the execution of the function will
cause an error message to appear.
An Error message appears, when
z the value range of the input is exceeded or
z an input value of the data type UDINT or UINT is to be converted.

840 USE 494 00 May 2000 71


NEG_***: Negation

72 840 USE 494 00 May 2000


REAL_AS_WORD: Type conver-
sion 20
Overview

Introduction This chapter describes the REAL_AS_WORD block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 74
Representation 74

840 USE 494 00 May 2000 73


REAL_AS_WORD: Type conversion

Brief description

Function de- This function block converts one input word from Data type REAL to 2 output values
scription of data type WORD.
The individual words of the REAL input are assigned to the outputs according to the
output names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


REAL_AS_WORD
REAL IN LOW WORD
HIGH WORD

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN REAL Input
LOW WORD less significant word
HIGH WORD more significant word

74 840 USE 494 00 May 2000


SAH: Detecting and holding with
rising edge 21
Overview

Introduction This chapter describes the SAH block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 76
Representation 76

840 USE 494 00 May 2000 75


SAH: Detecting and holding with rising edge

Brief description

Function de- The function block transfers the input value PV to the OUT output when first called
scription up. With a rising edge (0 to 1) at input CLK, the input value IN is transferred to the
OUT output. This value remains at the output until the next rising edge causes a new
value to be loaded from IN to OUT.
The data types of the input values IN, PV and of the output value OUT must be iden-
tical.
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


SAH
ANY IN ANY
BOOL CLK
ANY PV

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN ANY Input value
CLK BOOL Clock input
PV ANY Pre-settings value
OUT ANY Output value

76 840 USE 494 00 May 2000


SIGN_***: Sign evaluation
22
Overview

Introduction This chapter describes the SIGN_*** block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 78
Representation 78

840 USE 494 00 May 2000 77


SIGN_***: Sign evaluation

Brief description

Function de- The function is used for the detection of negative signs.
scription Data types of the ANY_NUM group can be processed.
With a value ≥ 0 at the input, the output becomes "0". With a value < 0 at the input,
the output becomes "1".
A specific function is available for processing each of the different data types.
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


SIGN_***
*** BOOL

*** = INT, DINT, UINT, UDINT, REAL

Formula Block formula:


OUT = 1, if IN < 0
OUT = 0, if IN ≥ 0

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN INT, DINT, UINT, With sign input
UDINT, REAL
OUT BOOL Sign evaluation

78 840 USE 494 00 May 2000


TIME_AS_WORD: Type conver-
sion 23
Overview

Introduction This chapter describes the TIME_AS_WORD block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 80
Representation 80

840 USE 494 00 May 2000 79


TIME_AS_WORD: Type conversion

Brief description

Function de- The function block converts one input word from Data type TIME to 2 output values
scription of data type WORD.
The individual words of the TIME input are assigned to the outputs according to the
output names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


TIME_AS_WORD
TIME IN LOW WORD
HIGH WORD

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN TIME Input
LOW WORD less significant word
HIGH WORD more significant word

80 840 USE 494 00 May 2000


TRIGGER: Detection of all types of
edges 24
Overview

Introduction This chapter describes the TRIGGER block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 82
Representation 82

840 USE 494 00 May 2000 81


TRIGGER: Detection of all types of edges

Brief description

Function de- The Function block recognizes all types of edges (1 -> 0 and 0 -> 1) at input CLK.
scription Output EDGE becomes "1" if there is a transition from "0" to "1" or from "1" to "0" at
CLK; otherwise it remains on "0".
If there is a transition from "0" to "1" at input CLK, output RISE becomes "1"; if there
is a transition from "1" to "0" at input CLK, output FALL becomes "1"; if neither of
these two instances occurs, both outputs become "0".
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


TRIGGER
BOOL CLK RISE BOOL
EDGE BOOL
FALL BOOL

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
CLK BOOL Clock input
RISE BOOL Indicator signal of rising edge
EDGE BOOL Indicator of all types of edges
FALL BOOL Indicator signal of falling edge

82 840 USE 494 00 May 2000


UDINT_AS_WORD: Type conver-
sion 25
Overview

Introduction This chapter describes the UDINT_AS_WORD block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 84
Representation 84

840 USE 494 00 May 2000 83


UDINT_AS_WORD: Type conversion

Brief description

Function de- The function block converts one input word from Data type UDINT to 2 output values
scription of data type WORD.
The individual words of the UDINT input are assigned to the outputs according to the
output names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


UDINT_AS_WORD
UDINT IN LOW WORD
HIGH WORD

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN UDINT Input
LOW WORD less significant word
HIGH WORD more significant word

84 840 USE 494 00 May 2000


WORD_AS_BYTE: Type conver-
sion 26
Overview

Introduction This chapter describes the WORD_AS_BYTE block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 86
Representation 86

840 USE 494 00 May 2000 85


WORD_AS_BYTE: Type conversion

Brief description

Function de- The function block converts one input word from Data type WORD to two output val-
scription ues of data type BYTE.
The individual bytes of the word at the input are assigned to the outputs according
to the output names.
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


WORD_AS_BYTE
WORD IN LOW BYTE
HIGH BYTE

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN WORD Input
LOW BYTE less significant byte
HIGH BYTE more significant byte

86 840 USE 494 00 May 2000


WORD_AS_DINT: Type conver-
sion 27
Overview

Introduction This chapter describes the WORD_AS_DINT block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 88
Representation 88

840 USE 494 00 May 2000 87


WORD_AS_DINT: Type conversion

Brief description

Function de- The Function converts 2 input words from Data type WORD to an output value of
scription data type DINT.
The input values are assigned to the word at the output according to the input
names.
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


WORD_AS_DINT
WORD LOW DINT
WORD HIGH

Formula Block formula:


OUT = { HIGH ,LOW }

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
LOW WORD less significant word
HIGH WORD more significant word
OUT DINT Output value

88 840 USE 494 00 May 2000


WORD_AS_REAL: Type conver-
sion 28
Overview

Introduction This chapter describes the WORD_AS_REAL block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 90
Representation 90

840 USE 494 00 May 2000 89


WORD_AS_REAL: Type conversion

Brief description

Function de- The Function converts 2 input words from Data type WORD to an output value of
scription data type REAL.
The input values are assigned to the word at the output according to the input
names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


WORD_AS_REAL
WORD LOW REAL
WORD HIGH

Formula Block formula:


OUT = { HIGH ,LOW }

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
LOW WORD less significant word
HIGH WORD more significant word
OUT REAL Output value

90 840 USE 494 00 May 2000


WORD_AS_TIME: Type conver-
sion 29
Overview

Introduction This chapter describes the WORD_AS_TIME block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 92
Representation 92

840 USE 494 00 May 2000 91


WORD_AS_TIME: Type conversion

Brief description

Function de- The Function converts 2 input words from Data type WORD to an output value of
scription data type TIME.
The input values are assigned to the word at the output according to the input
names.
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


WORD_AS_TIME
WORD LOW TIME
WORD HIGH

Formula Block formula:


OUT = { HIGH ,LOW }

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
LOW WORD less significant word
HIGH WORD more significant word
OUT TIME Output value

92 840 USE 494 00 May 2000


WORD_AS_UDINT: Type conver-
sion 30
Overview

Introduction This chapter describes the WORD_AS_UDINT block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 94
Representation 94

840 USE 494 00 May 2000 93


WORD_AS_UDINT: Type conversion

Brief description

Function de- The Function converts 2 input words from Data type WORD to an output value of
scription data type UDINT.
The input values are assigned to the word at the output according to the input
names.
It is possible to project EN and ENO as additional parameters.

Representation

Symbol Block representation:


WORD_AS_UDINT
WORD LOW UDINT
WORD HIGH

Formula Block formula:


OUT = { HIGH ,LOW }

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
LOW WORD less significant word
HIGH WORD more significant word
OUT UDINT Output value

94 840 USE 494 00 May 2000


WORD_TO_BIT: Type conversion
31
Overview

Introduction This chapter describes the WORD_TO_BIT block.

What's in this This Chapter contains the following Maps:


Chapter?
Topic Page
Brief description 96
Representation 96

840 USE 494 00 May 2000 95


WORD_TO_BIT: Type conversion

Brief description

Function de- The function block converts one input word from Data type WORD to 16 output val-
scription ues of data type BOOL.
The individual bits of the word at the input are assigned to the outputs according to
the output names.
0
BIT0 (2 )
1
WORD BIT1 (2 )

2 15 2 14 21 20

BIT14 (214 )
BIT15 (215 )
The parameters EN and ENO can additionally be projected.

Representation

Symbol Block representation:


WORD_TO_BIT
WORD BIT0 BOOL
BIT1 BOOL
BIT2 BOOL
BIT3 BOOL
BIT4 BOOL
BIT5 BOOL
BIT6 BOOL
BIT7 BOOL
BIT8 BOOL
BIT9 BOOL
BIT10 BOOL
BIT11 BOOL
BIT12 BOOL
BIT13 BOOL
BIT14 BOOL
BIT15 BOOL

96 840 USE 494 00 May 2000


WORD_TO_BIT: Type conversion

Parameter de- Block parameter description:


scription
Parameter Data type Meaning
IN WORD Input
BIT0 BOOL Output BIT0
BIT1 BOOL Output BIT1
: : :
BIT15 BOOL Output BIT15

840 USE 494 00 May 2000 97


WORD_TO_BIT: Type conversion

98 840 USE 494 00 May 2000


Glossary

Active window The window that is currently selected. Only one window can be active at any given
time. If a window becomes active, the color of it's title bar changes so it can be dis-
tinguished from other windows. Windows that are not selected are inactive.

Addresses (Direct) addresses are memory areas on the PLC. They are found in the signal
memory and can be assigned to input/output modules.
Direct addresses can be displayed/entered in the following formats:
z Standard Format (400001)
z Separator Format (4:00001)
z Compact Format (4:1)
z IEC Format (QW1)

ANL_IN ANL_IN stands for data type "analog input" and is used to process analog values.
The data type is assigned to the 3x references defined in the I/O map for the config-
ured analog input module automatically and therefore can only be used with unlo-
cated variables.

ANL_OUT ANL_OUT stands for data type "analog output" and is used to process analog val-
ues. The data type is assigned to the 4x references defined in the I/O map for the
configured analog output module automatically and therefore can only be used with
unlocated variables.

ANY In this version, "ANY" includes the elementary data types BOOL, BYTE, DINT, INT,
REAL, UDINT, UINT, TIME and WORD and data types derived from them.

ANY_BIT In this version, "ANY_BIT" includes data types BOOL, BYTE and WORD.

840 USE 494 00 May 2000 99


Glossary

ANY_ELEM In this version, "ANY_ELEM" includes data types BOOL, BYTE, DINT, INT, REAL,
UDINT, UINT, TIME and WORD.

ANY_INT In this version, "ANY_INT" includes data types DINT, INT, UDINT and UINT.

ANY_NUM In this version, "ANY_NUM" includes data types DINT, INT, REAL, UDINT and
UINT.

ANY_REAL In this version, "ANY_REAL" includes data type REAL.

Application win- The window containing the workspace, the menu bar and the tool bar for the appli-
dow cation program. The name of the application program is shown in the title bar. An
application window can contain several document windows. In Concept, an applica-
tion window corresponds to a project.

Argument Same as current parameter.

Array Variables Variables assigned to a defined derived data type using the keyword ARRAY. An ar-
ray is a collection of data elements of the same data type.

ASCII Mode American Standard Code for Information Interchange The ASCII mode is used for
communication with various host devices. ASCII works with 7 data bits.

Atrium The PC based controller is on a standard AT board and can be operated in an ISA
bus slot on a host computer. The module has a motherboard (requires an SA85 driv-
er) with two slots for PC104 daughter boards. One PC104 daughter board is used
as CPU and the other for INTERBUS control.

Backup file (Con- The backup file is a copy of the last source code file. The name of this backup file is
cept EFB) "backup??.c" (assuming that you never have more than 100 copies of your source
code file). The first backup file has the name "backup00.c". If you have made chang-
es to the definition file which do not require an interface change for EFB, you can
edit your source code file instead of having to create a backup file (Objects →
Source). If a backup file is created, you can give it the name of the source file.

100 840 USE 494 00 May 2000


Glossary

Base 16 Literals Base 16 literals are used to enter integer values in hexadecimal. The base must be
identified using the prefix 16#. The values are not allowed to have a sign (+/-). Un-
derline characters ( _ ) between the numbers are not significant.

Example
16#F_F or 16#FF (decimal 255)
16#E_0 or 16#E0 (decimal 224)

Base 2 Literals Base 2 literals are used to enter integer values in binary. The base must be identified
using the prefix 2#. The values are not allowed to have a sign (+/-). Underline char-
acters ( _ ) between the numbers are not significant.

Example
2#1111_1111 or 2#11111111 (decimal 255)
2#1110_0000 or 2#11100000 (decimal 224)

Base 8 Literals Base 8 literals are used to enter integer values in octal. The base must be identified
using the prefix 8#. The values are not allowed to have a sign (+/-). Underline char-
acters ( _ ) between the numbers are not significant.

Example
8#3_77 or 8#377 (decimal 255)
8#34_0 or 8#340 (decimal 224)

Binary Connec- Connections between FFB inputs and outputs with data type BOOL.
tions

Bit sequence A data element consisting of one or more bits.

BOOL BOOL stands for data type "boolean". The data element length is 1 bit (stored in 1
Byte in memory). The variable values for this data type are 0 (FALSE) and 1 (TRUE).

Bridge A bridge is used to join network segments. It allows communication between two
network nodes. Each network has its own token passing sequence - the token is not
passed through bridges.

BYTE BYTE stands for data type "8 bit sequence". Entries are made as Base 2 Literals,
Base 8 Literals or Base 16 Literals. The data element length is 8 bits. A numeral val-
ue range cannot be assigned to this data type.

840 USE 494 00 May 2000 101


Glossary

Call Procedure used to start execution of an operation.

Clipboard The clipboard is temporary memory for cut or copied objects. These objects can be
inserted in sections. Each time something is cut or copied, the old contents of the
clipboard are overwritten.

Coil A coil is an LD element that transfers a state on the left of on the horizontal connec-
tion unchanged to the right of on the horizontal connection. The state in the respec-
tive variables/direct address are also stored.

Compact Format The first digit (the reference) is separated from the following address by a colon (:),
(4:1) and the preceding zeros are not given for the address.

Connection A control or data flow connection between graphic objects (e.g. steps in the SFC Ed-
itor, function blocks in the FBD Editor) within a section, graphically displayed as a
line.

Constants Constants are unlocated variables which are assigned a value that cannot be
changed by the program logic (write protected).

Contact A contact is a LD element that transfers a state to the right on the horizontal connec-
tion. This state results from a boolean UND link between the state of the horizontal
connection to the left and the state of the corresponding variables/direct address. A
contact does not change the value of the corresponding variables/direct address.

Current parame- Currently connected input/output parameters.


ters

Data transfer set- Settings that determine how information is transferred from your programming de-
tings vice to the PLC.

102 840 USE 494 00 May 2000


Glossary

Data Types The overview shows the hierarchy of the data types, as they are used for inputs and
outputs for functions and function blocks. Generic data types are identified with the
prefix "ANY".
z ANY_ELEM
z ANY_NUM
ANY_REAL (REAL)
ANY_INT (DINT, INT, UDINT, UINT)
z ANY_BIT (BOOL, BYTE, WORD)
z TIME
z System data types (IEC extensions)
z Derived (from ’ANY’ data types)

DCP I/O Station With a distributed control processor (D908), you can set up a decentralized network
with higher level PLC. When using an D908 with a decentralized PLC, the higher lev-
el PLC views the decentralized PLC as a decentralized I/O station. The D908 and
the decentralized PLC communicate via the system bus which results in improved
performance with minimal effects on the scan time. Data exchange between the
D908 and the higher level PLC takes place at 1.5 Megabit per second via the decen-
tralized I/O bus. A higher level PLC can support up to 32 D908 processors.

DDE (Dynamic The DDE interface allows dynamic data exchange between two programs in Win-
Data Exchange) dows. The user can use the DDE interface in the advanced monitor to call his own
display applications. With this interface, the user (i.e. the DDE Client) can not only
read data from the advanced monitor (the DDE Server), he can also write data to the
PLC via the server. In this way, the user can change data directly on the PLC while
monitoring and analyzing the results. When using this interface, the user can create
his own "Graphic Tool", "Face Plate" or "Tuning Tool" and integrate it into the sys-
tem. The tools can be written in any language that supports DDE, e.g. Visual Basic,
Visual-C++. The tools are called if the user presses a button in the advanced monitor
dialog box. Concept Graphic Tool: Using the DDE link between Concept and Con-
cept Graphic Tool, project signals can be represented as a clock diagram.

Decentralized Decentralized programming in a Modbus Plus Network allows the maximum data
Network transfer performance and special requirements for links. Programming a decentral-
ized network is simple. No additional ladder diagram logic is required to set up the
network. All requirements for data transfer are handled by corresponding entries in
the Peer Cop Processor.

Declaration Mechanism to determine the definition of a language element. A declaration is nor-


mally comprised of the identifier connection with a language element and attribute
assignments such as data types and algorithms.

Definition File The definitions file contains general information about selected EFB and its formal
(Concept EFB) parameters.

840 USE 494 00 May 2000 103


Glossary

Derived data Derived data types are data types which are derived from the elementary data types
types and/or other derived data types. The definition of the derived data types is made in
Concept's Data Type Editor.
A differentiation is made between global data types and local data types.

Derived Function A derived function block represents the call for a derived function block type. Details
Block (DFB) of the graphic form of the call can be found in the definition "Function Block (sam-
ple)". Unlike calls for EFB types, calls for DFB types are represented by double ver-
tical lines on the left and right side of the rectangle block symbols.
The output side of a diverted function block is created in FBD language , but only in
the current version of the programming system. Until now, other IEC languages
could not be used to define DFB types, and derived functions could not yet be de-
fined in the current version.
A differentiation is made between local and global DFBs.

DINT DINT stands for data type double integer. The entry is made as Integer Literal, Base
2 Literal, Base 8 Literal or Base 16 Literal. The length of the data element is 32 bits.
The value range for variables of this data type is from -2 exp (31) to 2 exp (31) -1.

Direct Represen- A method for representing variables in the PLC program which allows the assigned
tation logical memory location, and indirectly the physical memory location to be found.

Document Win- A window in a application window. Several document windows can be opened in an
dow application window at the same time. But only one document window can be active.
Document windows in Concept are e.g. sections, the message window, the refer-
ence data editor and the PLC configuration.

DP (PROFIBUS) DP = Decentralized Peripheral

Dummy An empty file consisting of a text header with general file information such as author,
creation date, EFB name etc.. The user has to add additional entries to complete
this dummy file.

DX Zoom These properties allow you to connect to a program object to monitor and change
its data values (if necessary).

Elementary Functions or function blocks with type definition which are not formulated in one of
Functions/Func- the IEC languages i.e. there output sides cannot be modified e.g. with the DFB editor
tion Blocks (EFB) (Concept DFB). EFB types are programmed in "C" and are provided in libraries in
precompiled form.

104 840 USE 494 00 May 2000


Glossary

EN / ENO (enable If the value of EN is "0" when the FFB is called, the algorithms defined by the FFB
/ error notifica- are not executed and all outputs keep their previous values. If the value of EN is "0"
tion) when the FFB is called, the algorithms defined by the FFB are not executed and all
outputs keep their previous values. After successfully completing these algorithms,
the value of ENO is automatically set to "1". If an error occurs when executing these
algorithms, ENO is automatically set to "0". The output behavior of the FFB depends
on if the FFBs are called without EN/ENO or with EN=1. If the representation of EN/
ENO is turned on, the EN input must be used. Otherwise the FFB will never be ex-
ecuted. The configuration of EN and ENO is turned on or off in the dialog box for
function properties. The dialog box is called using the menu item Objects → Prop-
erties... or by double clicking on the FFB.

Error If an error is recognized when processing a FFB or a step (e.g. invalid input values
or a timing error), an error message is given which you can view with the menu com-
mand Online → Event viewer ... For FFBs, the ENO output is set to "0".

Evaluation Process that determines a value for a function or for the outputs of a function block
when executing a program.

Expression Expressions consists of operator and operands.

FFB (functions/ Collective term for EFB (elementary functions/function blocks) and DFB (derived
function blocks) function blocks)

FIR Filter (Finite Impulse Response Filter) Filter with finite impulse response

Formal parame- Input/output parameters used in the logic for a FFBs and represented as inputs/out-
ter puts from the FFB.

Function (FUNK) A program organization unit which delivers exactly one data element when execut-
ed. A function has non internal status information. Multiple calls of the same function
with the same input parameter values always deliver the same output values.
Details of the graphic form of function calls can be found in the definition "Function
Block (sample)". Unlike calls for function blocks, function calls have only a single un-
titled output because its name is the name of the function itself. In FBD, each call is
represented by a unique number in the graphic block, this number is created auto-
matically and cannot be changed.

840 USE 494 00 May 2000 105


Glossary

Function Block A function block is a program organization unit which calculates values for outputs
(Instance) (FB) and internal variables according to the functionality defined in the function block type
description, if it is called as a certain instance. All outputs values and internal vari-
ables for a certain function block instance remain from one function block call to the
next. Multiple calls of the same function block instance with the same arguments (in-
put parameter values) do not necessarily deliver the same output value(s).
Each function block instance is represented graphically by a rectangular block sym-
bol. The name of the function block type at the top, center in the rectangle. The name
of the function block instance is also at the top, but outside of the rectangle. It is au-
tomatically generated when creating an instance, but can be changed by the user if
necessary. Inputs are on shown on the left side and outputs on the right side of the
block. The names of the formal input/output parameters are shown in the rectangle
at the respective locations.
The above description for graphic representation is basically also valid for function
calls and DFB calls. Differences are described in the respective definitions.

Function Block One or more sections of the graphically represented network consisting of functions,
Language (FBD) function blocks and connections.

Function block A language element consists of: 1. the definition of a data structure, divided in input,
type output and internal variables; 2. a set of operations carried out with elements of the
data structure, if an instance of the function block type is called. This set of opera-
tions can either be formulated in one of the IEC languages (DFB type) or in "C" (EFB
type). A function block type can have multiple instances (calls).

Function counter The function counter is used to clearly identify a function block in a program or DFB.
The function counter cannot be edited and is given automatically. The function
counter always has the structure: .n.m

n = Number of the section (consecutive numbers)


m = Number of the FFB object in the section (consecutive numbers)

Generic data A data type that stands for several other data types.
type

Generic Literals If the data type of a literal is not relevant to you, simply enter the value for the literal.
In this case, Concept automatically assigns the literal a suitable data type.

Global DFBs Globally DFBs are available in each Concept project and are stored in directory DFB
directly under the Concept directory.

106 840 USE 494 00 May 2000


Glossary

Global Macros Globally macros are available in each Concept project and are stored in directory
DFB directly under the Concept directory.

Globally derived Globally derived data types are available in each Concept project and are stored in
data types directory DFB directly under the Concept directory.

Groups (EFBs) Some EFB libraries (e.g. the IEC library) are divided into groups. This makes it eas-
ier to find the EFBs, especially for extensive libraries.

I/O Connection I/O and expert modules for various CPUs are configured in the I/O connection list.
List

IEC 1131-3 International Standard: Programmable Logic Controllers - Part 3: Programming Lan-
guages. March 1993.

IEC Format The first character of the address contains an IEC identifier, followed by the five digit
(QW1) address:
z %0x12345 = %Q12345
z %1x12345 = %I12345
z %3x12345 = %IW12345
z %4x12345 = %QW12345

IEC naming con- An identifier is a sequence of letters, numbers and underlines beginning with a letter
vention (identifi- or underline (e.g. name of a function block type, an instance, a variable or a section).
er) Letters from national character sets (e.g: ö,ü, é, õ) can be used except in project and
DFB names.
Underlines are significant in identifiers; e.g. "A_BCD" and "AB_CD" are interpreted
as different identifiers. Multiple leading underlines and consecutive underlines are
invalid.
Identifiers cannot contain spaces. Not case sensitive; e.g. "ABCD" and "abcd" are
interpreted as the same identifier.
Identifiers cannot be keywords.

IIR Filter (Infinite Impulse Response Filter) Filter with infinite impulse response

Initial step The first step in a sequence. Each sequence must contain a initial step definition.
The initial step is used when starting the sequence for the first call.

Initial value The value assigned to a variable when stating the program. The assignment of the
value is made in the form of a Literal.

840 USE 494 00 May 2000 107


Glossary

Input bits (1x ref- The 1/0 state of input bits is controlled by the process data which are sent from an
erences) input device to the CPU.

Note: The x after the first number of the reference type represents a five digit mem-
ory location in application data memory, e.g. reference 100201 stands for an input
bit at address 201 in signal memory.

Input parameter Transfers the respective Argument when calling a FFBs.


(input)

Input word (3x An input word contains information which comes from an external source and is rep-
references) resented by a 16 bit number. A 3x register can also contain 16 consecutive input bits
which are read into the register in binary or BCD (binary coded decimal) format.
Note: The x after the first number of the reference type represents a five digit mem-
ory location in application data memory, e.g. reference 300201 stands for a 16 bit
input word at address 201 in signal memory.

Instance Name An identifier belonging to a certain function block instance. The instance name is
used to clearly identify a function block in a program organization unit. The instance
name is automatically created, but can be edited. The instance name must be
unique throughout the entire program organization unit (not case sensitive). If the
name entered already exists, a warning is given and you have to select another
name. The instance name must correspond to the IEC naming conventions, other-
wise an error message is given. The automatically created instance name always
has the structure: FBI_n_m

FBI = Function Block Instance


n = Number of the section (consecutive numbers)
m = Number of the FFB object in the section (consecutive numbers)

Instancing Creating an instance.

Instruction When programming electrical controllers, the user must implement operational cod-
(LL984) ed assignments in the form of picture objects which are separated into recognizable
contact forms. The program objects created are converted to computer compatible
OP codes on the user level during the loading process. The OP codes are decoded
in the CPU and processed by the firmware functions on the controller so that the de-
sired controller is implemented.

Instruction list IL is a text language based on IEC 1131 in which operations such as conditional or
(IL) unconditional function block and function calls, conditional or unconditional jumps,
etc. are represented by instructions.

108 840 USE 494 00 May 2000


Glossary

Instructions (IL) Instructions are the "commands" used in programming language IL. Each instruction
begins on a new line and is followed by an operator, if necessary with modifier and,
if needed for the respective operation, by one or more operands. If several operands
are used, they are separated by commas. A label can be placed before the instruc-
tion which is followed by a colon. The comment, if used, must be the last element in
the line.

Instructions (ST) Instructions are the "commands" used in programming language ST. Instructions
must be concluded with a semicolon. Several instructions can be in a line (separated
by semicolons).

INT INT stands for data type integer. The entry is made as Integer Literal, Base 2 Literal,
Base 8 Literal or Base 16 Literal. The length of the data element is 16 bits. The value
range for variables of this data type is from -2 exp (15) to 2 exp (15) -1.

Integer Literals Integer literal are used to enter integer values in the decimal system. The values can
have a preceding sign (+/-). Individual underlines (_ ) between numbers are not sig-
nificant.

Example
-12, 0, 123_456, +986

INTERBUS (PCP) To use the INTERBUS PCP channels and the INTERBUS process data processing,
the Concept Configurator has the new I/O station type INTERBUS (PCP). This I/O
station type is permanently assigned to the INTERBUS connection module 180-
CRP-660-01.
The only difference between the 180-CRP-660-01 and the 180-CRP-660-00 is a sig-
nificantly larger I/O area in signal memory on the controller.

Jump Element of the SFC language. Jumps are used to jump over areas in the sequence.

840 USE 494 00 May 2000 109


Glossary

Keywords Keywords are unique character combinations which are used as special syntactic
elements as defined in Appendix B of IEC 1131-3. All keywords used in IEC 1131-3
and therefore in Concept, are listed in Appendix C of IEC 1131-3. These listed key-
words are not allowed to be used for any other purpose, e.g. not as variable names,
section names, instance names, etc.

Ladder Diagram Ladder diagram is a graphic programming language according to IEC1131 which re-
(LD) sembles the "current paths" in a relay circuit diagram.

Ladder Logic 984 Ladder in the terms Ladder Logic and Ladder Diagram refers to the representation.
(LL) Unlike a circuit diagram , a ladder diagram is used by electrical engineers to draw a
circuit (using electrical symbols) that represents a chain of events and not the actual
wires connecting the devices. A standard user interface to control actions on auto-
mation devices, allows a ladder diagram interface so that electrical engineers can
implement a control program without having to learn a programming language they
are not used to.
The structure of the actual ladder diagram allows electrical elements to be connect-
ed using a method that creates a control output which is dependent on a logical cur-
rent flow through the electrical objects used. These electrical objects represent the
previously defined conditions for a physical electronic device.
In a simple form, the user interface is an edited video display from the PLC program-
ming application which sets up a vertical and horizontal grid where programming ob-
jects are placed. The diagram contains current on the left side of the grid and when
connected to objects which are activated, the current flows from left to right.

Landscape for- Landscape format means that the printed text page is wider than it is tall.
mat

Language ele- Each basic element in one of the IEC programming languages, e.g. a step in SFC,
ment a function block instance in FBD or the initial value for a variable.

Library Collection of software objects that can be reused when programming new projects
or even to create new libraries. Examples are the libraries for the elementary func-
tion block types.
EFB libraries can be divided into groups.

110 840 USE 494 00 May 2000


Glossary

Literals Literals are used to directly provide values for FFB inputs, transition conditions, etc.
These values cannot be overwritten by the program logic (write protected). A differ-
entiation is made between generic and typed literals.
Additionally, literals are used to assign a value to a constant or an initial value to a
variable.
The entry is made as Base 2 Literal, Base 8 Literal, Base 16 Literal, Integer Literal,
Real Literal or Real Literal with Exponent.

Local DFBs Local DFBs are only available in a single Concept project and are stored in the DFB
directory under the project directory.

Local Link The local network link is the network which connects the local nodes with other
nodes either directly or through a bus amplifier.

Local Macros Local macros are only available in a single Concept project and are stored in the
DFB directory under the project directory.

Local network A local node is the one being planned.


nodes

Locally derived Locally derived data types are only available in a single Concept project and its local
data types DFBs and are stored in the DFB directory under the project directory.

Located Variable Located variables are assigned a signal memory address (reference addresses 0x,
1x, 3x,4x). The value for these variables is stored in signal memory and can be
changed online with the reference data editor. These variables can be accessed us-
ing their symbolic names or their reference address.

All inputs and outputs on the PLC are connected to signal memory. Access by the
program of peripherals signals connected to the PLC only takes place using located
variables. external access via Modbus or Modbus Plus interfaces on the PLC e.g.
from visualization systems are also possible using located variables.

840 USE 494 00 May 2000 111


Glossary

Macro Macros are created using the software Concept DFB.


Macros are used to duplicate often used sections and networks (including logic, vari-
ables and variable declaration).
A differentiation is made between local and global macros.

Macros have the following properties:


z Macros can only be created in programming languages FBD and LD
z Macros only contain one section
z Macros can contain a section of any complexity
z For programming, there is no difference between instanced macro, i.e. a macro
inserted in a section and a conventional section.
z Calling DFBs in a macro
z Declaration of variables
z Using custom macro data structures
z Automatic acceptance of variables declared in the macro
z Initial values for variables
z Multiple instancing for a macro in the entire program with different variables
z The section name, the variable names and the data structure name can contain
up to 10 different exchange marking (@0 to @9).

MMI Man-Machine Interface

Multielement Variables assigned to a derived data type defined with STRUCT or ARRAY.
Variables A differentiation is made between array variables and structure variables.

Network A network is the connection of devices on a common data path which communicate
with each other using a common protocol.

Network nodes A node is a device with an address (1...64) on the Modbus Plus network.

Node address The node address is used as a unique code for a network node in the routing path.
The address is set directly on the node, e.g. with a rotary switch on the back of the
module.

112 840 USE 494 00 May 2000


Glossary

Operand An operand is a literal, a variable, a function call or an expression.

Operator An operator is a symbol for a mathematics or boolean operation to be executed.

Output parame- A parameter that returns the results(s) of a FFB evaluation.


ter (output)

Output/register An output/register bit can be used to control real output data through a control sys-
bits (0x referenc- tem output unit, or to define one or more discrete outputs in signal memory. Note:
es) The x after the first number of the reference type represents a five digit memory lo-
cation in application data memory, e.g. reference 000201 stands for an output or
register bit at address 201 in signal memory.

Output/register An output/register word can be used to save numerical data (binary or decimal) in
word (4x refer- signal memory or also to send the data from the CPU to a output unit in the control
ences) system. Note: The x after the first number of the reference type represents a five digit
memory location in application data memory, e.g. reference 400201 stands for a 16
bit output/register word at address 201 in signal memory.

Peer Processor The peer processor processes token passes and the data flow between the Modbus
Plus network and the PLC application logic.

PLC Programmable Logic Controller

Portrait format Portrait format means that the printed text page is taller than it is wide.

Program The highest program organization unit. A program is completely loaded on a single
PLC.

Program cycle A program cycle consists of reading inputs, processing program logic and setting
outputs.

Program organi- A function, a function block, or a program. This term can refer to either a type or an
zation unit instance.

840 USE 494 00 May 2000 113


Glossary

Programming Hardware and software that supports programming, project creation, testing, com-
device missioning and error search in PLC applications as well as in decentralized system
applications to allow source documentation and archiving. The programming device
can sometimes also be used for process visualization.

Project General name of the highest level of a software tree structure which determines the
upper level project names for a PLC application. After determining the project name,
you can save your system configuration and your control program under this name.
All data that is produced when creating the configuration and the program belong to
this higher level project for this special automation task.
General term for the complete set of programming and project creation information
in the project database which represents the source code describing the automation
of a system.

Project database The database in the programming device which contains the project creation infor-
mation for a project.

Prototype File The prototype file contains all prototypes for the assigned functions. A type definition
(Concept EFB) for internals is then made, if available

REAL REAL stands for data type floating point number. The input tales place as Real Lit-
eral or Real Literal with Exponent. The length of the data element is 32 bits. The val-
ue range for variables of this data type is from 8.43E-37 to 3.36E+38.

Real Literals Real literals are used to enter floating point values in the decimal system. Real liter-
als are represented by entering the decimal point. The values can have a preceding
sign (+/-). Individual underlines (_ ) between numbers are not significant.

Example
-12.0, 0.0, +0.456, 3.14159_26

114 840 USE 494 00 May 2000


Glossary

Real Literals with Real literals with exponent are used to enter floating point values in the decimal sys-
Exponent tem. Real literals with exponent are represented by entering the decimal point. The
exponent defines the power of ten which is to be multiplied by the original number
to get the value to be represented. The values can have a preceding sign (+/-). In-
dividual underlines (_ ) between numbers are not significant.

Example
-1.34E-12 or -1.34e-12
1.0E+6 or 1.0e+6
1.234E6 or 1.234e6

Redundancy A redundancy system consists of two identically configured PLC devices which com-
system program- municate via redundancy processors. If the primary PLC drops out, the secondary
ming (Hot Stand- PLC takes control. Under normal conditions, the secondary PLC does not handle
by) control function, instead checks the status information to recognize errors.

Reference Each direct address is a reference beginning with a code that shows if this is an input
or an output and if this is a bit or a word. References beginning with code 6 represent
registers in extended signal memory.
0x area = output/register bits
1x area = input bits
3x area = input words
4x area = output/register words
6x area = register in extended memory

Note: The x after the first number of each reference type represents a five digit
memory location in application data memory, e.g. reference 400201 stands for a
16 bit output/register word at address 201 in signal memory.

Register in ex- 6x references are register words in extended memory on the PLC. They can only be
tended memory used by LL984 application programs and only when using a CPU 213 04 or CPU
(6x reference) 424 02.

RIO (Remote I/O) Remote I/O defines the physical location of the I/O point control device in reference
to the controlling processor. Remote I/O points are linked with the control device us-
ing a communication cable.

RTU Mode Remote Terminal Unit


RTU mode is used for communication between the PLC and an IBM compatible PC.
RTU works with 8 data bits.

840 USE 494 00 May 2000 115


Glossary

Runtime error Errors that occur while processing the program on the PLC, for SFC objects (e.g.
steps) or FFBs. They are e.g. when the value range is exceeded for counters or tim-
ing errors for steps.

SA85 modules The SA85 module is a Modbus Plus Adapter for IBM AT or compatible computers.

Section A section can be used for example to describe the function of a technological unit
such as a motor.
A program or DFB consists of one or more sections. Sections can only be pro-
grammed with IEC languages FBD and SFC. Only one of these programming lan-
guages can be used within a section.
Each section has its own document window in Concept. However to make things
clearer, it is advisable to divide large sections into several smaller sections. The
scroll bar is used to scroll through the section.

Separator For- The first digit (the reference) is separated by a colon (:) from the following five digit
mat (4:00001) address.

Sequential Func- The SFC language elements allow the PLC program organization unit to be subdi-
tion Chart (SFC) vided into a number of steps and transitions, which are connected with each other
using directional connections. A number of actions belong to each step, and each
transition is connected to a transition condition.

Serial connec- With serial connections (COM), information is transferred bit-wise.


tions

Signal memory The signal memory is the memory location for all sizes accessed via references (di-
rect representation) in the application program. For example, input bits, output/reg-
ister bits, input words, and output/register words in signal memory.

Source code file The source code file is a standard C++ source file. After executing the menu com-
(Concept EFB) mand Create Library → Files, this file contains an EFB code frame where you have
to enter a specific code for the selected EFB entries. To do this, call the menu com-
mand Objects → Source.

Standard Format The five digit address is directly after the first number (the reference).
(400001)

116 840 USE 494 00 May 2000


Glossary

Status bits Each node with global input or specific input/output of peer cop data has a status bit.
If a defined group of data is successfully transferred within the set timeout, the re-
spective status bit is set to 1. Otherwise this bit is set to 0 and all data for this group
is deleted (set to 0).

Step SFC language element: Situations in which the behavior of a program (with regard
to inputs and outputs) follows the operations used to define the corresponding step
actions.

Step name The step name is used to clearly identify a step in a program organization unit. The
step name is automatically created, but can be edited. The step name must be
unique throughout the entire program organization unit, otherwise an error message
is given.
The automatically created step name always has the structure: S_n_m

S = Step
n = Number of the section (consecutive numbers)
m = Number of the step in the section (consecutive numbers)

Structured Text ST is a text language based on IEC 1131 in which operations such as function block
(ST) and function calls, conditional execution of instructions, repeating instructions etc.
are represented by instructions.

Structured Vari- Variables assigned to a derived data type defined with STRUCT (structure).
ables A structure is a collection of data elements also in general, different data types (el-
ementary data types and/or derived data types).

SY/MAX In Quantum control devices, Concept also provides I/O connections on SY/MAX I/O
modules for RIO control using the Quantum PLC. The SY/MAX remote module rack
has a remoter I/O adapter in slot 1, which communicates via a Modicon S908 R I/O
system. The SY/MAX I/O modules are listed for you to mark and include in the I/O
connections for the Concept configuration.

Symbol (Icon) Graphic representation of various objects in Windows, e.g. drives, user programs
and document window.

Template File The template file is an ASCII file with layout information for the Concept FBD Editor,
(Concept EFB) and the parameters to create the code.

840 USE 494 00 May 2000 117


Glossary

TIME TIME stands for data type time duration. Entry takes place as Time Literal. The
length of the data element is 32 bits. The value range for variables of this data type
is from 0 to 2exp(32)-1. The unit for the data type TIME is 1 msec.

Time Literals Valid units for time (TIME) are days (D), hours (H), minutes (M), seconds (S) and
milliseconds (MS) or combinations of them. The time must be represented with the
prefix t#, T#, time# or TIME#. "Overshooting" the most significant unit is allowed;
e.g. the entry T#25H15M is allowed.

Example
t#14MS, T#14.7S, time#18M, TIME#19.9H, t#20.4D, T#25H15M,
time#5D14H12M18S3.5MS

Token The network "Token" controls the temporary transfer rights for an individual node.
The token is passed through the nodes in circular (increasing) address order. All
nodes follow the token pass and can receive all data that is sent.

Traffic Cop The Traffic Cop is a connection list generated from the user connection list. The traf-
fic cop is managed in the PLC and contains information in addition to the user con-
nection list e.g. status information about I/O stations and modules.

Transition The condition in which the controller goes from one or more process steps to one or
more following steps along a defined connection.

Typed Literals If your want to define the data type for a literal yourself, you can do it with the follow-
ing construction: ’Data type name’#’value of the literal’.

Example
INT#15 (data type: Integer, value: 15),
BYTE#00001111 (data type: Byte, value: 00001111)
REAL#23 (data type: Real, value: 23)

When assignment with data type REAL, it is also possible to enter the value as fol-
lows: 23.0.
Entering a decimal point automatically selects data type REAL.

UDEFB User Defined Elementary Functions/Function Blocks (EFB)


Functions or function blocks created in C programming language and available to
Concept in libraries.

118 840 USE 494 00 May 2000


Glossary

UDINT DINT stands for data type unsigned double integer. The entry is made as Integer Lit-
eral, Base 2 Literal, Base 8 Literal or Base 16 Literal. The length of the data element
is 32 bits. The value range for variables of this data type is from 0 to 2exp(32)-1.

UINT DINT stands for data type unsigned integer. The entry is made as Integer Literal,
Base 2 Literal, Base 8 Literal or Base 16 Literal. The length of the data element is
16 bits. The value range for variables of this data type is from 0 to (2exp 16)-1.

Unlocated Vari- Unlocated variables are not assigned signal memory addresses. Therefore they do
able not use a signal memory address. The value for these variables is stored internally
in the system and can be changed with the reference data editor. These variables
are only accessed with their symbolic names.

Signals that do not require access of peripherals, e.g. intermediate results, system
registers etc. should be preferably declared as unlocated variables.

Variables Variables are used to exchange data within a section, between several sections and
between the program and the PLC.
Variables consist of at least one variable name and a data type.
If a variable is assigned a direct address (reference), this is a located variable. If a
variable is not assigned a direct address, this is an unlocated variable. If the variable
is assigned a derived data type, this is a multielement variable.
There are also constants and literals.

Warning If a critical status is recognized when processing a FFB or a step (e.g. critical input
values or a time limit exceeded), a warning is given which you can view with the
menu command Online → Event viewer ... For FFBs, the ENO output remains "1".

WORD WORD stands for data type bit sequence 16. The entry is made as Base 2 Literal,
Base 8 Literal or Base 16 Literal. The length of the data element is 16 bits. A numer-
ical value range cannot be assigned to this data type.

840 USE 494 00 May 2000 119


Glossary

120 840 USE 494 00 May 2000


Index
B
AC
A C
Arithmetic Converter
AVE_***, 13 BIT_TO_BYTE, 25
NEG_***, 69 BIT_TO_WORD, 29
SIGN_***, 77 BYTE_AS_WORD, 33
AVE_***, 13 BYTE_TO_BIT, 35
Averaging, 13 DINT_AS_WORD, 49
AVGMV, 17 REAL_AS_WORD, 73
AVGMV_K, 21 TIME_AS_WORD, 79
UDINT_AS_WORD, 83
WORD_AS_BYTE, 85
B WORD_AS_DINT, 87
BIT_TO_BYTE, 25 WORD_AS_REAL, 89
BIT_TO_WORD, 29 WORD_AS_TIME, 91
BYTE_AS_WORD, 33 WORD_AS_UDINT, 93
BYTE_TO_BIT, 35 WORD_TO_BIT, 95
Counter
CTD_***, 37
CTU_***, 39
CTUD_***, 41
DIVMOD_***, 51
CTD_***, 37
CTU_***, 39
CTUD_***, 41

D
Dead zone, 45
DEAD_ZONE_REAL, 45
Detecting and holding with rising edge, 75
Detection of all types of edges, 81
DINT_AS_WORD, 49

840 USE 494 00 1/19/01 121


Index

Division and Modulo, 51 Function


DIVMOD_***, 51 Parametering, 9
Down counter, 37 Function block
Parametering, 9

E
Edge detection H
TRIGGER, 81 HYST_***, 53
Extended
AVE_***, 13
AVGMV, 17 I
AVGMV_K, 21 Indicator signal for delimiters with hysteresis,
BIT_TO_BYTE, 25 57
BIT_TO_WORD, 29 Indicator signal for maximum value delimiter
BYTE_AS_WORD, 33 with hysteresis, 53
BYTE_TO_BIT, 35 INDLIM_***, 57
CTD_***, 37
CTU_***, 39
CTUD_***, 41 L
DEAD_ZONE_REAL, 45 Limit with indicator, 61
DINT_AS_WORD, 49 LIMIT_IND_***, 61
DIVMOD_***, 51 LOOKUP_TABLE1, 65
HYST_***, 53
INDLIM_***, 57
LIMIT_IND_***, 61 M
LOOKUP_TABLE1, 65 Measurement
NEG_***, 69 AVGMV, 17
REAL_AS_WORD, 73 AVGMV_K, 21
SAH, 75 DEAD_ZONE_REAL, 45
SIGN_***, 77 HYST_***, 53
TIME_AS_WORD, 79 INDLIM_***, 57
TRIGGER, 81 LOOKUP_TABLE1, 65
UDINT_AS_WORD, 83 SAH, 75
WORD_AS_BYTE, 85
WORD_AS_DINT, 87
WORD_AS_REAL, 89 N
WORD_AS_TIME, 91 NEG_***, 69
WORD_AS_UDINT, 93 Negation, 69
WORD_TO_BIT, 95

P
F Parametering, 9
Floating mean with fixed window size, 17
Floating mean with frozen correction factor,
21

122 840 USE 494 00 1/19/01


Index

R
REAL_AS_WORD, 73

S
SAH, 75
Selection
LIMIT_IND_***, 61
Sign evaluation, 77
SIGN_***, 77

T
TIME_AS_WORD, 79
Traverse progression with 1st degree
interpolation, 65
TRIGGER, 81
Type conversion, 25, 29, 33, 35, 49, 73, 79,
83, 85, 87, 89, 91, 93, 95

U
UDINT_AS_WORD, 83
Up counter, 39
Up/down counter, 41

W
WORD_AS_BYTE, 85
WORD_AS_DINT, 87
WORD_AS_REAL, 89
WORD_AS_TIME, 91
WORD_AS_UDINT, 93
WORD_TO_BIT, 95

840 USE 494 00 1/19/01 123


Index

124 840 USE 494 00 1/19/01

You might also like