Sie sind auf Seite 1von 306

Programming Tool IEC 61131-3

WAGO-I/O-I/O-PRO 32

Manual Part 2
Technical description
Chapter 15 ff. and Appendix

759-122/000-002
Version 2.0.0

ii

General

Copyright 2003 by WAGO Kontakttechnik GmbH


All rights reserved.

WAGO Kontakttechnik GmbH


Hansastrae 27
D-32423 Minden
Phone: +49 (0) 571/8 87 0
Fax:
+49 (0) 571/8 87 1 69
E-Mail: info@wago.com
Web:

http://www.wago.com

Technical Support
Phone: +49 (0) 571/8 87 5 55
Fax:
+49 (0) 571/8 87 85 55
E-Mail: support@wago.com

Every conceivable measure has been taken to ensure the correctness and
completeness of this documentation. However, as errors can never be fully
excluded we would appreciate any information or ideas at any time.
E-Mail: documentation@wago.com
We wish to point out that the software and hardware terms as well as the
trademarks of companies used and/or mentioned in the present manual are
generally trademark or patent protected.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Table of Contents

iii

The chapters 1 14 are placed in Part 1.

TABLE OF CONTENTS
15 Operands in WAGO-I/O-PRO 32 ............................................................ 1
15.1 Operands in WAGO-I/O-PRO 32.......................................................... 1
15.2 Constants in WAGO-I/O-PRO 32 ......................................................... 1
15.2.1
BOOL Constants............................................................................... 1
15.2.2
TIME Constants................................................................................ 1
15.2.3
DATE Constants............................................................................... 1
15.2.4
TIME_OF_DAY Constants .............................................................. 2
15.2.5
DATE_AND_TIME Constants ........................................................ 2
15.2.6
Number Constants ............................................................................ 2
15.2.7
REAL Constants ............................................................................... 3
15.2.8
STRING Constants ........................................................................... 3
15.2.9
Typed Literals................................................................................... 4
15.3 Variables ................................................................................................ 4
15.3.1
System Flags..................................................................................... 5
15.3.2
Accessing variables for arrays, structures and POUs. ...................... 5
15.3.3
Addressing bits in variables.............................................................. 5
15.4 Addresses ............................................................................................... 6
15.4.1
Address ............................................................................................. 6
15.4.2
Memory location location................................................................. 7
15.5 Functions................................................................................................ 7
16 Command Line/Command File Commands............................................ 8
16.1 Command Line Commands ................................................................... 8
16.2 Command File (cmdfile) Commands.................................................... 8
17 Overview WAGO-I/O-PRO 32 Operators............................................. 13
17.1 Overview Operators ............................................................................. 13
18 Compiler Errors and Warnings ............................................................. 20
18.1 Warnings .............................................................................................. 20
18.1.1
Warnings 11xx................................................................................ 20
18.1.2
Warnings 12xx................................................................................ 20
18.1.3
Warnings 13xx................................................................................ 21
18.1.4
Warnings 14xx................................................................................ 21
18.1.5
Warnings 15xx................................................................................ 21
18.1.6
Warnings 16xx................................................................................ 23
18.1.7
Warnings 17xx................................................................................ 23
18.1.8
Warnings 18xx................................................................................ 23
18.1.9
Warnings 19xx................................................................................ 23
18.2 Compiler Errors ................................................................................... 24
18.2.1
Compiler Errors 31xx ..................................................................... 24
18.2.2
Compiler Errors 32xx ..................................................................... 27
18.2.3
Compiler Errors 34xx ..................................................................... 29
18.2.4
Compiler Errors 35xx ..................................................................... 32
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

iv

Table of Contents

18.2.5
18.2.6
18.2.7
18.2.8
18.2.9
18.2.10
18.2.11
18.2.12
18.2.13
18.2.14

Compiler Errors 36xx ..................................................................... 34


Compiler Errors 37xx ..................................................................... 35
Compiler Errors 38xx ..................................................................... 39
Compiler Errors 39xx ..................................................................... 40
Compiler Errors 40xx ..................................................................... 41
Compiler Errors 41xx ..................................................................... 47
Compiler Errors 42xx ..................................................................... 48
Compiler Errors 43xx ..................................................................... 53
Compiler Errors 44xx ..................................................................... 59
Compiler Errors 45xx ..................................................................... 64

19 Quick Start ............................................................................................... 66


19.1 Task...................................................................................................... 66
19.2 Start ...................................................................................................... 66
19.3 PLC_PRG ............................................................................................ 67
19.4 Visualization ........................................................................................ 70
19.5 Simulation mode .................................................................................. 74
19.6 Control mode ....................................................................................... 75
19.7 Documentation..................................................................................... 79
20 Compliance List ....................................................................................... 82
20.1 Tables................................................................................................... 82
21 Bibliography ............................................................................................. 96
21.1 English ................................................................................................. 96
21.2 German................................................................................................. 96
21.3 Web addresses...................................................................................... 97
22 Glossary .................................................................................................... 98
23 Index........................................................................................................ 103
24 Appendix A: Additional Libraries ............................................................i
24.1 Installation of Additional Libraries........................................................ii
25 Appendix B: Communication Drivers ......................................................i
25.1 Installation of Communication Drivers .................................................ii

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Operands in WAGO-I/O-PRO 32

15 Operands in WAGO-I/O-PRO 32
15.1 Operands in WAGO-I/O-PRO 32
Constants, variables, addresses and possibly function calls can appear as
operands.

15.2 Constants in WAGO-I/O-PRO 32


15.2.1

BOOL Constants

BOOL constants are the logical values TRUE and FALSE.

15.2.2

TIME Constants

TIME constants can be declared in WAGO-I/O-PRO 32. These are generally


used to operate the timer in the standard library. A TIME constant is always
made up of an initial "t" or "T" (or "time" or "TIME" spelled out) and a
number sign "#".
This is followed by the actual time declaration which can include days
(identified by "d"), hours (identified by "h"), minutes (identified by "m"),
seconds (identified by "s") and milliseconds (identified by "ms"). Please note
that the time entries must be given in this order according to length (d before h
before m before s before m before ms) but you are not required to include all
time increments.
Examples of correct TIME constants in a ST assignment:
TIME1 := T#14ms;
TIME1 := T#100S12ms; (*The highest component may be
allowed to exceed its limit*)
TIME1 := t#12h34m15s;

the following would be incorrect:


TIME1 := t#5m68s;
component*)

(*limit exceeded in a lower

TIME1 := 15ms;

(*T# is missing*)

TIME1 := t#4ms13d;

(*Incorrect order of entries*)

15.2.3

DATE Constants

These constants can be used to enter dates. A DATE constant is declared


beginning with a "d", "D", "DATE" or "date" followed by "#". You can then
enter any date with format Year-Month-Day.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Constants in WAGO-I/O-PRO 32

Examples:
DATE#1996-05-06
d#1972-03-29

15.2.4

TIME_OF_DAY Constants

Use this type of constant to store times of the day. A TIME_OF_DAY


declaration begins with "tod#", "TOD#", "TIME_OF_DAY#" or
"time_of_day#" followed by a time with the format: Hour:Minute:Second.
You can enter seconds as real numbers or you can enter fractions of a second.
Examples:
TIME_OF_DAY#15:36:30.123
tod#00:00:00

15.2.5

DATE_AND_TIME Constants

Date constants and the time of day can also be combined to form so-called
DATE_AND_TIME constants. DATE_AND_TIME constants begin with
"dt#", "DT#", "DATE_AND_TIME#" or "date_and_time#". Place a hyphen
after the date followed by the time.
Examples:
DATE_AND_TIME#1996-05-06-15:36:30
dt#1972-03-29-00:00:00

15.2.6

Number Constants

Number values can appear as binary numbers, octal numbers, decimal


numbers and hexadecimal numbers. If an integer value is not a decimal
number, you must write its base followed by the number sign (#) in front of
the integer constant. The values for the numbers 10-15 in hexadecimal
numbers will be represented as always by the letters A-F.
You may include the underscore character within the number.
Examples:

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Constants in WAGO-I/O-PRO 32

14

(decimal number)

2#1001_0011

(dual number)

8#67

(octal number)

16#A

(hexadecimal number)

These number values can be from the variable types BYTE, WORD,
DWORD, SINT, USINT, INT, UINT, DINT, UDINT or REAL.
Implicit conversions from "larger" to "smaller" variable types are not
permitted. This means that a DINT variable cannot simply be used as an INT
variable. You must use the type conversion.

15.2.7

REAL Constants

REAL constants can be given as decimal fractions and represented


exponentially. Use the standard American format with the decimal point to do
this.
Example:
7.4 instead of 7,4
1.64e+009 instead of 1,64e+009

15.2.8

STRING Constants

A string is a sequence of characters. STRING constants are preceded and


followed by single quotation marks. You may also enter blank spaces and
special characters (umlauts for instance). They will be treated just like all
other characters.
In character sequences, the combination of the dollar sign ($) followed by two
hexadecimal numbers is interpreted as a hexadecimal representation of the
eight bit character code. In addition, the combination of two characters that
begin with the dollar sign are interpreted as shown below when they appear in
a character sequence:

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Variables

$$

Dollar signs

$'

Single quotation mark

$L or $l

Line feed

$N or $n

New line

$P or $p

Page feed

$R or $r

Line break

$T or $t

Tab

Examples:
'w1W?'
' Abby and Craig '
':-)'

15.2.9

Typed Literals

Basically, in using IEC constants, the smallest possible data type will be used.
If another data type must be used, this can be achieved with the help of typed
literals without the necessity of explicitly declaring the constants. For this, the
constant will be provided with a prefix which determines the type.
This is written as follows: <Type>#<Literal>
<Type> specifies the desired data type; possible entries are: BOOL, SINT,
USINT, BYTE, INT, UINT, WORD, DINT, UDINT, DWORD or REAL. The
type must be written in uppercase letters.
<Literal> specifies the constant. The data entered must fit within the data type
specified under <Type>.
Example:
var1:=DINT#34;

If the constant can not be converted to the target type without data loss, an
error message is issued:
Typed literals can be used wherever normal constants can be used.

15.3 Variables
Variables can be declared either locally in the declaration part of a POU or in
a global variable list.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Variables

The variable identifier may not contain any blank spaces or special characters,
may not be declared more than once and cannot be the same as any of the
keywords. Capitalization is not recognized which means that VAR1, Var1,
and var1 are all the same variable. The underscore character is recognized in
identifiers (e.g., "A_BCD" and "AB_CD" are considered two different
identifiers). An identifier may not have more than one underscore character in
a row. The length of the identifier, as well as the meaningful part of it, are
unlimited.
Variables can be used anywhere the declared type allows for them.
You can access available variables through the Input Assistant.

15.3.1

System Flags

System flags are implicitly declared variables that are different on each
specific PLC. To find out which system flags are available in your system, use
the command 'Insert' 'Operand' An Input Assistant dialog box pops up,
select the category System Variable.

15.3.2
Accessing variables for arrays, structures
and POUs.
Two-dimensional array components can be accessed using the following
syntax:
<Fieldname>[Index1, Index2]

Structure variables can be accessed using the following syntax:


<Structurename>.<Variablenname>

Function block and program variables can be accessed using the following
syntax:
<Functionblockname>.<Variablename>

15.3.3

Addressing bits in variables

In integer variables, individual bits can be accessed. For this, the index of the
bit to be addressed is appended to the variable, separated by a dot. The bitindex can be given by any constant. Indexing is 0-based. Example:
a : INT;
b : BOOL;
...
a.2 := b;

The third bit of the variable a will be set to the value of the variable b.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Addresses

If the index is greater than the bit width of the variable, the following error
message is issued: Index '<n>' outside the valid range for variable '<var>'!
Bit addressing is possible with the following variable types: SINT, INT,
DINT, USINT, UINT, UDINT, BYTE, WORD, DWORD.
If the variable type does not allow it, the following error message is issued:
"Invalid data type '<type>' for direct indexing"
A bit access must not be assigned to a VAR_IN_OUT variable!

15.4 Addresses
15.4.1

Address

The direct display of individual memory locations is done through the use of
special character sequences. These sequences are a concatenation of the
percent sign "%", a range prefix, a prefix for the size and one or more natural
numbers separated by blank spaces.
The following range prefixes are supported:
I

Input

Output

Memory location

The following size prefixes are supported:


X

Single bit

None Single bit


B

Byte (8 Bits)

Word (16 Bits)

Double word (32 Bits)

Examples:

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Operands in WAGO-I/O-PRO 32
Functions

%QX7.5 and
%Q7.5

Output bit 7.5

%IW215

Input word 215

%QB7

Output byte 7

%MD48

Double word in memory position 48 in the


memory location.

%IW2.5.7.1

depending on the PLC Configuration

The current PLC Configuration for the program determines whether or not an
address is valid.
Note:
Boolean values will be allocated bytewise, if no explicit single-bit address
is specified. Example: A change in the value of varbool1 AT %QW0
affects the range from QX0.0 to QX0.7.

15.4.2

Memory location location

You can use any supported size to access the memory location.
For example, the address %MD48 would address bytes numbers 192, 193,
194, and 195 in the memory location area (48 * 4 = 192). The number of the
first byte is 0.
You can access words, bytes and even bits in the same way: the address
%MX5.0 allows you to access the first bit in the fifth word (Bits are generally
saved wordwise).

15.5 Functions
In ST a function call can also appear as an operand.
Example:
Result := Fct(7) + 3;

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Command Line/Command File Commands


Command Line Commands

16 Command Line/Command File Commands


16.1 Command Line Commands
When WAGO-I/O-PRO 32 is started, you can add commands in the
command line which will be asserted during execution of the program. These
commands start with a "/". Capitalization/Use of small letters is not regarded.
The commands will be executed sequentially from the left to the right.
/online

Immediately after start WAGO-I/O-PRO 32 tries to go online with


the current project.

/run

After login WAGO-I/O-PRO 32 starts the application program.


Only valid in combination with /online.

/show ...

Settings for the WAGO-I/O-PRO 32 frame window can be made.

/show hide

The window will not be displayed, it also will not be represented in


the task menu.

/show icon
/show max /show
normal

The window will be minimized in display.


The window will be maximized in display.
The window will be displayed in the same status as it was during the
last closing.

/out <outfile>

All messages are displayed in the message window and additionally


are written in the file <outfile>.

/noinfo

No splash screen at start of WAGO-I/O-PRO 32

/cmd <cmdfile>

After starting the commands of the <cmdfile> get executed.

Example for a command line:


The project ampel.pro gets opened, but no window opens. The commands
included in the command file command.cmd will be executed.
"D:\dir1\WAGO_IO_PRO_32" "C:\projects\ampel.pro" /show hide /cmd
command.cmd

16.2 Command File (cmdfile) Commands


See the following table for a list of commands, which can be used in a
command file (<cmdfile>). The command file you can call by a command line
(see above) aufrufen knnen. Capitalizing/Use of small letters is not regarded.
The command line will be displayed as a message in the message window and
can be given out in a message file (see below). Additionally to the command a
"@" is prefixed. All signs after a semicolon (;) will be ignored (comment).
Commands of the online menu:
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Command Line/Command File Commands


Command File (cmdfile) Commands
online login

Login with the loaded project ('Online Login')

online logout

Logout ('Online' 'Logout')

online run

Start of the application program ('Online' 'Run'

online sim

Switch on of simulation mode 'Online' 'Simulation')

online sim off

Switch off of simulation mode ('Online' 'Simulation')

Commands of the file menu:


file new

A new project is created ('File' 'New')

file open
<projectfile>

The project <projectfile> will be loaded ('File' 'Open')

file close

The current project will be closed ('File' 'Close')

file save

The current project will be stored ('File' 'Save')

file saveas
<projectfile>

The current project will be saved with the file name <projectfile>
('File' 'Save as')

file quit

WAGO-I/O-PRO 32 will be closed ('File' 'Exit')

Commands of the project menu:


project compile or
project build

The project that is loaded will be incrementally compiled ('Project'


'Build')

project rebuild

The project that is loaded will be compiled in full ('Project'


'Rebuild')

project clean

Compilation information and Online Change information in the


current project will be deleted ('Project' 'Clean Project')

project check

The project that is loaded will be checked ('Project' 'Check all')

project compile

The current project will be compiled by "Rebuild all" ('Project'


'Rebuild all')

project check

The current project will be checked ('Project' 'Check')

project build

The current project will be built ('Projekt' 'Build')

project import
<file1> ... <fileN>

The files <file1> ... <fileN> get imported into the current project
('Project' 'Import')

project export
<expfile>

The current project will be exported in the file <expfile> ('Project'


'Export')

project expmul

Each object of the current project will be exported in an own file,


which gets the name of the object.

Commands for the control of the message file:


out open <msgfile> The file <msgfile> opens as message file. New messages will be
appended
out close

The currently shown message file will be closed.

out clear

All messages of the currently opened message file will be deleted.

Commands for the control of messages:


WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

10

Command Line/Command File Commands


Command File (cmdfile) Commands
echo on

The command lines will be displayed as messages.

echo off

The command lines will not be displayed as messages.

echo <text>

<text> will be displayed in the message window.

Commands for the control of replace of objects respectively for the control of files for import,
export, replace:
replace ok

Replace

replace yes
replace no

Do not replace

replace yesall

Replace all

replace noall

Replace none

Commands for the control of the default parameters of WAGO-I/O-PRO 32 dialogs:


query on

Dialogs are displayed and need user input

query off ok

All dialogs respond as if the user had clicked on the 'OK' button

query off no

All dialogs respond as if the user had clicked on the 'No' button

query off cancel

All dialogs respond as if the user had clicked on the 'Cancel' button

Command for calling command files as subprograms:


call <parameter1>
... <parameter10>

Command files will be called as subprograms. Up to 10 parameters


may be passed. In the file that is called, the parameters can be
accessed with $0 - $9.

call <parameter1>
... <parameter10>

Command files are called as subroutines. Up to ten parameters can


be consigned. In the subroutine called you can access the parameters
using $0 - $9.

Setting of directories used by WAGO-I/O-PRO 32:


dir lib <libdir>

Sets <libdir> as the library directory

dir compile
<compiledir>

Sets <compiledir> as the directory for the compilation files

Delaying processing of the CMDFILE:


delay 5000

Waits 5 seconds

Controlling the Watch and Receipt Manager:


watchlist load
<file>

Loads the Watchlist saved as <file> and opens the corresponding


window ('Extras' 'Load Watchlist')

watchlist save
<file>

Saves the current Watchlist as <file> ('Extras' 'Save Watchlist')

watchlist set <text> Gives a previously loaded Watchlist the name <text> ('Extras'
'Rename Watchlist')
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Command Line/Command File Commands


Command File (cmdfile) Commands
watchlist read

Updates the values of the Watch variables ('Extras' 'Read receipt')

watchlist write

Fills the Watch variables with the values found in the Watchlist
('Extras' 'Write receipt')

11

Linking libraries:
library add
<library file1>
<library file2> ..
<library fileN>

Attaches the specified library file to the library list of the currently
open project. If the file path is a relative path, the library directory
entered in the project is used as the root of the path.

library delete
[<library1>
<library2> ..
<libraryN>]

Deletes the specified library, or (if no library name is specified) all


libraries from the library list of the currently open project.

Copying objects:
Copies objects from the specified path of the source project file to
object copy
the target path of the already opened project.
<source project
file> <source path>
If the source path is the name of an object, this will be copied. If it is
<target path>
a folder, all objects below this folder will be copied. In this case, the
folder structure below the source folder will be duplicated.
If the target path does not yet exist, it will be created.

Entering communications parameters (gateway, device):


gateway local

Sets the gateway on the local computer as the current gateway.

gateway tcpip
<Address> <Port>

Sets the gateway in the specified remote computer as the current


gateway.
<Address>: TCP/IP address or hostname of the remote computer
<Port>: TCP/IP port of the remote gateway
Important: Only gateways that have no password set can be reached!

device guid <guid> Sets the device with the specified GUID as the current device.
GUID must have the following format:
{01234567-0123-0123-0123-0123456789ABC}
The curly brackets and the hyphens must appear at the specified
positions.
device instance
<Instance name>

Sets the instance name for the current device to the name specified

device parameter
<Id> <Value>

Assigns the specified value, which will then be interpreted by the


device, to the parameter with the specified ID.

System call:

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

12

Command Line/Command File Commands


Command File (cmdfile) Commands
system
<command>

Carries out the specified operating system command.

Select target system


target <Id>

Sets the target platform for the current project.

Example of a command file:


A command file like shown below will open the project file ampel.pro, will
then load a watch list, which was stored as w.wtc, will then start the
application program and write after 1 second delay - the values of the
variables into the watch list watch.wtc (which will be saved) and will finally
close the project.
file open
C:\work\projects\WAGO_IO_PRO_32_test\ampel.pro
query off ok
watchlist load c:\work\w.wtc
online login
online run
delay 1000
watchlist read
watchlist save c:\work\watch.wtc
online logout
file close

A command file is called in a command line like shown here:


"<path of WAGO-I/O-PRO 32.exe>" /cmd "<path of cmd file>"

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Overview WAGO-I/O-PRO 32 Operators


Overview Operators

13

17 Overview WAGO-I/O-PRO 32 Operators


17.1 Overview Operators
The table shown below shows the operators in ST and IL with the available
modifiers in IL.
The "Where?" column shows which library contains the operator, or whether
it is integrated as an IEC operator in the WAGO-I/O-PRO 32 programming
system.
Take note that for the 'IL operator' column: Only the line in which the operator
is used will be displayed. A prerequisite is that the (first) required operand
have been successfully loaded in the preceding line (e.g. LD in).
The 'Mod. IL' column shows the possible modifiers in IL:
C

The command is only executed if the result of the preceding expression is TRUE.

for JMPC, CALC, RETC: The command is only executed if the result of the
preceding expression is FALSE.

otherwise: negation of the operand (not of the accumulator)

Operator enclosed in brackets: only after the closing bracket is reached will the
operation preceding the brackets be carried out.

Please obtain a detailed description of usage from the appropriate Appendices


concerning IEC operators integrated into WAGO-I/O-PRO 32 resp. the
libraries.
Operator
ST

Operator
AWL

Description

where?

'

String delimiters (e.g.


'string1')

WAGO-I/OPRO 32

..
[]

Size of Array range


(e.g. ARRAY[0..3]
OF INT)

WAGO-I/OPRO 32

Delimiter between
Operand and Type in a
declaration (e.g. var1
: INT;)

WAGO-I/OPRO 32

Termination of
instruction (e.g.
a:=var1;)

WAGO-I/OPRO 32

Dereferenced Pointer
(e.g. pointer1^)

WAGO-I/OPRO 32

Load value of var1 in


buffer

WAGO-I/OPRO 32

LD var1

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Mod.
AWL

14

Overview WAGO-I/O-PRO 32 Operators


Overview Operators

Operator
ST

Operator
AWL

Mod.
AWL

Description

where?

:=

ST var1

Store actual result to


var1

WAGO-I/OPRO 32

S boolvar

Set boolean operand


boolvar exactly then
to TRUE, when the
actual result is TRUE

WAGO-I/OPRO 32

R boolvar

Set boolean operand


boolvar exactly then
to FALSE, when the
actual result is TRUE

WAGO-I/OPRO 32

JMP label

CN

Jump to label

WAGO-I/OPRO 32

<Program name>

CAL prog1

CN

Call program prog1

WAGO-I/OPRO 32

<Instance name>

CAL inst1

CN

Call function block


instance inst1

WAGO-I/OPRO 32

<Fctname>(vx, vy,..)

<Fctname> vx, vy

CN

Call function fctname


and transmit variables
vx, vy

WAGO-I/OPRO 32

RETURN

RET

CN

Leave POU and go


back to caller

WAGO-I/OPRO 32

The value following


the bracket is handled
as operand, the
operation before the
bracket is not
executed before the
expression in the
brackets.

WAGO-I/OPRO 32

Now execute the


operation which has
been set back

WAGO-I/OPRO 32

AND

AND

N,(

Bitwise AND

WAGO-I/OPRO 32

OR

OR

N,(

Bitwise OR

WAGO-I/OPRO 32

XOR

XOR

N,(

Bitwise exclusive OR

WAGO-I/OPRO 32

NOT

NOT

Bitweise NOT

WAGO-I/OPRO 32

ADD

Addition

WAGO-I/OPRO 32

SUB

Subtraction

WAGO-I/OPRO 32

MUL

Multiplication

WAGO-I/OPRO 32
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Overview WAGO-I/O-PRO 32 Operators


Overview Operators
Operator
ST

Operator
AWL

Mod.
AWL

Description

where?

DIV

Division

WAGO-I/OPRO 32

>

GT

Greater than

WAGO-I/OPRO 32

>=

GE

Greater or equal

WAGO-I/OPRO 32

EQ

Equal

WAGO-I/OPRO 32

<>

NE

Not equal

WAGO-I/OPRO 32

<=

LE

Less or equal

WAGO-I/OPRO 32

<

LT

Less than

WAGO-I/OPRO 32

MOD(in)

MOD

Modulo Division

WAGO-I/OPRO 32

INDEXOF(in)

INDEXOF

Internal index of POU


in1; [INT]

WAGO-I/OPRO 32

SIZEOF(in)

SIZEOF

Number of bytes
required for the given
data type of in

WAGO-I/OPRO 32

SHL(K,in)

SHL

Bitwise left-shift of
operator in by K

WAGO-I/OPRO 32

SHR(K,in)

SHR

Bitwise right-shift of
operator in by K

WAGO-I/OPRO 32

ROL(K,in)

ROL

Bitwise rotation to the


left of operator in by
K

WAGO-I/OPRO 32

ROR(K,in)

ROR

Bitwise rotation to the


right of operator in by
K

WAGO-I/OPRO 32

SEL(G,in0,in1)

SEL

Binary selection
between 2 operands
in0 (G is FALSE) and
in1 (G is TRUE)

WAGO-I/OPRO 32

MAX(in0,in1)

MAX

Returns the greater of


2 values

WAGO-I/OPRO 32

MIN(in0,in1)

MIN

Returns the lesser of 2


values in0 and in1

WAGO-I/OPRO 32

LIMIT(MIN,in,Max)

LIMIT

Limits the value range


(in is set back to MIN
or MAX in case of
exceeding the range)

WAGO-I/OPRO 32

MUX(K,in0,...in_n)

MUX

Selectsi the Kth value


out of a group of
values (in0 to In_n)

WAGO-I/OPRO 32

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

15

16

Overview WAGO-I/O-PRO 32 Operators


Overview Operators

Operator
ST

Operator
AWL

ADR(in)

Mod.
AWL

Description

where?

ADR

Address of the
operand in [DWORD]

WAGO-I/OPRO 32

BOOL_TO_<type>(in)

BOOL_TO_<type>

Type conversion of
the boolean operand

WAGO-I/OPRO 32

<type>_TO_BOOL(in)

<type>_TO_BOOL

Type conversion to
BOOL

WAGO-I/OPRO 32

INT_TO_<type>(in)

INT_TO_<type>

Type conversion of an
INT Operand to
anotner elementary
type

WAGO-I/OPRO 32

REAL_TO_<type>(in)

REAL_TO_<type>

Type conversion of an
REAL operand to
anotner elementary
type

WAGO-I/OPRO 32

LREAL_TO_<type>(in)

LREAL_TO_<type>

Type conversion of a
LREAL operand to
anotner elementary
type

WAGO-I/OPRO 32

TIME_TO_<type>(in)

TIME_TO_<type>

Type conversion of a
TIME operand to
anotner elementary
type

WAGO-I/OPRO 32

TOD_TO_<type>(in)

TOD_TO__<type>

Type conversion of a
TOD operand to
anotner elementary
type

WAGO-I/OPRO 32

DATE_TO_<type>(in)

DATE_TO_<type>

Type conversion of a
DATE operand to
anotner elementary
type

WAGO-I/OPRO 32

DT_TO_<type>(in)

DT_TO_<type>

Type conversion of a
DT operand to anotner
elementary type

WAGO-I/OPRO 32

STRING_TO_<type>(in
)

STRING_TO_<type>

Type conversion of a
string operand des
Operanden to anotner
elementary type, in
must contain valid
value of desired type

WAGO-I/OPRO 32

TRUNC(in)

TRUNC

Conversion from
REAL to INT

WAGO-I/OPRO 32

ABS(in)

ABS

Absolut value of
operand in

WAGO-I/OPRO 32

SQRT(in)

SQRT

Square root of
operand in

WAGO-I/OPRO 32

LN(in)

LN

Natural logarithm of
operand in

WAGO-I/OPRO 32

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Overview WAGO-I/O-PRO 32 Operators


Overview Operators
Operator
ST

Operator
AWL

LOG(in)

Description

where?

LOG

Logarithm of operand
in, base 10

WAGO-I/OPRO 32

EXP(in)

EXP

Exponential function
of operand in

WAGO-I/OPRO 32

SIN(in)

SIN

Sine of operand in

WAGO-I/OPRO 32

COS(in)

COS

Cosine of operand in

WAGO-I/OPRO 32

TAN(in)

TAN

Tangent of operand in

WAGO-I/OPRO 32

ASIN(in)

ASIN

Arc sine of operand in

WAGO-I/OPRO 32

ACOS(in)

ACOS

Arc cosine of operand


in

WAGO-I/OPRO 32

ATAN(in)

ATAN

Arc tangent of
operand in

WAGO-I/OPRO 32

EXPT(in,expt)

EXPT expt

Exponentation of
operand in with expt

WAGO-I/OPRO 32

LEN(in)

LEN

String length of
operand in

standard.lib

LEFT(str,size)

LEFT

Left inital string of


given size of string str

standard.lib

RIGHT(str,size)

RIGHT

Right initial string of


given size of string str

standard.lib

MID(str,size)

MID

Partial string of str of


given size

standard.lib

CONCAT('str1','str2')

CONCAT 'str2'

Concatenation of two
subsequent strings

standard.lib

INSERT('str1','str2',pos)

INSERT 'str2',p

Insert string str1 in


String str2 at position
pos

standard.lib

DELETE('str1',len,pos)

DELETE len,pos

Delete partial string


(length len), start at
position pos of str1

standard.lib

REPLACE('str1','str2',len
,pos)

REPLACE
'str2',len,pos

Replace partial string


of lenght len by str2,
start at position pos of
str1

standard.lib

FIND('str1','str2')

FIND 'str2'

Search for partial


string str2 in str1

standard.lib

SR

SR

Bistable FB is set
dominant

standard.lib

RS

RS

Bistable FB is set back

standard.lib

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Mod.
AWL

17

18

Overview WAGO-I/O-PRO 32 Operators


Overview Operators

Operator
ST

Operator
AWL

SEMA

Mod.
AWL

Description

where?

SEMA

FB: Software
Semaphor
(interruptable)

standard.lib

R_TRIG

R_TRIG

FB: rising edge is


detected

standard.lib

F_TRIG

F_TRIG

FB: falling edge is


detected

standard.lib

CTU

CTU

FB: Counts upv

standard.lib

CTD

CTD

FB: Counts down

standard.lib

CTUD

CTUD

FB: Counts up and


down

standard.lib

TP

TP

FB: trigger

standard.lib

TON

TON

FB:
Einschaltverzgerung

standard.lib

TOF

TOF

FB:
Ausschaltverzgerung

standard.lib

RTC

RTC

FB: Laufzeit-Uhr

standard.lib

BCD_TO_INT

BCD_TO_INT

Conversion of a Byte:
BCD to INT format

util.lib

INT_TO_BCD

INT_TO_BCD

Converstion of a Byte:
INT to BCD format

util.lib

EXTRACT(in,n)

EXTRACT n

The n-th bit of


DWORD in is
returned in BOOl

util.lib

PACK

PACK

Up to 8 bits are
packed into a byte

util.lib

PUTBIT

PUTBIT

A bit of a DWORD is
set to a certain value

util.lib

UNPACK

UNPACK

A Byte is returned as
single bits

util.lib

DERIVATIVE

DERIVATIVE

Local derivation

util.lib

INTEGRAL

INTEGRAL

Integral

util.lib

STATISTICS_INT

STATISTICS_INT

Min.,Max, Average
values in INT format

util.lib

STATISTICS_REAL

STATISTICS_REAL

Min.,Max, Average in
REAL format

util.lib

VARIANCE

VARIANCE

Variance

util.lib

PD

PD

PD controller

util.lib

PID

PID

PID controller

util.lib

BLINK

BLINK

Pulsating signal

util.lib

GEN

GEN

Periodic functions

util.lib
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Overview WAGO-I/O-PRO 32 Operators


Overview Operators
Operator
ST

Operator
AWL

CHARCURVE

Description

where?

CHARCURVE

linear functions

util.lib

RAMP_INT

RAMP_INT

Limiting ascendance
of descendance of the
function beeing fed
(INT)

util.lib

RAMP_REAL

RAMP_REAL

Limiting ascendance
of descendance of the
function beeing fed
(REAL)

util.lib

HYSTERESIS

HYSTERESIS

Hysteresis

util.lib

LIMITALARM

LIMITALARM

Watches whether
input value exceeds
limits of a defined
range

util.lib

OPENCOM

OPENCOM

Open a serial port

sercomm.lib

READCOM

READCOM

Read from a serial


port

sercomm.lib

WRITECOM

WRITECOM

Write to a serial port

sercomm.lib

CLOSECOM

CLOSECOM

Close a serial port

sercomm.lib

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Mod.
AWL

19

20

Compiler Errors and Warnings


Warnings

18 Compiler Errors and Warnings


18.1 Warnings
18.1.1

Warnings 11xx

18.1.1.1

1100

"Unknown function '<name>' in library."


An external library is used. Please check, whether all functions, which are
defined in the .hex file, are also defined in the .lib file.
18.1.1.2

1101

"Unresolved symbol '<Symbol>'."


The code generator expects a POU with the name <Symbol>. It is not defined
in the project. Define a function/program with this name.
18.1.1.3

1102

"Invalid interface for symbol '<Symbol>'."


The code generator expects a function with the name <Symbol> and exactly
one scalar input, or a program with the name <Symbol> and no input or
output.
18.1.1.4

1103

"The constant '<name>' at code address '<address>' overwrites a 16K


page boundary!"
A string constant exceeds the 16K page boundary. The system cannot handle
this. It depends on the runtime system whether the problem could be avoided
by an entry in the target file. Please contact the PLC manufacturer.

18.1.2

Warnings 12xx

18.1.2.1

1200

"Task '%s', call of '%Access variables in the parameter list are not
updated"
Variables, which are only used at a function block call in the task
configuration, will not be listed in the cross reference list.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Warnings

18.1.3

Warnings 13xx

18.1.3.1

1300

21

"File not found '<name>'"


The file, to which the global variable object is pointing, does not exist. Please
check the path.
18.1.3.2

1301

"Analyze-Library not found! Code for analyzation will not be


generated."
The analyze function is used, but the library analyzation.lib is missing. Add
the library in the library manager.
18.1.3.3

1302

"New externally referenced functions inserted. Online Change is


therefore no longer possible!"
Since the last download you have linked a library containing functions which
are not yet referenced in the runtime system. For this reason you have to
download the complete project.

18.1.4

Warnings 14xx

18.1.4.1

1400

"Unknown Pragma '<Name>' is ignored!"


This pragma is not supported by the compiler. See keyword pragma for
supported directives.
18.1.4.2

1401

"The struct '<Name>' does not contain any elements."


The structure with name <Name> does not contain any elements. But
Variables of this type will use 1 Byte of memory.

18.1.5

Warnings 15xx

18.1.5.1

1500

"Expression contains no assignment. No code was generated."


The result of this expression is not used. For this reason there is no code
generated for the whole expression.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

22

Compiler Errors and Warnings


Warnings

18.1.5.2

1501

"String constant passed as 'VAR_IN_OUT': '<Name>' must not be


overwritten!"
The constant may not be written within the POU, because there no size check
is possible.
18.1.5.3

1502

"Variable '<Name>' has the same name as a POU. The POU will not be
called!"
A variable is used, which has the same name.
Beispiel:
PROGRAM a
...
VAR_GLOBAL
a: INT;
END_VAR
...
a; (* Not POU a is called but variable a is loaded. *)

18.1.5.4

1503

"The POU <name> has no outputs. Box result is set to 'TRUE'."


The Output pin of a POU which has no outputs, is connected in FBD or KOP.
The assignment automatically gets the value TRUE.
18.1.5.5

1504

"<name> (<number>): Statement may not be executed due to the


evaluation of the logical expression"
Eventually not all branches of the logic expression will be executed.
Example:
IF a AND funct(TRUE) THEN ....

If a has is FALSE then funct will not be called.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Warnings

18.1.5.6

23

1505

"Side effect in '<Name>'! Branch is probably not executed !"


The first input of the POU is FALSE, for this reason the side branch, which
may come in at the second input, will not be executed.
18.1.5.7

1506

"Variable '%s' has the same name as a local action. The action will not be
called!"
Rename the variable or the action.

18.1.6

Warnings 16xx

18.1.6.1

1600

"Open DB unclear (generated code may be erroneous)."


The original Siemens program does not tell, which POU is openend.

18.1.7

Warnings 17xx

18.1.7.1

1700

"Input not connected"


An input box is used in CFC which has no assignment. For this no code will
be generated.

18.1.8

Warnings 18xx

18.1.8.1

1800

"<name>(element #<element number>): Invalid watchexpression '%s'"


The visualization element contains an expression which cannot be monitored.
Check variable name and placeholder replacements.
18.1.8.2

1801

"'<name> (number): No Input on Expression '<name>' possible"


In the configuration of the visualization object at field input a composed
expression is used. Replace this by a single variable.

18.1.9

Warnings 19xx

18.1.9.1

1900

"POU '<name>' (main routine) is not available in the library"


WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

24

Compiler Errors and Warnings


Compiler Errors

The Start-POU (z.B. PLC_PRG) will not be available, when the project is
used as library.
18.1.9.2

1901

"Access Variables and Variable Configurations are not saved in a


library!"
Access variables and variable configuration are not stored in the library.
18.1.9.3

1902

"'<Name>': is no Library for the current machine type!"


The .obj file of the lib was generated for another device.
18.1.9.4

1903

"<Name>: is no valid Library"


The file does not have the format requested for the actual target.

18.2 Compiler Errors


18.2.1

Compiler Errors 31xx

18.2.1.1

3100

"Code too large. Maximum size: '<number>' Byte (<number>K)"


The maximum program size is exceeded. Reduce project size.
18.2.1.2

3101

"Total data too large. Maximum size: '<number>' Byte (<number>K)"


Memory is exceeded. Reduce data usage of the application.
18.2.1.3

3110

"Error in library file '<Name>'."


The .hex file is not in INTEL Hex format.
18.2.1.4

3111

"Library '<Name>' is too large. Maximum size: 64K"


The .hex file exceeds the set maximum size.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.1.5

25

3112

"Nonrelocatable instruction in library."


The .hex file contains a nonrelocatable instruction. The library code cannot be
linked.
18.2.1.6

3113

"Library code overwrites function tables."


The ranges for code and function tables are overlapping.
18.2.1.7

3114

"Library uses more than one segment."


The tables and the code in the .hex file use more than one segment.
18.2.1.8

3115

"Unable to assign constant to VAR_IN_OUT. Incompatible data types."


The internal pointer format for string constants cannot get converted to the
internal pointer format of VAR_IN_OUT, because the data are set "near" but
the string constants are set " huge" or "far". If possible change these target
settings.
18.2.1.9

3120

"Current code-segment exceeds 64K."


The currently generated code is bigger than 64K. Eventually to much
initializing code is created.
18.2.1.10

3121

"POU too large."


A POU may not exceed the size of 64K.
18.2.1.11

3122

"Initialisation too large. Maximum size: 64K"


The initialization code for a function or a structure POU may not exceed 64K.
18.2.1.12

3130

"User-Stack too small: '<number>' DWORD needed, '<number>'


DWORD available."
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

26

Compiler Errors and Warnings


Compiler Errors

The nesting depth of the POU calls is to big. Enter a higher stack size in the
target settings or compile build project without option Debug (can be set in
dialog Project Options Build).
18.2.1.13

3131

"User-Stack too small: '<number>' WORD needed, '<number>' WORD


available."
Please contact the PLC manufacturer.
18.2.1.14

3132

"System-Stack too small: '<number>' WORD needed, '<number>'


WORD available."
Please contact the PLC manufacturer.
18.2.1.15

3150

"Parameter <number> of function '<name>': Cannot pass the result of a


IEC-function as string parameter to a C-function."
Use a intermediate variable, to which the result of the IEC function is
assigned.
18.2.1.16

3160

"Can't open library file '<name>'."


A library <name> is included in the library manager for this project, but the
library file does not exist at the given path.
18.2.1.17

3161

"Library '<name>' contains no codesegment"


A .obj file of a library at least must contain one C function. Insert a dummy
function in the .obj file, which is not defined in the .lib file.
18.2.1.18

3162

"Could not resolve reference in Library '<name>'(Symbol '<name>',


Class '<name>', Type '<name>')"
The .obj file contains a not resolvable reference to another symbol. Please
check-the settings of the C-Compiler.
18.2.1.19

3163

"Unknown reference type in Library '<name>' (Symbol '<name>' , Class


'<name>' , Type '<name>')"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

27

The .obj file contains a reference type, which is not resolvable by the code
generator. Please check-the settings of the C-Compiler.

18.2.2

Compiler Errors 32xx

18.2.2.1

3200

"%s (%d): Boolean expression to complex"


The temporary memory of the target system is insufficient for the size of the
expression. Divide up the expression into several partial expressions thereby
using assignments to intermediate variables.
18.2.2.2

3201

"<name> (<network>): A network must not result in more than 512


bytes of code"
Internal jumps can not be resolved. Activate option "Use 16 bit Sprungoffsets"
in the 68k target settings.
18.2.2.3

3202

"Stack overrun with nested string/array/structure function calls"


A nested function call CONCAT(x, f(i)) is used. This can lead to data loss.
Divde up the call into two expressions.
18.2.2.4

3203

"Expression too complex (too many used adress registers)."


Divide up the assignment in several expressions.
18.2.2.5

3204

"A jump exceeds 32k Bytes"


Jump distances may not be bigger than 32767 bytes.
18.2.2.6

3205

"Internal Error: Too many constant strings"


In a POU there at the most 3000 string constants may be used.
18.2.2.7

3206

"Function block data exceeds maximal size"


A function block may produce maximum 32767 Bytes of code.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

28

Compiler Errors and Warnings


Compiler Errors

18.2.2.8

3207

"Array optimization"
The optimization of the array accesses failed because during index calculation
a function has been called.
18.2.2.9

3208

"Conversion not implemented yet"


A conversion function is used, which is not implemented for the actual code
generator.
18.2.2.10

3209

"Operator not implemented"


A operator is used, which is not implemented for this data type and the actual
code generator. MIN(string1,string2).
18.2.2.11

3210

"Function '<Name>' not found"


A function is called, which is not available in the project.
18.2.2.12

3211

"Max string usage exceeded"


A variable of type string can be used in one expression 10 times at the most.
18.2.2.13

3250

"Real not supported for 8 Bit Controller"


The target is currently not supported.
18.2.2.14

3251

"date of day types are not supported for 8 Bit Controller"


The target is currently not supported.
18.2.2.15

3252

"size of stack exeeds <number> bytes"


The target is currently not supported.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.2.16

3253

"Could not find hex file: '<Name>' "


The target is currently not supported.
18.2.2.17

3254

"Call to external library function could not be resolved."


The target is currently not supported.

18.2.3

Compiler Errors 34xx

18.2.3.1

3400

"An error occured during import of Access variables"


The .exp file contains an incorrect access variables section.
18.2.3.2

3401

"An error occured during import of variable configuration"


The .exp file contains an incorrect configuration variables section.
18.2.3.3

3402

"An error occured during import of global variables"


The .exp file contains an incorrect global variables section.
18.2.3.4

3403

"Could not import <name>"


The section for object <name> in the .exp file is not correct.
18.2.3.5

3404

"An error occured during import of task configuration"


The section for the task configuration the .exp file is not correct.
18.2.3.6

3405

"An error occured during import of PLC configuration"


The section for the PLC configuration in the .exp file is not correct.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

29

30

Compiler Errors and Warnings


Compiler Errors

18.2.3.7

3406

"Two steps with the name '<name'. Second step not imported."
The section for the SFC POU in the .exp file contains two steps with equal
names. Rename one of the steps in the export file.
18.2.3.8

3407

"Predecessor step '<name>' not found"


The step <name> is missing in the .exp file.
18.2.3.9

3408

"Successor step '<name>' not found"


The step <name> is missing in the .exp file.
18.2.3.10

3409

"No successing transition for step '<name>' "


In the .exp file a transition is missing, which requires step <name> as
preceeding step.
18.2.3.11

3410

"No successing step for transition '<name>'"


In the .exp file a step is missing which requires the transition <name> as
preceeding condition.
18.2.3.12

3411

"Step '<name>' not reachable from initial step"


In the .exp file the connection between step <name> and the initial step is
missing.
18.2.3.13

3450

"PDO'<PDO-name>': Missing COB-Id!"


Click on the button Properties in the PLC configuration dialog for the
module and enter a COB ID for the PDO <PDO Name>.
18.2.3.14

3451

"Error during load: EDS-File '<name>' could not be found, but is


referenced in hardware configuration!"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

31

Eventually the device file needed for the CAN configuration is not in the
correct directory. Check the directory setting for configuration files in Project'
'Options' 'Directories'.
18.2.3.15

3452

"The module '<name>' couldn't be created!"


The device file for module <name> does not fit to the current configuration.
Eventually it has been modified since the configuration has been set up in
CoDeSys or it is corrupted.
18.2.3.16

3453

"The channel '<name>' couldn't be created!"


The device file for channel <name> does not fit to the current configuration.
Eventually it has been modified since the configuration has been set up in
CoDeSys or it is corrupted.
18.2.3.17

3454

"The address '<name>' points to an used memory!"


Option 'Check for overlapping addresses' is activated in the dialog Settings
of the PLC configuration and an overlap has been detected. Regard, that the
area check is based on the size which results of the data types of the modules,
not on the size which is given by the entry size in the configuration file.
18.2.3.18

3455

"Error during load: GSD-File '<name>' could not be found, but is


referenced in hardware configuration!"
Eventually the device file required by the Profibus configuration is not in the
correct directory. . Check the directory setting for configuration files in
Project' 'Options' 'Directories'.
18.2.3.19

3456

"The profibus device '<name>' couldn't be created!"


The device file for module <name> does not fit to the current configuration.
Eventually it has been modified since the configuration has been set up in
CoDeSys or it is corrupted.
18.2.3.20

3457

"Error in module description!"


Please check the device file of this module.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

32

Compiler Errors and Warnings


Compiler Errors

18.2.4

Compiler Errors 35xx

18.2.4.1

3500

"No 'VAR_CONFIG' for '<Name>'"


Insert a declaration for this variable in the global variable list which contains
the 'Variable_Configuration'.
18.2.4.2

3501

"No address in 'VAR_CONFIG' for '<name>'."


Assign an address to this variable in the global variable list which contains the
'Variable_Configuration'.
18.2.4.3

3502

"Wrong data type for '<name>' in 'VAR_CONFIG"


In the global variables list which contains the Variable_Configuration the
variable is declared with a different data type than in the POU.
18.2.4.4

3503

"Wrong data type for '<name>' in 'VAR_CONFIG'"


In the global variables list which contains the Variable_Configuration the
variable is declared with a different address than in the POU.
18.2.4.5

3504

"Initial values are not supported for 'VAR_CONFIG"


A variable of the Variable_Configuration is declared with address and initial
value. But an initial value can only be defined for input variables without
address assignment.
18.2.4.6

3505

"<name>is no valid instance path"


The Variable_Configuration contains a nonexisting variable.
18.2.4.7

3506

"Access path expected"


In the global variable list for Access Variables the access path for a variable is
not correct. Correct: <Identifier>:'<Access path>':<Type> <Access mode>

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.4.8

33

3507

"No address specification for 'VAR_ACCESS'-variables"


The global variable list for Access Variables contains an address assignment
for a variable. This is not allowed.
Valid variable definition: <Identifier>:'<Access path>':<Type> <Access
mode>
18.2.4.9

3550

"Duplicate definition of identifier '<name>'"


There are two tasks are defined with an identic same name. Rename one of
them.
18.2.4.10

3551

"The task '<name>' must contain at least one program call"


Insert a program call or delete task.
18.2.4.11

3552

"Event variable '<name>' in task '%s' not defined"


There is an event variable set in the Single field of the task properties dialog
which is not declared globally in the project. Use another variable or define
the variable globally.
18.2.4.12

3553

"Event variable '<name>' in task '%s' must be of type 'BOOL'"


Use a variable of type BOOL as event variable in the Single field of the task
properties dialog.
18.2.4.13

3554

"Task entry '<name>' must be a program or global function block


instance"
In the field Program call a function or a not defined POU is entered. Enter a
valid program name.
18.2.4.14

3555

"The task entry '<name>' contains invalid parameters"


In the field Append program call there are parameters used which do not
comply with the declaration of the program POU.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

34

Compiler Errors and Warnings


Compiler Errors

18.2.5

Compiler Errors 36xx

18.2.5.1

3600

"Implicit variables not found!"


Use command Rebuild all. If nevertheless you get the error message again
please contact the PLC manufacturer.
18.2.5.2

3601

"<name> is a reserved variable name"


The given variable is declared in the project, although it is reserved for the
codegenerator. Rename the variable.
18.2.5.3

3610

" '<Name>' not supported"


The given feature is not supported by the current version of the programming
system.
18.2.5.4

3611

"The given compile directory '<name>' is invalid"


There is an invalid directory given in the Project Options Directories for
the Compile files.
18.2.5.5

3612

"Maximum number of POUs (<number>) exceeded! Compile is aborted."


Too many POUs and data types are used in the project. Modify the maximum
number of POUs in the Target Settings / Memory Layout.
18.2.5.6

3613

"Build canceled"
The compile process was cancelled by the user.
18.2.5.7

3614

"Project must contain a POU named '<name>' (main routine) or a


taskconfiguration"
Create an init POU of type Program (e.g. PLC_PRG) or set up a task
configuration.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.5.8

35

3615

"<Name> (main routine) must be of type program"


A init POU (e.g. PLC_PRG) is used in the project which is not of type
Program.
18.2.5.9

3616

"Programs musn't be implemented in external libraries"


The project which should be saved as an external library contains a program.
This will not be available, when the library will be used.
18.2.5.10

3617

"Out of memory"
Increase the virtual memory capacity of your computer.
18.2.5.11

3618

"BitAccess not supported in current code generator!"


The code generator for the currently set target system does not support bit
access on variables.

18.2.6

Compiler Errors 37xx

18.2.6.1

3700

" POU with name <name>' is already in library '<name>'"


A POU name is used in the project, which is already used for a library POU.
Rename the POU.
18.2.6.2

3701

"Name used in interface is not identical with POU Name"


Use command Project Rename object to rename the POU in the object
organizer, or change the name of the POU in the declaration window. There
the POU name has to be placed next to one of the keywords PROGRAM,
FUNCTION oder FUNCTIONBLOCK..
18.2.6.3

3702

"Overflow of identifier list"


Maximum 100 identifiers can be entered in one variable declaration.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

36

Compiler Errors and Warnings


Compiler Errors

18.2.6.4

3703

"Duplicate definition of identifier '<Name>'"


Take care that there is only one identifier with the given name in the
declaration part of the POU.
18.2.6.5

3704

"data recursion: "<POU 0> -> <POU 1> -> .. -> <POU 0>"
An instance of a functionblock is used, which calls itself.
18.2.6.6

3720

"Address expected after 'AT'"


Add a valid address after the keyword AT or modify the keyword.
18.2.6.7

3721

"Only 'VAR' and 'VAR_GLOBAL' can be located to addresses"


Put the declaration to a VAR or VAR_GLOBAL declaration area.
18.2.6.8

3722

"Only 'BOOL' variables allowed on bit addresses"


Modify the address or modify the type of the variable to which the address is
assigned.
18.2.6.9

3729

"Invalid type '<name>' at address: '<Name>' "


The type of this variable cannot be placed on the given address. Example: For
a target system working with alignment 2 the following declaration is not
valid: var1 AT %IB1:WORD;
18.2.6.10

3740

"Invalid type: '<Name>' "


An invalid data type is used in a variable declaration.
18.2.6.11

3741

"Expecting type specification"


A keyword or an operator is used instead of a valid type identifier.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.6.12

37

3742

"Enumeration value expected"


In the definition of the enumeration type an identifier is missing after the
opening bracket or after a comma between the brackets.
18.2.6.13

3743

"Integer number expected"


Enumerations can only be initialized with numbers of type INT.
18.2.6.14

3744

"Enum constant '<name>' already defined"


Check if you have followed the following rules for the definition of
enumeration values:
Within one enum definition all values have to be unique.
Within all global enum definitions all values have to be unique.
Within all local enum definitions all values have to be unique.
18.2.6.15

3745

"Subranges are only allowed on Integers!"


Subrange types can only be defined resting on integer data types.
18.2.6.16

3746

"Subrange '<name>' is not compatible with Type '<name>'"


One of the limits set for the range of the subrange type is out of the range
which is valid for the base type.
18.2.6.17

3747

"unknown string length: '<name>'"


There is a not valid constant used for the definition of the string length.
18.2.6.18

3748

"More than three dimensions are not allowed for arrays"


More than the allowed three dimensions are given in the definition of an array.
If applicable use an ARRAY OF ARRAY.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

38

Compiler Errors and Warnings


Compiler Errors

18.2.6.19

3749

"lower bound '<name>' not defined"


There is a not defined constant used to define the lower limit for a subrange or
array type.
18.2.6.20

3750

"upper bound '<name>' not defined"


There is a not defined constant used to define the upper limit for a subrange or
array type.
18.2.6.21

3760

"Error in inital value"


Use an initial value which corresponds to the type definition. To change the
declaration you can use the declaration dialog for variables (Shift/F2 or
'Edit''Autodeclare').
18.2.6.22

3761

"'VAR_IN_OUT' variables must not have an inital value."


Remove the initialization at the declaration of the VAR_IN_OUT variable.
18.2.6.23

3780

"'VAR', 'VAR_INPUT', 'VAR_OUTPUT' or 'VAR_IN_OUT' expected"


The first line following the name of a POU must contain one of these
keywords.
18.2.6.24

3781

"'END_VAR' or identifier expected"


Enter a valid identifier of a END_VAR at the beginning of the given line in
the declaration window.
18.2.6.25

3782

"Unexpected end"
In the declaration editor: Add keyword END_VAR at the end of the
declaration part.
In the texteditor of the programming part: Add an instruction which terminates
the last instruction sequence (e.g. END_IF).
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.6.26

39

3783

"END_STRUCT' or identifier expected"


Ensure that the type declaration is terminated correctly.

18.2.7

Compiler Errors 38xx

18.2.7.1

3800

"The global variables need too much memory. Increase the available
memory in the project options."
Increase the number of segments given in the settings in dialog Project
Options Build.
18.2.7.2

3801

"Die Variable '<Name>' ist zu gro. (<Gre> Byte)"


The variable uses a type which is bigger than 1 data segment. The segment
size is a target specific parameter and can be modified in the target
settings/memory layout. If you do not find this in the current target settings,
please contact your PLC manufacturer.
18.2.7.3

3802

"Out of retain memory. Variable '<name>', <number> bytes."


The memory space available for Retain variables is exhausted. The size of the
memory area can be set target-specific in the target settings /memory layout. If
you do not find the settings field in the dialog, please contact your PLC
manfacturer. (Please regard: If retain variables are used in an function block
instance, the complete instance POU will be stored in the retain memory area
!)
18.2.7.4

3803

"Out of global data memory. Variable '<name>', <number> bytes."


The memory space available for global variables is exhausted. Der verfgbare
Speicherplatz fr globale Variablen ist erschpft. The size of the memory area
can be set target-specific in the target settings /memory layout. If you do not
find the settings field in the dialog, please contact your PLC manfacturer.
18.2.7.5

3820

"'VAR_OUTPUT' and 'VAR_IN_OUT' not allowed in functions"


In a function no output or in_output variables may be defined.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

40

Compiler Errors and Warnings


Compiler Errors

18.2.7.6

3821

"At least one input required for functions"


Add at least on input parameter for the function.
18.2.7.7

3840

"Unknown global variable '<name>'!"


In the POU a VAR_EXTERNAL variable is used, for which no global
variable declared.
18.2.7.8

3841

"Declaration of '<name>' do not match global declaration!"


The type given in the declaration of the VAR_EXTERNAL variable is not the
same as that in the global declaration.

18.2.8

Compiler Errors 39xx

18.2.8.1

3900

"Multiple underlines in indentifier"


Remove multiple underlines in the identifier name.
18.2.8.2

3901

"At most 4 numerical fields allowed in addresses"


There is a direct assignment to an address which has more than four levels.
(e.g. %QB0.1.1.0.1).
18.2.8.3

3902

"Keywords must be uppercase"


Use capital letters for the keyword or activate option Autoformat in Project
Options.
18.2.8.4

3903

"Invalid duration constant"


The notation of the constant does not comply with the IEC61131-3 format.
18.2.8.5

3904

"Overflow in duration constant"


WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

41

The value used for the time constant cannot be represented in the internal
format. The maximum value which is representable is t#49d17h2m47s295ms.
18.2.8.6

3905

"Invalid date constant"


The notation of the constant dies not comply with the IEC61131-3 format.
18.2.8.7

3906

"Invalid time of day constant"


The notation of the constant dies not comply with the IEC61131-3 format.
18.2.8.8

3907

"Invalid date and time constant"


The notation of the constant dies not comply with the IEC61131-3 format.
18.2.8.9

3908

"Invalid string constant"


The string constant contains an invalid character.

18.2.9

Compiler Errors 40xx

18.2.9.1

4000

"Identifier expected"
Enter a valid identifier at this position.
18.2.9.2

4001

"Variable '<Name>' not declared"


Declare variable local or global.
18.2.9.3

4010

"Type mismatch: Cannot convert '<Name>' to '<Name>'."


Check what data type the operator expects (Browse Online Help for name of
operator) and change the type of the variable which has caused the error, or
select another variable.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

42

Compiler Errors and Warnings


Compiler Errors

18.2.9.4

4011

"Type mismatch in parameter '<Name>' of '<Name>': Cannot convert


'<Name>' to '<Name>'."
The data type of the actual parameter cannot be automatically converted to
that of the formal parameter. Use a type conversion or use another variable
type.
18.2.9.5

4012

"Type mismatch in parameter '<Name>' of '<Name>': Cannot convert


'<Name>' to '<Name>'."
A value with the invalid type <Typ2> is assigned to the input variable
'<Name>'. Replace the variable or constant to one of type <Typ1> or use a
type conversion respectively a constant with type-prefix..
18.2.9.6

4013

"Type mismatch in output '<Name>' of '<Name>': Cannot convert


'<Name>' to '<Name>'."
A value with the invalid type <Typ2> is assigned to the output variable
'<Name>'. Replace the variable or constant to one of type <Typ1> or use a
type conversion respectively a constant with type-prefix..
18.2.9.7

4014

"Typed literal: Cannot convert '<name>' to '<name>'"


The type of the constant is not compatible with the type of the prefix.
Example: SINT#255
18.2.9.8

4015

"Data type <name>' illegal for direct bit access"


Direct bit addressing is only allowed for Integer- and Bitstring datatypes. You
are using a variable var1 of type Typ REAL or a constant in bit access
<var1>.<bit>.
18.2.9.9

4016

"Bit index '<number>' out of range for variable of type '<name>'"


You are trying to access a bit which is not defined for the data type of the
variable.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.9.10

43

4017

"'MOD' is not defined for 'REAL'"


The operator MOD can only be used for integer and bitstring data types.
18.2.9.11

4020

"Variable with write access or direct address required for 'ST', 'STN', 'S',
'R'"
Replace the first operand by a variable with write access.
18.2.9.12

4021

"No write access to variable '%s' allowed"


Replace the variable by a variable with write access.
18.2.9.13

4022

"Operand expected"
Add an operand behind the command.
18.2.9.14

4023

"Number expected after '+' or '-'"


Enter a digit.
18.2.9.15

4024

"<Operator 0> or <Operator 1> or ... expected before '<Name>'"


Enter a valid operand at the named position.
18.2.9.16

4025

"':=' or '=>' expected before '<Name>'"


Enter one of the both operators at the named position.
18.2.9.17

4026

"'BITADR' expects a bit address or a variable on a bit address"


Use a valid bit address (e.g. %IX0.1).
18.2.9.18

4027

"Integer number or symbolic constant expected"


WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

44

Compiler Errors and Warnings


Compiler Errors

Enter a integer number or the identifier of a valid constant.


18.2.9.19

4028

"'INI' operator needs function block instance or data unit type instance"
Check the data type of the variable, for which the INI operator is used.
18.2.9.20

4029

"Nested calls of the same function are not possible."


At not reentrant target systems and in simulation mode a function call may not
contain a call of itself as a parameter.
Example: fun1(a,fun1(b,c,d),e);
Use a intermediate table.
18.2.9.21

4030

"Expressions and constants are not allowed as operands of 'ADR'"


Replace the constant or the expression by a variable or a direct address.
18.2.9.22

4031

"'ADR' is not allowed on bits! Use 'BITADR' instead."


Use BITADR. Please note: The BITADR function does not return a physical
memory address
18.2.9.23

4032

"<number> operands are too few for '<name>'. At least <number> are
needed"
Check how many operands the named operator requires and add the missing
operands.
18.2.9.24

4033

"<number> operands are too many for '<name>'. At least <number>


are needed"
Check how many operands the named operator requires and remove the
surplus operands.
18.2.9.25

4034

"Division by 0"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

45

You are using a division by 0 in a constant expression. If you want to


provocate a runtime error, use if applicable - a variable with the value 0.
18.2.9.26

4035

"ADR must not be applied on 'VAR CONSTANT' if 'replaced constants'


is activated"
An address access on constants for which the direct values are used, is not
possible. If applicable, deactivate the option Replace Constants in Project
Options Build.
18.2.9.27

4040

"Label '<name>' is not defined"


Define a label with the name <LabelName> or change the name
<LabelName> to that of a defined label.
18.2.9.28

4041

"Duplicate definition of label '<name>'"


The label '<Name>' is multiple defined in the POU. Rename the label or
remove one of the definitions.
18.2.9.29

4042

"No more than %d labels in sequence are allowed"


The number of jump labels is limited to '<Anzahl>'. Insert a dummy
instruction.
18.2.9.30

4043

"Format of label invalid. A label must be a name optionally followed by a


colon."
The label name is not valid or the colon is missing in the definition.
18.2.9.31

4050

"POU '%s' is not defined"


Define a POU with the name '<Name>' using the command Project Add
Object or change '<Name>' to the name of a defined POU.
18.2.9.32

4051

"'%s' is no function"

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

46

Compiler Errors and Warnings


Compiler Errors

Use instead of <Name> a function name which is defined in the project or in


the libraries.
18.2.9.33

4052

"'%s' must be a declared instance of FB '%s'"


Use an instance of data type '<Name>' which is defined in the project or
change the type of <Instance name> to '<Name>' .
18.2.9.34

4053

"'%s' is no valid box or operator"


Replace '<Name>' by the name of a POU or an operator defined in the project.
18.2.9.35

4054

"POU name expected as parameter of 'INDEXOF'"


The given paramter is not a valid POU name.
18.2.9.36

4060

"'VAR_IN_OUT' parameter '%s' of '%s' needs variable with write


access as input"
To VAR_IN_OUT parameters variables with write access have to be handed
over, because a VAR_IN_OUT can be modified within the POU.
18.2.9.37

4061

"'VAR_IN_OUT' parameter '%s' of '%s' must be used."


A VAR_IN_OUT parameter must get handed over a variable with write
access, because a VAR_IN_OUT can be modified within the POU
18.2.9.38

4062

"No external access to 'VAR_IN_OUT' parameter '%s' of '%s'."


VAR_IN_OUT Parameter only may be written or read within the POU,
because they are handed over by reference.
18.2.9.39

4063

"'VAR_IN_OUT' parameter '%s' of '%s' must not be used with bit


addresses."
A bit address is not a valid physical address. Hand over a variable or a direct
non-bit address.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.9.40

47

4064

"'VAR_IN_OUT' must not be overwritten in local action call!"


Delete the parameters set for the VAR_IN_OUT variable in the local action
call.
18.2.9.41

4070

"The POU contains a too complex expression"


Decrease nesting depth by dividing up the expression into several expressions.
Use intermediate variables for this purpose.
18.2.9.42

4071

"Network too complex"


Divide up the network into several networks.

18.2.10

Compiler Errors 41xx

18.2.10.1

4100

"'^' needs a pointer type"


You are trying to dereference a variable which is not declared as a pointer.
18.2.10.2

4110

"'[<index>]' needs array variable"


[<index>] is used for a variable which is not declared as an array with
ARRAY OF.
18.2.10.3

4111

"Index expression of an array must be of type 'INT'"


Use an expression of the correct type or a type conversion.
18.2.10.4

4112

"Too many indexes for array"


Check the number of indices (1, 2, oder 3), for which the array is declared and
remove the surplus.
18.2.10.5

4113

"Too few indexes for array"


WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

48

Compiler Errors and Warnings


Compiler Errors

Check the number of indices (1, 2, oder 3), for which the array is declared and
add the missing ones.
18.2.10.6

4114

"One of the constant indizes is not within the array range"


Make sure that the used indices are within the bounds of the array.
18.2.10.7

4120

"'.' needs structure variable""


The identifier on the left hand of the dot must be a variable of type STRUCT
or FUNCTION_BLOCK or the name of a FUNCTION or a PROGRAM.
18.2.10.8

4121

" '<Name>' is not a component of <object name>"


The component '<Name>' is not included in the definition of the object
<object name>.
18.2.10.9

4122

"'%s' is not an input variable of the called function block"


Check the input variables of the called function block and change <name>' to
one of these.

18.2.11

Compiler Errors 42xx

18.2.11.1

4200

"'LD' expected"
Insert at least one LD instruction after the jump label in the IL editor.
18.2.11.2

4201

"IL Operator expected"


Each IL instruction must start with an operator or a jump label.
18.2.11.3

4202

"Unexpected end of text in brackets"


Insert a closing bracket after the text.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.11.4

4203

"<Name> in brackets not allowed"


The operator <name> is not valid in a IL bracket expression.
(not valid are: 'JMP', 'RET', 'CAL', 'LDN', 'LD', 'TIME')
18.2.11.5

4204

"Closing bracket with no corresponding opening bracket"


Insert an opening bracket or remove the closing one.
18.2.11.6

4205

"No comma allowed after ')'"


Remove comma after closing bracket.
18.2.11.7

4206

"Label in brackets not allowed"


Shift jump label so that it is outside of the brackets.
18.2.11.8

4207

"'N' modifier requires operand of type 'BOOL','BYTE','WORD' or


'DWORD'"
The N modifier requires a data type, for which a boolean negation can be
executed.
18.2.11.9

4208

"Conditional Operator requires type 'BOOL'"


Make sure that the expression gives out a boolean result or use a type
conversion.
18.2.11.10 4209
"Function name not allowed here"
Replace the function call by a variable or a constant.
18.2.11.11 4210
"'CAL', 'CALC' and 'CALN' require a function block instance as
operand"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

49

50

Compiler Errors and Warnings


Compiler Errors

Declare an instance of the function block which you want to call.


18.2.11.12 4211
"Comments are only allowed at the end of line in IL"
Shift the comment to the end of the line or to an extra line.
18.2.11.13 4212
"Accumulator is invalid before conditional statement"
The accu is not defined. This happens if an instruction is preceeding which
does not submit a result (e.g. 'CAL').
18.2.11.14 4213
"'S' and 'R' require 'BOOL' operand"
Use a boolean variable at this place.
18.2.11.15 4250
"Another 'ST' statement or end of POU expected"
The line does not start with a valid ST instruction.
18.2.11.16 4251
"Too many parameters in function '%s'"
There are more parameters given than are declared in the definition of the
function.
18.2.11.17 4252
"Too few parameters in function '%s'"
There are less parameters given than are declared in the definition of the
function.
18.2.11.18 4253
"'IF' or 'ELSIF' require 'BOOL' expression as condition"
Make sure that the condition for IF or ELSIF is a boolean expression.
18.2.11.19 4254
"'WHILE' requires 'BOOL' expression as condition"
Make sure that the condition following the WHILE is a boolean expression.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

51

18.2.11.20 4255
"'UNTIL' requires 'BOOL' expression as condition"
Make sure that the condition following the UNTIL is a boolean expression.
18.2.11.21 4256
"'NOT' requires 'BOOL' operand"
Make sure that the condition following the NOT is a boolean expression.
18.2.11.22 4257
"Variable of 'FOR' statement must be of type 'INT'"
Make sure that the counter variable is of an integer or bitstring data type (e.g.
DINT, DWORD).
18.2.11.23 4258
"Expression in 'FOR' statement is no variable with write access"
Replace the counter variable by a variable with write access.
18.2.11.24 4259
"Start value in 'FOR' statement is no variable with write access"
The start value in the FOR' instruction must be compatible to the type of the
counter variable.
18.2.11.25 4260
"End value of 'FOR' statement must be of type 'INT'"
The end value in the FOR' instruction must be compatible to the type of the
counter variable.
18.2.11.26 4261
"Increment value of 'FOR' statement must be of type 'INT'"
The incremental value in the FOR' instruction must be compatible to the type
of the counter variable.
18.2.11.27 4262
"'EXIT' outside a loop"
Use 'EXIT' only within 'FOR', 'WHILE' or 'UNTIL' instructions.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

52

Compiler Errors and Warnings


Compiler Errors

18.2.11.28 4263
"Expecting Number, 'ELSE' or 'END_CASE'"
Within a CASE' expression you only can use a number or a 'ELSE'
instruction or the ending instruction 'END_CASE'.
18.2.11.29 4264
"'CASE' requires selector of an integer type"
Make sure that the selector is of an integer or bitstring data type (e.g. DINT,
DWORD).
18.2.11.30 4265
"Number expected after ','"
In the enumeration of the CASE selectors there must be inserted a further
selector after a comma.
18.2.11.31 4266
"At least one statement is required"
Insert an instruction, at least a semicolon.
18.2.11.32 4267
"Function block call requires function block instance"
The identifier in the functionblock call is no instance. Declare an instance of
the desired functionblock or use the name of an already defined instance.
18.2.11.33 4268
"Expression expected"
An dieser Stelle mu ein Ausdruck eingegeben werden.
18.2.11.34 4269
"'END_CASE' expected after 'ELSE'-branch"
Terminate the 'CASE' instruction after the 'ELSE' part with an 'END_CASE'.
18.2.11.35 4270
"'CASE' constant '%ld' already used"
A 'CASE' selector may only be used once within a CASE' instruction.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

53

18.2.11.36 4271
"The lower border of the range is greater than the upper border."
Modify the area bounds for the selectors so that the lower border is not highte
than the upper border.
18.2.11.37 4272
"Exptecting parameter '%s' at place %d in call of '%s'!"
You can edit a function call in that way, that also the parameter names are
contained, not only the parameter values. But nevertheless the position
(sequence) of the parameters must be the same as in the function definition.
18.2.11.38 4273
"Parts of the 'CASE'-Range '%ld..%ld' already used in Range
'%ld..%ld'"
Make sure that the areas for the selectors which are used in the CASE
instruction, dont overlap.
18.2.11.39 4274
"Multiple 'ELSE' branch in 'CASE' statement"
A CASE instruction may not contain more than one ELSE' instruction.

18.2.12

Compiler Errors 43xx

18.2.12.1

4300

"Jump requires 'BOOL' as input type"


Make sure that the input for the jump respectively the RETURN instruction is
a boolean expression.
18.2.12.2

4301

"POU '%s' need exactly %d inputs"


The number of inputs does not correspond to the number of VAR_INPUT and
VAR_IN_OUT variables which is given in the POU definition.
18.2.12.3

4302

"POU '%s' need exactly %d outputs"


The number of outputs does not correspond to the number of VAR_OUTPUT
variables which is given in the POU definition..
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

54

Compiler Errors and Warnings


Compiler Errors

18.2.12.4

4303

"'%s' is no operator"
Replace '<Name>' by a valid operator.
18.2.12.5

4320

"Non-boolean expression '<name>' used with contact"


The switch signal for a contact must be a boolean expression.
18.2.12.6

4321

"Non-boolean expression '<name>' used with coil"


The output variable of a coil must be of type BOOL.
18.2.12.7

4330

"Expression expected at input 'EN' of the box '<name>' "


Assign an input or an expression to the input EN of POU '<Name>.
18.2.12.8

4331

"Expression expected at input '<number>' of the box '<Name>' "


The input <number> of the operator POU is not assigned.
18.2.12.9

4332

Expression expected at input '<name>' of the box '<Name>'"


The input of the POU is of type VAR_IN_OUT and is not assigned.
18.2.12.10 4333
"Identifier in jump expected"
The given jump mark is not a valid identifier.
18.2.12.11 4334
"Expression expected at the input of jump"
Assign a boolean expression to the input of the jump. If this is TRUE, the
jump will be executed.
18.2.12.12 4335
"Expression expected at the input of the return"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

55

Assign a boolean expression to the input of the RETURN instruction. If this is


TRUE, the jump will be executed.
18.2.12.13 4336
"Expression expected at the input of the output"
Assign a suitable expression to the output box.
18.2.12.14 4337
"Identifier for input expected"
Insert a valid expression or identifier in the input box.
18.2.12.15 4338
"Box '%s' has no inputs"
To none of the inputs of the operator POU '<Name>' a valid expression is
assigned.
18.2.12.16 4339
"Typemismatch at output: Cannot convert '<name>' to '<name>'.
The type of the expression in the output box is not compatible to that of the
expression which should be assigned to it.
18.2.12.17 4340
"Jump requires 'BOOL' as input type"
Make sure that the input for the jump is a boolean expression.
18.2.12.18 4341
"Return requires 'BOOL' as input type "
Make sure that the input for the RETURN instruction is a boolean expression.
18.2.12.19 4342
"Expression expected at input 'EN' of the box '<name>'"
Assign a valid boolean expression to the EN input of the box.
18.2.12.20 4343
"Values of Constants: <name>"

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

56

Compiler Errors and Warnings


Compiler Errors

Input '<Name>' of box '<Name>' is declared as VAR_INPUT CONSTANT.


But to this POU box an expression has been assigned in the dialog 'Edit
Parameters' which is not type compatible.
18.2.12.21 4344
"'S' and 'R' require 'BOOL' operand"
Insert a valid boolean expression after the Set resp. Reset instruction.
18.2.12.22 4345
"Unzulssiger Typ fr Parameter '<Name>' von '<Name>': Kann
'<Typ>' nicht in '<Typ>' konvertieren."
An expression is assigned to input '<Name>' of POU box '<Name>' which is
not type compatible.
18.2.12.23 4346
"Not allowed to use a constant as an output"
You can only assign an output to a variable or a direct address with write
access.
18.2.12.24 4347
"'VAR_IN_OUT' parameter needs variable with write access as input"
To VAR_IN_OUT parameters only variables with write access can be handed
over, because these can be modified within the POU.
18.2.12.25 4350
"An SFC-Action can not be accessed from outside!"
SFC actions only can be called within the SFC POU in which they are defined.
18.2.12.26 4351
"Step name is no identifier: '<name>'"
Rename the step or choose a valid identifier as step name.
18.2.12.27 4352
"Extra characters following valid step name:'<Name>'"
Remove the not valid characters in the step name.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

57

18.2.12.28 4353
"Step name duplicated: '<Name>'"
Rename one of the steps.
18.2.12.29 4354
"Jump to undefined Step: '<Name>'"
Choose an existent step name as aim of the jump resp. insert a step with name
<name>.
18.2.12.30 4355
"A transition must not have any side effects (Assignments, FB-Calls etc.)"
A transition must be a boolean expression.
18.2.12.31 4356
"Jump without valid Step Name: '<Name>' "
Use a valid identifier as aim (mark) of the jump.
18.2.12.32 4357
"IEC-Library not found"
Check whether the library iecsfc.lib is inserted in the library manager and
whether the library paths defined in Project Options Pathsare correct.
18.2.12.33 4358
"Action not declared: '%s'"
Make sure that in the object organizer the action of the IEC step is inserted
below the SFC POU and that in the editor the action name is inserted in the
box on the right hand of the qualifier.
18.2.12.34 4359
"Invalid Qualifier: '%s'"
In the box on the left hand of the action name enter a qualifier for the IEC
action.
18.2.12.35 4360
"Time Constant expected after qualifier '%s'"

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

58

Compiler Errors and Warnings


Compiler Errors

Enter next to the box on the left hand of the action name a time constant
behind the qualifier.
18.2.12.36 4361
"'%s' is not the name of an action"
Enter next to the box on the right hand of the qualifier the name of an action or
the name of a variable which is defined in the project.
18.2.12.37 4362
"Nonboolean expression used in action: '%s'"
Insert a boolean variable or a valid action name.
18.2.12.38 4363
"IEC-Step name already used for variable: '<Name>'"
Please rename the step or the variable.
18.2.12.39 4364
"A transition must be a boolean expression"
The result of the transition expression must be of type BOOL.
18.2.12.40 4365
"Time Constant expected after qualifier '<name>'"
Open dialog step attributes for the step '<Name>' and enter a valid time
variable or time constant
18.2.12.41 4366
"The label of the parallel branch is no valid identifier: '<Name>'"
Enter a valid identifier next to the triangle which marks the jump label.
18.2.12.42 4367
"The label '<name>' is already used"
There is already a jump label or a step with this name. Please rename
correspondingly.
18.2.12.43 4368
"Action '<name>' is used in multiple step chains, where one is containing
the other!"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

59

The action '<Name>' is used in the POU as well as in one or several actions of
the POU.
18.2.12.44 4369
"Exactly one network requried for a transition"
There are used several FBD resp. LD networks for a transition. Please reduce
to 1 network.
18.2.12.45 4370
"Additional lines found after correct IL-transition"
Remove the not needed lines at the end of the transition.
18.2.12.46 4371
"Invalid characters following valid expression: '<name>"
Remove the not needed characters at the end of the transition.

18.2.13

Compiler Errors 44xx

18.2.13.1

4400

"Import / conversion of POU '%s' contains errors resp. is not complete."


The POU cannot be converted to IEC 61131-3 completely.
18.2.13.2

4401

"S5 time constant %lu seconds is too big (max. 9990s)."


There is no valid BCD coded time in the accu.
18.2.13.3

4402

"Direct access only allowed for I/Os."


Make sure that you only access variables which are defined as input or output.
18.2.13.4

4403

"STEP5/7 instruction invalid or not convertible to IEC 61131-3."


Some STEP5/7 commands are not convertable ato IEC 61131-3, e.g. CPU
commands like MAS.
18.2.13.5

4404

"STEP5/7 operand invalid or not convertible to IEC 61131-3."


WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

60

Compiler Errors and Warnings


Compiler Errors

Some STEP5/7 operands are not convertable ato IEC 61131-3 respectively an
operand is missing.
18.2.13.6

4405

"Reset of a STEP5/7 timer cannot be converted into IEC 61131-3."


The corresponding IEC timer have no reset input.
18.2.13.7

4406

"STEP5/7 Counter constant out of range (max. 999)."


There is no valid BCD coded ckounter constant in the accu.
18.2.13.8

4407

"STEP5 instruction not convertible to IEC 61131-3."


Some STEP5/7 instructions cannot be converted to IEC 61131-3, e.g. DUF.
18.2.13.9

4408

"Bit access of timer or counter words not convertible into IEC 61131-3."
Special timer/counter commands are not convertable into IEC 61131-3.
18.2.13.10 4409
"Contents of ACCU1 or ACCU2 undefined, not convertible into IEC
61131-3."
A command, which connects the both accus, cannot be converted, because the
accu values are not defined.
18.2.13.11 4410
"Called POU not in project."
Import the called POU.
18.2.13.12 4411
"Error in global variable list."
Please check the SEQ file.
18.2.13.13 4412
"Internal error no.11"
Please contact the PLC manufacturer.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

61

18.2.13.14 4413
"Error in format of line in data block"
In the code which should be imported there is an errouneous date.
18.2.13.15 4414
"FB/FX name missing."
In the original S5D file the symbolic name of an (extended) POU is missing.
18.2.13.16 4415
"Instruction after block end not allowed."
A protected POU cannot get imported.
18.2.13.17 4416
"Invalid command"
The S5/S7 commandcannot be disassembled.
18.2.13.18 4417
"Comment not closed"
Close the comment with "*)".
18.2.13.19 4418
"FB/FX-Name too long (max. 8 characters)"
The symbolic name of an (extended) POU is to long.
18.2.13.20 4419
"Expected format of line ""(* Name: <FB/FX-Name> *)"" "
Correct the line correspondingly.
18.2.13.21 4420
"Name of FB/FX parameter missing"
Check the POUs.
18.2.13.22 4421
"Type of FB/FX parameter invalid"
Check the POUs.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

62

Compiler Errors and Warnings


Compiler Errors

18.2.13.23 4422
"Type of FB/FX parameter missing"
Check the POUs.
18.2.13.24 4423
"Invalid FB/FX call parameter"
Check the interface of the POU.
18.2.13.25 4424
"Warning: FB/FX for call either missing or parameters invalid or has '0'
parameters"
The called POU is not imported yet or is not correct or has no parameters (in
the last case you can ignore the error message).
18.2.13.26 4425
"Definition of label missing"
The aim (label) of the jump is not defined.
18.2.13.27 4426
"POU does not have a valid STEP 5 block name, e.g. PB10"
Modify the POU name.
18.2.13.28 4427
"Timer type not declared"
Add a declaration of the timer in the global variables list.
18.2.13.29 4428
"Maximum number of open STEP5 brackets exceeded"
You may not use more than seven open brackets.
18.2.13.30 4429
"Error in name of formal parameter"
The parameter name may not exceed four characters.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.13.31 4430
"Type of formal parameter not IEC-convertible"
In IEC 61131-3 Timer, counter and POUs cannot be converted as formal
parameters.
18.2.13.32 4431
"Too many 'VAR_OUTPUT' parameters for a call in STEP5 STL"
A POU may not contain more than 16 formal parameters as outputs.
18.2.13.33 4432
"Labels within an expression are not allowed"
In IEC 61131-3 jump labels may not be inserted at any desired position.
18.2.13.34 4434
"Too many labels"
A POU may not contain more than 100 labels.
18.2.13.35 4435
"After jump / call, a new expression must start"
After jump or call a Load command LD must follow.
18.2.13.36 4436
"Bit result undefined, not convertible to IEC 61131-3."
The command which is used by VKE verwendet cannot get converted,
because the value of the VKE is not known.
18.2.13.37 4437
"Type of instruction and operand are not compatible"
A bit command is used for a word operand or the other way round.
18.2.13.38 4438
"No data block opened (insert instruction C DB before)"
Insert an "A DB".

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

63

64

Compiler Errors and Warnings


Compiler Errors

18.2.14

Compiler Errors 45xx

18.2.14.1

4500

"Unrecognized variable or address"


The watch variable is not declared within the project. By pressing <F2> you
get the input assistant which lists the declared variables.
18.2.14.2

4501

"Extra characters following valid watch expression"


Remove the surplus signs.
18.2.14.3

4520

"Error in Pragma: Flag expected before '<Name>'!"


The pragma is not correct. Check whether <Name>' is a valid flag.
18.2.14.4

4521

"Error in Pragma: Unexpected element '<Name>'!"


Check whether pragma is composed correctly.
18.2.14.5

4522

"flag off' pragma expected!"


Das Ausschalten des Pragmas fehlt, fgen Sie eine 'flag off' Anweisung ein.
18.2.14.6

4550

"Index out of defined range : Variable OD "number>, Line <line


number>."
Ensure that the index is within the area which is defined in the target
settings/networkfunctionality.
18.2.14.7

4551

"Subindex out of defined range : Variable OD "number>, Line <line


number>."
Ensure that the subindex is within the area which is defined in the target
settings/networkfunctionality.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compiler Errors and Warnings


Compiler Errors

18.2.14.8

65

4552

"Index out of defined range : Parameter OD "number>, Line <line


number>."
Ensure that the index is within the area which is defined in the target
settings/networkfunctionality.
18.2.14.9

4553

"Subindex out of defined range : Parameter OD "number>, Line <line


number>."
Ensure that the subindex is within the area which is defined in the target
settings/networkfunctionality.
18.2.14.10 4554
"Variablename invalid: Variable OD <number>, Line <line number>."
Enter a valid project variable in the filed variable. Use the syntax <POU
name>.<variable name> resp. for global variables .<variable name>
18.2.14.11 4555
"Empty table-entry, input not optional: Parameter OD <number>, Line
<line number>".
You must make an entry in this field.
18.2.14.12 4556
"Empty table-entry, input not optional: Variable OD <number>, Line
<number>"
You must make an entry in this field.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

66

Quick Start
Task

19 Quick Start
19.1 Task
To assist you to quickly start programming with WAGO-I/O-PRO 32 the
following will show you how to create, test and print out a small program.
Following this you can change and extend this program in accordance with
your own ideas.
The following links are to be made:
Output Q0.1 is TRUE, when the inputs I0.1 and I0.2 are TRUE or if input I0.3
is TRUE. These relationships are represented in the following table, whereby
the inputs and outputs are assigned to variables.
IN1 AT %IX0.1

IN2 AT %IX0.2

IN3 AT %IX0.3

OUT1 AT %QX0.1

FALSE

FALSE

FALSE

FALSE

TRUE

FALSE

FALSE

FALSE

FALSE

TRUE

FALSE

FALSE

TRUE

TRUE

FALSE

TRUE

FALSE/TRUE

FALSE/TRUE

TRUE

TRUE

In addition a small visualisation will be created, where the variables are to be


symbolised by various geometric elements.

19.2 Start
This is how WAGO-I/O-PRO 32 is started:
8 Click on "Start" in the Windows task bar to open the "Start" menu.
8 In the "Start" menu select the "Program" option, to open the
"Program" folder.
8 To open the "WAGO-I/O-PRO 32*" folder select "WAGO-I/O-PRO
32*".
8 Click on the link "WAGO-I/O-PRO 32 V2.1 English", to open the
"WAGO-I/O-PRO 32" program.
* or the name you have selected
After the first start of WAGO-I/O-PRO 32 the following dialog appears on
the monitor for controller selection:

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
PLC_PRG

67

Image 19-1: Dialog box "Controller Selection"


8 Mark the coupler to be used in test with the mouse.
(In this example the MODBUS-Controller 750-815 is used.)
8 Conclude the entry with "OK".
If a controller has already been selected and you want to change the setting,
the above dialog can be reached via the "Object Organizer". For this click
on the "PLC Configuration" in the "Resources" register card.

Image 19-2: Object Organizer, register "Resources"

19.3 PLC_PRG
8 Open a new project by clicking the menu point "New" under "File".
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

68

Quick Start
PLC_PRG

The following dialog now appears for selecting the type and programming
language of the POU PLC_PRG:

Image 19-3: Dialog box "New POU"


This POU is already pre-defined and must not be renamed. This is the main
program and must be present in every project, in which no task configuration
is used. The POU is called up precisely once per control cycle.
8 Select the programming language "Ladder Diagram" (LD).
The editing window for this POU appears after acknowledging with "OK".

Image 19-4: PLC_PRG, not yet programmed


The above window section includes the declaration section. Here the variable
declaration is automatically entered when programming. The declaration
section is shown in the example as a list. A possible alternative is a table
display.
The variables links are created in the lower half of the window (body). The
following buttons are required for editing the links:

Image 19-5: Buttons for linking in a ladder diagram

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
PLC_PRG

69

8 Using the left hand mouse key press on the "Contact" button to create
the first link.
The first contact is shown in the network.
8 Replace the question marks above the contact by IN1 (1st variable).
Mark the network by actuating the left hand mouse key.
8 Repeat this procedure accordingly to link the second variable IN2
8 Click the "Parallel Contact" button to link the third variable (IN3) and
enter the variables designation.
8 Click on the "Coil" button and write OUT1 to replace the question
mark.
Following each entry of a not yet declared variable a dialog is displayed
asking for its declaration:

Image 19-6: Dialog box "Variables declaration"


The variables are already declared as local variables (VAR) with the data type
BOOL.
8 Enter the attendant addresses with a preceding percent symbol. These
addresses can be obtained from the task table.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

70

Quick Start
Visualization

Image 19-7: PLC_PRG with variables declaration and rump


8 Click on the "Project" "Check" menu point to check the program.
This activates the program check. Formal errors are displayed in a message
window.
8 Save the program created to date under "File" "Save", in the same
manner as familiar under other WINDOWS applications.
Following this a visualisation can be created or this can be skipped and
continued with the simulation of the PLC_PRG.

19.4 Visualization
8 Click in the "Object Organizer" on the register card "Visualization"
and select the menu point "Add..." under "Project".

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
Visualization

71

Image 19-8: Object Organizer, register "Visualization"


Following this a dialog appears for a new visualization.

Image 19-9: Dialog box "New Visualization"


8 Enter a name, e.g. "Graphic" and close the entry with "OK".
Following this open an editing window in which the visualization can be
created. Here various geometric elements are available, e.g. rectangle and
ellipse.
8 Click on the "Insert" menu point and select "Ellipse". If you now
click in the editing window and move the mouse pointer with the left
hand mouse key pressed, a circle can be generated at the desired size.
This element will later be allocated the variable IN1.

Image 19-10: Editing window for visualization


8 Double click on the circle. A dialog opens "Regular Element
Configuration".
In this dialog the element can be allocated various functions.
8 Select the menu point "Text" under "Category".
8 Enter IN1 under "Content".
This text appears later in the circle created.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

72

Quick Start
Visualization

Image 19-11: Dialog box editing visualization, categorie "Text"


8 Select the element fill colour for the condition display of the variable
IN1 under "Color".
IN1 = FALSE

=>

"Color"

=> white

IN1 = TRUE

=>

"Alarm color"

=> blue

Image 19-12: Dialog box editing visualization, categorie "Color"

Image 19-13: Dialog box "Color"

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
Visualization

73

8 Enter the variable PLC_PRG.IN1 under the menu point "Variables"


"Change color".
In the case of a condition change of the variable IN1 from FALSE to TRUE
and vice versa the element colour change is made in run mode.

Image 19-14: Dialog box editing visualization, categorie "Variables"


8 Enter the variable PLC_PRG.IN1 under the menu point "Input"
"Toggle variable".
Each time the circle is clicked the status of the variable IN1 changes from
FALSE to TRUE and vice versa.

Image 19-15: Dialog box editing visualization, categorie "Input"


8 Conclude the configuration entries with "OK".
8 Copy the configured element three times and distribute the generated
elements in the editing window. Then double click on the first copy and
change all entries of configuration IN1 to IN2. Proceed accordingly for
the second and third copy.
8 Arrange the variables IN3 and OUT1 in a different form.
8 Using the "Shape" menu point assign the variable IN3 a rounded off
rectangle and the variable OUT1 a rectangle.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

74

Quick Start
Simulation mode

Image 19-16: Dialog box editing visualization, categorie "Shape"

Image 19-17: Editing window for visualization object


8 Activate a program check and save the project.

19.5 Simulation mode


Make the program test in simulation mode first. Here a fieldbus node with
programmable fieldbus controller and bus modules is not necessary.
8 Click in "Object Organizer" in the register card "POU" on the POU
"PLC_PRG" as well as in the register card "Visualization" "Graphic"
and display the corresponding editing windows.
The online commands available are combined in the menu bar under
"Online".
8 Select the "Simulation Mode" in this menu point and then "Login"
under this menu point.
8 To start the program processing click on "Run".
A corresponding message ("ONLINE, SIM, RUN") appears in the bottom line
of the picture.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
Control mode

75

Image 19-18: Simulation PLC_PRG and Graphic


If a variable is FALSE, the interior of the allocated contact symbol will be
white. If TRUE, it will be shown blue.
By double clicking on the elements for IN1, IN2 and IN3 the allocated
variables are alternately set or reset. The elements are shown white or blue.
The colour of the element for OUT1 is dependent upon the links condition.

19.6 Control mode


Following the test in simulation mode the program created should first be
tested on a programmable fieldbus controller.
The fieldbus nodes in the example comprise of the following units:

1 off programmable fieldbus contoller (MODBUS)


1 off digital input module
1 off digital output module
1 off end module
1 off communication cable

750-815
750-402
750-504
750-600
750-920

(The communication cable is a component part of the WAGO programming


tools IEC 1131-3)
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

76

Quick Start
Control mode

Image 19-19: MODBUS Controller with digital inputs and outputs

8 Supply the fieldbus node with 24V DC (see MODBUS manual).


8 Connect the COMX interface of your PC to the communication
interface of the controller. Use the WAGO communication cable for this
purpose.
8 Click the "Simulation" menu point under "online".
The previously displayed check mark is hidden.
Communication between WAGO-I/O-PRO 32 and the controller is via the
WAGO-I/O-PRO 32 Server (Gateway). The communication driver is
required for serial data transfer. This driver and its parameterization are
entered in the "Communication Parameters" dialog.
8 To call up this dialog, click on the "Communication Parameters"
menu point under "Online".
In its basic setting there are no entries in this dialog.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
Control mode

77

Image 19-20: Dialog box "Communikation parameters" without drivers


8 Click on "New" to select a new channel for the driver.
The "Communication Parameters: New Channels" dialog appears:

Image 19-21: Dialog box for driver selection


8 Mark the "Serial (RS232)" driver in the selection window to configure
the serial connection between PC and controller.
8 Enter the driver name above the selection window and click on "OK"
to conclude the selection.
The "Communication Parameters" dialog appears again.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

78

Quick Start
Control mode

Image 19-22: Dialog box "Communication Parameters", with drivers and


parameters
The serial driver (RS232) is now entered below the minus character in the
"Channels" field. In the field to the right the values of the communication
parameter for the selected driver are displayed. These values correspond to the
default setting of the MODBUS controller. For these reason they need not be
changed.
8 Click on "OK" to take over the driver and its parameter values.
The controller test can now start. (For this the operating mode switch of the
controllers must be in the middle or upper setting. The address switch is on
"00".)
8 Click the "Loggin" menu point under "Online" to log into the
controller.
(The WAGO-I/O-PRO 32 Server is active during on-line operation. The
communication parameters cannot be polled.)
As there is still no program in the controller, you will be asked whether the
program should be loaded.
8 Acknowledge with "Yes".
Following this the current program will be loaded.
8 Once the program is loaded, start the program processing with
"Online" "Run".
"ONLINE RUN" is signalled on the right end of the status bar.
Once voltage (+24V) is applied to the inputs this can be seen in the PLC_PRG
window or the graphic by the blue coloured contacts or geometrical elements.
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
Documentation

79

Clicking the geometrical element, however, no longer leads to a status change


of the variables.
8 End the online operation with the "Online" "Logout" menu point.

19.7 Documentation
Following this it is necessary to parameterize the documentation for this
project and print it out. This can only be performed in off-line mode.
8 Select the command "Printer Setup" in the "File" menu.
The "Documentation Setup" dialog is opened. Using this dialog the layout of
the pages to be printed can be defined.

Image 19-23: Dialog box "Documentation Setup"


8 Enter the following path with the name of the print file in the File field:
C:/Programs/WAGO-IO-PRO 32/WORK/QUICK_START.DFR
(As standard the documentation is saved in the DEFAULT.DFR file.)
8 Click on "Edit", to open the documentation page layout.
Here you can enter the number of pages, date, file and POU name, as well as
position graphics on the pages and lay down the text area in which the
documentation is to be printed.
8 Select the "Placeholder" menu under "Insert".
You then receive a selection of the following placeholders:

Page
actual number of pages
POUName current POU
FileName project name
Date
current date
Content content of current POU

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

80

Quick Start
Documentation

8 Click on a placeholder, e.g. Page.


8 Pull a rectangle in the editing window with the left hand mouse key
pressed and position at the required position.
In addition you can create text fields for free text input, e.g. for company names
and addresses.
8 For this click on the "Insert""Rectangle" menu point. Pull a
correspondingly large field and select a dialog for text entry by double
clicking.
In addition a Bitmap graphic can be inserted in the page using the "Insert" "
Bitmap" menu point, e.g. a company logo.

Image 19-24: Page Layout


8 Close the window.
You are asked in a dialog whether you want to save the entries.
8 Click on "Yes".
8 To print out the project click on "Project" "Document..."
The following dialog appears:

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Quick Start
Documentation

Image 19-25: Dialog box "Document Project"


8 Select the POU to be printed with the mouse.
The dialog to be printed is shown after acknowledging with "OK".
8 Continue with printing in the familiar manner for WINDOWS.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

81

82

Compliance List
Tables

20 Compliance List
20.1 Tables
Conformance of WAGO-I/O-PRO 32 Version 2.1 with IEC 61131-3.
The following tables show the current status of WAGO-I/O-PRO 32 Version
2.1. Missing features will be added during to the further development of
WAGO-I/O-PRO 32. The numbers in the first column of the table refer to the
first edition of the standard released in March 1993. The description in the first
line of a table section refers to the whole section in most cases.

Table No.

Description

WAGO-I/O-PRO 32

1-1

character set

yes

1-2

lower case letters

yes

Remarks

1-3a

yes

in binary, octal- and hexadecimal


constants

1-3b

except in comments and strings

1-4a

yes

as quote in strings

1-4b

except in comments and strings

1-5a

except in comments and strings,


because the graphic editors are
not character based

1-5b

except in comments and strings

1-6a

yes

1-6b

2-1

identifier

yes

2-2

yes

2-3

yes

3-1

comments

yes

4-1

numeric constants

yes

4-2

yes

4-3

yes

4-4

yes

4-5

yes

4-6

yes

4-7

yes

4-8

yes

5-1

string constants

yes

6-2

non printable characters

yes
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables
Table No.

Description

WAGO-I/O-PRO 32

6-3

yes

6-4

yes

6-5

yes

6-6

yes

6-7

yes

6-8

yes

7-1a

duration constants

yes

7-1b

yes

7-2a

yes

7-2b

yes

8-1

date and time

yes

8-2

yes

8-3

yes

8-4

yes

8-5

yes

8-6

yes

10-1

BOOL

yes

10-2

SINT

yes

10-3

INT

yes

10-4

DINT

yes

10-5

LINT

no

10-6

USINT

yes

10-7

UINT

yes

10-8

UDINT

yes

10-9

ULINT

no

10-10

REAL

yes

10-11

LREAL

yes

10-12

TIME

yes

10-13

DATE

yes

10-14

TIME_OF_DAY

yes

10-15

DATE_AND_TIME

yes

10-16

STRING

yes

10-17

BYTE

yes

10-18

WORD

yes

10-19

DWORD

yes

10-20

LWORD

no

12-1

derived data types

yes

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Remarks

becomes "\n"

83

84

Compliance List
Tables

Table No.

Description

WAGO-I/O-PRO 32

12-2

yes

12-3

no

12-4

yes

12-5

yes

14-1

initialising of derived data types

yes

14-2

yes

14-3

no

14-4

no

14-5

yes

14-6

no

15-1

direct addresses

Remarks

yes

15-2

yes

15-3

yes

15-4

yes

15-5

yes

15-6

yes

15-7

yes

15-8

yes

15-9

no

16-1

VAR

yes

16-2

VAR_INPUT

yes

16-3

VAR_OUTPUT

yes

16-4

VAR_IN_OUT

yes

16-5

VAR_EXTERNAL

16-6

VAR_GLOBAL

yes

16-7

VAR_ACCESS

no

16-8

RETAIN

yes

16-9

CONSTANT

yes

16-10

AT

yes

17-1

declaration of variables

no

17-2

no

17-3

yes

17-4

yes

17-5

yes

17-6

yes

17-7

yes

not necessary because all global


variables are accessible in every
POU, without further declaration

array of Bool are not packed!

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables
Table No.

Description

17-8
18-1

WAGO-I/O-PRO 32

Remarks

yes
initial value assignment

no

18-2

no

18-3

yes

18-4

yes

18-5

yes

18-6

yes

18-7

yes

18-8

yes

18-9

yes

19-1

negation of inputs

yes

19-2

negation of outputs

yes

20-1

EN/ENO

no

20-2

yes

20-3

yes

21-1

85

overloading

21-2

in free FBD/ not in structure


based FBD

yes

Operators (+, - , AND, OR etc.)


are overloaded.

no

There are no typed version of


operators. All standard- and user
functions are typed.
REAL_TO_INT rounds to the
nearest integer, whereas
REAL_TO_INT(x.5) is
equivalent to x+1

22-1

type conversation

yes

22-2

TRUNC()

yes

22-3

BCD_TO_INT

no

22-4

INT_TO_BCD

no

23-1

ABS

yes

23-2

SQRT

yes

23-3

LN

yes

23-4

LOG

yes

23-5

EXP

yes

23-6

SIN

yes

23-7

COS

yes

23-8

TAN

yes

23-9

ASIN

yes

23-10

ACOS

yes

23-11

ATAN

yes

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

array of BOOL is not packed!

86

Compliance List
Tables

Table No.

Description

WAGO-I/O-PRO 32

Remarks

24-12

ADD

yes

24-13

MUL

yes

24-14

SUB

yes

24-15

DIV

yes

24-16

MOD

yes

24-17

EXPT

yes

24-18

MOVE

yes

25-1

SHL

yes

25-2

SHR

yes

25-3

ROR

yes

25-4

ROL

yes

26-5

AND

yes

26-6

OR

yes

26-7

XOR

yes

26-8

NEINT

yes

27-1

SEL

yes

27-2a

MAX

yes

as operator (only two


parameters)

27-2b

MIN

yes

as operator (only two


parameters)

27-3

LIMIT

yes

27-4

MUX

yes

28-5

GT

yes

only two operands

28-6

GE

yes

only two operands

28-7

EQ

yes

only two operands

28-8

LE

yes

only two operands

28-9

LT

yes

only two operands

28-10

NE

yes

only two operands

29-1

LEN

yes

29-2

LEFT

yes

29-3

RIGHT

yes

29-4

MID

yes

29-5

CONCAT

yes

29-6

INSERT

yes

29-7

DELETE

yes

29-8

REPLACE

yes

29-9

FIND

yes

the usage of "**" as operator is


not supported

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables
Table No.

Description

WAGO-I/O-PRO 32

30-1

date and time functions

yes

30-2

no

30-3

no

30-4

yes

30-5

no

30-6

no

30-7

no

30-8

no

30-9

no

30-10

no

30-11

no

30-12

no

30-13

no

30-14

no

31-1

Functions of enumeration types

yes

31-2

yes

31-3

yes

31-4

yes

33-1

function blocks

yes

33-2

yes

33-3

yes

33-4a

yes

33-4b

yes

33-5a

yes

33-5b

yes

33-6a

yes

33-6b

yes

33-7a

yes

33-7b

yes

33-8a

no

33-8b

no

33-9a

no

33-9b

no

34-1

SR

yes

34-2

RS

yes

34-3

SEMA

yes

35-1

R_TRIG

yes

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Remarks

87

88

Compliance List
Tables

Table No.

Description

WAGO-I/O-PRO 32

35-2

F_TRIG

yes

36-1

CTU

yes

36-2

CTD

yes

36-3

CTUD

yes

37-1

TP

yes

37-2a

TON

yes

37-2b

T---0

no

37-3a

TOF

yes

37-3b

0---T

no

37-4

RTC

yes

39-1..9b

program declaration

Remarks

like 33-1..9b

39-10

no

39-11..14

see 17-1..4

39-15-18

see 18-1..4

39-19

yes

39-20

no

39-21

no

40-1

SFC steps

yes

40-2

yes

via import, not in editor.

40-3a

in non-IEC-Steps access to step


flag by step name

40-3b

yes

not in simple steps

40-4

yes

not in simple steps

yes

in separate window

41-2

yes

in separate window

41-3

yes

in separate window

41-4a

no

41-4b

no

41-5

yes

in separate window or via import

41-6

yes

in separate window or via import

41-7a

yes

41-7b

yes

41-7c

yes

41-7d

yes

41-1

42-1

transitions

actions

yes

42-2l

yes

42-2s

yes
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables
Table No.

Description

WAGO-I/O-PRO 32

42-2f

yes

42-3s

yes

42-3i

yes

43-1

step-action association

89

Remarks

yes

43-2

yes

43-3

yes

via import, not in editor

43-4

yes

in separete window, N modifier


is implicitly used, name of action
is the same as name of step

44-1

action blocks

yes

44-2

yes

44-3

no

44-4

actions programmed in IL

yes

in separate window

44-5

actions programmed in ST

yes

in separate window

44-6

actions programmed in LD

yes

in separate window

44-7

actions programmed in FBD

yes

in separate window

44-8

usage of actions in LD

no

44-9

usage of actions in FBD

no

45-1

action qualifier

yes

45-2

yes

45-3

yes

45-4

yes

45-5

yes

45-6

yes

45-7

yes

45-8

yes

45-9

yes

45-10

yes

46-1

sequence evolution

yes

46-2a

yes

46-2b

no

46-2c

yes

46-3

yes

46-4

yes

46-5a

yes

46-5b

no

46-5c

yes

46-6a

yes

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

using jump

90

Compliance List
Tables

Table No.

Description

WAGO-I/O-PRO 32

46-6b

no

46-6c

yes

46-7

no

49-1

configuration and resources

no

49-3

no

49-4

no

49-5a

no

49-5b

no

49-6a

no

49-6b

no

49-6c

no

49-7

no

49-8a

no

49-8b

no

49-9a

no

49-9b

no

49-10a

no

49-10b

no

49-10c

no

49-10d

no

49-10e

no

49-10f

no
tasks

using jump

no

49-2

50-1a

Remarks

yes

50-1b

yes

50-2a

no

50-2b

no

50-3a

yes

50-3b

yes

50-4a

no

50-4b

no

50-5a

yes

51

instruction list fields

yes

52-1

instruction list operators

yes

52-2

yes

52-3

yes

52-4

yes
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables
Table No.

Description

WAGO-I/O-PRO 32

52-5

no

52-6

yes

52-7

yes

52-8

yes

52-9

yes

52-10

yes

52-11

yes

52-12

yes

52-13

yes

52-14

yes

52-15

yes

52-16

yes

52-17

yes

52-18

yes

52-19

yes

52-20

yes

52-21

yes

53-1

function block invocation in IL

yes

53-2

yes

53-3

no

54-4

function block input operators

no

54-5

no

54-6

no

54-7

no

54-8

no

54-9

no

54-10

no

54-11

no

54-12

no

54-13

no

55-1

operators in ST

yes

55-2

yes

55-3

no

55-4

yes

55-5

yes

55-6

yes

55-7

yes

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Remarks

91

92

Compliance List
Tables

Table No.

Description

WAGO-I/O-PRO 32

55-8

yes

55-9

yes

55-10

yes

55-11

yes

55-12

yes

55-13

yes

55-14

no

55-15

yes

55-16

yes

55-17

yes

56-1

statements in ST

yes

56-2

yes

56-3

yes

56-4

yes

56-5

yes

56-6

yes

56-7

yes

56-8

yes

56-9

yes

56-10

yes

57-1

graphical languages

Remarks

no

57-2

yes

57-3

no

57-4

yes

57-5

no

57-6

yes

57-7

no

57-8

yes

57-9

no

57-10

yes

57-11

no

57-12

yes

57-13

no

57-14

yes

58-1

graphic execution control (Jump and yes


Return)

58-2

yes

in free FBD

in free FBD

in free FBD

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables
Table No.

Description

WAGO-I/O-PRO 32

58-3

yes

58-4

yes

58-5

yes

58-6

yes

58-7

yes

58-8

yes

59-1

powerrail

59-2
60-1

yes
LD link elements

60-2
61-1

yes

yes
yes

contacts

yes

61-2

yes

61-3

yes

61-4

yes

61-5

no

61-6

no

61-7

no

61-8

no

62-1

coils

yes

62-2

yes

62-3

yes

62-4

yes

62-5

no

62-6

no

62-7

no

62-8

no

62-9

no

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Remarks

93

94

Compliance List
Tables

Implementation dependent Parameters


Clause

Description

WAGO-I/O-PRO 32

2.1.1

National characters used

'$' ad '#' is used. Using '!' or '|' in graphical


languages is not necessary (full graphic).

2.1.2

Maximum length of identifiers

no limitation

2.1.5

Maximum length of comments

no limitation

2.2.3.1

Range of duration

2^32 ms = 49,71 days

2.3.1

Range of TIME variables


Range of TIME_OF_DAY variables
Range of DATE_AND_TIME variables

1970-01-01-00:00 2106-02-06-06:28:15
1970-01-01 2106-02-06

2.3.3

Maximum numbers of array subscript


Maximum number of structure elements
Maximum numbers of variables per declaration

3
no limitation
no limitation

2.3.3.1

Maximum number of enumerated values

not supported

2.3.3.2

Default maximum length of string variables


Maximum allowed length of String variables

80 characters
255 characters

2.4.1.1

Maximaum numbers of hierachial levels


Logical or physical mapping

4
physical mapping

2.4.1.2

Maximum number of subscripts


Maximum range of subscripts
Maximum number of levels of structures

3
64 KB
no limitation

2.4.3

Maximum number of variables per declaration

no limitation

2.5

Information about execution time of POUs

not supported

2.5.1.1

Method of function represenation

Name

2.5.1.5

Maximum number of inputs of extensible


functions

no limitation

2.5.2.3.3

Pvmin of counters
Pvmax of counters

-32 768
+32 767

2.5.3

Program size limitations

32 KB

2.6.2

Precision of step elapsed time


Maximum number of Steps per SFC

1 ms
no limitation

2.6.3

Maximum number of transitions per Step and per no limitation


SFC

2.6.4

Action control mechanism

In simple Steps an action is executed every cycle,


when its step is active
In IEC-Steps, the execution of an action depends
on the result of the call of its action control block

2.6.4.2

Maximum number of action blocks per simple


step
Maximum number of action blocks per
IEC_Step

Graphic indication of step state


Transition clearing time
Maximum width of convergence/divergence
construts

Step becomes blue


Within on controller cycle
no limitation

2.6.5

10

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Compliance List
Tables

95

Clause

Description

WAGO-I/O-PRO 32

2.7.1

Contents of RESOURCE libraries

Not supported

2.7.2

Tasks

Tasks are supported with premptive or nonpremptive scheduling, depending on the target.
Tasks are enabled by an event or by a timer and
can be ordered by priority (0-31).

3.3.2.3

Maximum number of CASE selections

no limitation

3.3.2.4

Value of control variable upon termination of


FOR loop

One step behind the upper limit.

4.1.1

Graphic representation
Restrictions of network topology in structure
based FBD

Full graphics
Only Expression "Trees" allowed with multiple
intermediate results. That means no splitting of
output lines, except for assigning it to a result.
No restrictions on network topology in free FBD.

4.1.3

Evaluation order of feedback loops

In structure based FBD, explicit loops are not


supported by topology. In implicit loops the
evaluation order is defined by the user.
In free FBD, explicit loops are supported. The
evaluation order is defined by the user, whereas
the user can define topological evaluation order
(from left to right, from top to bottom) or data
flow evaluation order (from inputs to outputs).

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

96

Bibliography
English

21 Bibliography
21.1 English
R. W. Lewis
Programming industrial control systems using IEC 1131-3
The institution of Electrical Engineers, London
ISBN 0-8529695-0-3; Please note UPDATED IN 1997

Dr. Monari, Prof. Bonfatti and Dr. Sampieri


IEC 1131-3 Programming Methodology
Software engineering methods for industrial automated systems
ISBN 2-9511585-0-5

21.2 German
Hans-Joachim Adam, Mathias Adam
"SPS"
Programmieren in Anweisungsliste nach IEC 1131-3
Elektor Verlag, Aachen
ISBN 3-89576-048-X

Karl-Heinz John, Michael Tiegelkamp


SPS-Programmierung mit IEC 1131-3
Konzepte und Programmiersprachen, Anforderungen an Programmiersysteme,
Entscheidungshilfen
Springer Verlag Berlin Heidelberg1997
ISBN 3-540-62639-5

Peter Neumann, Eberhard E. Grtsch, Christoph Lubkoll, Ren Simon


SPS Standard: IEC 61131
Programmierung in verteilten Automatisierungssystemen
R. Oldenbourg Verlag Mnchen Wien 1998,
ISBN 3-486-27005-2

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Bibliography
Web addresses

VDE-Schriftenreihe Normen verstndlich


"IEC 61131-3 Wozu?"
I. Rolle (Hrsg.) A. Lehmann, H. - P. Otto, L. Trapp, H. Wegmann
VDE-Verlag, Berlin
ISBN 3-8007-2309-3

Peter Wratil
Moderne Programmiertechnik fr Automatisierungssysteme
EN 61131 (IEC 1131) verstehen und anwenden
Vogel Verlag Wrzburg 1996
ISBN 3-8023-1575-8

21.3 Web addresses


http://www.wago.com

http://www.plcopen.org

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

97

98

Glossary

22 Glossary
Absolute Address

Representation of individual memory cells using special character strings:


1st character:

Recent symbol (%)

2nd character:
Category (I = Input location, Q = Output location,
M = Memory location)
3rd character:
Memory size (X = Single bit, B = Byte, W = Word,
D = Double Word)
following characters:

Address

Example: %IX4.15
Configuration

The highest level of a PLC system, wich contains one or more resources
Data type
Defines the properties of a variable, such as value range and bit length
Declaration block
A list of declarations of identical types of variables in the first section of a
POU
Derived data types
Self defined data type, based on a elementary data type
Elementary data type
Standard data type predefined by IEC 61131-3
EN Input
(Enable In) Enable input for a POU in Ladder logic or Function block
diagram. The POU with EN input is only processed if the EN input value is
TRUE.
FB
Abbr. for Function block
FBD
Abbr. for Function block diagram
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Glossary

99

FB instance
Copy of the structured data block of a Function block, permitting the multiple
use of a created structures with varying parameters (e.g. Standard Funktion
blocks). The data block saves internal values and statuses of the function
blocks for longer than one cycle.
Field
A series of elements of the same date type
Flag
Memory for physical addressing
FUN
Abbr. for Function
Function
POU, wich always the same result (as function value) with the same input
value; it has no local variable wich can save values beyond one invocation.
Function block
POU, wich provides one or more values when executed. This can be saved as
a local variable ("Memory").
Function block diagram
(Abbr.: FBD) graphically oriented programming language with networks with
contain Functions and Function blocks. The logic and arithmetic behaviour of
these POU's is represented as a block.
IEC 61131-3
International standard from the year 1993 for modern systems with PLC
functionality. Based on a structured software model it defines a series of high
capacity programming languages, wich can be used for varying automation
tasks.
IL
Abbr. for Instruction list
Instruction list
(Abbr.: IL) is a widely used text language close to that used for assemblers for
PLC's (similar to Step5/Step7)
I/O periphery
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

100

Glossary

The Input and output modules belonging to a node together with their physical
process addresses
Ladder diagram
(Abbr.: LD) graphically orientated programming language wich uses the
principle of an electric circuit with contacts and coils for the representation of
links.
LD
Abbr. for Ladder diagram
PLC
Abbr. for Programmable Logic Controls
POU library
A collection of POU's avaible to the programmer for the creation of control
programs
PROG
Abb. for Program
Program
Element of a resource. The program is the highest level of the POU, i.e.
Functions and Function blocks are invoked by a program. The time behaviour
of the program is established by the attendant Tasks.
Programmable Fieldbus Controller
WAGO bus coupler with PLC functionality for
- Signal pre-processing
- Defined reaction in case of a fieldbus failure
- Decentral intelligence
Programmable Logic Controls
(Abbr.: PLC) Component of industrial automation systems for the control,
regulation, monitoring, visualisation as well as data collection and processing
or processes
Project
Includes all objects of a control program (POU, data types, visualisations,
resources and libraries)
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Glossary

101

Resource
Language element of a Configuration. A resource is task and program allotted.
Sequential flow diagram
(Abbr.: SFD) graphically oriented language, wich allows timed sequences of
various actions to be described within a program (similar to a flow chart and
Graphcet)
SFC
Abbr. for Sequential flow diagram
ST
Abbr. for Structured Text
Standard Function blocks
Function blocks defined by IEC 1131-3 wich meet the main requirements of
control systems
Step
In an SFC program this stands for an area in wich instructions are processed
for as long as it is active
Structured Text
(Abbr.: ST) comprises of a series of instructions wich can be performed as in
standard languages (e.g. Pascal) either conditionally ("IF...THEN...ELSE") or
in loops ("WHILE...DO")
Task
Defines the running behaviour of Programs and Function blocks
Transition
Transitions from one SFC step to the next, dependent upon the Transition
status
Transition conditions
Condition (Boolean value) for the activation of the next step in a SFC program
Variable
Data memory with a value defined by data type and information defining
concerning the variable declaration. Variables can be assigned physical
addresses (inputs, outputs, flags).
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

102

Glossary

Variables declaration
Defining variables in a declaration block together with the variable name, the
data type and, if necessary, the initial value, area details and field properties

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Index

23 Index
3

3820 31

Memory location: 5
Modifiers: 11

A
Addresses: 4
Appendix A Additional Libraries i
Appendix B Communication Drivers i

B
Batch commands: 6
Bit addressing: 4
BOOL Constants: 1
BYTE Constants: 2

C
Coil 50
Command file: 6
Command Line: 6
Compiler Errors 31xx 20
Compiler Errors 32xx 22
Compiler Errors 34xx 24
Compiler Errors 35xx 25
Compiler Errors 36xx 27
Compiler Errors 37xx 28
Compiler Errors 38xx 30
Compiler Errors 39xx 31
Compiler Errors 40xx 32
Compiler Errors 41xx 36
Compiler Errors 42xx 36
Compiler Errors 43xx 40
Compiler Errors 44xx 43
Compiler Errors 45xx 46
Contact 50

D
DATE Constants: 1
DATE_AND_TIME Constants: 1
DINT Constants: 2
DWORD Constants: 2

F
Function: 5

G
Gateway 56

I
Identifier: 3
Installation of Additional Libraries ii
Installation of Communication Drivers ii
INT Constants: 2

L
Ladder diagram 49
LD 49

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

N
Number Constants: 2

O
Operand: 1
Operators
overview: 11
Operators: 11

P
Parallel Contact 50
Programmable fieldbus controller 55

R
REAL Constants: 2

S
SINT Constants: 2
STRING Constants: 2
System Flag: 3

T
Table of Contents 6
TIME Constants: 1
TIME_OF_DAY Constants: 1
Typed Literals: 3

U
UDINT Constants: 2
UINT Constants: 2
USINT Constants: 2

V
Variables declaration 50
Variables: 3

W
WAGO-I/O-PRO 32 Server 56
Warnings 11xx 18
Warnings 12xx 18
Warnings 13xx 18
Warnings 14xx 18
Warnings 15xx 19
Warnings 16xx 20
Warnings 17xx 20
Warnings 18xx 20
Warnings 19xx 20
WORD Constants: 2

103

104

Index

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Appendix A: Additional Libraries

24 Appendix A: Additional Libraries


These libraries are ready installed in WAGO-I/O-PRO 32:
Fbusconf.lib
InterBusS.lib
Mod_com.lib
Standard.lib
System.lib

Additional libraries:
CIA405.lib
SerComm.lib
Visual.Lib
and others are available at WAGO Kontakttechnik GmbH.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

A-i

A-ii

Appendix A: Additional Libraries

24.1 Installation of Additional Libraries


The additional libraries are on the WAGO-I/O-PRO 32 CD.
The installation program is started from the D drive in the following
instructions. In case you would like to use another drive, please enter the
corresponding letter.

To install additional libraries:

Put the WAGO-I/O-PRO 32-CD in the D drive.


In case "Autorun" is activated in your system the set-up will be started
automatically. Proceed with step 5.
If the set-up is not starting automatically please proceed with step 2.
Select "Execute" in the Windows "Start" menu
Start the WAGO-I/O-PRO 32 set-up.
Enter "D:\setup.exe" (D is the drive with the WAGO-I/O-PRO-32-CD)
and start the set-up by clicking on "OK".
Select the set-up language.
The rest of the set-up is taking place via menus. Please follow the
instructions to complete the set-up. If possible the proposed settings should
be adopted.
You will be asked for the set-up type during the installation.
Click on "Additional libraries installation" and confirm with "Next".
A dialog appears to select the libraries.
Select the components you would like to install and delete the ones you
wouldnt like to install.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

Fbusconf.lib

Contents
FbusConf_Version .......................................................................................3
FieldbusConfiguration..................................................................................4
ReadFieldbusConfiguration .........................................................................7

WAGO-I/O-PRO 32

Fbusconf A-1

A-2 Fbusconf

WAGO-I/O-PRO 32

Appendix A Additional Libraries

FbusConf_Version
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Controller Configuration
FbusConf_Version
Function X
Function block
Program
Fbusconf.lib
750-812, 750-814, 750-815 and 750-816
(all MODBUS Controllers)

Input parameter:
EN

Data type:
BOOL

Comments:
A TRUE at this input activates this
function.

Return value:
VERSION

Data type:
WORD

Comments:
Library version

Graphic display:

Time behaviour:
EN
FbusConf_Version

Function description:
The FbusConf_Version function feeds back the current version number of the library.
This function can be used during program development for information purposes. In
addition, version related conflicts can be avoided during the running time.

WAGO-I/O-PRO 32

Fbusconf A-3

FieldbusConfiguration

FieldbusConfiguration
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Controller configuration
FieldbusConfiguration
Function block X
Function
Program
Fbusconf.lib
750-812, 750-814, 750-815 und 750-816
(all MODBUS controllers)

Input parameter:
STARTWORKING

Data type:
BOOL

BAUDRATE
BYTEFRAME

WORD
WORD

DATALENGTH

BOOL

ENDOFFRAMETIME

WORD

ASCIIRTUMODE

BOOL

ERRORCHECKING

BOOL

EXTENDEDFUNCTION BOOL
S

A-4 Fbusconf

NOWATCHDOG

BOOL

Output parameter:
RESULT

Data type:
BOOL

Comments:
A TRUE at this input activates the function
block. It is only performed once. If
parameters are to be changed several
times, the FB can be set several times
from FALSE to TRUE.
Table index for the baud rate. [0..7]
Table index for parity and number of stop
bits. [0..3]
TRUE = 7 Bit, FALSE = 8 Bit
Table index for recognising the end of a
telegram (END of Frame). [0..7]
TRUE = RTU Mode,
FALSE = ASCII Mode
TRUE = Protocol check activated, FALSE
= protocol check is not required (Error
Check) Note: the check sum must be
transmitted, even with false values.
TRUE = Access to the extended parameter
is possible,
FALSE = access is protected.
TRUE = Watchdog cannot be activated,
FALSE = Watchdog can be activated.
Comments:
TRUE as soon as the function block is
started. Becomes FALSE if the parameters
were already set.

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Graphical display:

Time behaviour:
STARTWORKING
RESULT
Parameter

Function description:
This function block allows the programmer to configure the modbus interface. As
opposed to the 750-3xx Modbus coupler the parameters are set here by means of
function blocks. The parameters correspond to the setting of the Dil switches.
Special SW Tools are no longer necessary. If the function block is also recorded in
the user program, the automatic configuration is performed even following a
controller change over. The settings are taken over in the controller parameter block.
If the required parameters are not already set, a software reset is automatically
made in Bus operation and the controller restarts with the selected parameters. The
function can be appended to the PLC cycle and is performed only once with a
constantly applied TRUE at the INPUT STARTWORKING.
If the controller is only to be configured once independent of the machine
configuration, a program comprising of only one POU can be downloaded from the
programming system and started. A software reset is not performed when operating
on the programming system.

WAGO-I/O-PRO 32

Fbusconf A-5

FieldbusConfiguration

A-6 Fbusconf

Baud rate:
750-812,
750-814

Baud rate:
750-815,
750-816

BAUDRATE
value

150 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
19200 Bd

38400 Bd
57600 Bd
115200 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
19200 Bd

0
1
2
3
4
5
6
7

Byte Frame

Data
length

Stop
bits

BYTEFRAME
DATA
LENGTH value
value

no Parity
even Parity
odd Parity
no Parity
no Parity
even Parity
odd Parity
no Parity

8 bit
8 bit
8 bit
8 bit
7 bit
7 bit
7 bit
7 bit

1
1
1
2
2
1
1
3

FALSE
FALSE
FALSE
FALSE
TRUE
TRUE
TRUE
TRUE

End of Frame

ENDOFFRAMETIME
Value

3 x Byteframe
Time
100 ms
200 ms
500 ms
1s
1 ms
10 ms
50 ms

0
1
2
3
0
1
2
3

1
2
3
4
5
6
7

WAGO-I/O-PRO 32

Appendix A Additional Libraries

ReadFieldbusConfiguration
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Controller configuration
ReadFieldbusConfiguration
Function block X
Function
Program
Fbusconf.lib
750-812, 750-814, 750-815 und 750-816
(all MODBUS controllers)

Input parameter:
EN

Data type:
BOOL

Comments:
A TRUE at this input activates the function
block.

Output parameters:
BAUDRATE
BYTEFRAME

Data type:
WORD
WORD

DATALENGTH
ENDOFFRAMETIME

BOOL
WORD

ASCIIRTUMODE

BOOL

ERRORCHECKING

BOOL

Comments:
Table index for the baud rate. [0..7]
Table index for parity and number of stop
bits. [0..3]
TRUE = 7 Bit, FALSE = 8 Bit
Table index for end recognition of a
telegram (END of Frame). [0..7]
TRUE = RTU Mode,
FALSE = ASCII Mode
TRUE = Protocol check activated, FALSE
= a protocol check is not made (Error
Check) Note: the check sum must in all
cases be transmitted, even with false
values.
TRUE = access is possible to the extended
parameters,
FALSE = access is prohibited.
TRUE = Watchdog cannot be activated,
FALSE = Watchdog can be activated.

EXTENDEDFUNCTION BOOL
S
NOWATCHDOG

WAGO-I/O-PRO 32

BOOL

Fbusconf A-7

ReadFieldbusConfiguration

Graphic display:

Time behaviour:
EN
Result

Function description:
This function block reads the current configuration of the MODBUS interface.

A-8 Fbusconf

Baud rate:
750-812,
750-814

Baud rate:
750-815,
750-816

BAUDRATE
Value

150 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
19200 Bd

38400 Bd
57600 Bd
115200 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
19200 Bd

0
1
2
3
4
5
6
7

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32

Byte
Frame

Data
Stop
length bits

DATALENGTH
value

BYTEFRAME
value

no Parity
even
Parity
odd
Parity
no Parity
no Parity
even
Parity
odd
Parity
no Parity

8 bit
8 bit

1
1

FALSE
FALSE

0
1

8 bit

FALSE

8 bit
7 bit
7 bit

2
2
1

FALSE
TRUE
TRUE

3
0
1

7 bit

TRUE

7 bit

TRUE

End of
Frame

ENDOFFRAMETIME
Value

3 x Byteframe
Time
100 ms
200 ms
500 ms
1s
1 ms
10 ms
50 ms

0
1
2
3
4
5
6
7

Fbusconf A-9

A-10 Fbusconf

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

InterBusS.lib

Contents
IBS_READ_CONFIGURATION................................................................3
IBS_READ_PI_CONFIGURATION ..........................................................5
IBS_SET_PI_CONFIGURATION ............................................................10
INTERBUS_VERSION .............................................................................15
Appendix ....................................................................................................16
ID codes for InterBus-S controller 750-804...................................16
Data width for InterBus-S controller 750-804 ...............................17
Table to determine the data width for InterBus-S controller 750804..................................................................................................18

WAGO-I/O-PRO 32

Version 1.1.0

InterBusS.lib A-1

A-2 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

IBS_READ_CONFIGURATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function block x
Function
Program
InterBusS.lib
Programmable InterBus-S-Controller 750-804

Input parameters:
EN

Data type:
BOOL

Comments:
FB execution control. The function is
executed on a rising edge at EN.

Return value:
ENO

Data type:
BOOL

LEN

BYTE

ID

BYTE

Comments:
FB execution result. ENO is TRUE as
long as EN is TRUE.
Length of fieldbus data in bytes. It may
be different to the size of the PI
transfered via the fieldbus because
InterBus-S does not support all possible
data length. (See also appendix)
Currently used module ID Code

ERROR

WAGO-I/O-PRO 32

InterBus S Fieldbus Communication


IBS_READ_CONFIGURATION

WORD

Version 1.1.0

1: Digital Output
2: Digital Input
3: Mixed Digital
49: Analog Output
51: Analog Input
52: Mixed Analog
Error argument.
0: no error
1: function not supported

InterBusS.lib A-3

Header:
FUNCTIONBLOCK IBS_READ_CONFIGURATION
(* read PI configuration *)
VAR_INPUT
EN: BOOL;
END_VAR
VAR_OUTPUT
ENO: BOOL;
LEN:BYTE;
ID:BYTE;
ERROR:WORD;
END_VAR

Graphic display:

Time behaviour:
EN
ENO
LEN, ID, ERROR

Function description:
This function block reads the length of the fieldbus data set by the configuration of
the IBS_SET_PI_CONFIGURATION function block.
See also: IBS_SET_PI_CONFIGURATION, IBS_READ_PI_CONFIGURATION,

A-4 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

IBS_READ_PI_CONFIGURATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Input parameter:

Data type: Comments:

EN

BOOL

Output parameter:
ENO

Data type: Comments:


FB execution result. ENO is TRUE as long
BOOL
as EN is TRUE.
BYTE
Bit field to configure the special purpose
process image data. This data is mapped
to the first position of the PI transferred via
the fieldbus.
SP1TO8.0 0 = PI communication
interface is disabled.
1 = PI communication
interface is enabled.
Communication data transfer
uses the first word of the PI.
SP1TO8.1 0 = extended terminal
diagnostics disabled.
1 = extended terminal
diagnostics enabled.
Diagnostic data transfer uses
the first word of the PI if
SP1TO8.0 = 0. If the
communication interface is
enabled (SP1TO8.0 = 1), then
diagnostics data uses the
second word of the PI.
SP1TO8.2 0 = initialise fieldbus chip after
power on.
1 = initialise fieldbus chip after
execution of IBS_SET_PI_
CONFIGURATION.

SP1TO8

WAGO-I/O-PRO 32

InterBus S Fieldbus Communication


IBS_READ_PI_CONFIGURATION
Function block X Program
Function
InterBusS.lib
Programmable InterBus-S-Controller 750-804

Version 1.1.0

FB execution control. The function is


executed on a rising edge at EN.

InterBusS.lib A-5

IBS_READ_PI_CONFIGURATION

SP1TO8.3 0 = set PI length according to


modules configuration
1 = set PI to maximum data
length ( 64 bytes)
SP1TO8.4 0 = PLC access to fieldbus
terminals is enabled
1= PLC access to fieldbus
terminals is disabled
SP1T08.5 0 = In case of fieldbus failure
the outputs of the terminals
which are assigned to fieldbus
control will be reset by the
fieldbus chip hardware.
1 = Output terminals assigned
to fieldbus control may be
reset by the PLC (SP1T08.4
must be set to 0 in this case).

A-6 InterBusS.lib

M01TO08

BYTE

M09TO16

BYTE

M17TO24

BYTE

M25TO32

BYTE

Version 1.1.0

Bit field to configure the process image


data transferred via the fieldbus. The data
of each module can be mapped into the PI.
st
xxxxxxx1: 1 module data mapped to PI
nd
xxxxxx1x: 2 module data mapped to PI

th
1xxxxxxx: 8 module data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 9 modules data mapped to PI
th
xxxxxx1x: 10 modules data mapped to PI

th
1xxxxxxx: 16 modules data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 17 modules data mapped to PI
th
xxxxxx1x: 18 modules data mapped to PI

th
1xxxxxxx: 24 modules data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 25 modules data mapped to PI
th
xxxxxx1x: 26 modules data mapped to PI

th
1xxxxxxx: 32 modules data mapped to PI

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32

M33TO40

BYTE

M41TO48

BYTE

M49TO56

BYTE

M57TO64

BYTE

PLC_IN_LEN

BYTE

PLC_OUT_LEN

BYTE

Version 1.1.0

Bit field to configure the process image


data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 33 module data mapped to PI
th
xxxxxx1x: 34 module data mapped to PI

th
1xxxxxxx: 40 module data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 41 module data mapped to PI
th
xxxxxx1x: 42 module data mapped to PI

th
1xxxxxxx: 48 module data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 49 module data mapped to PI
th
xxxxxx1x: 50 module data mapped to PI

th
1xxxxxxx: 56 module data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 57 module data mapped to PI
th
xxxxxx1x: 58 module data mapped to PI

th
1xxxxxxx: 64 module data mapped to PI
Number of bytes of the PLC input process
image appended to the PI transferred via
the fieldbus. These bytes are added to the
end (behind modules data) starting at a
word address. If the number of IO Bytes is
odd a spare byte is added.
Number of bytes of the PLC process
output image appended to the PI
transferred via the fieldbus. These bytes
are added to the end (behind modules
data) starting at a word address. If the
number of IO Bytes is odd a spare byte is
added.

InterBusS.lib A-7

IBS_READ_PI_CONFIGURATION

ID_CODE

BYTE

ERROR

WORD

Currently configured module ID Code


0: Auto Id code based on module
configuration.
1: digital outputs
2: digital inputs
3: digital inputs and outputs
49: analog outputs
51: analog inputs
52: analog inputs and outputs
Error argument.
0x0000: no error
0x0001: function not supported
0x8001: ID_CODE invalid
0x8003: PLC_IN_LEN invalid
0x8004: PLC_OUT_LEN invalid

Header:
FUNCTIONBLOCK IBS_READ_PI_CONFIGURATION
VAR_INPUT
EN: BOOL;
END_VAR
VAR_OUTPUT
ENO: BOOL;
SP1TO8:BYTE;
M01TO08:BYTE;
M09TO16:BYTE;
M17TO24:BYTE;
M25TO32:BYTE;
M33TO40:BYTE;
M41TO48:BYTE;
M49TO56:BYTE;
M57TO64:BYTE;
PLC_IN_LEN:BYTE;
PLC_OUT_LEN:BYTE;
ID_CODE:BYTE;
ERROR:WORD;
END_VAR

A-8 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Graphic display:

Time behaviour:
EN
ENO
SP1TO8, MxxTOxx,PLC_IN_LEN,
PLC_OUT_LEN,ID_CODE, ERROR

Functional description:
This function block reads the current configuration, set by
IBS_SET_PI_CONFIGURATION.
The output SP1TO8 indicates which special controller data is mapped, e.g. the
process image communication of the data word in the fieldbus data. It indicates in
addition whether the PLC access to the module data is released or locked.
The outputs MxxTOxx indicate which module data is mapped in the process image.
In addition the number of PLC fieldbus data which can be processed by the PLC.
See also: IBS_SET_PI_CONFIGURATION, IBS_READ_CONFIGURATION,

WAGO-I/O-PRO 32

Version 1.1.0

InterBusS.lib A-9

IBS_SET_PI_CONFIGURATION

IBS_SET_PI_CONFIGURATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Input parameter:
EN
SP1TO8

A-10 InterBusS.lib

InterBus S Fieldbus Communication


IBS_SET_PI_CONFIGURATION
Function block X Program
Function
InterBusS.lib
Programmable InterBus-S-Controller 750-804
Data type: Comments:
BOOL
FB execution control. The function block is
executed on a rising edge at EN.
Bit field to configure the special purpose
BYTE
process image data. This data is mapped
to the first position of the PI transferred via
the fieldbus.
SP1TO8.0 0 = PI communication
interface is disabled.
1 = PI communication
interface is enabled.
Communication data transfer
uses the first word of the PI.
SP1TO8.1 0 = extended terminal
diagnostics disabled.
1 = extended terminal
diagnostics enabled.
Diagnostic data transfer uses
the first word of the PI if
SP1TO8.0 = 0. If the
communication interface is
enabled (SP1TO8.0 = 1), then
diagnostics data uses the
second word of the PI.
SP1TO8.2 0 = initialise fieldbus controller
after power on.
1 = initialise fieldbus
controller after execution of
SET_PI_CONFIGURATION.
SP1TO8.3 0 = set PI length according to
modules configuration
1 = set PI to maximum data
length ( 64 bytes)

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

SP1TO8.4 0 = PLC access to fieldbus


terminals is enabled
1= PLC access to fieldbus
terminals is disabled
SP1T08.5 0 = In case of fieldbus failure
the outputs of the terminals
which are assigned to fieldbus
control will be reset by the
fieldbus chip hardware.
1 = Output terminals assigned
to fieldbus control may be
reset by the PLC (SP1T08.4
must be set to 0 in this case).

WAGO-I/O-PRO 32

M01TO08

BYTE

M09TO16

BYTE

M17TO24

BYTE

M25TO32

BYTE

M33TO40

BYTE

Version 1.1.0

Bit field to configure the process image


data transferred via the fieldbus. The data
of each module can be mapped into the PI.
st
xxxxxxx1: 1 module data mapped
nd
xxxxxx1x: 2 module data mapped

th
1xxxxxxx: 8 module data mapped
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 9 modules data mapped to PI
th
xxxxxx1x: 10 modules data mapped to PI

th
1xxxxxxx: 16 modules data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 17 modules data mapped to PI
th
xxxxxx1x: 18 modules data mapped to PI

th
1xxxxxxx: 24 modules data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 25 modules data mapped to PI
th
xxxxxx1x: 26 modules data mapped to PI

th
1xxxxxxx: 32 modules data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 33 module data mapped to PI
th
xxxxxx1x: 34 module data mapped to PI

th
1xxxxxxx: 40 module data mapped to PI

InterBusS.lib A-11

IBS_SET_PI_CONFIGURATION

A-12 InterBusS.lib

M41TO48

BYTE

M49TO56

BYTE

M57TO64

BYTE

PLC_IN_LEN

BYTE

PLC_OUT_LEN

BYTE

ID_CODE

BYTE

Version 1.1.0

Bit field to configure the process image


data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 41 module data mapped to PI
th
xxxxxx1x: 42 module data mapped to PI

th
1xxxxxxx: 48 module data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI.
th
xxxxxxx1: 49 module data mapped to PI
th
xxxxxx1x: 50 module data mapped to PI

th
1xxxxxxx: 56 module data mapped to PI
Bit field to configure the process image
data transferred via the fieldbus. The data
of each module can be mapped into the PI
th
xxxxxxx1: 57 module data mapped to PI
th
xxxxxx1x: 58 module data mapped to PI

th
1xxxxxxx: 64 module data mapped to PI
Number of bytes of the PLC input process
image appended to the PI transferred via
the fieldbus. These bytes are added to the
PI behind the modules data starting at a
word address. If the number of IO Bytes is
odd a spare byte is added.
Number of bytes of the PLC process
output image appended to the PI
transferred via the fieldbus. These bytes
are added to the PI behind the modules
data starting at a word address. If the
number of IO Bytes is odd a spare byte is
added.
Module ID Code
0: Automatic ID code, based on module
configuration.
1: Digital output
2: Digital input
3: Mixed digital inputs and outputs
49: Analog output
51: Analog input
52: Mixed analog inputs and outputs

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Output parameter:
ENO
LEN

ID

ERROR

Data type: Comments:


BOOL
FB execution result. ENO is TRUE as long
as EN is TRUE.
Length of fieldbus data. It may be different
BYTE
to the set value because InterBus-S does
not support all possible data length.
BYTE
Node ID code. If the ID_CODE was set to
0 the return value for ID depends on
module configuration. In other cases it
returns ID_CODE.
WORD
Error argument.
0x0000: no error
0x0001 : function not supported
0x8000 : unknown error
0x8001 : invalid ID_CODE specified
0x8002 : invalid length detected
0x8003 : PLC_IN_LEN > 64 bytes
0x8004 : PLC_OUT_LEN > 64 bytes
0x8005 : total input data length > 64 bytes
0x8006 : total output data length > 64
bytes

Header:
FUNCTIONBLOCK IBS_SET_PI_CONFIGURATION
VAR_INPUT
EN: BOOL;
SP1TO8:BYTE;
M01TO08:BYTE;
M09TO16:BYTE;
M17TO24:BYTE;
M25TO32:BYTE;
M33TO40:BYTE;
M41TO48:BYTE;
M49TO56:BYTE;
M57TO64:BYTE;
PLC_IN_LEN:BYTE;
PLC_OUT_LEN:BYTE;
ID_CODE:BYTE;
END_VAR
VAR_OUTPUT
ENO: BOOL;
LEN:BYTE;
ID:BYTE;
ERROR:WORD;
END_VAR

WAGO-I/O-PRO 32

Version 1.1.0

InterBusS.lib A-13

IBS_SET_PI_CONFIGURATION

Graphic display:

Time behaviour:
EN
SP1TO8, MxxTOxx, PLC_IN_LEN,
PLC_OUT_LEN, ID_CODE
ENO
LEN, ID, ERROR

Functional description:
This function sets the configuration of the process image. Since the process image
transferred via the fieldbus is limited to 32 words, it may be helpful to configure the
portion of data transferred to the master.
The inputs MxxTOxx specify which modules data is mapped into the PI.
SP1TO8 let users map special controller data e.g. the PI communication data word
into the fieldbus data.
It is also possible to set the number of PLC fieldbus data that can be accessed by
the PLC via IO addresses %IX256.0 %IB512 %IW256 or %ID128 and %QX256.0
%QB512 %QW256 or %QD128.
PLC fieldbus data
---Special data----------Module data----------Inputs / Outputs--Process image
See also: IBS_READ_PI_CONFIGURATION, IBS_READ_CONFIGURATION,

A-14 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

INTERBUS_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

InterBus S Fieldbus Communication


INTERBUS_VERSION
Function X
Function block
Program
InterBusS.lib
Programmable InterBus-S-Controller 750-804

Input parameter:
EN

Data type:
BOOL

Comments:
FB execution control. The function is
executed if EN is TRUE.

Return value:
INTERBUS_VERSION

Data type:
WORD

Comments:
Version number for this library.
Counting starts at 1.

Header:
FUNCTION INTERBUS_VERSION : WORD
VAR_INPUT
EN: BOOL;
END_VAR

Graphic display:

Time behaviour:
EN
INTERBUS_VERSION

Function description:
The function INTERBUS_VERSION returns the current version number of the library
InterBusS.lib. It is for information purposes only during PLC application
development time. During runtime it is possible to detect version conflicts.

WAGO-I/O-PRO 32

Version:

Description:

1.0

Start-up version

5.0

Compatible with the WAGO-I/O-PRO 32 version 2.2


SR5. The library works with the onlinechange feature.

Version 1.1.0

InterBusS.lib A-15

Appendix

Appendix
ID codes for InterBus-S controller 750-804
Depending on the modules used the InterBus-S controller transmits different ID
codes to the master.

ID code
dez, hex
1, 0x1
2, 0x2
3, 0x3
49, 0x31
50, 0x32
51, 0x33

Binary
output
x

Binary
input

Digital
output

Digital
output

x
x

x
-

x
-

x
x

[x]: available
[ ]: is not available
[-]: could also be available

The InterBus-S controller 750-804 is a remote bus slave

A-16 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Data width for InterBus-S controller 750-804


The data width is set to the minimum data width possible for the connected
modules. The highest value of input data width and output data width is
selected.
Possible values for the data width are :
Possible data width
0 word
1 nibble
1 byte
3 nibbles
1 word
3 nibbles
3 bytes
2 words
5 nibbles
5 bytes
3 words
4 words
5 words
6 words
7 words
8 words
9 words
10 words
12 words
14 words
16 words
24 words
32 words

WAGO-I/O-PRO 32

Supported by fieldbus
controller
x

x
x
x
x
x
x
x
x
x
x
x
x
x

Version 1.1.0

InterBusS.lib A-17

Appendix

Table to determine the data width for InterBus-S controller 750-804


Column A indicates the number of output words and row E indicates the
number of input words

A-18 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32

Version 1.1.0

InterBusS.lib A-19

A-20 InterBusS.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

Mod_com.lib

Contents
ADD_DESC (Data type)..............................................................................2
ADD_PI_INFORMATION..........................................................................4
CRC16..........................................................................................................6
FBUS_ERROR_INFORMATION...............................................................7
GET_DIGITAL_INPUT_OFFSET..............................................................8
GET_DIGITAL_OUTPUT_OFFSET........................................................10
KBUS_ERROR_INFORMATION............................................................12
MOD_COM_VERSION ............................................................................13
MODULE_INFO (Data type) ....................................................................15
MODULE_INFO_ACCESS (Data type) ...................................................16
PI_INFORMATION ..................................................................................18
READ_INPUT_BIT...................................................................................19
READ_INPUT_WORD .............................................................................20
READ_OUTPUT_BIT...............................................................................21
READ_OUTPUT_WORD .........................................................................22
SET_DIGITAL_INPUT_OFFSET ............................................................23
SET_DIGITAL_OUTPUT_OFFSET ........................................................25
SLAVE_ADDRESS...................................................................................27
WRITE_OUTPUT_BIT .............................................................................28
WRITE_OUTPUT_WORD .......................................................................29

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-1

ADD_DESC (Data type)

ADD_DESC (Data type)


WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Structure:

More detailed information about the PLC process image


ADD_DESC
Data type X
Mod_com.lib
ADD_PI_INFORMATION

Elements:
posPAA

Data type:
WORD

posPAE

WORD

sizePAA

BYTE

sizePAE

BYTE

Number of bits assigned to this module


in the PLC input process image.

channels

BYTE

Number of logic channels (only for


complex modules).

altFormat

BYTE

0: Standard output format


1: Alternative output format

Comments:
Bit position of the module in the PLC
output process image.
Bit position of the module in the PLC
input process image.
Number of bits assigned to this module
in the PLC output process image.

Header:
TYPE ADD_DESC :
STRUCT
posPAA : WORD;
posPAE : WORD;
sizePAA : BYTE;
sizePAE : BYTE;
channels : BYTE;
altFormat : BYTE;
END_STRUCT
END_TYPE

A-2 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Data type description:


This data type is a structure and provides more detail process image information
regarding a module.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-3

ADD_PI_INFORMATION

ADD_PI_INFORMATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

More detailed information about the PLC process image


ADD_PI_INFORMATION
Function X
Function block
Program
Mod_com.lib
All programmable fieldbus controllers except MODBUS

Input parameter:
EN

Data type:
BOOL

pAccess

pInfo

Return value:
ADD_PI_INFORMATION

Comments:
A TRUE at this input activates the
function.
POINTER TO Pointer to a structure describing the
modules from which more detailed
MODULE_
process image information is to be
INFO_
determined.
ACCESS
POINTER TO Pointer to a structure in which the more
MODULE_
detailed process image information of a
module is to be saved. If information is
INFO
to be determined from several modules
then a pointer must be transferred to an
array of this structure type. In this case
field limits are not checked!
The structure, or the array of this
structure must be initialised with ZERO
prior to each selection.

Data type:
BOOL

Comments:
FALSE:
The function was performed incorrectly.
Possible entries in the structure
MODULE_INFO to which 'pInfo refers,
are invalid.
TRUE:
The function was successfully
performed.

A-4 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Graphic display:

Time behaviour:

Function description:
Using this function more detailed process image information can be determined
regarding the modules (see components of the structure MODULE_INFO).
Example of how to determine information of all connected modules:
VAR
access : MODULE_INFO_ACCESS;
info : ARRAY[0..63] OF MODULE_INFO;
END_VAR
access.physicalPosTo := 0;
access.moduleType := 0;
ADD_PI_INFORMATION( 1, ADR(access), ADR(info[0]) );

Available from library version 3.0

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-5

CRC16

CRC16
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


CRC16
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
INPUT

Data type:
BYTE

EN

BOOL

Output parameters:
CRC

Data type:
WORD

Comments:
Further input byte for which a CRC is to
be calculated.
A rising edge at this input signals the
initialisation of the function block and
calculates the CRC for the first byte.
With TRUE the CRC is calculated on
each of the following bytes. With
FALSE no calculation is performed.
Comments:
The calculated value for the CRC. The
CRC value is present at this output
following each invocation.

Graphic display:

Time behaviour:
INPUT
EN
CRC

Function description:
The CTC 16 function block calculates the CRC16 value for a number of input bytes.

A-6 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

FBUS_ERROR_INFORMATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to system variables


FBUS_ERROR_INFORMATION
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:

Data type:

Comments:

Output parameters:
FBUS_ERROR

Data type:
BOOL

ERROR

WORD

Comments:
A TRUE at this output indicates a
fieldbus error.
Error occurred. The error messages are
fieldbus specific (see individual
controller description).

Graphic display:

Time behaviour:

Function description:
This function block offers the programmer the possibility to obtain information on the
status of the fieldbus communication. The values of the ERROR output are fieldbus
specific.
With MODBUS for instance, the current status of the communication monitoring
(Watchdog) is indicated. (0: no error, 1: Watchdog has detected time exceeded".)

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-7

GET_DIGITAL_INPUT_OFFSET

GET_DIGITAL_INPUT_OFFSET
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Access to process image


GET_DIGITAL_INPUT_OFFSET
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:

Data type:

Comments:

Output parameters:
DIG_IN_OFFSET

Data type:
WORD

ERROR

WORD

Comments:
Pre-assigned value for the byte address
from which the bits of the digital input
modules are to be filed. The
permissible value range is 0..511.
Fault encountered.
0: No fault
0x8001: The given value is too small
and will collide with the analog data.
0x8003: The given value is too large
and will collide with the variable ranges.
0x8005: The given value is larger than
the maximum permissible value.

Header:
FUNCTION_BLOCK GET_DIGITAL_INPUT_OFFSET
VAR_OUTPUT
DIG_IN_OFFSET: WORD;
ERROR: WORD;
END_VAR

Graphic display:

A-8 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
This function reads the current value of the saved address offset for the digital
inputs. The value is pre-assigned with the function block
SET_DIGITAL_INPUT_OFFSET and permanently saved in the controller. The read
value is identical with the pre-assigned value. In case of a fault the output ERROR of
the FB is set to a value not equal to 0. No communication takes place between the
controller and the modules. This status is displayed via the blink code 10 by the blink
argument 1 on the IO LED of the controller.
The default value when supplying the controllers is 0. As the value is saved
permanently, for safety reasons the value should be set once again in the user
program.
The current start address for the bits of the digital inputs can be interrogated with the
FB PI_INFORMATION. The output INPUTBITS_OFFSET emits the value.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-9

GET_DIGITAL_OUTPUT_OFFSET

GET_DIGITAL_OUTPUT_OFFSET
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Access to process image


GET_DIGITAL_OUTPUT_OFFSET
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:

Data type:

Comments:

Output parameters:
DIG_OUT_OFFSET

Data type:
WORD

ERROR

WORD

Comments:
Pre-assigned value for the byte address
from which the bits of the digital output
modules are to be filed. The
permissible value range is 0..511.
Fault encountered.
0: No fault
0x8002: The given value is too small
and will collide with the analogue data.
0x8004: The given value is too large
and will collide with the variable ranges.
0x8006: The given value is larger than
the maximum permissible value.

Header:
FUNCTION_BLOCK GET_DIGITAL_OUTPUT_OFFSET
VAR_OUTPUT
DIG_OUT_OFFSET: WORD;
ERROR: WORD;
END_VAR

Graphic display:

A-10 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
This function reads the current value of the saved address offset for the digital
outputs. The value is pre-assigned with the function block
SET_DIGITAL_OUTPUT_OFFSET and permanently saved in the controller. The
read value is identical with the pre-assigned value. In case of a fault the output
ERROR of the FB is set to a value not equal to 0. No communication takes place
between the controller and the modules. This status is displayed via the blink code
10 by the blink argument 1 on the IO LED of the controller.
The default value when supplying the controllers is 0. As the value is saved
permanently, for safety reasons the value should be set once again in the user
program.
The current start address for the bits of the digital outputs can be interrogated with
the FB PI_INFORMATION. The output OUTPUTBITS_OFFSET emits the value.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-11

KBUS_ERROR_INFORMATION

KBUS_ERROR_INFORMATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access system variables


KBUS_ERROR_INFORMATION
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:

Data type:

Comments:

Output parameters:
KBUS_ERROR

Data type:
BOOL

BITLEN
TERMINALS
ERROR
ERROR_ARG
FAIL_ADDRESS

WORD
WORD
WORD
WORD
WORD

Comments:
A TRUE at this output indicates a
terminal bus error.
Terminal bus bit length
Number of existing terminals blocks

In the event of a terminal bus error


indicates the terminal number where
the error has occurred.

Graphic display:

Time behaviour:

Function description:
This function block offers the programmer the possibility of receiving information
about the condition and configuration of the internal bus.

A-12 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

MOD_COM_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to the process image


MOD_COM_VERSION
Function X
Function block
Program
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
EN

Data type:
BOOL

Comments:
A TRUE at this input actives this
function.

Return value:
MOD_COM_VERSION

Data type:
WORD

Comments:
Library version

Graphic display:

Time behaviour:
EN
MOD_COM_VERSION

Function description:
The function of the MOD_COM_VERSION returns the current version number of the
library. This function can be used during the program development for information. In
addition version conflicts during the running time can be avoided.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-13

MOD_COM_VERSION

Version: Description:
1.0
First version
The function blocks READ_OUTPUT_WORD and
1.1
READ_OUTPUT_BIT were supplemented.
2.0
The function blocks GET_DIGITAL_INPUT_OFFSET,
GET_DIGITAL_OUTPUT_OFFSET,
SET_DIGITAL_INPUT_OFFSET and
SET_DIGITAL_OUTPUT_OFFSET were supplemented.

A-14 Mod_com.lib

3.0

The function ADD_PI_INFORMATION and the data types


MODULE_INFO_ACCESS, MODULE_INFO and ADD_DESC are
added.

5.0

Compatible with the WAGO-I/O-PRO 32 version 2.2 SR5. The


library works with the onlinechange feature.

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

MODULE_INFO (Data type)


WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Structure:

More detailed information about the PLC process image


MODULE_INFO
Data type X
Mod_com.lib
ADD_PI_INFORMATION

Elements:
physicalPos

Value:
BYTE

moduleType

WORD

desc

ADD_DESC

Comments:
Physical module position
(1-64).
The last 3 digits of the module
designation (750-xxx).
Structure variable with more detailed
information.

Header:
TYPE MODULE_INFO :
STRUCT
physicalPos : BYTE;
moduleType : WORD;
desc : ADD_DESC;
END_STRUCT
END_TYPE

Data type description:


This data type is a structure and supplies extended process image information with
regard to a module.
For digital modules no exact module designation can be determined. For this reason
the 'module type' assumes one of the following values:
16#00D0: This digital module does not assume any bits in the PLC input or output
process image.
16#00D1: This digital module only occupies bits in the input process image of the
PLC
16#00D2: This digital module only occupies bits in the output process image of the
PLC
16#00D3: This digital module occupies bits in the input and the output process
image of the PLC.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-15

MODULE_INFO_ACCESS (Data type)

MODULE_INFO_ACCESS (Data type)


WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Structure:

More detailed information about the PLC process image


MODULE_INFO_ACCESS
Datentyp X
Mod_com.lib
ADD_PI_INFORMATION

Elements:
physicalPosOf

Data type:
BYTE

physicalPosTo

BYTE

typeNumber

BYTE

moduleType

WORD

The last 3 numbers of the module


designation (750-xxx).

window

WORD

Window for 'module type' in ascending


direction.

Comments:
Physical position of the first module
from which the more detailed
information is to be determined
(1-64).
Physical position of the last module
from which the more detailed
information is to be determined
(0-64).
Which module of a row of a type is
meant (1-64).

Header:
TYPE MODULE_INFO_ACCESS :
STRUCT
physicalPosOf : BYTE;
physicalPosTo : BYTE;
typeNumber : BYTE;
moduleType : WORD;
window : WORD;
END_STRUCT
END_TYPE

A-16 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Data type description:


This data type is a structure and indicates which module more detailed process
image information is to be determined.
Three different access types are possible:
physicalPosTo <> 0:
Determine more detailed module information from 'physicalPosOf' to
'physicalPosTo'. 'physicalPosOf' and 'physicalPosTo' may be identical.
physicalPosTo = 0 AND moduleType <> 0:
Determine more detailed module information which is specified by 'type number',
'module type' and 'window'.
physicalPosTo = 0 AND moduleType = 0:
Determine more detailed information of all connected modules.
Example:
rd

Determine information for the 3 connected module of type 750-650/651/652/653:


physicalPosTo = 0
typeNumber = 3;
moduleType = 650;
window = 3;

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-17

PI_INFORMATION

PI_INFORMATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


PI_INFORMATION
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:

Data type:

Comments:

Output parameters:
ANALOG_OUTLENGTH
ANALOG_INLENGTH
DIGITAL_OUTLENGTH
DIGITAL_INLENGTH
OUTPUTBITS_OFFSET
INPUTBITS_OFFSET

Data type:
WORD
WORD
WORD
WORD
WORD
WORD

Comments:
Number of analog output bits
Number of analog input bits
Number of digital output bits
Number of digital input bits
Number of bytes
Number of bytes

Graphic display:

Time behaviour:

Function description:
This function block offers the programmer the possibility to obtain information about
the structure of the process image.

A-18 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

READ_INPUT_BIT
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to the process image


READ_INPUT_BIT
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
WORD_ADDRESS

Data type:
WORD

BIT_ADDRESS

WORD

Output parameters:
VALUE
ERROR

Data type:
BOOL
BOOL

Comments:
Here the word address of the bit in the
process image is transferred.
Here the bit position in the word is
transferred.
Comments:
Current value of the read bit
TRUE in case an error has occurred.
Possible errors are an inadmissible
address. Otherwise FALSE

Graphic display:

Time behaviour:
WORD_ADDRESS
BIT_ADDRESS
VALUE
ERROR

Function description:
This function block offers the programmer the possibility of indirect access to the
process image. The current value of the input bit is made available immediately after
invoking the FB at the outputs. The function block must be used with particular care
as here the guidelines of IEC 61131-3 all addresses are assigned at the time of
programming and during the running time are not adhered to.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-19

READ_INPUT_WORD

READ_INPUT_WORD
WAGO-I/O-PRO - Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


READ_INPUT_WORD
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
WORD_ADDRESS

Data type:
WORD

Comments:
Here the word address of the word is
transferred to the process image.

Output parameters:
VALUE
ERROR

Data type:
WORD
BOOL

Comments:
Current value of the read word
TRUE if an error has occurred. Possible
errors are an inadmissible address,
otherwise FALSE

Graphic display:

Time behaviour:
WORD_ADDRESS
VALUE
ERROR

Function description:
This function block offers the programmer the possibility of indirect access to the
process image. The current value of the input word is made available immediately
after invoking the FB at the outputs. The function block must be used with particular
care as here the guidelines of IEC 61131-3 all addresses are assigned at the time
of programming and during the running time are not adhered to.

A-20 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

READ_OUTPUT_BIT
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


READ_OUTPUT_BIT
Function block X Program
Function
Mod_com.lib (from Version 1.1)
All programmable fieldbus controllers

Input parameters:
WORD_ADDRESS

Data type:
WORD

BIT_ADDRESS

WORD

Output parameters:
VALUE
ERROR

Data type:
BOOL
BOOL

Comments:
Here the word address of the bit are
transferred to the process image.
Here the bit position in the word is
transferred.
Comments:
Current value of the read bit.
TRUE if an error has occurred. Possible
errors are an inadmissible address,
otherwise FALSE.

Graphic display:

Time behaviour:
WORD_ADDRESS
BIT_ADDRESS
VALUE
ERROR

Function description:
This function block offers the programmer the possibility of indirect access to the
process image. The current value of the output bit is made available immediately
after invoking the FB at the outputs. The function block must be used with particular
care as here the guidelines of IEC 61131-3 all addresses are assigned at the time
of programming and during the running time are not adhered to.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-21

READ_OUTPUT_WORD

READ_OUTPUT_WORD
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


READ_OUTPUT_WORD
Function block X Program
Function
Mod_com.lib (from Version 1.1)
All programmable fieldbus controllers

Input parameters:
WORD_ADDRESS

Data type:
WORD

Comments:
Here the word address of the bits are
transferred to the process image.

Output parameters:
VALUE
ERROR

Data type:
WORD
BOOL

Comments:
Current value of the read bit.
TRUE if an error has occurred. Possible
errors are an inadmissible address,
otherwise FALSE.

Graphic display:

Time behaviour:
WORD_ADDRESS
VALUE
ERROR

Function description:
This function block offers the programmer the possibility of indirect access to the
process image. The current value of the output word is made available immediately
after invoking the FB at the outputs. The function block must be used with particular
care as here the guidelines of IEC 61131-3 all addresses are assigned at the time
of programming and during the running time are not adhered to.

A-22 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

SET_DIGITAL_INPUT_OFFSET
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Access to process image


SET_DIGITAL_INPUT_OFFSET
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
EN

Data type:
BOOL

DIG_IN_OFFSET

WORD

Output parameters:
ENO

Data type:
BOOL

ERROR

WORD

Comments:
FB execution control. The function
block is executed on a rising edge at
EN.
Byte address, from where the bits of the
digital input modules are to be filed.
The permissible value range is 0..511.
With the assignment of 0 the digital
inputs are saved directly behind the
bytes of the analogue modules, if
analogue modules are present.
Comments:
FB execution result. ENO is TRUE as
long as EN is TRUE.
Fault encountered.
0: No fault
0x0001: This funktion is not supported.
0x8001: The given value is too small
and will collide with the analogue data.
0x8003: The given value is too large
and will collide with the variable ranges.
0x8005: The given value is larger than
the maximum permissible value.

Header:
FUNCTION_BLOCK SET_DIGITAL_INPUT_OFFSET
VAR_INPUT
EN: BOOL;
DIG_IN_OFFSET: WORD;
END_VAR
VAR_OUTPUT
ENO: BOOL;
ERROR: WORD;
END_VAR

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-23

SET_DIGITAL_INPUT_OFFSET

Graphic display:

Time behaviour:
EN
DIG_IN_OFFSET
ENO
ERROR

Function description:
This function sets the address offsets current value for the digital inputs. The
changed configuration is used when reading the input PA during the next PLC cycle.
The value is permanently saved in the controller.
When entering an invalid offset value the controller transmits the blink code 10 with
the blink argument 1. The data exchange between the controller and the modules is
stopped.
The default value when supplying the controllers is 0. As the value is saved
permanently, for safety reasons the value should be set once again in the user
program.
The saved value can be read with the FB GET_DIGITAL_INPUT_OFFSET.
The current start address for the bits of the digital outputs can be interrogated with
the FB PI_INFORMATION. The output INPUTBITS_OFFSET emits the value.

A-24 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

SET_DIGITAL_OUTPUT_OFFSET
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Access to process image


SET_DIGITAL_OUTPUT_OFFSET
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
EN

Data type:
BOOL

DIG_OUT_OFFSET

WORD

Output parameters:
ENO

Data type:
BOOL

ERROR

WORD

Comments:
FB execution control. The function
block is executed on a rising edge at
EN.
Byte address, from where the bits of the
digital output modules are to be filed.
The permissible value range is 0..511.
With the assignment of 0 the digital
outputs are saved directly behind the
bytes of the analogue modules, if
analogue modules are present.
Comments:
FB execution result. ENO is TRUE as
long as EN is TRUE.
Fault encountered.
0: No fault
0x0001: This funktion is not supported.
0x8002: The given value is too small
and will collide with the analogue data.
0x8004: The given value is too large
and will collide with the variable ranges.
0x8006: The given value is larger than
the maximum permissible value.

Header:
FUNCTION_BLOCK SET_DIGITAL_OUTPUT_OFFSET
VAR_INPUT
EN: BOOL;
DIG_OUT_OFFSET: WORD;
END_VAR
VAR_OUTPUT
ENO: BOOL;
ERROR: WORD;
END_VAR

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-25

SET_DIGITAL_OUTPUT_OFFSET

Graphic display:

Time behaviour:
EN
DIG_OUT_OFFSET
ENO
ERROR

Function description:
This function sets the address offsets current value for the digital outputs. The
changed configuration is used when writing the output PA during the next PLC cycle.
The value is permanently saved in the controller.
When entering an invalid offset value the controller transmits the blink code 10 with
the blink argument 2. The data exchange between the controller and the modules is
stopped.
The default value when supplying the controllers is 0. As the value is saved
permanently, for safety reasons the value should be set once again in the user
program.
The saved value can be read with the FB GET_DIGITAL_OUTPUT_OFFSET.
The current start address for the bits of the digital outputs can be interrogated with
the FB PI_INFORMATION. The output OUTPUTBITS_OFFSET emits the value.

A-26 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

SLAVE_ADDRESS
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to system variables


SLAVE_ADDRESS
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:

Data type:

Comments:

Output parameters:
SLAVE_ADDRESS

Data type:
BYTE

Comments:
The current node address.

Graphic display:

Time behaviour:

Function description:
This function block allows the programmer access to the address set on the
programmable fieldbus controller. The address is made available when invoking the
FB.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-27

WRITE_OUTPUT_BIT

WRITE_OUTPUT_BIT
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


WRITE_OUTPUT_BIT
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
WORD_ADDRESS

Data type:
WORD

BIT_ADDRESS

WORD

VALUE

BIT

Output parameters:
ERROR

Data type:
BOOL

Comments:
Here the word address of the word is
transferred to the process image.
Here the bit position in the word is
transferred.
Value to be written.
Comments:
TRUE if an error has occurred. Possible
errors are an inadmissible address,
otherwise FALSE.

Graphic display:

Time behaviour:
WORD_ADDRESS
BIT_ADDRESS
VALUE
ERROR

Function description:
This function block offers the programmer the possibility of indirect access to the
process image. The current value of the output bit is made available immediately
after invoking the FB. The function block must be used with particular care as here
the guidelines of IEC 61131-3 all addresses are assigned at the time of
programming and during the running time are not adhered to.

A-28 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WRITE_OUTPUT_WORD
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Indirect access to process image


WRITE_OUTPUT_WORD
Function block X Program
Function
Mod_com.lib
All programmable fieldbus controllers

Input parameters:
WORD_ADDRESS

Data type:
WORD

VALUE

WORD

Output parameters:
ERROR

Data type:
BOOL

Comments:
Here the word address of the word is
transferred to the process image.
Value to be written.
Comments:
TRUE if an error has occurred. Possible
errors are an inadmissible address,
otherwise FALSE.

Graphic display:

Time behaviour:
WORD_ADDRESS
VALUE
ERROR

Function description:
This function block offers the programmer the possibility of indirect access to the
process image. The current value of the output word is made available immediately
after invoking the FB. The function block must be used with particular care as here
the guidelines of IEC 61131-3 all addresses are assigned at the time of
programming and during the running time are not adhered to.

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com A-29

A-30 Mod_com.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

Standard.lib

Contents
ASCIIBYTE_TO_STRING .........................................................................3
REAL_STATE .............................................................................................4
STANDARD_VERSION.............................................................................6
STRING_COMPARE ..................................................................................7
STRING_TO_ASCIIBYTE .........................................................................8

WAGO-I/O-PRO 32

Standard A-1

A-2 Standard

WAGO-I/O-PRO 32

Appendix A Additional Libraries

ASCIIBYTE_TO_STRING
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

STRING function
ASCIIBYTE_TO_STRING
Function X
Function block
Program
Standard.lib
All programmable fieldbus controllers

Input parameters:
byt

Data type:
BYTE

Comments:
The input value is a number of data
type BYTE.

Return value:
ASCIIBYTE_TO_STRING

Data type:
STRING

Comments:
The return value of the function is a
character of data type STRING.

Graphic display:

Time behaviour:

Function description:
This function convents a number from data type BYTE to a character of data type
STRING.

WAGO-I/O-PRO 32

Standard A-3

REAL_STATE

REAL_STATE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Information about Real operations


REAL_STATE
Function block X Program
Function
Standard.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE initialises the variable error
again to zero.

Output parameters:
ERROR

Data type:
BYTE

Comments:
A value unequal to zero indicates an
error with a real operation.

Graphic display:

Time behaviour:

Function description:
This function block offers the programmer the possibility to react to errors occurring
during computation with floating point numbers. In a program the function block
REAL_STATE can be invoked after each operation in order to recognize a number
overflow. In the event of an error, the ERROR output adopts a value unequal zero.

A-4 Standard

WAGO-I/O-PRO 32

Appendix A Additional Libraries

The following output values are possible:


ERROR = 3 -> Integer overflow
ERROR = 4 -> Floating overflow
ERROR = 5 -> Floating underflow
ERROR = 7 -> Divide by zero
ERROR = 9 -> Undefined float
ERROR = 10 -> Conversion error
ERROR = 11 -> Floating point stack underflow
ERROR = 12 -> Floating point stack overflow

WAGO-I/O-PRO 32

Standard A-5

STANDARD_VERSION

STANDARD_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


STANDARD_VERSION
Function X
Function block
Program
Standard.lib
All programmable fieldbus controllers

Input parameters:
EN

Data type:
BOOL

Comments:
A TRUE at this input activates this
function.

Return value:
STANDARD_VERSION

Data type:
WORD

Comments:
Library version of Standard.lib.

Graphic display:

Time behaviour:
EN
STANDARD VERSION

Function description:
The STANDARD_VERSION function returns the current library version number. This
function can be used for information purposes during program development.
Furthermore it can serve to avoid version conflicts with the running time.

A-6 Standard

Version:

Description:

1.0

First version (16#100)

WAGO-I/O-PRO 32

Appendix A Additional Libraries

STRING_COMPARE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

STRING function
STRING_COMPARE
Function X
Function block
Program
Standard.lib
All programmable fieldbus controllers

Input parameters:
STR1

Data type:
STRING

STR2

STRING

Return value:
STRING_COMPARE

Data type:
BOOL

Comments:
A character string with max. 255
characters.
A character string with max. 255
characters.
Comments:
Returns the results of the comparison.

Graphic display:

Time behaviour:

Function description:
Using this function the programmer can compare two character strings each with
max. 255 characters. If they coincide function feeds back TRUE. If the character
chains are, however, not identical FALSE is feedback.

WAGO-I/O-PRO 32

Standard A-7

STRING_TO_ASCIIBYTE

STRING_TO_ASCIIBYTE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

STRING function
STRING_TO_ASCIIBYTE
Function X
Function block
Program
Standard.lib
All programmable fieldbus controllers

Input parameters:
str

Data type:
STRING

Comments:
A character string with max. 255
characters.

Return value:
STRING_TO_ASCIIBYTE

Data type:
BYTE

Comments:
The return value of the function is a
number of data type BYTE.

Graphic display:

Time behaviour:

Function description:
This function converts a character, from data type STRING to a character of data
type BYTE.

A-8 Standard

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32

Standard A-9

A-10 Standard

WAGO-I/O-PRO 32

Appendix A - Additional Libraries

WAGO-I/O-PRO 32 Library

System.lib

Contents
GET_ACT_CYCLE .....................................................................................3
GET_MAX_CYCLE....................................................................................4
GET_MIN_CYCLE .....................................................................................5
GET_PLC_ACT_CYCLE............................................................................6
GET_PLC_MAX_CYCLE ..........................................................................7
GET_PLC_MIN_CYCLE............................................................................8
GET_PROGRAM_ID ..................................................................................9
GET_RUN_VALUE ..................................................................................10
GET_STOP_VALUE.................................................................................11
SYSTEM_VERSION.................................................................................12

WAGO-I/O-PRO 32

System A-1

A-2 System

WAGO-I/O-PRO 32

Appendix A - Additional Libraries

GET_ACT_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_ACT_CYCLE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE at this input resets the output
value (only for compatibility reasons
with other xxx_CYCLE functions).

Return value:
GET_ACT_CYCLE

Data type:
TIME

Comments:
Current cycle time for a complete
program cycle, consisting of a I/0
processing, user program and
operating system functions.

Graphic display:

Time behaviour:
RESET
GET_ACT_CYCLE

Function description:
The GET_ACT_CYCLE function returns the current time for the execution of a
program cycle including I/0 processing and operating system functions with a 1 ms
resolution.

WAGO-I/O-PRO 32

System A-3

GET_MAX_CYCLE

GET_MAX_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_MAX_CYCLE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE at this input resets the output
value. (only for compatibility reasons
with other xxx_CYCLE functions)

Return value:
GET_MAX_CYCLE

Data type:
TIME

Comments:
Maximum cycle time for a complete
program cycles consisting of I/0
processing, user program and
operation system functions since the
last reset (or program start).

Graphic display:

Time behaviour:
RESET
GET_MAX_CYCLE

Function description:
The GET_MAX_CYCLE function returns the maximum time for the execution of a
program cycle including I/0 processing and operating system functions with a 1 ms
resolution. the output value is set to 0 following a program start.

A-4 System

WAGO-I/O-PRO 32

Appendix A - Additional Libraries

GET_MIN_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_MIN_CYCLE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE at this input resets the output
value. (only for compatibility reasons
with other xxx_CYCLE functions).

Return value:
GET_MIN_CYCLE

Data type:
TIME

Comments:
Minimum cycle time for a complete
program cycles consisting of I/0
processing, user program and
operation system functions since the
last reset (or program start).

Graphic display:

Time behaviour:
RESET
GET_MIN_CYCLE

max

max

Function description:
The GET_MIN_CYCLE function returns the minimum time for the execution of a
program cycle including I/0 processing and operating system function with a 1 ms
resolution. Following a program start, the output value is set to the numerical
maximum value (T#1m5s535ms).

WAGO-I/O-PRO 32

System A-5

GET_PLC_ACT_CYCLE

GET_PLC_ACT_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_PLC_ACT_CYCLE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE at this input resets the output
value. (only for compatibility reasons
with other xxx_CYCLE functions).

Return value:
GET_PLC_ACT_CYCLE

Data type:
TIME

Comments:
Current cycle time for a complete
program cycle of the user program.

Graphic display:

Time behaviour:
RESET
GET PLC ACT CYCLE

Function description:
The GET_PLC_ACT_CYCLE function returns the current time for the execution of a
program cycle at a 1 ms resolution.

A-6 System

WAGO-I/O-PRO 32

Appendix A - Additional Libraries

GET_PLC_MAX_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_PLC_MAX_CYCLE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE at this input resets the output
value. (only for compatibility reasons
with other xxx_CYCLE functions).

Return value:
GET_PLC_MAX_CYCLE

Data type:
TIME

Comments:
Maximum cycle time for a complete
program cycle of the user program
since the last reset (or program start).

Graphic display:

Time behaviour:
RESET
GET_PLC_MAX_CYCLE

Function description:
The GET_PLC_MAX_CYCLE function returns the maximum time for the execution of
a program cycle at a 1 ms resolution. Following a program start, the output value is
set to 0.

WAGO-I/O-PRO 32

System A-7

GET_PLC_MIN_CYCLE

GET_PLC_MIN_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_PLC_MIN_CYCLE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
A TRUE at this input resets the output
value. (only for compatibility reasons
with other xxx_CYCLE functions).

Return value:
GET_PLC_MIN_CYCLE

Data type:
TIME

Comments:
Minimum cycle time for a complete
program cycle of the user program
since the last reset (or program start).

Graphic display:

Time behaviour:
RESET
GET_PLC_MIN_CYCLE

max

max

Function description:
The GET_PLC_MIN_CYCLE function returns the minimum time for the execution of
a program cycle with a 1 ms resolution. Following a program start, the output value is
set to the numerical maximum value (T#1m5s535ms).

A-8 System

WAGO-I/O-PRO 32

Appendix A - Additional Libraries

GET_PROGRAM_ID
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_PROGRAM_ID
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameter:
EN

Data type:
BOOL

Comments:
This function is activated by a TRUE at
this input.

Return value:
GET_PROGRAM_ID

Data type:
DWORD

Comments:
Program ID of the current SPS
programm

Graphic display:

Time behaviour:

Function description:
The function GET_PROGRAM_ID sends back the current ID of the SPS program.
The identifier being modified with each online change, this function can be used to
identify an online change.
Available as from library version 3.0

WAGO-I/O-PRO 32

System A-9

GET_RUN_VALUE

GET_RUN_VALUE
WAGO-I/O-PRO - Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_RUN_VALUE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
The value at this input is not taken into
account (the input has only been
inserted because functions must have
an input).

Return value:
GET_RUN_VALUE

Data type:
BOOL

Comments:
The output is TRUE for one cycle after
a PLC start.

Graphic display:

Time behaviour:
RESET
GET_RUN_VALUE
Start

Function description:
The GET_RUN_VALUE function helps to recognise the first PLC cycle after the
program start. The user can then program the PLC starting behaviour. The output is
TRUE only for one cycle. See also GET_STOP_VALUE to recognise a program
stop.
Available as from library version 2.0

A-10 System

WAGO-I/O-PRO 32

Appendix A - Additional Libraries

GET_STOP_VALUE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


GET_STOP_VALUE
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
RESET

Data type:
BOOL

Comments:
The value at this input is not taken into
account (the input has only been
inserted because functions must have
an input).

Return value:
GET_STOP_VALUE

Data type:
BOOL

Comments:
The output is TRUE in the last cycle
before a PLC stop.

Graphic display:

Time behaviour:
RESET
GET_STOP_VALUE
Stop

Function description:
The GET_STOP_VALUE function helps to recognise the last PLC cycle before a
program stop. The user can then program the PLC behaviour when stopped. The
output is TRUE only for one cycle. See also GET_ RUN _VALUE to recognise a
program start.
The PLC outputs can be switched in a safe state with this function.
Available as from library version 2.0

WAGO-I/O-PRO 32

System A-11

SYSTEM_VERSION

SYSTEM_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Running time diagnosis


SYSTEM_VERSION
Function X
Function block
Program
System.lib
All programmable fieldbus controllers

Input parameters:
EN

Data type:
BOOL

Comments:
A TRUE at this input activates this
function.

Return value:
SYSTEM_VERSION

Data type:
WORD

Comments:
Library version.

Graphic display:

Time behaviour:
EN
SYSTEM_VERSION

Function description:
The SYSTEM_VERSION function returns the current library version number. This
function can be used for information purposes during program development.
Furthermore it can serve to avoid version conflicts with the running time.

Version:

Description:

1.0
2.0

First version (16#100)


The GET_RUN_VALUE function and
GET_STOP_VALUE have been completed (16#200)
The function GET_PROGRAM_ID was supplemented. (16#300)

3.0

A-12 System

WAGO-I/O-PRO 32

A-14 System

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

CIA405.lib

Contents
CIA405_GET_KERNEL_STATUS ............................................................3
CIA405_GET_LOCAL_NODE_ID.............................................................4
CIA405_RECV_EMY .................................................................................5
CIA405_RECV_EMY_DEV .......................................................................6
CIA405_GET_STATE.................................................................................7
CIA405_SDO_READ21 ..............................................................................8
CIA405_SDO_READ210 ..........................................................................10
CIA405_SDO_READ4 ..............................................................................12
CIA405_SDO_READ7 ..............................................................................14
CIA405_SDO_WRITE21 ..........................................................................16
CIA405_SDO_WRITE210 ........................................................................18
CIA405_SDO_WRITE4 ............................................................................20
CIA405_SDO_WRITE7 ............................................................................22
CIA405_VERSION....................................................................................24
EXCEPTION_HANDLER.........................................................................25
NMT_ADDNODE .....................................................................................28
NMT_CHANGE_STATE..........................................................................30
NMT_DELNODE ......................................................................................32
NMT_GUARDING....................................................................................33
NMT_SLAVE_IN_NW_LIST...................................................................35
SEND_CAN_FRAME ...............................................................................36
SYNC_MASTER_SEND_SYNC..............................................................38

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-1

A-2 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

CIA405_GET_KERNEL_STATUS
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_GET_KERNEL_STATUS
Function block X
Function
Program
CIA405.lib
All Programable fieldbus controllers

Input parameter:

Data type:

Comments:

Output parameter:
STATUS

Data type:
CIA405_
CANOPEN_
KERNEL_ERROR

Comments:
Current status of the CANopen kernel
currently supported return values
0 = no error
1 = different error (not specificially
listed)
2 = data overflow
16 = CAN Bus off

Graphical display:

Time behaviour:
Function description:
The function module CIA405_GET_KERNEL_STATUS returns the status of the
CANopen kernel.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-3

CIA405_GET_LOCAL_NODE_ID

CIA405_GET_LOCAL_NODE_ID
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_GET_LOCAL_NODE_ID
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:

Data type:

Comments:

Output parameter:
DEVICE

Data type:
CIA405_DEVICE

Comments:
Own module ID

Graphical display:

Time behaviour:
Function description:
The function module CIA405_GET_LOCAL_NODE_ID returns its own module ID.

A-4 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

CIA405_RECV_EMY
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_RECV_EMY
Function block X
Function
Program
CIA405.lib
All Programable fieldbus controllers

Input parameter:

Data type:

Comments:

Output parameter:
CONFIRM

Data type:
BOOL

DEVICE

CIA405_DEVICE

ERROR

CIA405_
CANOPEN_
KERNEL_ERROR

EMY_ERROR

CIA405_EMY_
ERROR

Comments:
TRUE: Emergency received
FALSE: No emergency received
ID of the module which sent the
emergency
Error information of the CANopen
kernel
0 = no error
33 = Function block is not supported
in the firmware
Contains the emergency - error
information as specified in the
standard DS301

Graphical display:

Time behaviour:
Function description:
The function block CIA405_RECV_EMY checks if an emergency message has been
received. If this is the case CONFIRM is set to TRUE and ERROR is set to 0.
EMY_ERROR then contains the emergency information and DEVICE the module ID
of the emergency sender. If no emergency is received CONFIRM is set to FALSE.
Only emergency messages are received from modules which have been previously
configured with the function block NMT_ADDNODE or from their own module.
If more emergencies are received than can be buffered, then these are displayed via
the function block EXCEPTION_HANDLER.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-5

CIA405_RECV_EMY_DEV

CIA405_RECV_EMY_DEV
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_RECV_EMY_DEV
Function block X
Function
Program
CIA405.lib
All Programable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

Comments:
Module ID

Output parameter:
CONFIRM

Data type:
BOOL

ERROR

CIA405_
CANOPEN_
KERNEL_ERROR

EMY_ERROR

CIA405_EMY_
ERROR

Comments:
TRUE: Emergency received from
specified module
FALSE: No emergency received from
specified module
Error information of the CANopen
kernel
0 = no error
33 = Function block is not supported
in the firmware
Contains the emergency - error
information as specified in the
standard DS301.

Graphical display:

Time behaviour:
Function description:
The function block CIA405_RECV_EMY_DEV checks if emergency message is
received from the specified module (DEVICE). If this is the case CONFIRM is set to
TRUE and ERROR is set to 0. EMY_ERROR then contains the emergency
information. If no emergency is received then CONFIRM is set to FALSE.
Only emergency message is received from modules which have been previously
configured with the function block NMT_ADDNODE or from their own module.
If more emergencies are received than can be buffered, then these are displayed via
the function block EXCEPTION_HANDLER.

A-6 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

CIA405_GET_STATE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_GET_STATE
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

Comments:
Module ID

Output parameter:
STATUS

Data type:
CIA405_STATUS

Comments:
CANopen network status of the
selected module

Graphical display:

Time behaviour:

Function description:
The function module CIA405_GET_STATE returns the CANopen network status of
the selected module. Also the own module can be interrogated.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-7

CIA405_SDO_READ21

CIA405_SDO_READ21
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_READ21
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX

WORD

Comments:
Module ID, module from which data
are to be read (1..127)
Index of the object directory

SUBINDEX

BYTE

Sub-index of the object directory

ENABLE

BOOL

Start / abort reading

Output parameter:
DATA

Comments:
Data received

DATALENGTH

Data type:
ARRAY [1..21]
of BYTE
USINT

CONFIRM

BOOL

Confirmation of performance

ERROR

CIA405_
CANOPEN_
KERNEL_ERROR

ERRORINFO

CIA405_SDO_
ERROR

Error information of the CANopen


kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Number of valid data (max.21)

Graphical display:

A-8 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_READ21 returns the value of an object directory
entry (max. data size = 21 bytes). The module is selected by the DEVICE
parameter (an own module is also possible). Index and Sub-index describe the
object directory entry to be read.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has received the
requested data without error, it signals this fact by changing CONFIRM to TRUE.
The output parameters DATA and DATALENGTH now have valid values, ERROR is
set to 0. Setting the ENABLE parameter to FALSE (by the invoker) results in
automatically setting CONFIRM to FALSE, and the function module has regained its
basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERRORINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function module basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted. As such CONFIRM and ERROR are
automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-9

CIA405_SDO_READ210

CIA405_SDO_READ210
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_READ210
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE

WORD
BYTE
BOOL

Output parameter:
DATA

Data type:
ARRAY [1..210]
of BYTE
USINT
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

DATALENGTH
CONFIRM
ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Module ID, module from which data
are to be read (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort reading
Comments:
Data received
Number of valid data (max.210)
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Graphical display:

A-10 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_READ210 returns the value of an object directory
entry (max. data size = 210 bytes). The module is selected by the DEVICE
parameter (an own module is also possible). Index and Sub-index describe the
object directory entry to be read.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has received the
requested data without error, it signals this fact by changing CONFIRM to TRUE.
The output parameters DATA and DATALENGTH now have valid values, ERROR is
set to 0. Setting the ENABLE parameter to FALSE (by the invoker) results in
automatically setting CONFIRM to FALSE, and the function module has regained its
basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERRORINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted. As such CONFIRM and ERROR are
automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-11

CIA405_SDO_READ4

CIA405_SDO_READ4
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_READ4
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE

WORD
BYTE
BOOL

Output parameter:
DATA

Data type:
ARRAY [1..4]
of BYTE
USINT
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

DATALENGTH
CONFIRM
ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Module ID, module from which data is
to be read (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort reading
Comments:
Data received
Number of valid data (max. 4)
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Graphical display:

A-12 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_READ4 returns the value of an object directory
entry (max. data size = 4 bytes). The module is selected by the DEVICE parameter
(an own module is also possible). Index and Sub-index describe the object directory
entry to be read.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has received the
requested data without error, it signals this fact by changing CONFIRM to TRUE.
The output parameters DATA and DATALENGTH now have valid values, ERROR is
set to 0. Setting the ENABLE parameter to FALSE (by the invoker) results in
automatically setting CONFIRM to FALSE, and the function block has regained its
basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERRORINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted. As such CONFIRM and ERROR are
automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-13

CIA405_SDO_READ7

CIA405_SDO_READ7
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_READ7
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE

WORD
BYTE
BOOL

Output parameter:
DATA

Data type:
ARRAY [1..7]
of BYTE
USINT
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

DATALENGTH
CONFIRM
ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Module ID, module from which data is
to be read (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort reading
Comments:
Data received
Number of valid data (max. 7)
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Graphical display:

A-14 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_READ7 returns the value of an object directory
entry (max. data size = 7 bytes). The module is selected by the DEVICE parameter
(an own module is also possible). Index and Sub-index describe the object directory
entry to be read.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has received the
requested data without error, it signals this fact by changing CONFIRM to TRUE.
The output parameters DATA and DATALENGTH now have valid values, ERROR is
set to 0. Setting the ENABLE parameter to FALSE (by the invoker) results in
automatically setting CONFIRM to FALSE, and the function block has regained its
basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERRORINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted. As such CONFIRM and ERROR are
automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-15

CIA405_SDO_WRITE21

CIA405_SDO_WRITE21
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_WRITE21
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE
DATA

WORD
BYTE
BOOL
ARRAY [1..21]
of BYTE

DATALENGTH

USINT

Number of valid data (max. 21)

Output parameter:
CONFIRM
ERROR

Data type:
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Comments:
Module ID, module to which data is to
be written (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort writing
Data to be written

Graphical display:

A-16 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_WRITE21 writes the specified data into the object
directory of a module (max. data size = 21 bytes). The module is selected by the
DEVICE parameter (an own module is also possible). Index and Sub-index specify
the object directory entry to be described.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has sent the
data to be written without error, it signals this fact by changing CONFIRM to TRUE
and the ERRORO is 0. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function block has
regained its basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERROROINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted if this is still possible. As such
CONFIRM and ERROR are automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-17

CIA405_SDO_WRITE210

CIA405_SDO_WRITE210
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_WRITE210
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE
DATA

WORD
BYTE
BOOL
ARRAY [1..210]
of BYTE

DATALENGTH

USINT

Number of valid data (max. 210)

Output parameter:
CONFIRM
ERROR

Data type:
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Comments:
Module ID, module to which data is to
be written (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort writing
Data to be written

Graphical display:

A-18 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_WRITE210 writes the specified data into the object
directory of a module (max. data size = 210 bytes). The module is selected by the
DEVICE parameter (an own module is also possible). Index and Sub-index specify
the object directory entry to be described.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has sent the
data to be written without error, it signals this fact by changing CONFIRM to TRUE
and the ERRORO is 0. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function block has
regained its basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERROROINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted if this is still possible. As such
CONFIRM and ERROR are automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-19

CIA405_SDO_WRITE4

CIA405_SDO_WRITE4
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_WRITE4
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE
DATA

WORD
BYTE
BOOL
ARRAY [1..4]
of BYTE

DATALENGTH

USINT

Number of valid data (max. 4)

Output parameter:
CONFIRM
ERROR

Data type:
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Comments:
Module ID, module to which data is to
be written (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort writing
Data to be written

Graphical display:

A-20 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_WRITE4 writes the specified data into the object
directory of a module (max. data size = 4 bytes). The module is selected by the
DEVICE parameter (an own module is also possible). Index and Sub-index specify
the object directory entry to be described.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has sent the
data to be written without error, it signals this fact by changing CONFIRM to TRUE
and the ERROR is 0. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function block has
regained its basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERRORINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted if this is still possible. As such
CONFIRM and ERROR are automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-21

CIA405_SDO_WRITE7

CIA405_SDO_WRITE7
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen according to CiA 405


CIA405_SDO_WRITE7
Function block X
Function
Program
CIA405.lib
All programmable fieldbus controllers

Input parameter:
DEVICE

Data type:
CIA405_DEVICE

INDEX
SUBINDEX
ENABLE
DATA

WORD
BYTE
BOOL
ARRAY [1..7]
of BYTE

DATALENGTH

USINT

Number of valid data (max. 7)

Output parameter:
CONFIRM
ERROR

Data type:
BOOL
CIA405_
CANOPEN_
KERNEL_ERROR

ERRORINFO

CIA405_SDO_
ERROR

Comments:
Confirmation of performance
Error information of the CANopen
kernel
0 = no error
1 = different error (not specifically
listed)
2 = Data overflow
3 = Timeout
SDO Error information acc. to
DS-301

Comments:
Module ID, Module to which data is to
be written (1..127)
Index of the object directory
Sub-index of the object directory
Start / Abort writing
Data to be written

Graphical display:

A-22 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block CIA405_SDO_WRITE7 writes the specified data into the object
directory of a module (max. data size = 7 bytes). The module is selected by the
DEVICE parameter (an own module is also possible). Index and Sub-index specify
the object directory entry to be described.
The result of the function block invocation cannot be available before several cycles
later.
Once all input parameters have received their valid values, the invoker sets ENABLE
to TRUE. This results in sending the SDO. When the CAN software has sent the
data to be written without error, it signals this fact by changing CONFIRM to TRUE
and the ERROR is 0. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function block has
regained its basic status.
Should an error occur during the SDO transmission (e.g. Timeout, Index not existing,
etc.) CONFIRM is also set to TRUE, however, ERROR has a value unequal to 0.
The parameter ERRORINFO contains the reason for the error. After evaluating the
error, ENABLE has to be reset to FALSE in order to regain the function block basic
status.
If the invoker sets the ENABLE parameter to FALSE prior to CONFIRM having
changed to TRUE, the transmission is aborted if this is still possible. As such
CONFIRM and ERROR are automatically set to FALSE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-23

CIA405_VERSION

CIA405_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


CIA405_VERSION
Function X
Function block
CIA405.lib
All programmable fieldbus controllers

Input parameter:
EN

Data type:
BOOL

Comments:
TRUE at this input activates this
function.

Return value:
CIA405_VERSION

Data type:
WORD

Comments:
Library version

Program

Graphical display:

Time behaviour:

Function description:
The function CIA405_VERSION returns the current library version number. During
program development, this function can be used for information purposes. Moreover,
version related conflicts can be voided during the running time.

Version:
5.0

A-24 CIA405.lib

Description:
Compatible with the WAGO-I/O-PRO 32 version 2.2 SR5. The
library works with the onlinechange feature.

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

EXCEPTION_HANDLER
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


EXCEPTION_HANDLER
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:

Data type:

Comments:

Output parameter:
CONFIRM

Data type:
BOOL

Comments:
TRUE: new error
FALSE: no new error has occured

ERR_SCR

ERR_SCR_TYPE

Error source
NMT_ERROR: Nodeguarding error
EMY_ERROR: Emergency error
SDO_ERROR: SDO error

ERR_NO

ERR_NO_TYPE

Error description (see function


description)

DATA_LENGTH

BYTE

Number of valid data

DATA

ARRAY [1..8] of
BYTE

Additional error information

Program

Graphical display:

Time behaviour:

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-25

EXCEPTION_HANDLER

Function description:
The function block EXCEPTION_HANDLER feeds back errors encountered. This
permits a direct error treatment. If a new error is determined then CONFIRM is set to
TRUE and an error is precisely specified on the other outputs. If no error has
occurred then CONFIRM is set to FALSE.

ERR_SRC: NMT_ERROR
ERR_NO
Description
Data
NMT_GUARD_ERROR
Node guarding from a module has failed
DATA[1]: Module ID of the faulty device
NMT_STATE_ERROR
Module supplies an unexpected status
DATA[1]: Module ID or the error device
DATA[2]: Expected master condition
DATA[3]: Current module status transmitted
NMT_TOGGLE_ERROR
The status matches that expected, however, the toggle bit is incorrect
DATA[1]: Module ID of faulty device
DATA[2]: Expected master condition
DATA[3]: Current module status sent

ERR_SRC: EMY_ERROR
ERR_NO
Description
Data
EMY_NO_DATABYTE
An emergency is received with data bytes (e.g. in DS301 V3.0 Bootup message)
DATA[1]: Module ID of the unit which has transmitted the emergency
EMY_QUEUE_ERROR
Maximum queue size between the emergencies buffers has been exceeded
DATA[1]: Module ID of the device which has transmitted the emergency and could
not be entered in the queue.

A-26 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

ERR_NO
Description
Data
SDO_HDL_ERROR
Received SDO segment contains an incorrect CAN-ID
DATA[1]: Index of the attendant client SDO parameter (e.g. 0 conforms to index
1280h in the object directory, 5 = 1285h, and so on)
SDO_STATE_ERROR
Received SDO segment contains an invalid command specifier
DATA[1]: ]: Invalid command specifier
SDO_TOGGLE_ERROR
Received SDO segment contains an incorrectly set toggle bit
No
SDO_LEN_ERROR
Received SDO block exceeds the maximum length stated in the function block
(e.g. CIA405_SDO_READ4 can receive a max. of 4 bytes)
DATA[1]: Received data length
SDO_ABORT_ERROR
Abort SDO Transfer received from server
DATA[1]: Index of the attendant client SDO parameter (e.g. 0 corresponds to index
1280h in object directory, 5 = 1285h, etc.)
DATA[2]..DATA[8]: Data bytes 1..7 from abort SDO transfer protocol
SDO_TIMEOUT_ERROR
No reply from the server within the time out time (500ms)
DATA[1]: Index of the attendant client SDO parameter (e.g. 0 corresponds to index
1280h in object directory, 5 = 1285h, etc.)

ERR_SRC: SDO_ERROR

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-27

NMT_ADDNODE

NMT_ADDNODE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


NMT_ADDNODE
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
NODE
GUARDTIME
LT_FACTOR
ENABLE

Data type:
BYTE
WORD
BYTE
BOOL

Comments:
Module ID
Guarding Time (ms)
Lifetime-Factor
Start transmit procedure for a CAN
message

Return value:
CONFIRM
ERROR

Data type:
BOOL
CAN_FRAME_
ERROR

Comments:
Confirmation of performance
Information for execution
NO_ERROR : no error
INVALID_NODE : Module ID
invalid (0 or greater than 127)
MEMORY_OVERFLOW : Number of
max. administrable modules
exceeded

Program

Graphical display:

Time behaviour:

A-28 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Function description:
The function block NMM_ADDNODE initialises the guarding object for the stated
module (NODE) with the guarding time (GUARDTIME) and the lifetime factor
(LT_FACTOR). Only after these function blocks have been performed is a guarding
monitoring and the receipt of emergency communication with the given module
possible. The lifetime factor multiplied by the guarding time gives the time after which
an error message (by means of function block EXCEPTION_HANDLER) is
generated if no guarding reply is received.
The initialising is performed by setting ENABLE to TRUE. After the performance
CONFIRM is set to TRUE. The status of the initialisation is displayed on the output
parameter ERROR. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function module has
regained its basic status.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-29

NMT_CHANGE_STATE

NMT_CHANGE_STATE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


NMT_CHANGE_STATE
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
NODE
STATE

Data type:
BYTE
DEVICE_STATE

ENABLE

BOOL

Return value:
CONFIRM
ERROR

Data type:
BOOL
CHANGE_STATE
_ERROR

Program

Comments:
Module ID
Action to be performed:
RESET_NODE : Reset the module
RESET_COMMUNICATION : Reset
the communication
SET_PRE_OPERATIONAL : Transfer
to pre-operational
SET_OPERATIONAL : Transfer to
operational
SET_STOPPED : Transfer to stopped
Start status change
Comments:
Confirmation of performance
Information to perform
CHANGE_OK : No errors
CHANGE_SEND_ERROR : Module
could not transmit CAN message
CHANGE_INVALID_NODE : Invalid
module ID (invalid area, not initialised)

Graphical display:

A-30 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
A condition change of a previously initialised module can be triggered (using the
function block NMT_ADDNODE) using the function block NMT_CHANGE_STATE. If
a 0 is transferred as a NODE parameter, then all modules are transferred to the
new status, except for the module which has triggered the command (NMT Master).
If a status change is to be generated then this must be explicitly triggered.
The status change is performed by setting ENABLE to TRUE. After performance
CONFIRM is set to TRUE. The status of the status change is displayed at the output
parameter ERROR. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function module has
regained its basic status.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-31

NMT_DELNODE

NMT_DELNODE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


NMT_DELNODE
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
NODE

Data type:
BYTE

Comments:
Module ID

Output parameter:
CONFIRM

Data type:
BOOL

Comments:
Confirmation of performance
FALSE/TRUE Error/OK

Program

Graphical display:

Time behaviour:
Function description:
The function block NMT_DELNODE deletes the stated node from the list for the
slaves to be treated. Once the function is successfully performed it is no longer
possible for this node to perform a guarding monitoring or to receive emergency
messages.

A-32 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

NMT_GUARDING
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


NMT_GUARDING
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
NODE
GUARDING

Data type:
BYTE
BOOL

ENABLE

BOOL

Return value:
CONFIRM
ERROR

Data type:
BOOL
GUARD_ERROR

Program

Comments:
Module ID
TRUE : Start Guarding
FALSE : Stop Guarding
Perform function block
Comments:
Confirmation of performance
Information for performance
GUARD_OK : no error
GUARD_INVALID_NODE :
invalid module ID (invalid area, not
initialised)

Graphical display:

Time behaviour:

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-33

NMT_GUARDING

Function description:
Using the function module NMT_GUARDING the guarding monitoring can be
switched on and off.
If no or an incorrect reply follows a guarding request then this is displayed using the
function block EXCEPTION_HANDLER.
If a 0 is transferred as NODE parameter, then all configured modules of the
guarding are switched on or off.
By setting ENABLE to TRUE the guarding monitoring is activated / deactivated. After
performance CONFIRM is set as TRUE. The status is displayed at the output
parameter ERROR. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function block has
regained its basic status.

A-34 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

NMT_SLAVE_IN_NW_LIST
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


NMT_SLAVE_IN_NW_LIST
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
NODE

Data type:
BYTE

Comments:
Module ID

Output parameter:
CONFIRM

Data type:
BOOL

Comments:
Confirmation of performance
FALSE/TRUE Slave
nor present/present

Program

Graphical display:

Time behaviour:

Function description:
The function block NMT_SLAVE_IN_NW_LIST feeds back whether the stated node
is in the internal slave list. This means: if the function block sends back the value
TRUE, the node was entered in the list with the aid of the function block
NMT_ADDNODE.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-35

SEND_CAN_FRAME

SEND_CAN_FRAME
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


SEND_CAN_FRAME
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
COB_ID
RTR_FRAME

Data type:
WORD
BOOL

Comments:
COB-ID of the CAN message
RTR or data message

DATA

ARRAY [1..8] of
BYTE

data to be written

DATALENGTH

BYTE

Number of valid data (max.8)

ENABLE

BOOL

Start transmit sequence of a CAN


message

Return value:
CONFIRM
ERROR

Data type:
BOOL
CAN_FRAME_
ERROR

Comments:
Confirmation of performance
Sends back information about the
transmitted CAN message
SEND_OK : CAN message
communication successfully sent
SEND_ERROR : CAN Controller
could not transmit CAN message
COB_ID_ERROR : Inadmissible
COB-ID used
DATALENGTH_ERROR : Data length
too large

Program

Graphical display:

A-36 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The function block SEND_CAN_FRAME transmits the stated data with the specified
COB-ID via the CAN bus. (max. data size = 8 bytes). The type of CAN
communication is specified using the input parameter RTR_FRAME (RTR_FRAMETRUE / FALSE = RTR-frame / data-frame).
By setting ENABLE to TRUE the CAN message is transmitted. After transmitting
CONFIRM is set to TRUE. The status of the transmission is displayed at the output
parameter ERROR. Setting the ENABLE parameter to FALSE (by the invoker)
results in automatically setting CONFIRM to FALSE, and the function module has
regained its basic status.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-37

SYNC_MASTER_SEND_SYNC

SYNC_MASTER_SEND_SYNC
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

Function modules for CANopen


SYNC_MASTER_SEND_SYNC
Function block X
Function
CIA405.lib
All programmable fieldbus controllers

Input parameter:
ENABLE

Data type:
BOOL

Comments:
Start transmission procedure of a
SYNC message

Output parameter:
CONFIRM

Data type:
BOOL

Comments:
Confirmation of performance

ERROR

SYNC_ERROR

Returns an information by means of


the SYNC message sent.
SYNC_OK : SYNC transmission was
successful
SYNC_SEND_ERROR : CAN
Controller could not send SYNC
message
SYNC_ID_ERROR : inadmissible
SYNC_ID used

Program

Graphical display:

Time behaviour:

A-38 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Function description:
The function module SYNC_MASTER_SEND_SYNC sends a SYNC message. The
COB-ID used in the SYNC message will be taken from the 0x1005 (COB-ID SYNC
message) index.
If the module is in the operational status, the receipt of a SYNC message is
emulated at the same time to be able to edit synchronously configured PDOs.
By setting ENABLE to TRUE a SYNC communication is transmitted. After
transmission CONFIRM is set to TRUE. The transmission status is displayed at the
output parameter ERROR. Setting the ENABLE parameter to FALSE (by the
invoker) results in automatically setting CONFIRM to FALSE, and the function
module has regained its basic status.

WAGO-I/O-PRO 32

Version 1.1.0

CIA405.lib A-39

A-40 CIA405.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

SerComm.lib

Contents
SERCOMM ....................................................................................................... 2
SERCOMM_VERSION .................................................................................... 7
COM_ACTION (Data type) .............................................................................. 9
COM_BAUDRATE (Data type)...................................................................... 10
COM_BYTESIZE (Data type) ........................................................................ 12
COM_FLOW_CONTROL (Data type) ........................................................... 13
COM_PARITY (Data type)............................................................................. 14
COM_STOPBITS (Data type)......................................................................... 15

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-1

SERCOMM

SERCOMM
WAGO-I/O-PRO 32 Library elements
Category:

Communication via the configuration interface of the


controller or via the serial interface modules

Name:

SERCOMM

Type:

Function

Library name:

SerComm.lib

Applicable to:

All programmable fieldbus controllers


except MODBUS

Input parameters:

Data type:

Comments:

EN

BOOL

FB execution control.
The function block is executed on a rising
edge at EN.

COMPORT

BYTE

Displays the COM-Port on which one of the


possible operations is performed, dependent
on the 'FB_ACTION'.

BAUDRATE

COM_
BAUDRATE

Displays the baud rate with which the data


is to be transmitted and received.

PARITY

COM_
PARITY

Shows if, and if yes, which parity is to be


used.

STOPBITS

COM_
STOPBITS

Indicates the number of stop bits to be used.

BYTESIZE

COM_
BYTESIZE

Displays the number of bits that represent a


data byte.

FLOW_CONTROL

COM_FLOW_ Shows if, and if yes, which type of flow


CONTROL
control is to be used.

FB_ACTION (as from


version 2.0, previously
'ACTION')

COM_
ACTION

Indicates the type of operation that is to be


performed on the set COM-Port.

BYTES_TO_DO

DWORD

Indicates the number of bytes to be written


or read.

IN_BUFFER

DWORD

Pointer on the buffer the data of which are


to be transmitted.

OUT_BUFFER

DWORD

Pointer on the buffer that accepts the data


received.

Function block X

Program

A-2 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries


Output parameters:

Data type:

Comments:

ENO

BOOL

Shows that an operation on the COM-Port


has been completely performed or aborted
with an error code (TRUE).

ERROR

BOOL

Indicates that an error has occurred during


an operation specified by 'FB_ACTION'
(TRUE).

LAST_ERROR

BYTE

If an error is indicated by 'ERROR', the


corresponding error code can be read out
here.

BYTES_DONE

DWORD

Displays the number of bytes already


transmitted during a write operation. With a
read operation, the number of bytes read is
returned.

Internal parameters:

Data type:

Comments:

INTERNAL_USE_DO_
NOT_MODIFY

ARRAY OF
BYTE

Internal array.
This array must not be modified by the user
program

Header:
(* Communication over a serial interface *)
FUNCTION_BLOCK SERCOMM
VAR_INPUT
EN : BOOL;
COMPORT : BYTE;
BAUDRATE : COM_BAUDRATE;
PARITY : COM_PARITY;
STOPBITS : COM_STOPBITS;
BYTESIZE : COM_BYTESIZE;
FLOW_CONTROL : COM_FLOW_CONTROL;
FB_ACTION : COM_ACTION;
BYTES_TO_DO : DWORD;
SEND_BUFFER : DWORD;
RECEIVE_BUFFER : DWORD;
END_VAR
VAR_OUTPUT
ENO : BOOL;
ERROR : BOOL;
LAST_ERROR : BYTE;
BYTES_DONE : DWORD;
END_VAR

(*
(*
(*
(*
(*
(*
(*

Initial
Initial
Initial
Initial
Initial
Initial
Initial

=
=
=
=
=
=
=

FALSE *)
COM1 *)
19200 Baud *)
even parity *)
one stopbit *)
8 Databits *)
No flow control *)

(* Initial = Open *)
(* Initial = 0 *)
(* Address of the send buffer *)
(* Address of the receive buffer *)

(* Indicates an error *)
(* Error code *)
(* Number of write/read bytes *)

VAR CONSTANT
INTERNAL_USE_DO_NOT_MODIFY : ARRAY [0..133] OF BYTE;
END_VAR

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-3

SERCOMM

Graphic display:

Time behavior:

A-4 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries


Function description:
This function block is intended to transmit and receive data via the controller configuration
interface and via connected interface modules of type 750-650/651/653. The controller serial
interface is termed COM 1. All connected interface modules of the above mentioned type can
be accessed in the order as connected, by COM 2 to COM 65. Only one COM port each can
be allocated to each instance of the function block 'SerComm'. In other words, an opened
COM port cannot be opened a second time. Furthermore, an operation on the port is only
possible with the instance of the FB used for opening that very COM port.
The following is a more detailed description of the different COM ports.
COM 1:
The serial interface of the controllers has a full duplex capability. This interface supports all
FB communication parameters specified. Only the flow control must be deactivated
(NO_FLOW_CONTROL) and 'BYTESIZE' must only have the value 'BS_8'. During data
transmission, the data is re-copied block by block into an internal buffer of the firmware,
from the send buffer assigned by 'SEND_BUFFER'. This means that the contents of the send
buffer should not be modified during the transmission process. The variable 'BYTES_DONE'
is updated at the time of sending a block. Once all data is sent, 'ENO' assumes the 'TRUE'
value.
During data receipt, these are written into an internal circular buffer annular buffer of 128
byte size. While receiving further data, the information in the circular buffer is written over,
unless data has already been read out of the circular buffer by a read operation.
Only when sending data is it possible to set the 'ENO' output to become activated only
several cycles later and thereby identifying the completion of the operation. In this case it is
not necessary to re-poll the FB until 'ENO' is set. If the COM port is closed, in the case of
low baud rates, directly following the sending of the data, it might be possible that the last
character will be skipped. In such a case, we recommend to wait a couple of cycles until the
COM port is closed.
If COM port 1 is opened, applications such as WAGO-I/O-PRO 32 or WAGO-I/O-CHECK
can no longer communicate via the configuration interface with the controller.
Communication is possible again, once the COM ports has closed.
COM 2 - 65:
The supported communication parameters depend on the interface module by which this
COM port is represented. For details, please refer to the individual data sheets of the bus
modules. If a bus module does not assist the temporary setting of communication parameters,
the communication parameters of the FB must coincide with those of the bus module,
otherwise it is not possible to open the COM port. All four possible operations (OPEN,
CLOSE, READ, WRITE) permit setting the 'ENO' output several cycles later. In this case it
is necessary to poll the FB several times until this output assumes the 'TRUE' value.
Compared to 'COM1', a separate action is executed internally for each action (OPEN,
CLOSE, READ, WRITE) at 'COM2 65'. A status change partially requires the termination
of a PLC cycle. Therefore, each instance of the FB must be polled only once per cycle and
per action! After an operation (ENO = TRUE) has been terminated, the internal actions are
executed first when a negative edge at the 'EN' input has been recognised. The internal states
are reset to the COM port following a successful 'CLOSE' operation, so that an operation not
yet terminated (ENO = FALSE) can be aborted. During a repeated poll of the FB to perform
an operation, all communication parameters can be modified, except 'ACTION' and
'COMPORT'. Analog to COM 1, the following holds true: the contents of the send buffer
should not be modified during transmission.
If the number of bytes contained in the input buffer of the module is bigger than the number
WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-5

SERCOMM

of data bytes to be read, the (maximum) next whole-numbered multiple of the data width in
the process image of the module is returned in bytes. This must be taken into account when
handling the input buffer.
If an attempt is made to open a COM port simultaneously over two instances, there is a
danger of conflict, resulting in one of the two operations being aborted with an error message.
Error codes:
0x00: No error.
0x01: This library is not supported by the firmware.
0x02: COM port outside of the valid area.
0x03: This function block instance has not yet been assigned a COM port.
0x04: This function block instance has already been assigned a different COM port.
0x05: COM port is already opened.
0x06: COM port is already closed.
0x07: COM port is not opened.
0x08: A write operation is still active (COM1).
0x09: These transfer parameters are not supported by the COM port.
0x0A: The current settings of the bus module could not be read.
0x0B: This library version does not yet support the temporary setting of
communication parameters.
0x0C: Bus module could not be initialised.
0x0D: Error when writing data into the FIFO memory of the bus module.
0x0E: The contents of the FIFO memory was not sent (continuous sending).
0x0F: Internal error

A-6 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

SERCOMM_VERSION
WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules

Name:

SERCOMM_VERSION

Type:

Function X

Library name:

SerComm.lib

Applicable to:

All programmable fieldbus controllers


except MODBUS

Input parameters:

Data type:

Comments:

EN

BOOL

This function is executed on a rising edge at


EN.

Return value:

Data type:

Comments:

SERCOMM_VERSION

WORD

Library version

Function block

Program

Header:
FUNCTION SERCOMM_VERSION : WORD
VAR_INPUT
EN: BOOL;
END_VAR

Graphic display:

Time behavior:

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-7

SERCOMM_VERSION

Function description:
The SERCOMM_VERSION function returns the current version number of the library. This
function can be used for information during program development. Furthermore, running
time related version conflicts can be avoided.

A-8 SerComm.lib

Version

Description

1.0

First version. The temporary setting of COM parameters is not yet


supported.

2.0

The instance variable 'ACTION' of the function block 'SERCOMM' was


renamed as follows: 'FB_ACTION'. Use the SerComm.lib of version 2.0
or better as from the WAGO-I/O-PRO 32 version 2.2.

2.1

During operation on COM1, the corresponding error code is now sent


back when a failure occures.
Failure removal for terminal blocks supporting continuous transmission

3.0

The function block "SERCOMM" now is edge triggered

3.1

As far as the communication parameters are concerned, it is possible to


use the default-value of the module.

3.2

In the event of a failure, the exact number of the data used will be
indicated during a write operation.

4.0

The communication parameters of configurable modules are set when the


COM port opens and reset when it closes.

4.1

Activation of several interfaces as the same time no longer leads to


resource conflicts and is now possible without any problems.

4.2

It is now possible to send sero bytes via COM1. With open COM port (265) the user can no more change the module parameters accidentally by
external tools.

5.0

Compatible with the WAGO-I/O-PRO 32 version 2.2 SR5. The library


works with the onlinechange feature.

5.1

When using modules that allow setting of parameters, data from the send
buffer is no longer resent if the interface is opened or closed.

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

COM_ACTION (Data type)


WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules.

Name:

COM_ACTION

Type:

Data type X

Library name:

SerComm.lib

Applicable to:

SERCOMM

Elements:

Value:

Comments:

OPEN

COM port is opened.

CLOSE

COM port is closed.

READ

Read operation on a COM port.

WRITE

Write operation on a COM port.

Header:
TYPE COM_ACTION :
(
OPEN := 0,
CLOSE := 1,
READ := 2,
WRITE := 3
);
END_TYPE

Data type description:


This data type is an enumeration describing the operation being performed on a COM port.

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-9

COM_BAUDRATE (Data type)

COM_BAUDRATE (Data type)


WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules

Name:

COM_BAUDRATE

Type:

Data type X

Library name:

SerComm.lib

Applicable to:

SERCOMM

Elements:

Value:

Comments:

BAUD_110

11

110 bit/s

BAUD_300

30

300 bit/s

BAUD_600

60

600 bit/s

BAUD_1200

120

1200 bit/s

BAUD_2400

240

2400 bit/s

BAUD_4800

480

4800 bit/s

BAUD_9600

960

9600 bit/s

BAUD_12000

1200

12000 bit/s

BAUD_14400

1440

14400 bit/s

BAUD_19200

1920

19200 bit/s

BAUD_28800

2880

28800 bit/s

BAUD_38400

3840

38400 bit/s

BAUD_57600

5760

57600 bit/s

BAUD_62500

6250

62500 bit/s

BAUDRATE_
TERMINAL_DEFAULT

16#FFFF

Default-value of the module

A-10 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries


Header:
TYPE COM_BAUDRATE :
(
BAUD_110
:=
11,
BAUD_300
:=
30,
BAUD_600
:=
60,
BAUD_1200 := 120,
BAUD_2400 := 240,
BAUD_4800 := 480,
BAUD_9600 := 960,
BAUD_12000 := 1200,
BAUD_14400 := 1440,
BAUD_19200 := 1920,
BAUD_28800 := 2880,
BAUD_38400 := 3840,
BAUD_57600 := 5760,
BAUD_62500 := 6250,
BAUDRATE_TERMINAL_DEFAULT := 16#FFFF
);
END_TYPE

Function description:
This data type is an enumeration describing the number of bits per second with which data is
sent or received.

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-11

COM_BYTESIZE (Data type)

COM_BYTESIZE (Data type)


WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules

Name:

COM_BYTESIZE

Type:

Data type X

Library name:

SerComm.lib

Applicable to:

SERCOMM

Elements:

Value:

Comments:

BS_7

7 Data bits per byte

BS_8

8 Data bits per byte

BYTESIZE_
TERMINAL_DEFAULT

16#FFFF

Default-value of the module

Header:
TYPE COM_BYTESIZE :
(
BS_7 :=7,
BS_8 :=8,
BYTESIZE_TERMINAL_DEFAULT : =16#FFFF
);
END_TYPE

Data type description:


This data type is an enumeration describing the number of bits by which a data byte is
represented.

A-12 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

COM_FLOW_CONTROL (Data type)


WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules

Name:

COM_FLOW_CONTROL

Type:

Data type X

Library name:

SerComm.lib

Applicable to:

SERCOMM

Elements:

Value:

Comments:

NO_FLOW_CONTROL

No flow control

XON_XOFF

Software flow control

RTS_CTS

Hardware handshake

FLOW_CONTROL_
TERMINAL_DEFAULT

16#FFFF

Default-value of the module

Header:
TYPE COM_FLOW_CONTROL :
(
NO_FLOW_CONTROL :=0,
XON_XOFF :=1,
RTS_CTS:=2,
FLOW_CONTROL_TERMINAL_DEFAULT :=16#FFFF
);
END_TYPE

Data type description:


This data type is an enumeration describing whether, and if yes, which type of flow control is
supported.

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-13

COM_PARITY (Data type)

COM_PARITY (Data type)


WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules

Name:

COM_PARITY

Type:

Data type X

Library name:

SerComm.lib

Applicable to:

SERCOMM

Elements:

Value:

Comments:

PARITY_NO

No parity bit

PARITY_ODD

The parity bit is set with an even number of


bits in the data byte.

PARITY_EVEN

The parity bit is set with an odd number of


bits in the data byte.

PARITY_
TERMINAL_DEFAULT

16#FFFF

Default-value of the module

Header:
TYPE COM_PARITY :
(
PARITY_NO:=0,
PARITY_ODD:=1,
PARITY_EVEN:=2,
PARITY_TERMINAL_DEFAULT:=16#FFFF
);
END_TYPE

Data type description:


This data type is an enumeration indicating whether a parity bit is inserted.

A-14 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

COM_STOPBITS (Data type)


WAGO-I/O-PRO 32 Library elements
Category:

Communication via the controller configuration interface or


via serial interface modules

Name:

COM_STOPBITS

Type:

Data type X

Library name:

SerComm.lib

Applicable to:

SERCOMM

Elements:

Value:

Comments:

STOPBITS_1

1 Stop bit per data byte

STOPBITS_2

2 Stop bits per data byte

STOPBITS_
TERMINAL_DEFAULT

16#FFFF

Default-value of the module

Header:
TYPE COM_STOPBITS :
(
STOPBITS_1:=1,
STOPBITS_2:=2,
STOPBITS_TERMINAL_DEFAULT:=16#FFFF
);
END_TYPE

Data type description:


This data type is an enumeration indicating the number of stop bits to be inserted after each
data byte.

WAGO-I/O-PRO 32

Version 1.4.0

SerComm.lib A-15

A-16 SerComm.lib

Version 1.4.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32 Library

Visual.lib

Contents
VISUAL_VERSION....................................................................................2
SET_FLASHING_SEQUENCE ..................................................................4
SET_FLASHING_SEQUENCE_INDEX....................................................6
START_FLASHING_SEQUENCE.............................................................8
STOP_FLASHING_SEQUENCE .............................................................10
FLASHING_SEQUENCE (Data type) ......................................................12
LED_COLOURS (Data type) ....................................................................14

WAGO-I/O-PRO 32

Version 1.1.0

Mod_com.lib A-1

VISUAL_VERSION

VISUAL_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

User specific visualisation of the USR-LED


VISUAL_VERSION
Function X
Function block
Program
Visual.lib
All programmable fieldbus controllers except MODBUS

Input parameter:
EN

Data type:
BOOL

Comments:
FB execution control.
The operations defined in the function
body are performed with EN = TRUE.

Return value:
VISUAL_VERSION

Data type:
WORD

Comments:
Library version

Header:
FUNCTION VISUAL_VERSION: WORD
VAR_INPUT
EN: BOOL;
END_VAR

Graphic display:

Time behaviour:

A-2 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Function description:
The function VISUAL_VERSION returns the current version number of the library
Visual.lib. It is for information purposes only during PLC application development
time. During runtime it is possible to detect version conflicts.

Version:
1.0
1.1
1.2
5.0

WAGO-I/O-PRO 32

Description:
First version (16#100)
Bugfix for firmware versions which do not support the
Visual.lib. (16#101)
Adaptation to WAGO-I/O-PRO 32 in the version 2.2 or better.
(16#102)
Compatible with the WAGO-I/O-PRO 32 version 2.2 SR5. The
library works with the onlinechange feature.

Version 1.1.0

Visual.lib A-3

SET_FLASHING_SEQUENCE

SET_FLASHING_SEQUENCE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

User specific visualisation of the USR-LED


SET_FLASHING_SEQUENCE
Function X
Function block
Program
Visual.lib
All programmable fieldbus controllers except MODBUS

Input parameter:
EN

Data type:
BOOL

POINTER_TO_POINTER_ DWORD
TO_ARRAY

Return value:
SET_FLASHING_
SEQUENCE

Data type:
BOOL

Comments:
FB execution control.
The operations defined in the function
body are performed with EN = TRUE.
Address of the pointer to the
sequences.

Comments:
FALSE:
Sequences were not set.
TRUE:
Sequences were set.

Header:
FUNCTION SET_FLASHING_SEQUENCE: BOOL
VAR_INPUT
EN: BOOL;
POINTER_TO_POINTER_TO_ARRAY: DWORD;
END_VAR

Graphic display:

A-4 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The flashing sequence is set for the USR-LED using the
SET_FLASHING_SEQUENCE function. The sequences are written with the data
type FLASHING_SEQUENCE. If following an online-change the pointer on the
sequences or the array of the sequence is removed, the
STOP_FLASHING_SEQUENCE function must be polled in advance in order to avoid
an uncontrolled flashing of the LED. The GET_PROGRAM_ID function in the
System.lib library is used to recognise an online-change.
(As from version 3.0)
(* Example for setting four sequences
VAR
Param: ARRAY [0..3] OF FLASHING_SEQUENCE;
PointerToFS: POINTER TO FLASHING_SEQUENCE;
END_VAR
...Fill the array...
PointerToFS: =ADR(Param);
SET_FLASHING_SEQUENCE(1, ADR(PointerToFS));
*)

WAGO-I/O-PRO 32

Version 1.1.0

Visual.lib A-5

SET_FLASHING_SEQUENCE_INDEX

SET_FLASHING_SEQUENCE_INDEX
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

User specific visualisation of the USR-LED


SET_FLASHING_SEQUENCE_INDEX
Function X
Function block
Program
Visual.lib
All programmable fieldbus controllers except MODBUS

Input parameter:
EN

Data type:
BOOL

IMMEDIATE

BOOL

INDEX

WORD

Return value:
SET_FLASHING_
SEQUENCE_INDEX

Data type:
BOOL

Comments:
FB execution control.
The operations defined in the function
body are performed with EN = TRUE.
FALSE:
The new sequence is started following
the end of the current sequence.
TRUE:
The new sequence is started
immediately.
Index of the new sequence

Comments:
FALSE: Index was not set.
TRUE: Index was set.

Header:
FUNCTION SET_FLASHING_SEQUENCE_INDEX: BOOL
VAR_INPUT
EN: BOOL;
IMMEDIATE: BOOL;
INDEX: WORD;
END_VAR

Graphic display:

A-6 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Time behaviour:

Function description:
The next index can be set for a sequence to be performed using the
SET_FLASHING_SEQUENCE_INDEX function.

WAGO-I/O-PRO 32

Version 1.1.0

Visual.lib A-7

START_FLASHING_SEQUENCE

START_FLASHING_SEQUENCE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

User specific visualisation of the USR-LED


START_FLASHING_SEQUENCE
Function X
Function block
Program
Visual.lib
All programmable fieldbus controllers except MODBUS

Input parameter:
EN

Data type:
BOOL

Comments:
FB execution control.
The operations defined in the function
body are performed with EN = TRUE.

Return value:
START_FLASHING_
SEQUENCE

Data type:
BOOL

Comments:
FALSE: Sequence was not started.
TRUE: Sequence was started.

Header:
FUNCTION START_FLASHING_SEQUENCE: BOOL
VAR_INPUT
EN: BOOL;
END_VAR

Graphic display:

Time behaviour:

A-8 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Function description:
The START_FLASHING_SEQUENCE function starts the sequences which were
previously set with the SET_FLASHING_SEQUENCE function. Start is made with
the first sequence, in as much as no other index is set with the
SET_FLASHING_SEQUENCE_INDEX function.

WAGO-I/O-PRO 32

Version 1.1.0

Visual.lib A-9

STOP_FLASHING_SEQUENCE

STOP_FLASHING_SEQUENCE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:

User specific visualisation of the USR-LED


STOP_FLASHING_SEQUENCE
Function X
Function block
Program
Visual.lib
All programmable fieldbus controllers except MODBUS

Input parameter:
EN

Data type:
BOOL

Comments:
FB execution control.
The operations defined in the function
body are performed with EN = TRUE.

Return value:
STOP_FLASHING_
SEQUENCE

Data type:
BOOL

Comments:
FALSE: Sequence was not stopped.
TRUE: Sequence was stopped.

Header:
FUNCTION STOP_FLASHING_SEQUENCE: BOOL
VAR_INPUT
EN: BOOL;
END_VAR

Graphic display:

Time behaviour:

A-10 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Function description:
The STOP_FLASHING_SEQUENCE function stops the sequences which were
previously started with the START_FLASHING_SEQUENCE function. Following a
new start with the START_FLASHING_SEQUENCE function the sequence at which
the stop was made, will be restarted unless a new index was set with the
SET_FLASHING_SEQUENCE_INDEX function.

WAGO-I/O-PRO 32

Version 1.1.0

Visual.lib A-11

FLASHING_SEQUENCE (Data type)

FLASHING_SEQUENCE (Data type)


WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Structure:

User specific visualisation of the USR-LED


FLASHING_SEQUENCE
Data type X
Visual.lib
SET_FLASHING_SEQUENCE
Enumeration

Elements:
Colour
Frequency

Data type:
LED_
COLOURS
BYTE

Relation
Duration

BYTE
TIME

NextIndex

WORD

Comments:
Enumeration for LED colours
Flashing frequency of the LED.
If the value zero is set here the,
Relation is decive:
Relation >= 128: LED lit
Relation < 128: LED not lit
128*T_ON/T_OFF
Time interval for this sequence.
If the value zero is set here, the time
interval is unlimited.
If the 'Frequency' > 0, the 'Duration' is
rounded off internally to an integer
multiple of the period duration.
With the 'Frequency' > 0 and 'Duration'
<1/Frequency, the Duration is
interpreted as zero!
Index of the next sequence.
'NextIndex' may also refer to itself. The
indexes always start with zero.

Header:
TYPE FLASHING_SEQUENCE:
STRUCT
Colour: LED-COLOURS;
Frequency: BYTE;
Relation: BYTE;
Duration: TIME;
NextIndex: WORD;
END_STRUCT
END_TYPE

A-12 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

Data type description:


This data type describes a flashing sequence. To describe several sequences an
array of any size must be created of this data type. Using the structure variable
'NextIndex' the next sequence in the array is referred to. The address of a pointer to
this structure is passed the SET_FLASHING_SEQUENCE function.

WAGO-I/O-PRO 32

Version 1.1.0

Visual.lib A-13

LED_COLOURS (Data type)

LED_COLOURS (Data type)


WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Structure:

User specific visualisation of the USR-LED


LED_COLOURS
Data type X
Visual.lib
FLASHING_SEQUENCE
Enumeration

Elements:
GREEN

Value:
0

Comments:
The color Green is used for the
corresponding sequence.

RED

The color Red is used for the


corresponding sequence.

ORANGE

The color Orange is used for the


corresponding sequence.

Header:
TYPE LED_COLOURS:
(
GREEN: =0,
RED: =1,
ORANGE: =2
);
END_TYPE

Data type description:


This data type is a structure variable of the FLASHING_SEQUENCE data type.

A-14 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix A Additional Libraries

WAGO-I/O-PRO 32

Version 1.1.0

Visual.lib A-15

A-16 Visual.lib

Version 1.1.0

WAGO-I/O-PRO 32

Appendix B: Communication Drivers

B-i

25 Appendix B: Communication Drivers


These communication drivers are ready installed in WAGO-I/O-PRO 32:
Pipe
Serial (Modem)
Serial (RS232)
TCP/IP
TCP/IP (Level 2)

Additional communication drivers:


CANopen DSP302
CANopen Hilscher
Modbus
OPC Client
OPC Client 2 Tags
PI Applicom Driver
PI Hilscher Driver
and others are available at WAGO Kontakttechnik GmbH.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

B-ii

Appendix B: Communication Drivers

25.1 Installation of Communication Drivers


The communication drivers are on the WAGO-I/O-PRO 32 CD.
The installation program is started from the D drive in the following
instructions. In case you would like to use another drive, please enter the
corresponding letter.

To install communication drivers:

Put the WAGO-I/O-PRO 32-CD in the D drive.


In case "Autorun" is activated in your system the set-up will be started
automatically. Proceed with step 5.
If the set-up is not starting automatically please proceed with step 2.
Select "Execute" in the Windows "Start" menu
Start the WAGO-I/O-PRO 32 set-up.
Enter "D:\setup.exe" (D is the drive with the WAGO-I/O-PRO-32-CD)
and start the set-up by clicking on "OK".
Select the set-up language.
The rest of the set-up is taking place via menus. Please follow the
instructions to complete the set-up. If possible the proposed settings should
be adopted.
You will be asked for the set-up type during the installation.
Click on "Communication driver installation" and confirm with "Next".
A dialog appears to select the libraries.
Select the components you would like to install and delete the ones you
wouldnt like to install.

WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32

Appendix B Communication Drivers

CANopen DSP302
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

CANopen communication
GDrvStd.dll, CAN_AC2_3S.dll, CAN_VCI.dll
STZP CAN card with VCI Interface or Softing AC2
Windows 95, Windows 98, Windows NT 4.0
Currently not in use
(In the future all CANopen programmable fieldbus controllers)

Communication
parameters:
Node number

Range of value:

Comments:

1 ... 127

Enter the module ID of the controller


with which a connection is to be made.
The connection is made via the default
SDOs.
The required baud rate is selected
here. Only set a baud rate which is
used in the entire network.

Baud rate

CAN card driver

WAGO-I/O-PRO 32

10 kBd,
20 kBd,
50 kBd,
125 kBd,
250 kBd,
500 kBd,
800 kBd,
1 MBd
[Name of the CAN
card interface DLL]
currently
CAN_AC2_3S and
CAN_VCI

Enter the name of the DLL which


creates the link to the CAN card driver.
Undertake the configuration of the CAN
card must using the card
manufacturers tools.

CANopen DSP302 B-1

CANopen DSP302

Graphic display:

Image B.3: Graphic display CANopen DSP302

Function description:
Two objects are defined in the CIA DS 302, permitting a program download and a
connection to the programming system.
The objects Download Program Data (0x1F50) and OS Command (0x1023) are
used.
During program download all programs are written to the index 1 ( program number
1) of the Download Program Data object.
In addition the indexes 1 (Command), 2 (Status) and 3 (Reply) of the object O OS
Command (0x1023) are used.

System configuration:

MODBUS

78 9

01

S S

456

789
WAGO
750-600

- -

+ +

- -

S S

01
23

23

789

01

WAG O

I/O

SYS TE M
75 0-3 12

78 9

- -

WAGO
750-554

24V 0V

I/ORUN + +
I/OERR

+ +

23

23

WAG O

I/O

SYS TE M
75 0-3 12

- -

ON
TxD
RxD
CRC

456

I/ORUN + +
I/OERR

01

CANopen
master

MODBUS

CANopen
slave

24V 0V

456

ON
TxD
RxD
C RC

WAGO
750-554

WAGO
750-600

456

Image B.4: System configuration CANopen DSP302

B-2 CANopen DSP302

WAGO-I/O-PRO 32

Appendix B Communication Drivers

CANopen Hilscher
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:
Communication
parameters:
Interface

Baudrate

Node ID

WAGO-I/O-PRO 32

CANopen communication
CANopenHilscher.dll
Hilscher fieldbus interface cards for PCs
e. g. CIF 30-xxx
Windows 95, Windows 98, Windows NT 4.0
All CANopen programmable fieldbus controllers
Range of value:

Comments:

Board 0,
Board 1,
Board 2,
Board 3
10 kBd,
20 kBd,
50 kBd,
100 kBd,
125 kBd,
250 kBd,
500 kBd,
800 kBd,
1 MBd
1 ... 126

Select the interface board. Up to 4


Hilscher fieldbus boards can be
installed in a PC. This parameter
specifies the board to be used.
The required baudrate is selected here.
Only set a baud rate which is used in
the entire network.

Database

RETAIN;
CLEAR

Debug level

16#0000 ...
16#FFFF

Enter the module ID of the controller


with which the connection is to be
made.
The connection is made via the defaultSDOs.
Do not configure the Hilscher board as
CANopen master. To ensure this the
database can be cleared by selecting
CLEAR" on the board.
Set this parameter to 0. The parameter
is only used for debugging.

CANopen Hilscher B-1

CANopen Hilscher

Graphic display:

Image B.5: Graphic display CANopen Hilscher

Function description:
All CANopen controllers offer the possibility of making a communication connection
via the CAN interface. For this the manufacturer specific object ComWagoPro
(Index 4A00) was introduced. Data to be sent to the controller are written on index 1.
The feedback values are read by index 2.
The driver CANopenHilscher makes a communication connection between the PC
and controller via SDOs. Prerequisite being a Hilscher CANopen interface board.
This board must not be configured with the system configurator. If the master was
already configured then clear the database on the interface board. The interface
board will otherwise attempt to configure the assigned nodes.
Each board can only establish a connection to one node simultaneously.

System configuration:

MODBUS

78 9

01

S S

WAG O

I/O

SYS TE M
75 0-3 12

78 9

- -

4 56

- -

+ +

- -

S S

01

WAGO
750-554

WAGO
75 0-60 0

23

23

789

01

789

24V 0V

I/ORUN + +
I/OERR

+ +

23

23

WAG O

I/O

SYS TE M
75 0-3 12

- -

ON
TxD
RxD
CRC

456

I/ORUN + +
I/OERR

01

CANopen
master

MODBUS

CANopen
slave

24V 0V

456

ON
TxD
RxD
CRC

WAGO
75 0-554

WAGO
750-600

456

Image B.6: System configuration CANopen Hilscher

B-2 CANopen Hilscher

WAGO-I/O-PRO 32

Appendix B Communication Drivers

MODBUS
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

MODBUS communication
ModbusDriver.dll
Windows 95, Windows 98, Windows NT 4.0
All MODBUS programmable fieldbus controllers

Communication
parameters:
MODBUS
node adress
Mode

Range of value:

Comments:

1 ... 99

MODBUS slave addresses.

RTU

MODBUS transmission mode.


With MODBUS the ASCII or RTU mode
can be selected for coding the
transmitted characters. The
transmission mode used must coincide
with the controller settings.
This parameter selects the Windows
driver for the PC serial interface.

Interface

Baudrate

String lenght

WAGO-I/O-PRO 32

COM1; COM2;
COM3, COM4,
COM5, COM6,
COM7, COM8;
COM9
110 Bd, 300 Bd,
600 Bd, 1200 Bd;
2400 Bd, 4800 Bd,
9600 Bd, 19200 Bd,
38400 Bd;
56000 Bd,
57600 Bd,
115200 Bd,
128000 Bd,
256000 Bd
8 Bit,
7 Bit

Transmission rate for the serial


communication.
The value must coincide with the value
set in the controller.

Length of the data in a byte frame.


Always use 8 bits for the RTU mode.
This value must coincide with the
controller settings.

MODBUS B-1

MODBUS

Parity

Stop bits

None,
even,
odd,
1 bit,
0 bit
1,
1.5,
2

RTS Control

disabled,
enabled,
handshake,
toggle

Debug level

16#0000 ...
16#FFFF

The byte frame can be saved with


additional bits. The parity type is
selected with this parameter. The value
must coincide with the controller
settings.
The length of the stop bit can be
entered to extend the byte frames. This
value must coincide with the controller
settings.
Conversion from RS232 to RS485 is
generally performed with the control
signal RTS. The RTS signal then
controls the bus drivers (transmit or
receive). The selected value must
harmonise with the converter settings.
The settings have no meaning for the
RS232 controller. The Toggle setting
is only converted by the operating
system NT4.0.
This parameter must be set to 0. This
parameter is only used for debugging.

Graphic display:

Image B.9: Graphic display MODBUS Driver

B-2 MODBUS

WAGO-I/O-PRO 32

Appendix B Communication Drivers

Function description:
MODBUS controllers can be programmed directly from a PC via MODBUS. For this
the ModbusDriver" is used. MODBUS being a Single-Master-Bus system, ensure
that no second master is active during programming.
The driver communicates via the function code 13. The communication data is
packed in a MODBUS frame.

System configuration:

Image B.10: System configuration MODBUS Driver

WAGO-I/O-PRO 32

MODBUS B-3

MODBUS

B-4 MODBUS

WAGO-I/O-PRO 32

Appendix B Communication Drivers

OPC Client
WAGO-I/O-PRO 32 Communication drivers

WAGO-I/O-PRO 32

Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

Process image communication


OPCclientDriver.dll
Optional OPC server with access to the controller I/O data
Windows 95, Windows 98, Windows NT 4.0
All programmable fieldbus controllers

Communication
parameters:
OPC server ID

Range of value:

Comments:

[Identification of all
OPC servers
available on the
computer]

Selection of all of the OPC server


available on the computer. When
starting the WAGO-I/O-PRO 32 server
this information is read out of the
registry. The OPC server which
supplies the tags for PA communication
is selected here. The server must be
correspondingly configured in advance.
The selected OPC server in the
communication driver must be checked
after a new OPC server is installed on
the computer.
The tag via which the PA
communication is to be performed is
entered here. The tag must be of a read
and write type.
OPC tag data type.
Currently only 2 byte signed integer can
be selected.
This parameter must be set to 0. This
parameter is only used for debugging
purposes.

OPC tag ID

[Tag name]

OPC tag data type

2-Byte signed
integer, VT_I2

Debug level

16#0000 ....
16#FFFF

OPC Client B-1

OPC Client

Graphic display:

Image B.11: Graphic display OPC Client

Function description:
All controllers offer the possibility of establishing a communication connection via the
data in the process image. For this an additional word is introduced into the input
and output image. The configuration is described in the manual for the individual
controller under PA communication".
The OPCclient" driver establishes a communication connection between PC and
controller via this data with the aid of an OPC server. Prerequisite being an OPC
server, which permits access to the controller I/O data. The server must be on the
computer, on which the WAGO I/O PRO 32 Server is running. On the server the
communication words in the I/O image of the controller must be configured as a write
and read tag.
The communication can be tested by the output of the values 16#0000 and
16#0007. The communication channel is reset with the output of the value 16#0000.
Following this 16#0000 appears in the read tag. The channel function is tested with
the value 16#0007. If the channel is correctly configured the input word will be
16#0004. This same method can be used to check the configuration of the OPC
tags.
Do not use the PA communication tags for applications. If an output is required
select the value 16#0000.
The OPC Browser" tool can be used to simplify handling of the sometimes very long
tag names. The tool shows all tags on a server. The marked tag can be copied into
the Windows clipboard and pasted into WAGO-I/O-Pro 32.
Also refer to OPC Client 2 Tags".

B-2 OPC Client

WAGO-I/O-PRO 32

Appendix B Communication Drivers

System configuration:
WAGO-I/O-PRO 32
MODBUS
ON
TxD
RxD
CRC

OPC Server

24V 0V

23

78 9

01

WAG O
I/O
SYSTEM
750-312

I/ORUN + +
I/OERR

- -

+ +

- -

S S

456

23

78 9

01
WAGO
750-554

WAGO
750-600

4 56

Image B.12: System Configuration OPC Client

WAGO-I/O-PRO 32

OPC Client B-3

OPC Client

B-4 OPC Client

WAGO-I/O-PRO 32

Appendix B Communication Drivers

OPC Client 2 Tags


WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:
Communication
parameters:
OPC server ID

WAGO-I/O-PRO 32

Process image communication


OPCclientDriver2Tags.dll
Optional OPC server with access to the I/O data of the
controllers
Windows 95, Windows 98, Windows NT 4.0
All programmable fieldbus controllers
Range of value:

Comments:

[Designation of all
available OPC
servers on the
computer]

Selection of all OPC servers available


on the computer.
This information is read out of the
registry when starting the WAGO-I/OPRO 32 server. The OPC server is
selected here which supplies the tags
to the PA communication. The server
must be correspondingly configured in
advance.
After installing a new OPC server on
the computer, the selected OPC server
must be checked in the communication
driver.
The tag is entered here via which the
input word of the PA communication is
read.
Data type of the OPC tags.
Currently only 2 byte signed integer can
be selected.
The tag is entered which permits to
write in the output word of the PA
communication.
Data type of the OPC tag.
Currently only 2 byte signed integer can
be selected.
This parameter must be set to 0. This
parameter is only used for debugging
purposes.

OPC read tag ID

[Read Tag
name]

OPC read tag data


type

2-byte signed
integer, VT_I2

OPC write tag ID

[Write Tag
name]

OPC write tag data


type

2-byte signed
integer, VT_I2

Debug level

16#0000 ....
16#FFFF

OPC Client 2 Tags B-1

OPC Client 2 Tags

Graphic display:

Image B.13: Graphic display OPC Client 2 Tags

Function description:
All controllers offer the possibility of opening up a communication connection via the
data in the process image. For this an additional word is introduced into the input
and output image. The configuration is described in the manual for the individual
controller under PA communication".
The OPCclientDriver2Tags" driver establishes a communication connection
between PC and controller via this data with the aid of an OPC server. Prerequisite
being an OPC server, which permits access to the controller I/O data. The server
must be on the computer, on which the WAGO I/O PRO 32 Server is running. On the
server the communication words in the I/O image of the controller must be
configured as a write and read tag.
The communication channel can be tested by the output of values 16#0000 and
16#0007. The communication channel is reset with the output of the value 16#0000.
Following this 16#0000 appears in the read tag. The channel function is tested with
the value 16#0007. If the channel is correctly configured the input word will be
16#0004. This same method can be used to check the configuration of the OPC
tags.
Do not use the PA communication tags for applications. If an output is required
select the value 16#0000.
The OPC Browser" tool can be used to simplify handling of the sometimes very long
tag names. The tool shows all tags on a server. The marked tag can be copied into
the Windows clipboard and pasted into WAGO-I/O-Pro 32.
Also refer to OPC Client".

B-2 OPC Client 2 Tags

WAGO-I/O-PRO 32

Appendix B Communication Drivers

System configuration:
WAGO-I/O-PRO 32
MODBUS
ON
TxD
RxD
CRC

OPC Server

24V 0V

23

78 9

01

WAG O
I/O
SYSTEM
750-312

I/ORUN + +
I/OERR

- -

+ +

- -

S S

456

23

78 9

01
WAGO
750-554

WAGO
750-600

4 56

Image B.14: System configuration OPC Client 2 Tags

WAGO-I/O-PRO 32

OPC Client 2 Tags B-3

OPC Client 2 Tags

B-4 OPC Client 2 Tags

WAGO-I/O-PRO 32

Appendix B Communication Drivers

PI Applicom Driver
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

WAGO-I/O-PRO 32

Process image communication


PIApplicomDriver.DLL
Applicom Feldbus Interface cards for PCs
e.g. PCI2000PFB
Windows 95, Windows 98, Windows NT 4.0
All controllers

Communication
parameters:
Interface

Range of value:

Comments:

Board1 ... Board8

Interface channel

0 ... 31

Equipment number

0 ... 255

Input address

0 ... 2047

Output address

0 ... 2047

Data encoding

Intel format or
Motorola format

Debug level

16#0000 ...
16#FFFF

Interface card selection. Up to 8


Applicom fieldbus cards can be
installed in a PC. This parameter shows
the card to be used. It is currently not
evaluated.
Channel number selection. The channel
number is established during project
planning with the PCCONF program.
Equipment number selection. The
equipment number is established
during project planning with the
PCCONF program.
The address for the communication
word is given in the saving image of the
IO data, which is read by the controller.
The offset is shown in number of bytes.
The address for the communication
word is given in the saving image of the
IO data, which is written in the
controller. The offset is displayed in
number of bytes.
Here the byte sequence within a word
is set. Generally the Intel format should
be set. The Motorola format is used
with some FB (e.g. InterBus-S). In this
case it may be necessary to change
over to Motorola format.
This parameter must be set to 0. The
parameter is only used for debugging
purposes.

PI Applicom Driver B-1

Appendix B Communication Drivers

Graphic display:

Image B.1: Graphic Applicom PI Driver

Function description:
All controllers offer the possibility of a communication connection via the data in the
process image. For this an additional word is inserted in the input and output image.
The configuration is described in the manual for the individual controller under the
heading PA communication.
The Applicom PI Driver establishes a communication between the PC and controller
using this data. Prerequisite being an Applicom interface card. This card is
configured with the PCCONF configuration tool so that the PA communications word
appears in the IO mask.
A test of the communication channel can be made by the output of values 16#0000
and 16#0007. The communication channel is reset with the output of value 16#0000.
Following this 16#0000 appears in the input word. The channel function is tested
with value 16#0007. If the channel configuration is correct the input word will be
16#0004. This method can also be used to check the position of the data in the card
saving image.
The data words for PA communication should not be transmitted by the application. If an
output must be made select value 16#0000 .

B-2 PI Applicom Driver

WAGO-I/O-PRO 32

Appendix B Communication Drivers

System configuration:

Image B.2: System configuration Applicom PI Driver

WAGO-I/O-PRO 32

PI Applicom Driver B-3

Appendix B Communication Drivers

B-4 PI Applicom Driver

WAGO-I/O-PRO 32

Appendix B Communication Drivers

PI Hilscher Driver
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:
Communication
parameters:
Interface

WAGO-I/O-PRO 32

Process image communication


PIHilscherDriver.DLL
Hilscher fieldbus interface cards for PC's
e. g. CIF 30-xxx
Windows 95, Windows 98, Windows NT 4.0
All programmable fieldbus controllers
Range of value:

Comments:

Input address

Board 0,
Board 1,
Board 2,
Board 3
0 ... 2047

Output address

0 ... 2047

Data encoding

Intel format or
Motorola format

Debug level

16#0000 ...
16#FFFF

Selection of the interface board. Up to 4


4 Hilscher fieldbus boards can be
installed in a PC. This parameter
specifies the board to be used.
The address for the communication
word in the process image of the I/O
data read by the controller is given
here. The offset is specified in number
of bytes.
The address for the communication
word in the process image of the I/O
data written into the controller is given
here. The offset is specified in number
of bytes.
The byte sequence within a word is set
here. Generally the Intel format should
be set. Some fieldbuses (e.g. IntelBusS) use the Motorola format. Here it may
be necessary to change over to
Motorola format.
This parameter must be set to 0. The
parameter is only used for debugging
purposes.

PI Hilscher Driver B-1

PI Hilscher Driver

Graphic display:

Image B.7: Graphic display PI Hilscher Driver

Function description:
All controllers offer the possibility of establishing a communication connection via the
data in the process image. For this an additional word is introduced into the input
and output image. The configuration is described in the manual for the individual
controller under PA communication".
The HilscherPIDriver driver establishes a communication connection between the
PC and controller via this data. Prerequisite is a Hilscher interface board. This board
is configured with the system configurator so that the PA communication words
appear in the I/O image. The communication channel can be tested by the output of
the values 16#0000 and 16#0007. The communication channel is reset with the
output of the value 16#0000. Following this 16#0000 appears in the input word. The
channel function is tested with the value 16#0007. If the channel is correctly
configured, the input word assumes 16#0004. This method allows checking the data
position in the process image.
The data words for PA communication should not be put out by the application. If an
output is necessary select the value 16#0000.
(PA = Process image
I/O = Inputs/Outputs)

B-2 PI Hilscher Driver

WAGO-I/O-PRO 32

Appendix B Communication Drivers

System configuration:

Image B.8: System configuration PI Hilscher Driver

WAGO-I/O-PRO 32

PI Hilscher Driver B-3

PI Hilscher Driver

B-4 PI Hilscher Driver

WAGO-I/O-PRO 32

Appendix B Communication Drivers

Pipe
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

Standard communication
GDrvStd.dll
Windows 95, Windows 98, Windows NT 4.0
Currently cannot be used.

Communication
parameters:
Pipe

Range of value:

Timeout

Comments:

[Name of the named Enter here the named pipe which is to


pipe]
be used for communication.
0 ... 255
The timeout time is entered here in
seconds.

Graphic display:

Image B.15: Graphic display Pipe

WAGO-I/O-PRO 32

Pipe B-1

Pipe

Function description:

System configuration:

B-2 Pipe

WAGO-I/O-PRO 32

Appendix B Communication Drivers

Serial (Modem)
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

Standard communication
GDrvStd.dll
Modem, Configuration cable Item no. 750-920
Windows 95, Windows 98, Windows NT 4.0
All programmable fieldbus controllers

Communication
parameters:
Init

Range of value:

Dial

Hangup

Break

Timeout

Port

WAGO-I/O-PRO 32

Comments:

[Character string for


initialising]

This character string is transmitted to


initialise the modem. The content is
modem specific and should be checked
in the modem manual.
[Character string for This character string is transmitted for
dialling the number. The character to be
selecting the
transmitted is dependent upon the
telephone number]
telephone system used. Check this in
the modem manual.
[Character string for This character string is transmitted for
terminating the modem connection. The
terminating
content is modem specific and should
communication]
be checked in your modem manual
[Character string for This character string is used to switch
over between data transfer and modem
switching over
configuration. Modems generally use
between data
transfer and modem the character string +++.
configuration]
The timeout for recognising a break is
0 ... 255
entered here. Refer to your modem
manual for more precise details.
This parameter selects the Windows
COM1,
driver for the PC serial interface.
COM2,
[available interfaces]

Serial (Modem) B-1

Serial (Modem)

Baudrate

Parity

Stop bits

Motorola byteorder

4800 Bd,
9600 Bd,
19200 Bd,
38400 Bd,
57600 Bd,
115200 Bd
no,
even,
odd
1,
1.5,
2
No,
Yes

Transmission rate for serial


communication. The value must be set
to 19200 Bd.

The byte frame can be protected with


additional bits. This parameter selects
the parity type. "Even" must be
selected.
The length of the stop bit can be
entered to extend the byte frame.
Select the value "No".

Graphic display:

Image B.17: Graphic display Serial (Modem)

Function description:
All controllers can be linked to the configuration interface via a modem connection.
Two modems are required for this. The modem on the controller side is configured to
auto answer and the fixed baud rate 19200 with even Parity" and 8 Bit data
width". The second modem is linked to the PC. A transparent connection is created
via the telephone line between the PC and configuration interface after selecting the
modem on the controller side.

B-2 Serial (Modem)

WAGO-I/O-PRO 32

Appendix B Communication Drivers

System configuration:

MODBUS
ON
TxD
RxD
CRC

24V 0V

78 9

23

01

WAGO
I/O
SYSTEM
750-312

I/ORUN + +
I/OERR

- -

+ +

- -

S S

4 56

789

23

01

WAGO
750-554

WAGO
750-600

4 56

Image B.18: System configuration Serial (Modem)

WAGO-I/O-PRO 32

Serial (Modem) B-3

Serial (Modem)

B-4 Serial (Modem)

WAGO-I/O-PRO 32

Appendix B Communication Drivers

Serial (RS232)
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

Standard communication
GDrvStd.dll
Configuration cable Item no. 750-920
Windows 95, Windows 98, Windows NT 4.0
All programmable fieldbus controllers

Communication
parameters:
Port

Range of value:

Comments:

COM1,
COM2
[available interfaces]
4800 Bd, 9600 Bd,
19200 Bd,
38400 Bd,
57600 Bd,
115200 Bd
no,
even,
odd

This parameter selects the Windows


driver for the PC serial interface.

Baudrate

Parity

Stop bits

Motorola byteorder

WAGO-I/O-PRO 32

1,
1.5,
2
No,
Yes

Transmission rate for serial


communication. Set this value to
19200 Bd.

The byte frame can be protected with


additional bits. This parameter selects
the parity type. "Even" must be
selected.
The length of the stop bit can be
entered to extend the byte frame.
Select the value "No".

Serial (RS232) B-1

Serial (RS232)

Graphic display:

Image B.19: Graphic display Serial (RS232)

Function description:
All controllers can be directly programmed from a PC via the configuration interface.

System configuration:

MODBUS
ON
TxD
RxD 24V 0V
CRC

789

23

+ +

- -

- -

S S

4 56

78 9

01
23

COMx

WAG O

I /O

SYSTEM
7 50-312

I/ORUN + +
I/OERR

01

WAGO
750-554

WAGO
75 0-60 0

4 56

750-920

CANopen
master

Image B.20: System configuration Serial (RS232)

B-2 Serial (RS232)

WAGO-I/O-PRO 32

Appendix B Communication Drivers

TCP/IP
WAGO-I/O-PRO 32 Communication driver

WAGO-I/O-PRO 32

Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

Standard communication
GDrvStd.dll
Network card for Ethernet (Terminal server)
TCP/IP Network protocol (component part of Windows)
Windows 95, Windows 98, Windows NT 4.0
Currently cannot be used

Communication
parameters:
Address

Range of value:

Comments:

[IP address],
[Host-Name]

Port

0 ... 65535,
preferentially 2455

Motorola byteorder

No,
Yes

The IP address or the host name is


entered here. Localhost" can be used
for the own computer.
The syntax for an IP address is :
xxx.xxx.xxx.xxx. (e.g. 134.28.42.13).
Port number to be used for the
connection.
Generally the port number for the
WAGO-I/O system (2455) should be
used. If 2455 is not used then the port
number for a dynamic connection in the
range 49152 ... 65535 should be used.
The range 0 ... 1023 is reserved for the
well known" ports. The range 1024 ...
49151 is assigned manufacturer
specific.
Select the value No"

TCP/IP B-1

TCP/IP

Graphic display:

Image B.21: Graphic display TCP/IP

Function description:

System configuration:

B-2 TCP/IP

WAGO-I/O-PRO 32

Appendix B Communication Drivers

TCP/IP (Level 2)
WAGO-I/O-PRO 32 Communication drivers

WAGO-I/O-PRO 32

Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:

Standard communication
GDrvStd.dll
Network card for Ethernet (Terminal server)
TCP/IP Network protocol (component part of Windows)
Windows 95, Windows 98, Windows NT 4.0
Ethernet controller
(with terminal server for all programmable fieldbus controller)

Communication
parameters:
Address

Range of value:

Comments:

[IP address],
[Host-Name]

Port

0 ... 65535,
preferentially 2455

Motorola byteorder

No,
Yes

The IP address of the host name is


entered here. Localhost" can be used
for the own computer.
The syntax for an IP address is :
xxx.xxx.xxx.xxx. (e.g. 134.28.42.13).
Port number to be used for the
connection.
Generally the port number for the
WAGO-I/O system (2455) should be
used. If 2455 is not used then the port
number for dynamic connections in the
range 49152 ... 65535 should be used.
The range 0 ... 1023 is reserved for the
well known" ports. The range 1024 ...
49151 is assigned manufacturer
specific.
Select the value No"

TCP/IP (Level 2) B-1

TCP/IP (Level 2)

Graphic display:

Image B.23: Graphic display TCP/IP (Level 2)

Function description:
All Ethernet controllers can be directly programmed from a PC via a network card.
If a terminal server is used with a configuration cable, all controllers can be
programmed via the network.

B-2 TCP/IP (Level 2)

WAGO-I/O-PRO 32

Appendix B Communication Drivers

System configuration:

Image B.24: System configuration TCP/IP (Level 2)

WAGO-I/O-PRO 32

TCP/IP (Level 2) B-3

TCP/IP (Level 2)

B-4 TCP/IP (Level 2)

WAGO-I/O-PRO 32

Das könnte Ihnen auch gefallen