Beruflich Dokumente
Kultur Dokumente
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
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
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
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.
BOOL Constants
15.2.2
TIME Constants
TIME1 := 15ms;
(*T# is missing*)
TIME1 := t#4ms13d;
15.2.3
DATE Constants
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
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
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
15.2.8
STRING Constants
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Operands in WAGO-I/O-PRO 32
Variables
$$
Dollar signs
$'
$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]
Function block and program variables can be accessed using the following
syntax:
<Functionblockname>.<Variablename>
15.3.3
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
Single bit
Byte (8 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
%IW215
%QB7
Output byte 7
%MD48
%IW2.5.7.1
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
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
/run
/show ...
/show hide
/show icon
/show max /show
normal
/out <outfile>
/noinfo
/cmd <cmdfile>
online logout
online run
online sim
file open
<projectfile>
file close
file save
file saveas
<projectfile>
The current project will be saved with the file name <projectfile>
('File' 'Save as')
file quit
project rebuild
project clean
project check
project compile
project check
project build
project import
<file1> ... <fileN>
The files <file1> ... <fileN> get imported into the current project
('Project' 'Import')
project export
<expfile>
project expmul
out clear
10
echo off
echo <text>
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
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
All dialogs respond as if the user had clicked on the 'Cancel' button
call <parameter1>
... <parameter10>
dir compile
<compiledir>
Waits 5 seconds
watchlist save
<file>
watchlist set <text> Gives a previously loaded Watchlist the name <text> ('Extras'
'Rename Watchlist')
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
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>]
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.
gateway tcpip
<Address> <Port>
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>
System call:
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
12
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
13
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.
Operator enclosed in brackets: only after the closing bracket is reached will the
operation preceding the brackets be carried out.
Operator
AWL
Description
where?
'
WAGO-I/OPRO 32
..
[]
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
WAGO-I/OPRO 32
LD var1
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Mod.
AWL
14
Operator
ST
Operator
AWL
Mod.
AWL
Description
where?
:=
ST var1
WAGO-I/OPRO 32
S boolvar
WAGO-I/OPRO 32
R boolvar
WAGO-I/OPRO 32
JMP label
CN
Jump to label
WAGO-I/OPRO 32
<Program name>
CAL prog1
CN
WAGO-I/OPRO 32
<Instance name>
CAL inst1
CN
WAGO-I/OPRO 32
<Fctname>(vx, vy,..)
<Fctname> vx, vy
CN
WAGO-I/OPRO 32
RETURN
RET
CN
WAGO-I/OPRO 32
WAGO-I/OPRO 32
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
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
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
WAGO-I/OPRO 32
ROR(K,in)
ROR
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
WAGO-I/OPRO 32
MIN(in0,in1)
MIN
WAGO-I/OPRO 32
LIMIT(MIN,in,Max)
LIMIT
WAGO-I/OPRO 32
MUX(K,in0,...in_n)
MUX
WAGO-I/OPRO 32
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
15
16
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
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
WAGO-I/OPRO 32
ACOS(in)
ACOS
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
standard.lib
RIGHT(str,size)
RIGHT
standard.lib
MID(str,size)
MID
standard.lib
CONCAT('str1','str2')
CONCAT 'str2'
Concatenation of two
subsequent strings
standard.lib
INSERT('str1','str2',pos)
INSERT 'str2',p
standard.lib
DELETE('str1',len,pos)
DELETE len,pos
standard.lib
REPLACE('str1','str2',len
,pos)
REPLACE
'str2',len,pos
standard.lib
FIND('str1','str2')
FIND 'str2'
standard.lib
SR
SR
Bistable FB is set
dominant
standard.lib
RS
RS
standard.lib
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Mod.
AWL
17
18
Operator
ST
Operator
AWL
SEMA
Mod.
AWL
Description
where?
SEMA
FB: Software
Semaphor
(interruptable)
standard.lib
R_TRIG
R_TRIG
standard.lib
F_TRIG
F_TRIG
standard.lib
CTU
CTU
standard.lib
CTD
CTD
standard.lib
CTUD
CTUD
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
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
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
sercomm.lib
READCOM
READCOM
sercomm.lib
WRITECOM
WRITECOM
sercomm.lib
CLOSECOM
CLOSECOM
sercomm.lib
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Mod.
AWL
19
20
Warnings 11xx
18.1.1.1
1100
1101
1102
1103
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
18.1.3
Warnings 13xx
18.1.3.1
1300
21
1301
1302
18.1.4
Warnings 14xx
18.1.4.1
1400
1401
18.1.5
Warnings 15xx
18.1.5.1
1500
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
22
18.1.5.2
1501
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
1504
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.1.5.6
23
1505
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
18.1.7
Warnings 17xx
18.1.7.1
1700
18.1.8
Warnings 18xx
18.1.8.1
1800
1801
18.1.9
Warnings 19xx
18.1.9.1
1900
24
The Start-POU (z.B. PLC_PRG) will not be available, when the project is
used as library.
18.1.9.2
1901
1902
1903
18.2.1.1
3100
3101
3110
3111
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.1.5
25
3112
3113
3114
3115
3120
3121
3122
3130
26
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
3132
3150
3160
3161
3162
3163
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
18.2.2.1
3200
3201
3202
3203
3204
3205
3206
28
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
3209
3210
3211
3250
3251
3252
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.2.16
3253
3254
18.2.3
18.2.3.1
3400
3401
3402
3403
3404
3405
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
29
30
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
3408
3409
3410
3411
3450
3451
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
3453
3454
3455
3456
3457
32
18.2.4
18.2.4.1
3500
3501
3502
3503
3504
3505
3506
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.4.8
33
3507
3550
3551
3552
3553
3554
3555
34
18.2.5
18.2.5.1
3600
3601
3610
3611
3612
3613
"Build canceled"
The compile process was cancelled by the user.
18.2.5.7
3614
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.5.8
35
3615
3616
3617
"Out of memory"
Increase the virtual memory capacity of your computer.
18.2.5.11
3618
18.2.6
18.2.6.1
3700
3701
3702
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
36
18.2.6.4
3703
3704
"data recursion: "<POU 0> -> <POU 1> -> .. -> <POU 0>"
An instance of a functionblock is used, which calls itself.
18.2.6.6
3720
3721
3722
3729
3740
3741
18.2.6.12
37
3742
3743
3744
3745
3746
3747
3748
38
18.2.6.19
3749
3750
3760
3761
3780
3781
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
18.2.6.26
39
3783
18.2.7
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
3802
3803
3820
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
40
18.2.7.6
3821
3840
3841
18.2.8
18.2.8.1
3900
3901
3902
3903
3904
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
3906
3907
3908
18.2.9
18.2.9.1
4000
"Identifier expected"
Enter a valid identifier at this position.
18.2.9.2
4001
4010
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
42
18.2.9.4
4011
4012
4013
4014
4015
4016
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.9.10
43
4017
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
4022
"Operand expected"
Add an operand behind the command.
18.2.9.14
4023
4024
4025
4026
4027
44
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
4030
4031
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
4034
"Division by 0"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
45
4035
4040
4041
4042
4043
4050
4051
"'%s' is no function"
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
46
4052
4053
4054
4060
4061
4062
4063
18.2.9.40
47
4064
4070
4071
18.2.10
18.2.10.1
4100
4110
4111
4112
4113
48
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
4120
4121
4122
18.2.11
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
4202
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.11.4
4203
4204
4205
4206
4207
4208
49
50
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
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
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
18.2.12.1
4300
4301
4302
54
18.2.12.4
4303
"'%s' is no operator"
Replace '<Name>' by a valid operator.
18.2.12.5
4320
4321
4330
4331
4332
55
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
56
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
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
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
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
18.2.13.1
4400
4401
4402
4403
4404
60
Some STEP5/7 operands are not convertable ato IEC 61131-3 respectively an
operand is missing.
18.2.13.6
4405
4406
4407
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
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
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
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
18.2.14
18.2.14.1
4500
4501
4520
4521
4522
4550
4551
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
18.2.14.8
65
4552
4553
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
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
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:
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:
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
70
Quick Start
Visualization
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
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
72
Quick Start
Visualization
=>
"Color"
=> white
IN1 = TRUE
=>
"Alarm color"
=> blue
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Quick Start
Visualization
73
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
74
Quick Start
Simulation mode
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Quick Start
Control mode
75
750-815
750-402
750-504
750-600
750-920
76
Quick Start
Control mode
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Quick Start
Control mode
77
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
78
Quick Start
Control mode
Quick Start
Documentation
79
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.
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
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Quick Start
Documentation
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
yes
Remarks
1-3a
yes
1-3b
1-4a
yes
as quote in strings
1-4b
1-5a
1-5b
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
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
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
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
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
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
yes
no
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
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
27-2b
MIN
yes
27-3
LIMIT
yes
27-4
MUX
yes
28-5
GT
yes
28-6
GE
yes
28-7
EQ
yes
28-8
LE
yes
28-9
LT
yes
28-10
NE
yes
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
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Compliance List
Tables
Table No.
Description
WAGO-I/O-PRO 32
30-1
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
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
40-3a
40-3b
yes
40-4
yes
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
41-6
yes
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
43-4
yes
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
yes
in separate window
44-8
usage of actions in LD
no
44-9
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
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
yes
52-1
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
yes
53-2
yes
53-3
no
54-4
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
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
Description
WAGO-I/O-PRO 32
2.1.1
2.1.2
no limitation
2.1.5
no limitation
2.2.3.1
Range of duration
2.3.1
1970-01-01-00:00 2106-02-06-06:28:15
1970-01-01 2106-02-06
2.3.3
3
no limitation
no limitation
2.3.3.1
not supported
2.3.3.2
80 characters
255 characters
2.4.1.1
4
physical mapping
2.4.1.2
3
64 KB
no limitation
2.4.3
no limitation
2.5
not supported
2.5.1.1
Name
2.5.1.5
no limitation
2.5.2.3.3
Pvmin of counters
Pvmax of counters
-32 768
+32 767
2.5.3
32 KB
2.6.2
1 ms
no limitation
2.6.3
2.6.4
2.6.4.2
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
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
no limitation
3.3.2.4
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
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
21.2 German
Hans-Joachim Adam, Mathias Adam
"SPS"
Programmieren in Anweisungsliste nach IEC 1131-3
Elektor Verlag, Aachen
ISBN 3-89576-048-X
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
Bibliography
Web addresses
Peter Wratil
Moderne Programmiertechnik fr Automatisierungssysteme
EN 61131 (IEC 1131) verstehen und anwenden
Vogel Verlag Wrzburg 1996
ISBN 3-8023-1575-8
http://www.plcopen.org
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
97
98
Glossary
22 Glossary
Absolute Address
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
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
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
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
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
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
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
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
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
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
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
IBS_READ_PI_CONFIGURATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
Input parameter:
EN
BOOL
Output parameter:
ENO
SP1TO8
WAGO-I/O-PRO 32
Version 1.1.0
InterBusS.lib A-5
IBS_READ_PI_CONFIGURATION
A-6 InterBusS.lib
M01TO08
BYTE
M09TO16
BYTE
M17TO24
BYTE
M25TO32
BYTE
Version 1.1.0
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
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
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
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
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
Version 1.1.0
WAGO-I/O-PRO 32
WAGO-I/O-PRO 32
M01TO08
BYTE
M09TO16
BYTE
M17TO24
BYTE
M25TO32
BYTE
M33TO40
BYTE
Version 1.1.0
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
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
Output parameter:
ENO
LEN
ID
ERROR
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
INTERBUS_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
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
A-16 InterBusS.lib
Version 1.1.0
WAGO-I/O-PRO 32
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
A-18 InterBusS.lib
Version 1.1.0
WAGO-I/O-PRO 32
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
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
Elements:
posPAA
Data type:
WORD
posPAE
WORD
sizePAA
BYTE
sizePAE
BYTE
channels
BYTE
altFormat
BYTE
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
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:
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
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]) );
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:
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
FBUS_ERROR_INFORMATION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
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:
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
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:
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
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
MOD_COM_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
5.0
Version 1.1.0
WAGO-I/O-PRO 32
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
WAGO-I/O-PRO 32
Version 1.1.0
Mod_com A-15
Elements:
physicalPosOf
Data type:
BYTE
physicalPosTo
BYTE
typeNumber
BYTE
moduleType
WORD
window
WORD
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
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:
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
READ_INPUT_BIT
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
READ_OUTPUT_BIT
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
SET_DIGITAL_INPUT_OFFSET
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
SET_DIGITAL_OUTPUT_OFFSET
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
SLAVE_ADDRESS
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
WRITE_OUTPUT_WORD
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
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
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:
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
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:
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
WAGO-I/O-PRO 32
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
WAGO-I/O-PRO 32
Standard A-9
A-10 Standard
WAGO-I/O-PRO 32
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
GET_ACT_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
GET_MIN_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
GET_PLC_MAX_CYCLE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
GET_PROGRAM_ID
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
GET_STOP_VALUE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
3.0
A-12 System
WAGO-I/O-PRO 32
A-14 System
WAGO-I/O-PRO 32
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
CIA405_GET_KERNEL_STATUS
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
CIA405_RECV_EMY
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
CIA405_GET_STATE
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
ENABLE
BOOL
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
Graphical display:
A-8 CIA405.lib
Version 1.1.0
WAGO-I/O-PRO 32
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:
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
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:
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
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:
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
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:
Input parameter:
DEVICE
Data type:
CIA405_DEVICE
INDEX
SUBINDEX
ENABLE
DATA
WORD
BYTE
BOOL
ARRAY [1..21]
of BYTE
DATALENGTH
USINT
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
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:
Input parameter:
DEVICE
Data type:
CIA405_DEVICE
INDEX
SUBINDEX
ENABLE
DATA
WORD
BYTE
BOOL
ARRAY [1..210]
of BYTE
DATALENGTH
USINT
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
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:
Input parameter:
DEVICE
Data type:
CIA405_DEVICE
INDEX
SUBINDEX
ENABLE
DATA
WORD
BYTE
BOOL
ARRAY [1..4]
of BYTE
DATALENGTH
USINT
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
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:
Input parameter:
DEVICE
Data type:
CIA405_DEVICE
INDEX
SUBINDEX
ENABLE
DATA
WORD
BYTE
BOOL
ARRAY [1..7]
of BYTE
DATALENGTH
USINT
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
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:
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
EXCEPTION_HANDLER
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
DATA_LENGTH
BYTE
DATA
ARRAY [1..8] of
BYTE
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
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:
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
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:
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
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:
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
NMT_GUARDING
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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
NMT_SLAVE_IN_NW_LIST
WAGO-I/O-PRO 32 Library elements
Category:
Name:
Type:
Library name:
Applicable to:
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:
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
ENABLE
BOOL
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
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:
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
Program
Graphical display:
Time behaviour:
A-38 CIA405.lib
Version 1.1.0
WAGO-I/O-PRO 32
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
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:
Name:
SERCOMM
Type:
Function
Library name:
SerComm.lib
Applicable to:
Input parameters:
Data type:
Comments:
EN
BOOL
FB execution control.
The function block is executed on a rising
edge at EN.
COMPORT
BYTE
BAUDRATE
COM_
BAUDRATE
PARITY
COM_
PARITY
STOPBITS
COM_
STOPBITS
BYTESIZE
COM_
BYTESIZE
FLOW_CONTROL
COM_
ACTION
BYTES_TO_DO
DWORD
IN_BUFFER
DWORD
OUT_BUFFER
DWORD
Function block X
Program
A-2 SerComm.lib
Version 1.4.0
WAGO-I/O-PRO 32
Data type:
Comments:
ENO
BOOL
ERROR
BOOL
LAST_ERROR
BYTE
BYTES_DONE
DWORD
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
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
SERCOMM_VERSION
WAGO-I/O-PRO 32 Library elements
Category:
Name:
SERCOMM_VERSION
Type:
Function X
Library name:
SerComm.lib
Applicable to:
Input parameters:
Data type:
Comments:
EN
BOOL
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
2.0
2.1
3.0
3.1
3.2
In the event of a failure, the exact number of the data used will be
indicated during a write operation.
4.0
4.1
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
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
Name:
COM_ACTION
Type:
Data type X
Library name:
SerComm.lib
Applicable to:
SERCOMM
Elements:
Value:
Comments:
OPEN
CLOSE
READ
WRITE
Header:
TYPE COM_ACTION :
(
OPEN := 0,
CLOSE := 1,
READ := 2,
WRITE := 3
);
END_TYPE
WAGO-I/O-PRO 32
Version 1.4.0
SerComm.lib A-9
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
A-10 SerComm.lib
Version 1.4.0
WAGO-I/O-PRO 32
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
Name:
COM_BYTESIZE
Type:
Data type X
Library name:
SerComm.lib
Applicable to:
SERCOMM
Elements:
Value:
Comments:
BS_7
BS_8
BYTESIZE_
TERMINAL_DEFAULT
16#FFFF
Header:
TYPE COM_BYTESIZE :
(
BS_7 :=7,
BS_8 :=8,
BYTESIZE_TERMINAL_DEFAULT : =16#FFFF
);
END_TYPE
A-12 SerComm.lib
Version 1.4.0
WAGO-I/O-PRO 32
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
RTS_CTS
Hardware handshake
FLOW_CONTROL_
TERMINAL_DEFAULT
16#FFFF
Header:
TYPE COM_FLOW_CONTROL :
(
NO_FLOW_CONTROL :=0,
XON_XOFF :=1,
RTS_CTS:=2,
FLOW_CONTROL_TERMINAL_DEFAULT :=16#FFFF
);
END_TYPE
WAGO-I/O-PRO 32
Version 1.4.0
SerComm.lib A-13
Name:
COM_PARITY
Type:
Data type X
Library name:
SerComm.lib
Applicable to:
SERCOMM
Elements:
Value:
Comments:
PARITY_NO
No parity bit
PARITY_ODD
PARITY_EVEN
PARITY_
TERMINAL_DEFAULT
16#FFFF
Header:
TYPE COM_PARITY :
(
PARITY_NO:=0,
PARITY_ODD:=1,
PARITY_EVEN:=2,
PARITY_TERMINAL_DEFAULT:=16#FFFF
);
END_TYPE
A-14 SerComm.lib
Version 1.4.0
WAGO-I/O-PRO 32
Name:
COM_STOPBITS
Type:
Data type X
Library name:
SerComm.lib
Applicable to:
SERCOMM
Elements:
Value:
Comments:
STOPBITS_1
STOPBITS_2
STOPBITS_
TERMINAL_DEFAULT
16#FFFF
Header:
TYPE COM_STOPBITS :
(
STOPBITS_1:=1,
STOPBITS_2:=2,
STOPBITS_TERMINAL_DEFAULT:=16#FFFF
);
END_TYPE
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
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:
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
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:
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
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:
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
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:
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
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:
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
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
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
WAGO-I/O-PRO 32
Version 1.1.0
Visual.lib A-13
Elements:
GREEN
Value:
0
Comments:
The color Green is used for the
corresponding sequence.
RED
ORANGE
Header:
TYPE LED_COLOURS:
(
GREEN: =0,
RED: =1,
ORANGE: =2
);
END_TYPE
A-14 Visual.lib
Version 1.1.0
WAGO-I/O-PRO 32
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
B-i
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
B-ii
WAGO-I/O-SYSTEM 759
WAGO-I/O-PRO 32
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
Baud rate
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
CANopen DSP302
Graphic display:
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
WAGO-I/O-PRO 32
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
Database
RETAIN;
CLEAR
Debug level
16#0000 ...
16#FFFF
CANopen Hilscher
Graphic display:
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
WAGO-I/O-PRO 32
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
RTU
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
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
Graphic display:
B-2 MODBUS
WAGO-I/O-PRO 32
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:
WAGO-I/O-PRO 32
MODBUS B-3
MODBUS
B-4 MODBUS
WAGO-I/O-PRO 32
OPC Client
WAGO-I/O-PRO 32 Communication drivers
WAGO-I/O-PRO 32
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:
Communication
parameters:
OPC server ID
Range of value:
Comments:
[Identification of all
OPC servers
available on the
computer]
OPC tag ID
[Tag name]
2-Byte signed
integer, VT_I2
Debug level
16#0000 ....
16#FFFF
OPC Client
Graphic display:
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".
WAGO-I/O-PRO 32
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
WAGO-I/O-PRO 32
OPC Client
WAGO-I/O-PRO 32
WAGO-I/O-PRO 32
Comments:
[Designation of all
available OPC
servers on the
computer]
[Read Tag
name]
2-byte signed
integer, VT_I2
[Write Tag
name]
2-byte signed
integer, VT_I2
Debug level
16#0000 ....
16#FFFF
Graphic display:
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".
WAGO-I/O-PRO 32
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
WAGO-I/O-PRO 32
WAGO-I/O-PRO 32
PI Applicom Driver
WAGO-I/O-PRO 32 Communication drivers
Category:
Name:
Hardware:
Software:
Operating system:
Applicable to:
WAGO-I/O-PRO 32
Communication
parameters:
Interface
Range of value:
Comments:
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
Graphic display:
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 .
WAGO-I/O-PRO 32
System configuration:
WAGO-I/O-PRO 32
WAGO-I/O-PRO 32
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
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
PI Hilscher Driver
Graphic display:
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)
WAGO-I/O-PRO 32
System configuration:
WAGO-I/O-PRO 32
PI Hilscher Driver
WAGO-I/O-PRO 32
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:
Graphic display:
WAGO-I/O-PRO 32
Pipe B-1
Pipe
Function description:
System configuration:
B-2 Pipe
WAGO-I/O-PRO 32
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:
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
Graphic display:
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.
WAGO-I/O-PRO 32
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
WAGO-I/O-PRO 32
Serial (Modem)
WAGO-I/O-PRO 32
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
Baudrate
Parity
Stop bits
Motorola byteorder
WAGO-I/O-PRO 32
1,
1.5,
2
No,
Yes
Serial (RS232)
Graphic display:
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
WAGO-I/O-PRO 32
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
TCP/IP B-1
TCP/IP
Graphic display:
Function description:
System configuration:
B-2 TCP/IP
WAGO-I/O-PRO 32
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
TCP/IP (Level 2)
Graphic display:
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.
WAGO-I/O-PRO 32
System configuration:
WAGO-I/O-PRO 32
TCP/IP (Level 2)
WAGO-I/O-PRO 32