Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
www.eaton.com
4 *patpks#nycmyn*
easy800
User Manual
10/10 MN05003003Z-EN
replaces 01/08 AWB2724-1584GB
Danger!
Dangerous electrical voltage!
Before commencing the installation
Disconnect the power supply of the device.
Ensure that devices cannot be accidentally restarted.
Verify isolation from the supply.
Earth and short circuit.
Cover or enclose neighbouring units that are live.
Follow the engineering instructions (AWA) of the
device concerned.
Only suitably qualified personnel in accordance with
EN 50110-1/-2 (VDE 0105 Part 100) may work on
this device/system.
Before installation and before touching the device ensure
that you are free of electrostatic charge.
The functional earth (FE) must be connected to the protective
earth (PE) or to the potential equalisation. The system installer
is responsible for implementing this connection.
Connecting cables and signal lines should be installed so
that inductive or capacitive interference does not impair the
automation functions.
Install automation devices and related operating elements in
such a way that they are well protected against unintentional
operation.
II
10/10 MN05003003Z-EN
Contents
List of revisions
Additional documentation
Reading conventions
7
7
7
8
9
9
Device application
Setup
Inputs
Function and cursor buttons as inputs
Diagnostics inputs
Inputs for high-speed counters
Outputs
Memory card (MCC)
Memory card data
Data access on the memory card
RUN/STOP/SF and CAN/NET LEDs
Real-time clock
Interfaces
Programming interface for connection to a PC
Multi-function interface (MFI)
Cable connections
CAN/easyNet interfaces
11
11
12
12
12
13
13
13
13
13
14
14
14
14
15
16
Inputs
Diagnostics inputs
Outputs
17
17
17
17
19
19
19
21
21
21
21
22
22
22
23
23
23
24
24
25
26
27
27
27
28
28
28
Expansion units
Mounting
Installation
Contents
10/10 MN05003003Z-EN
Operation
Keypad
Selecting menus and entering values
Selecting or toggling between menu items
Cursor display
Setting values
Choosing the main and system menu
Status display
Status display with time
Menu structure
Main menu without password protection
Main menu with password protection
System menu
System menu
29
29
29
29
29
29
30
30
30
31
31
32
32
33
Password protection
Password setup
Selecting the scope of the password
Activating the password
Access with password protection
Changing or deleting the password range
Changing the menu language
Setting date and time
Startup behaviour
Setting the startup behaviour
Setting LCD contrast and backlight
35
35
35
35
35
35
36
37
37
37
37
38
39
39
39
39
40
Description of settings
Operation
General
Overview of memory sizes
Memory definition
Startup behaviour
Startup behaviour with boot project on the memory
card
Setting the startup behaviour in the programming
software
Program START/STOP
Program start (STOP l RUN)
Behaviour after shutdown/interruption of the power
supply
Program stop (RUN l STOP)
Starting/stopping the program via external switch
Program processing and system time
Cycle time monitoring
Reset
Warm reset
Cold reset
Hard Reset
Restoring factory settings (factory set)
Behaviour of variables after Reset
41
41
41
41
41
41
43
43
43
43
43
44
44
44
44
44
44
44
44
45
10/10 MN05003003Z-EN
Contents
45
45
45
45
45
45
46
47
47
48
48
48
49
49
50
50
50
52
52
52
53
53
54
55
55
55
55
56
56
57
57
59
59
60
60
60
Using libraries
Installing additional system libraries
EC4-200 specific functions
EC_Util.lib library
EC_Visu.lib/EC_Visu2.lib library
61
61
61
62
62
62
63
63
63
64
64
66
10/10 MN05003003Z-EN
Contents
67
68
68
Prerequisites
Routing features of the controller
Routing through XC200
Notes on routing
Setting the node ID/routing ID
Setting the master station
Setting the device station
PLC combinations for routing
69
69
69
69
70
70
71
71
72
73
16 Interactive display
Display form
Switching between Status display and Entry/output
mode
Function/function block overview
Description of important functions / function blocks
FUNCTION Disp_EnableDisplay: BOOL (*Changing
Status display <-> Entry/output mode*)
General programming procedure
Example of text and values output
Example of a screen output with texts and value
entries
Multifunction display MFD-CP4 on the EC4-200
MFD setup
17 EC4-200 network modules
EASY205-ASI
Cyclic data exchange
Configuration
Setting the station address
EASY221-CO, EASY204-DP, EASY222-DN
Cyclic data exchange
Configuration
Setting the station address
Acyclic data exchange
67
67
67
67
Overview
Structure of the INI file
Creating the Startup.INI file
Switching on the PLC with the fitted memory card
containing the Startup.INI file
Changing settings
Deleting the Startup.INI file
75
75
75
76
77
77
80
81
83
86
86
87
87
87
88
88
88
88
89
89
89
10/10 MN05003003Z-EN
Contents
Appendix
Network CAN/easyNet
Accessories
Example program for PLC START/STOP using external
switch
easy800-PC-CAB connection cable
Dimensions and weight
Technical data
Transistor outputs
Analog output
Character sets
Index
93
93
93
94
95
95
96
101
103
104
107
10/10 MN05003003Z-EN
10/10 MN05003003Z-EN
List of revisions
The following significant amendments have been introduced since previous issues:
Edition date
Page
Keyword
12/06
87
03/07
14
Ethernet interface
15
Cable connections
59
67
104
Character sets
29
33
System menu
49
50
Interrupt inputs I1 I4
51
Timer interrupt
87
all
01/08
10/10
Additional documentation
At different points in this manual, references are made to more
detailed descriptions in other manuals. This documentation is
stored as a PDF file when the product CD is installed on your PC.
To find documentation choose the following in the Windows Start
menu:
Programs l Moeller Software l easy Soft CoDeSys l
Documentation
It is also possible to download the PDF files from the FTP server.
This always provides the latest data.
ftp://ftp.moeller.net/DOCUMENTATION/AWB_MANUALS/
new
Modification
Reading conventions
Select File r New means: activate the instruction New in the
File menu.
h
Caution!
Warns of the risk of material damage.
Caution!
Warns of the possibility of serious damage and slight
injury.
Warning!
Indicates the risk of major damage to property, or serious
or fatal injury.
10/10 MN05003003Z-EN
10/10 MN05003003Z-EN
1 Device application
Part no.
Features
Transistor outputs
Relay outputs
Analog output
Ethernet connection
Keys/display
EC4P-221-MTXD1
EC4P-221-MTXX1
EC4P-221-MRXD1
EC4P-221-MRXX1
EC4P-221-MTAD1
EC1P1-MTAX1
EC4P-221-MRAD
EC4P-221-MRAX1
EC4P-222-MTXD1
EC4P-222-MTXX1
EC4P-222-MRXD1
EC4P-222-MRXX1
EC4P-222-MTAD1
EC1P1-MTAX1
EC4P-222-MRAD
EC4P-222-MRAX1
10/10 MN05003003Z-EN
10
10/10 MN05003003Z-EN
2 Setup
Inputs
c
a
RUN
STOP
SF
Table 1:
CAN/
NET
r
q
p
o
Q1
Q2
Q3
Q4
Q5
e
f
g
h
i
j
k
l
Digital
12 (I1I12)
24 V DC
24 V DC/010 V
Inputs I7, I8, I11, I12 can also be used as analog inputs. They are
selected in the user program by means of the appropriate syntax
used in the PLC configurator.
Q6
m
Figure 1:
c
a
RUN
STOP
SF
r
q
p
o
Figure 3:
+24V
0V
Q1 Q2
Q3 Q4
Q5 Q6
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
Q7 Q8
n
Figure 2:
CAN/
NET
e
f
g
h
i
j
k
l
24 V DC power supply
Inputs
Interface for connecting the CAN network
Analog output, 0 10 V (not active)
DEL button
ALT button
RUN/STOP/SF LED
CAN/NET LED
Field for device labelling
easyLink interface to expansion device
Programming interface for connection to a PC
Multi-function interface
Relay outputs
Transistor outputs
OK button
ESC button
LCD display (EC4P-22x-MD1)
Cursor buttons P1P4 (rocker button)
State
F8
FALSE
>8
TRUE
11
10/10 MN05003003Z-EN
Setup
Example: If you are using input I1 for a high-speed counter (16bit), I2 can be used for another high-speed counter (16-bit) but not
for generating an interrupt. Inputs I3 and I4 likewise cannot be
used for generating an interrupt.
Connection description a figure 22 on page 23.
The inputs I13, I14, I15, I16 provide you with additional
information:
Input
Function
I13
No function
I14
I15
I16
DEL
ALT
P1
P3
ESC
OK
P4
Figure 4:
Diagnostics inputs
Figure 5:
12
10/10 MN05003003Z-EN
Outputs
Outputs
Table 2:
EC4P-221/222-MT
transistor outputs
8 (Q1Q8)
24 V DC/0.5 A
EC4P-221/222-MR
relay outputs
6 (Q1Q6)
250 V AC/8 A
Table 3:
Caution!
Scan I15/I16 in the program. In the event of a short-circuit
set the outputs to 0 in order to prevent the thermal
overload of the output circuit.
LED
Meaning/CPU status
RUN/STP/SF CAN/NET
red
red1)
orange
orange1)
red
off1)
red
flashing
red
flashing1)
orange
off
green
flashing
green
red
orange
flashing
red
flashing
red
flashing
Fatal error
Transfer method
Boot project
Startup.INI file
General data
Caution!
In order to avoid any loss of data, ensure that you have
closed all files of the program before removing / inserting
the memory card or switchingoff the power supply.
LED
RUN/STP/SF
Meaning
CAN/NET
green
off
green
red
green
orange
green
green
13
10/10 MN05003003Z-EN
Setup
Real-time clock
The PLC is provided with a real-time clock that can be accessed in
the user program via functions from the SysLibRTC library.
The functions are described in the PDF file SysLibRTC.
After the software is installed, this file can be opened via
<Programs l Moeller Software l easySoft CoDeSys l
Documentation l Automation Manuals>.
You can read and set with the browser commands getrtc and
setrtc respectively. More information is provided in section
setrtc on page 60.
During a voltage loss the clock is backed up for at least 72 hours.
RUN
STOP
SF
CAN/
NET
XT-RJ45-ETH-RS232
Interfaces
I
N
E
T
H
E
R
N
E
T
5 6 7 8
RJ45
R
S
2
3
2
RJ45
Figure 6:
See also:
EC4P-222-
Signal
Signal
RS232
RS232
Ethernet
Tx+
Tx-
Rx+
GND
GND
1)
TxD
TxD
Rx-
GND
GND
1)
RxD
RxD
Transparent mode
In order to establish a point-to-point connection (without
handshake cables) to another device, switch the RS232 interface
to Transparent mode using the functions from the library
EC_SysLibCom.lib. In Transparent mode, the interface is
addressed as COM1.
a chapter RS232 interface in Transparent mode, page 73.
14
RJ45
EC4P-221
RJ45
1 2 3 4
EASY-NT-30/80/150
Memory card
The memory card should be fitted in an adapter which is then fitted
on this slot.
MFD-CP4 multi-function display
The MFD is a display with HMI features that is mounted away from
the PLC. It displays the content of the PLC display. Integrated
buttons enable you to send signals to the controller and control
the processing of the program. The MFD can be mounted in a
control cabinet door up to 5 m away from the controller.
The devices are connected with the cable MFD-CP4-800-CAB5.
Terminal/printer
A terminal enables you to display and enter alphanumeric
characters. A printer can also be used to output data. The terminal
is connected to the PLC via an RS232 interface using the EASY800PC-CAB cable. The cable with the components for adapting the
PLC signals must be provided with a separate power supply from
the terminal. The signals and pin assignment of the interface must
be implemented in compliance with the RS232 specification.
10/10 MN05003003Z-EN
Interfaces
Cable connections
The following overview shows the cable types that can be
connected to the PLC and their functions.
Interface
Cable type
Device
Function
RS232
EU4A-RJ45-CAB1
PC,
terminal/
printer
Program,
transparent
mode (COM1)
Ethernet
XT-CAT5-X-2
PC
Program
MFD-CP4-800-CAB5
MFD-CP4
Display
extension
easy800-USB-CAB
PC
Program
easy800-PC-CAB
Terminal/
printer
Transparent
mode (COM2)
easy800-MO-CAB
PC,
terminal/
printer
Program,
transparent
mode (COM1)
RJ45
The functions for opening and closing the interface and for
sending and receiving data are described in the library
EC_SysLibCom.lib.
RUN
STOP
SF
CAN/
NET
a
b
MFI
PC
(RS232)
Figure 7:
a
b
c
d
Interfaces
15
10/10 MN05003003Z-EN
Setup
CAN/easyNet interfaces
The PLC is provided with a CAN/easyNET interface with two slots
that are internally connected via terminals.
Figure 8:
CAN/easyNet interfaces
CANopen
The CAN interface is designed as a CANopen interface in
compliance with the CIA specification DS301V4.0. The PLC can be
operated both as an NMT master as well as a CAN device on CAN
networks. When used as a CAN device the PLC requires an address
(= Node ID) for identification on the bus. Permissible node IDs are
1, ,127. The configuration of the master and the device is
carried out in the PLC configuration.
a section Network CAN/easyNet, page 93.
16
10/10 MN05003003Z-EN
3 Expansion units
You connect the expansion devices directly to the PLC via the
easyLink interface. The following expansion devices can be used to
increase the number of PLC inputs and outputs.
Type overview of expansion devices
Part no.
Outputs
Inputs
Table 6:
Part no.
Number
Operand
EASY6--
12
R1, ,R12
EASY620-DC-TE
4 (diagnostic)
R13, ,R16
Supply
voltage
connection
Inputs
EASY618-AC-RE
100 230 V
AC
12 AC
6 relays
EASY618-DC-RE
24 V DC
12 DC
6 relays
EASY620-DC-TE
24 V DC
12 DC
8 transistor
Diagnostics inputs
EASY202-RE
2 relay
outputs with
common
power supply
for several
outputs
Table 7:
Input
Function
R13,R14
No function
R15
R16
Overview of inputs/outputs
Outputs
Table 8:
Part no.
Number
Operand
EASY618
S1,, S6
EASY620
S1,, S8
EASY202-RE
S1,S2
17
10/10 MN05003003Z-EN
18
10/10 MN05003003Z-EN
4 Mounting
30 mm
(1.18)
30 mm
(1.18)
2
Figure 11: Mounting on top-hat rail
30 mm
30 mm
(1.18)
(1.18)
CK
CLI
19
10/10 MN05003003Z-EN
Mounting
EASY200-EASY
EASY202-RE
EASY6-RE/-TE
EASY-LINK-DS
EC4-200
20
10/10 MN05003003Z-EN
5 Installation
L01 +
L01
F1
L01+
L01-
F1
...
...V
0V
0V
I1
I2
I3
I4
I5
I6
I7
DC : +24 V
...
Cable protection
Protect the supply cables with a miniature circuit-breaker or at
least a 1A (slow blow) fuse (F1).
h
...V
0V
0V
l1
I2
l3
I4
l5
I6
I7
Caution!
Observe the following when laying and connecting analog
cables:
21
10/10 MN05003003Z-EN
Installation
+24 V H
0V
F1
0V
Out
35...55 C 0...10 V
Out
35...55 C 0...10 V
L01
L01
24 V 0 V
0V
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
0V
F1
H
0V
+12 V
...
24 V
0V
0V
I1
I2
I3
I4
I5
I6
I7
L01
a
F1
420 mA
L01
500 O
L01
1.3 kO/0.25 W
F1
...
1 kO/0.25 W
24 V 0 V
0V
I1
I2
I3
I4
I5
I6
I7
I1
0V
I2
I3
I5
I4
I6
a Analog sensor
I7
4 mA = 1.9 V
10 mA = 4.8 V
20 mA = 9.5 V
(according to U = R x I = 478 O x 10 mA ~ 4.8 V)
L01
L01
12 V
0...10 V
F1
0V
0V
...
24 V 0 V
0V
I1
I2
22
I3
I4
I5
I6
I7
+12 V
10/10 MN05003003Z-EN
Connecting a pulse
transmitter/incremental
encoder
L02 +
F1
K1
L01 +
L01
L02 +
...V
F1
0V
0V
I1
I2
I3
I4
I5
I6
24 V H
0V
0V
I1
I2
I3
I4
I5
I6
24 V H
23
10/10 MN05003003Z-EN
Installation
Connecting outputs
The relay or transistor outputs are used to switch loads such as
fluorescent tubes, filament bulbs, contactors, relays or motors.
Check the technical thresholds and output data before installing
such devices (a page 100, 101).
1 2
Q2
1 2
Q3
1 2
1 2
Q4
10 000 000
Q5
1 2
Q6
24 V H 8 A
115 V h 8 A
230 V h 8 A
2A
2A
2A
1000 W
0 V H, N
F 8 A/B 16
L1, L2, L3 (115/230 V h)
+ 24 V H
24
Caution!
Do not exceed the maximum voltage of 250 V AC on a
relay contact. If the voltage exceeds this threshold,
flashover may occur at the contact, resulting in damage to
the device or a connected load.
10 x 58 W
25 000
10/10 MN05003003Z-EN
Connecting outputs
F 10 A
EC4P-221/222-MT
f 2.5 A
24 V H
24 VQ
F 10 A
0 VQ
EASY6-DC-TE
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
S1
S2
S3
S4
S5
S6
S7
S8
24 VQ
0 VQ
0VH
f 2.5 A
EC4P-221/222-MT
R
24 V H
Q1 Q4
Q5 Q8
0.5 A
3W
5W
EASY6-DC-
L
0.5 A
+ 24 V H
(20.4 28.8 V H)
24 V H
0.5 A
0.5 A
24 V
5 W/24 V
Parallel connection:
Up to four outputs can be connected in parallel in order to increase
the power. This enables a maximum output current of 2 A.
Caution!
Please note the following when switching off inductive
loads:
Suppressed inductive loads cause less interference in the
entire electrical system. It is generally recommended to
connect the suppressor as close as possible to the
inductance.
Caution!
Only outputs of the same group (Q1 to Q4 or Q5 to Q8)
can be connected in parallel; e.g. Q1 and Q3 or Q5, Q7
and Q8. Outputs connected in parallel must be switched
at the same time.
+ 24 V H
Uemax < UZ < 33 V
Q., S.
Q., S.
0VH
25
10/10 MN05003003Z-EN
Installation
F1
...V
0V
0V
I1
I11
I2
I12
0V
QA1
24 V H
F1
24 V 0 V
0V
I1
I2
I11
I12
0V
IA
0V
QA1
24 V H
26
Caution!
Analog signals are more sensitive to interference than
digital signals so that more care must be taken when
laying and connecting the signal cables. Incorrect
switching states may occur if they are not connected
correctly.
10/10 MN05003003Z-EN
1
2
CAN/easyNet, PC connection
Fit the plug for the CAN/easyNet connection into the opening at
the top of the device a.
X Fit the plug for the PC connection in the opening on the bottom
right on device b.
X
h
Figure 30: Adapter with memory card
X
X
27
10/10 MN05003003Z-EN
Installation
Local expansion
X
Remote expansion
Remote expansion units can be installed and run up to 30 m away
from the basic unit.
EASY-LINK-DS
j
EC4-200
EASY6-RE/TE
EASY202-RE
EASY204-DP
EASY221-CO
EASY222-DN
EASY205-ASI
Warning!
The two-wire or multiple-wire cable between the devices
must comply with the insulation voltage requirement
which is stipulated for the installation environment.
Otherwise, a fault (ground fault, short-circuit) may lead to
the destruction of the units or injury to persons.
A cable such as NYM-0 with a rated operational voltage
of Ue = 300/500 V AC is normally sufficient.
EASY-LINK-DS
E+ E
EC4P-221/222-M1
EASY6-RE/-TE
EASY200EASY
E+ E
28
10/10 MN05003003Z-EN
6 Operation
Keypad
DEL: Delete
ALT
DE
ES
OK
OK
Cursor buttons :
Move cursor
Select menu items
Set numbers and values
HH:MM
JJ.MM
ANNE
04:23
05.05
2003
ALT
14:23
05.05
2003
OK
ESC
P button function:
Input P1,
Input P3,
Full cursor /:
Value M/ M
Change position with
Change values with
Flashing values/menus are shown in grey
in this manual.
Setting values
HH:MM
DD.MM
YEAR
Input P2
Input P4
HH:MM
JJ.MM
ANNE
Select or toggle
Cursor display
DEL
Cursor
PROGRAM...
STOP
RUN
SET CLOCK...
INFORMATION...
Select value
Select digit
Change value at digit
14:23
03.10
2002
Values
Places
Value at place
OK
ESC
Store entries
Retain previous value
29
10/10 MN05003003Z-EN
Operation
Status display
I 12........
NT1SP BP MC DC
MO 02:00
WS
Q ..34. STOP
Local
expansion
and
OK
R ..34......
RS SP BP MC DC
MO 02:00
WS
S....56.. STOP
R = Inputs.. RS =
Expansion S =
Outputs..
Current
selection
flashes in
menu
DEL
ESC
ALT
No
password
ESC
OK
PROGRAM
STOP RUN
SET CLOCK
INFORMATION
SECURITY...
SYSTEM
STARTPARAMETER..
MENU LANGUAGE...
I 12
NT1 SP BP MC DC
Weekday/Time
Outputs
MO 02:00
WS
Q ..34. STOP
System information #)
Startup behaviour: WS = Warm start, CS = Cold start, ST = Stop
Operating state: RUN/STOP
On: 1, 2/Off: 3, 4
ALT
I 12
NT1 SP BP MC DC
Weekday/date
Outputs
MO 01.04.2006 WS
Q ..34.
ESC
RUN
ALT
I 12..........
ID ...45678 DC
I ..15.R. WS
Q ..34....RUN
30
#) System information
10/10 MN05003003Z-EN
Menu structure
Menu structure
Main menu
PROGRAMM*)
STOP RUN
SET CLOCK
INFORMATION
BOOT PROJECT
RESET
DELETE
MEMORY->FLASH
FLASH->CARD
CARD->FLASH
REPLACE ?
BOOT PROJECT
IS
STORED
MEMORY->FLASH
FLASH->CARD
CARD->FLASH
REPLACE ?
BOOT PROJECT
IS
STORED
MEMORY->FLASH
REPLACE ?
BOOT PROJECT
IS
STORED
FLASH->CARD
CARD->FLASH
BOOTPROJECT
RESET
DELETE
RESET WARM
RESET COLD
BOOT
PROJECT.
RESET
DELETE
RESET HARD
DELETE CARD
DELETE?
RESET HARD
DELETE CARD
DELETE?
PROGRAM
STOP RUN
SET CLOCK...
INFORMATION
PROGRAM
STOP RUN
SET CLOCK
INFORMATION
SET CLOCK
PROGRAM
STOP RUN
EXAMPLE:
EC4P-222-MTAD1
OS :V01.00
BUILD:1002
SET CLOCK
INFORMATION
HH:MM
DD.MM
ANNE
14:23
03.10
2001
31
10/10 MN05003003Z-EN
Operation
Password entry
PASSWORD
STOP RUN
SET CLOCK
INFORMATION
Incorrect entry
Password
Correct entry
Status display
PASSWORD
RUN
System menu
X
System menu
Password setup
SECURITY...
SYSTEM
STARTPARAMETER
MENU LANGUAGE
Change/
delete
password
SECURITY
SYSTEM
STARTPARAMETER
MENU LANGUAGE...
PASSWORD
RANGE
ENTER PASSWORD
------
ENTER PASSWORD
000000
CHANGE PW
ACTIVATE PW
ENTER PASSWORD
------
ENTER PASSWORD
000000
PASSWORD
RANGE
PROGRAMM
CLOCK
OPERATING MODE
RESTART
DISPLAY
FACTORY SET
HALT
RESET WARM
RESET COLD
RESTART
DISPLAY
FACTORY SET
CONTRAST: 0
LIGHTING
RESTART
DISPLAY
FACTORY SET
SECURITY
SYSTEM
STARTPARAMETER
MENU LANGUAGE
SECURITY
SYSTEM
STARTPARAMETER
MENU LANGUAGE
32
Password entry
IN
TO BE
DEFINED
ENGLISH
DEUTSCH
DELETE ALL?
10/10 MN05003003Z-EN
Menu structure
System menu
PLC: STOP!
System menu
SYSTEM
STARTPARAMETER
MENU LANGUAGE
CONFIGURATOR
NET...
LINK...
NET PARAMETER...
STATIONS
CONFIGURE
NET-ID :01
BAUDRATE:125KB
BUSDELAY: 00
SEND IO :
REMOTE RUN
ID of active devices
0 = No device
1
2
3
4
1
2
3
0
UP TO
8 0
NET PARAMETER...
STATIONS
CONFIGURE
CONFIGURE?
OK
CONFIGURATION
IN
PROGRESS
SYSTEM
STARTPARAMETER
MENU LANGUAGE
CONFIGURATOR
NET...
LINK...
NOT ACTIVE
33
10/10 MN05003003Z-EN
34
10/10 MN05003003Z-EN
7 Description of settings
Password protection
You can protect access to the main menu and the System menu,
the clock setting and the operating mode (RUN/STOP) with a
password. Choose <SECURITY l RANGE> to activate the
individual setting options.
The System menu is always protected when a password is
activated.
In this case the password consists of a value between 000001 and
999999. The number combination 000000 is used to delete a
password.
PROGRAM
CLOCK
OPERATING MODE
X
X
ENTER PASSWORD
-----
ENTER PASSWORD
000042
CHANGE PW
ACTIVATE
You must enter the password before you can activate a protected
function or menu, or activate the System menu.
The scope of the password has not yet been defined. The password
is now valid but not yet activated.
35
10/10 MN05003003Z-EN
Description of settings
STOP
RUN
PASSWORD
SET CLOCK
X
X
X
ENTER PASSWORD
XXXXXX
ENTER PASSWORD
100005
XXXXXX
ACTIVATE PW
CHANGE PW
STOP
PARAMETER
SET CLOCK
Delete
Use number combination 000000 to
delete a password.
ENTER PASSWORD
------
ENTER PASSWORD
XXXXXX
36
If you have forgotten the password, you can only call the
factoryset browser command. The password, the user
program and the boot project will then be deleted, and
the controller will be reinitialised with the default
parameters, a section Reset, page 44.
10/10 MN05003003Z-EN
Two menu languages can be selected. These can be set via the
System menu.
The devices are provided with a real-time clock with date and time.
Set the hour, minute, day, month and year during initial
commissioning.
Language
Display
English
ENGLISH
Deutsch
DEUTSCH
ENGLISH
DEUTSCH
SET CLOCK
Startup behaviour
37
10/10 MN05003003Z-EN
Description of settings
SECURITY
STARTPARAMETER..
38
DISPLAY
FACTORY SET
CONTRAST
LIGHTING
CONTRAST:
LIGHTING
CONTRAST:
LIGHTING
+1
LIGHTING
CONTRAST:
+1
LIGHTING
CONTRAST:
LIGHTING
+1
RESTART
CONTRAST:
SYSTEM
.
+1
+1
10/10 MN05003003Z-EN
Physical operand
Data type
I1
AT % IX0.0
BOOL
X
X
Transistor Outputs
No Analog Outputs
No Keys
No Counter.
No Counter
High-speed counters must be activated if they are required for your
application:
X
X
Right-click No Counters.
Choose Replace Elements in the context menu and click on one
of the 3 counter functions.
39
10/10 MN05003003Z-EN
Configuration of the
inputs/outputs (I/O)
40
Click the plus sign in front of the new device folder in order to
display the inputs and outputs, including the diagnostics inputs.
10/10 MN05003003Z-EN
9 Operation
General
256 kByte
224 kByte
16 kByte
4 kByte
4 kByte
8 kByte
Approx.2000
Memory definition
The controller has the following memory:
Working memory (SRAM), not retentive.
Content, e.g. program, data
System memory (FLASH), retentive.
Content, such as boot project
Memory card
Content such as boot project, operating system.
Startup behaviour
The controller does not have a battery for backing up the working
memory containing the program. To save the program in the event
of a power failure, you should create a boot project of this program
that can be stored in the retentive system memory.
After the power supply is switched on, the CPU carries out a selftest of the system. In the event of a fault, the LEDs RUN/STOP/SF
and CAN/NET LEDs will flash red. After the self-test has been
completed fault free, the controller checks whether:
an operating system update is present on the fitted memory
card. In this case, it must be loaded.
a boot project is present. In this case it is loaded into the
working memory of the controller and started according to the
startup behaviour set. If no boot project is present, the
controller stays in the NOT READY state.
41
10/10 MN05003003Z-EN
Operation
Power on
No
yes
No
No
yes
yes
Boot project
on MMC = Boot projet in the main
memory
(Flash)?
No
yes
Startup behaviour
=
Warm start?
No
Startup behaviour
=
Cold start?
yes
No
yes
RUN
42
STOP
NOT READY
10/10 MN05003003Z-EN
Program START/STOP
Start-up conditions
Variable type
Non-retentive
Retentive
COLDSTART
WARMSTART
Activation of the
initial values
Start/Stop/Start
Values
remain in
memory
43
10/10 MN05003003Z-EN
Operation
Reset
You can carry out a reset via the PC in online mode or via the
controller menu. To do this, select the appropriate menu item in
the PLC configurator or in the controller menu.
Warm reset
Cold reset
Cold reset
Hard reset
Warm reset
Program processing and system time
The user program is processed cyclically. The states of the inputs
are read before the start of each program cycle, and the output
states are written to the physical outputs at the end of the cycle.
The cycle time depends on the length and the structure of the user
program. In order to ensure a fast response to events, program
routines can be programmed that are started when a system event
occurs. See a section System events on page 49.
Cold reset
The program is stopped.
All variables are initialised.
The program can be restarted.
Hard Reset
The program in the working memory and the boot project in the
system memory of the controller are deleted.
With the memory card fitted:
All the project files on the memory card, the operating system
and the boot project are deleted.
All user specific files and the startup.ini file remain
unchanged
The PLC is set into the NOT READY state.
44
10/10 MN05003003Z-EN
Single-cycle mode
Non-retentive
Retain
Warm reset
Values remain in
memory
Cold reset
Hard reset1)
Breakpoint/single-step mode
Single cycle mode
Forcing
Online-nderung
Progression display (Power Flow).
h
Breakpoint/single-step mode
You can set breakpoints within the user program. If an instruction
has a breakpoint attached, then the program will halt at this point.
The program can be then executed in the single-step mode.
Cycle time monitoring is deactivated.
Caution!
At this moment any outputs set will remain set!
Caution!
At this moment any outputs set will remain set!
45
10/10 MN05003003Z-EN
Operation
46
10/10 MN05003003Z-EN
Incremental input
16-bit counter
The function is available twice. The function of this counter is the
same as that of the high-speed counter (32-bit). In order to identify
the two 16-bit counters, the symbolic operands have a number: 0
or 1. The operands with 0 control count pulses that are present at
input I1. Those with the number 1 are for the count pulses of I2.
External inputs:
Counter
number
Pulse input
I1
I2
I/Q
Explanation
RefDone
Referencing completed
(feedback signal of SetRefWindow)
RefActive
Referencing activated
(feedback signal of SetRefWindow or I4)
Zero
Counter
QuitZero
RefMode
RefWindowMode
SetRefWindow
SetRefValue
RefValue
Reference value
Incremental input
One incremental input is available. The incremental signals A and
B of the transmitter are sent to the external inputs I1 and I2, and
the reference signal that is generated by the transmitter with every
rotation is sent to input I3. The reference switch is connected to
input I4. When closed this forms the reference window in which
the reference signal is processed.
The incremental signals A and B are phase shifted by 90 degrees
in order to indicate the count direction. The rising and falling edges
are evaluated (quadrature decoding). The maximum input
frequency is 40 kHz. This results in a total frequency of 160 kHz.
The counter does not generate an interrupt.
You can control the counter and adapt it to the application with
the following signals. The signal inputs can be scanned and the
signal outputs set in the program. The signal designations are
provided in the PLC configuration.
47
10/10 MN05003003Z-EN
Operation
Referencing
Input
CPU
Signal A
Signal B
Reference
Signal
Reference
Window
Incremental
encoder
l1
l2
l3
l4
Reference
switch
Switching the CPU from HALT l RUN enables the counter: The
incoming pulses are counted.
SetRefValue (Reset)
A rising edge 0 l 1 at the input overwrites the actual value with
the value present at the RefValue input.
T1
Reference Signal
T3
48
T2
Reference Window
10/10 MN05003003Z-EN
System events
System events
System events are:
START
COLDSTART
WARMSTART
STOP
I/O Interrupt
1, 2, 3, 4
Counter-Interrupt1
Counter-Interrupt2
TIMER INTERRUPT
49
10/10 MN05003003Z-EN
Operation
Interrupt inputs I1 I4
Timer interrupt
X
X
First define the edge of the input signal in the PLC configurator.
Assign the program routine to the input in the task
configuration.
Counter interrupt
When using the High-speed counter function, the controller
continuously compares the actual value with the reference preset
value of the counter. If both are the same, an interrupt is
generated (a page 52) which calls the program routine (POU)
you have created.
To do this you first have to define the counter type in the PLC
configurator. You then have to assign the input receiving the count
pulses to the POU in the task configuration.
TIMERINTERRUPTENABLE
BOOL
DWORD
xEnable
dwTimerTickUS
TimerInterruptEnable
BOOL
xEnable
Call
Program
routine
p
p = TimerTickUS
50
10/10 MN05003003Z-EN
System events
Example
Create a program with a function call
Create a program with the function TIMERINTERRUPTENABLE as
per figure 51.
Creating the program routine
X Open the Task Configuration sub-directory with a double click
in the Resources directory.
X Click here the System Events folder. The System events tab is
active.
X Click the Timer Interrupt check box to activate the timer
interrupt.
X In the Called POU column enter the name of the program
routine, e. g Time_Int.
51
10/10 MN05003003Z-EN
Operation
Interrupt processing
START/STOP
COLD START
WARM START
(start of controller)
Program for
processing the
interrupt
TIMER INTERRUPT
(periodic)
Interrupt inputs
(voltage at I1, I2, I3, I4)
Startup behaviour
Select type
TIMER INTERRUPT
Call function
TIMERINTERRUPTENABLE
Interrupt inputs
Define edges
High-speed counters
Select type
High-speed counter
(Actual value = Preset)
The interrupts are enabled in the RUN state of the CPU and
disabled in the STOP state. Interrupt sources which are not
enabled in the configuration do not initiate an interrupt.
You can disable or enable the interrupt inputs I1....I4 and the timer
interrupt from the program. The functions DisableInterrup and
EnableInterrupt are provided for this purpose. A call parameter
determines whether a single interrupt or all interrupts are to be
disabled/enabled. A disabled interrupt must be enabled with the
same parameter that was used to disable it.
The two functions DisableInterrup and EnableInterrupt are
provided as part of the library EC_UTIL.lib. This library must be
included if necessary in your project by the Library Manager of the
programming software.
DisableInterrupt: With this function, you disable (deactivate) a
parameterised physical interrupt by accessing it from the user
program.
EnableInterrupt: With this function, the physical interrupt which
was deactivated beforehand can now be re-enabled as an active
interrupt.
52
10/10 MN05003003Z-EN
The Input Assistant window is opened. This lists all the predefined
programs:
Description of functions
The function ReadBitDirect is described as an example for all
other functions:
ReadBitDirect
This function enables you to read the status of an input bit directly.
It is stored in the variable to which the parameterised pointer
ptr_xValue is assigned. The pointer variable will not be changed
when a fault occurs during processing.
53
10/10 MN05003003Z-EN
Operation
EC4-200-I/O
I1-I12
I7,I8,I11,I12
Q1-Q8
QA1
Digital
Analog
Digital
Analog
ReadBitDirect
Bit 0-11
ReadByteDirect
Byte 0+1
ReadWordDirect
Offset 2,4,6,8
WriteBitDirect
Bit 0-7
WriteByteDirect
Byte 0
WriteWord Direct
Offset 2
IO_ACCESS_DENIED
EC_UTIl2.Lib
High-speed counters
Function block
16 Bit
32 Bit
Incremental
Acc16BitCounterDirect
Offset
0+1
READBYTEDIRECT
READWORDDIRECT
Acc32BitCounterDirect
OK
WRITEBITDIRECT
AccIncremental InputDirect
OK
WRITEBYTEDIRECT
WRITEWORDDIRECT
ACCESS16BITCOUNTERDIRECT
54
ACCESS32BITCOUNTERDIRECT
ACCESSINCREMENTALINPUTDIRECT
IO_ACCESS_INVALID_OFFSET
READBITDIRECT
IO_ACCESS_NO_MODUL
IO_ACCESS_INVALID_SLOTNUMBER
10/10 MN05003003Z-EN
The CPU processes the user program stored in the main memory.
As the working memory is not backed up, the program will be lost
in the event of a power failure. You can therefore create a boot
project to store the program retentively.
The boot project stored in the system memory (Flash) can also be
stored on the memory card. This is done by calling the browser
command copyprojtommc in online mode or by choosing
PROGRAM?
l BOOT PROJECT l?FLASH l?CARD from the main
menu of the controller using the operating buttons.
Main memory
Program
Boot project
Browser: copyprojtommc
Memory card
Boot project
The boot project will only run with the actual operating system
(OS) on which it was created!
If you fit the memory card with an OS into the controller, the OS of
the controller will be updated after startup and a boot project will
be loaded into the controller. If the boot project was not created
with the OS, it will not be detected by the controller. In this case,
load the program and create a new boot project.
Click Yes.
The boot project has been created when this dialog disappears
again. You can now restart the PLC.
55
10/10 MN05003003Z-EN
Operation
Caution!
The download is only possible in offline mode via the
RS232 interface! Downloading the OS will delete all the
files on the controller/memory card. The controller will
then carry out a hard reset, a page 44
56
The files last opened can be selected from the list field
(dropdown menu).
10/10 MN05003003Z-EN
Download/update operating
system
Fit the memory card into the controller when it is switched off.
Switch on the PLC.
57
10/10 MN05003003Z-EN
58
10/10 MN05003003Z-EN
10 Browser commands
The PLC browser is a text based control monitor. This is where you
enter commands in the entry line for scanning PLC status from the
PLC. They are sent as strings to the PLC. A results window of the
browser displays the response. This allows you to carry out
diagnostics or debugging tasks.
h
Table 13:
Browser commands
pinf
cycle
canload*
copyprojtommc
createstartupini
factoryset
format
GetNodeId
GetRoutingId
getipgateway
getipconfig
getmacaddress
getrtc
metrics
reboot
Reboot of EC4-200
A new window called PLC Browser will appear in the field on the
right.
X
Press the enter button in order to view the response of the PLC
to the browser command in the event window.
h
reload
remove
removeprojfrommmc
removestartupini
setipconfig
setipgateway
setrtc*
59
10/10 MN05003003Z-EN
Browser commands
canload
setrtc
Example:
Syntax:
<setrtc_YY:MM:DD:DW_HH:MM:SS>
Legend:
60
Attention!
With a bus utilization of 75 percent or higher, the warning
ATTENTION: HIGH BUSLOAD also appears. Overload of
the local CAN bus in conjunction with further short term
load peaks can lead to CAN data loss.
Space
YY
MM
DD
DW
HH
MM
SS
10/10 MN05003003Z-EN
The libraries contain IEC function blocks and functions that you
can use, for example, for the following tasks:
Using libraries
When you open a project, the Standard.lib and
SYSLIBCALLBACK.lib libraries are copied into the Library Manager.
If you need further libraries for your application, you have to install
these manually.
The libraries in the Library Manager are assigned to the project
after saving. When you open the project, the libraries are then
automatically called up as well.
The following overview lists the documents in which the function
blocks and functions are described.
Document
Library
MN05010003Z-EN
(previously AWB2700-1437)
Standard.lib
Util.lib
XX_Util. Lib
SysLibpdf
MN05010002Z-EN
(previously AWB2786-1456GB)
AN2700K20
3S_CANopenDevice. Lib
3S_CANopenManager. Lib
AN2700K19
3S_CANopenNetVar. Lib
AN2700K27
SysLibCan. Lib
MN05010001Z-EN
(previously AWB2786-1554GB)
CANUserLib. lib
CANUser_Master. lib
61
10/10 MN05003003Z-EN
EC_Util.lib library
EC_Visu.lib/EC_Visu2.lib library
CAN_BUSLOAD function
This function can be called cyclically in a user program. When a
read cycle was completed successfully, the function returns the
TRUE value and writes the values calculated for integration time
and bus load to the transferred addresses.
If the bus load calculation is not yet completed or the CAN
controller has not yet been initialised, the function returns FALSE.
Information on evaluating the return value is provided in the
browser command canload on page 60.
EC_Visu.lib
EC_Visu2.lib
SetBacklight
Disp_SetBacklight
SetContrast
Disp_SetContrast
GetDisplayInfo
Disp_GetDisplayInfo
p_dwIntegrationTime
CAN_BUSLOAD
p_bBusload
62
BOOL
10/10 MN05003003Z-EN
38400 Bit/s
Parity
No
Stop bits
Motorola Byte
No
Changing settings
Proceed as follows in order to change parameters such as baud
rate or port:
Double-click the value, such as 38400.
The field is highlighted in grey.
X Enter the desired value.
X
Double-click this field once more to choose the Baud rate, e.g.
57600 Bit/s.
63
10/10 MN05003003Z-EN
Click Yes.
64
10/10 MN05003003Z-EN
Reset the block size to 128 KByte if you are setting parameters
for a XC200 or MFD4. These PLCs have more memory available.
The setting can be modified as required using the
BlockSizeEditor.exe application (in the Windows Start menu under
Program l Moeller Software l easySoft-CoDeSys l
Communication).
65
10/10 MN05003003Z-EN
192,168,119xxx
192,168,119yyy
Example 2
IP address PLC:
IP address PC:
192,168,100xxx
192,168,100yyy
For the example mentioned you would enter the following text:
ping 192.168.119.60 and confirm this with OK.
66
10/10 MN05003003Z-EN
Overview
CAN1_BAUDRATE: 10,20,50,100,125,250,500
CAN1_NODEID: 1-127
CAN_ROUTINGID: 1-127
[STARTUP]
IP_ADDRESS=xxx.xxx.xxx.xxx
TARGET = EC4P-200
IP_SUBNETMASK=xxx.xxx.xxx.xxx
IP_ADDRESS=192.168.119.60
IP_GATEWAY=xxx.xxx.xxx.xxx
IP_SUBNETMASK=255.255.255.0
IP_GATEWAY=0.0.0.0
The parameters from the INI file have priority before the
parameters of the PLC configuration. The parameters of the PLC
configuration are not accepted after a program download or after
loading the boot project.
COM_Baudrate=38400
CAN1_Baudrate=125
CAN1_NODEID=2
CAN_ROUTINGID=127
You can change or create the parameters with a text editor if you
fit the memory card in the memory card slot of the PC. First fit the
memory card in the supplied adapter, and then fit this into the PC
slot. The STARTUP.INI file is stored on the memory card in the
folder MOELLER/EC4P_200/PROJECT/.
67
Changing settings
The parameters are retained until you enter the browser command
removestartupini and then switch the controller off and on
again. The controller will now operate with the parameters of the
project.
68
10/10 MN05003003Z-EN
10/10 MN05003003Z-EN
Program download
Online modifications
Program test (Debugging)
Generation of boot projects
Writing files in the PLC
Reading files from the PLC
Prerequisites
The following requirements must be fulfilled to use routing:
The routing PLC and the target PLC must both support routing.
Both PLCs must be connected via the CAN bus.
The PLCs must both have the same active CAN baud rate.
The valid routing Node ID must be set on both PLCs.
XC
EC4-200
RS232
RS232
CAN
XC
EC4-200
CAN
Routing
OS <
V1.03.03
OS
f V1.03.03
OS <
V1.03.03
OS
f V1.03.03
4/128 KByte
Routing
not possible
4 kByte
Caution!
The program download with a block size of 4 KByte to a
PLC with an operating system version earlier than
V1.03.03 will cause faulty behaviour!
If a program download is performed, the progress bar on
the programming device monitor will only change
erratically (about every 10 seconds).
69
10/10 MN05003003Z-EN
Programming:via a CANopen
network (Routing)
Target station
(Device)
Node-ID: 1
Routing ID: k
Routing-ID n
Node-ID m
PC
Alternative option:
The following *.reg files are available in the installation directory
to enter the block size in the registry:
Routing station
(Master)
Ethernet a
k, n, m = 2127
BlockSizeDefault.reg
BlockSizeRout.reg
Table 17: Example for setting the Node ID, routing ID, Baud rate
PLC
Function
Node-ID
Routing-ID
Baud
rate
a
figure
Routing
controller
Master
1 (Basic)
127 (Routing)
125 KB
86
85
Blocksize = dword:00020000
Target
controller
Device
3 (Basic)
125 KB
87
The default block size is 20000hex (=128 Kbyte), the block size for
the routing is 1000hex (= 4 Kbyte).
Notes on routing
If large files are written to the target PLC or read from the PLC,
it is possible that the online connection will be interrupted after
the transfer process has been completed. Renewed connection
is possible.
If a program with a modified routing node ID is loaded into the
target PLC, the target PLC accepts the modified routing node ID;
however, the communication connection will be interrupted.
Reconnection with a corrected routing Node ID is possible.
A controller cannot be connected via a routing connection if it
contains a program without any valid routing parameters
(Baud rate/Node ID).
70
CAN/CANopen
54 (Routing)
85
10/10 MN05003003Z-EN
One ID for the routing function: The routing ID and the CAN
baud rates are set as shown in figure 85 in the CAN/easyNet
tab. As node ID set for example 54.
One ID for basic communication: The ID for basic
communication and the CAN baud rate are defined in the Can
settings folder as shown in figure 87.
Node ID and baud rate are transferred with the project download.
71
10/10 MN05003003Z-EN
Programming:via a CANopen
network (Routing)
CAN
You have connected the PC to the PLC with node ID 2 and want to
access the target PLC with routing ID 54.
Open the project of the target PLC (Node ID 3) whose program
you wish to edit or test.
X First configure the parameters for the hardware connection PC
n PLC (Node ID 2).
X From the Online menu select Communication Parameters...
X Click the New button under local channels.
X
72
XC100
XC121
XC200
EC4-200
MFD4
XC100
XC121
XC200
MFD4
EC4-200
To O
10/10 MN05003003Z-EN
COM1/COM2:
The transparent mode is forcibly deactivated when the PLC state
changes to the STOP mode or when the SysComClose function
is accessed.
73
10/10 MN05003003Z-EN
74
10/10 MN05003003Z-EN
16 Interactive display
Display form
The display of the PLC and the MFD-CP4 has a matrix consisting
of 4 lines and 16 columns. Each line can therefore display 16
characters. Three characters sets are available for use.
A maximum of 12 variables can be displayed on one screen of the
display.
The display length and number of characters depends on the data
type concerned. If the variable consists of a decimal value, an
additional place must be allowed for the decimal point. The value
of the variable can be continuously updated. A value is entered via
the buttons/rocker switch.
Data type
max. places
max. accuracy
Format
BYTE
255
1.23
WORD
65 535
1.2345
DWORD
11
1.23456789
USINT
255
1.23
UINT
65 535
1.2345
UDINT
11
1.23456789
SINT
128/127
1.23
INT
32768/32767
1.2345
DINT
12
1.23456789
75
10/10 MN05003003Z-EN
Interactive display
Description
Disp_SetBacklight
Disp_RegisterVariable
Register variables
Disp_CreateVariableList
Disp_GetDisplayInfo
Disp_ClearScreen
Clear screen
Disp_SetCursor
Disp_SetContrast
Disp_DisplayElement
Disp_DisplayPage
Part no.
Display of
Disp_SetBacklight
Function
PLC
Disp_RegisterVariable
Function
Disp_CreateVariableList
Function
Disp_GetDisplayInfo
Function block
Disp_ClearScreen
Function
PLC, MFD1)
Disp_SetCursor
Function block
PLC, MFD1)
Disp_SetContrast
Function block
PLC
Disp_DisplayElement
Function block
PLC, MFD1)
Disp_DisplayPage
Function block
PLC, MFD1)
76
10/10 MN05003003Z-EN
Description of important
functions / function blocks
xDisableESCKey:
END_VAR
(* Return value: TRUE
*)
About xDisableESCKey:
Pressing the ESC button (requirement: ESC button must be
enabled) with Entry/output mode active will activate the Status
display. You can disable the ESC button by setting the input
xDisableESCKey to TRUE.
If the Enable input is set back to FALSE, the Status display of the
PLC will be displayed again.
FUNCTION Disp_RegisterVariable : BOOL (* Define an IEC variable as display variable *)
VAR_INPUT
sName:
END_VAR
(* Return values:*)
(* TRUE: Display variable successfully registered*)
(* FALSE: Variable list full *)
TYPE DISP_VARTYP :
( DISP_TYP_USINT := 0,
DISP_TYP_UINT,
DISP_TYP_UDINT,
DISP_TYP_SINT,
DISP_TYP_INT,
DISP_TYP_DINT,
DISP_TYP_BYTE,
DISP_TYP_WORD,
DISP_TYP_DWORD,
DISP_TYP_STRING ) := DISP_TYP_UINT;
END_TYPE
77
10/10 MN05003003Z-EN
Interactive display
Menu level:
*)
(*0:
Status menu
*)
(*1:
Main menu
*)
(*2:
*)
(*3:
*)
(*4:
*)
(*5:
System menu
*)
(*6:
*)
(*7:
*)
(*8:
*)
(*9:
*)
*)
*)
byActualColumn:
*)
xESCKeyDisabled:
*)
*)
xInputEnabled #)
xInputActive #)
sName
byLine
byColumn
eFont
byDigits
byPrecision
eAttribut
END_VAR
VAR_OUTPUT
eError
(* See DISP_ERROR*)
END_VAR
(* Return values:*)
(* DISP_ERROR_NO_ERROR:OK, no error*)
(* DISP_ERROR_INVALID_LINE: *)
(* DISP_ERROR_INVALID_COLUMN: outside of value range*)
(* DISP_ERROR_ELEMENT_NOT_FOUND: Element not found*)
(* DISP_ERROR_INVALID_VARIABLE_TYP:outside of value range*)
TYPE DISP_FONTS :
( DISP_FONT_LATIN1 := 0,
DISP_FONT_LATIN2,
DISP_FONT_CYRILLIC ) := DISP_FONT_LATIN1;
END_TYPE
...
*)
If inputs xEnable and xEnableInput of the FB Disp_DisplayPage = TRUE and the ALT button is pressed*)
78
*)
byActualLine:
10/10 MN05003003Z-EN
Description of important
functions / function blocks
...
TYPE DISP_ATTRIBUT :
( DISP_ATTR_NORMAL := 0,
DISP_ATTR_REVERSE,
DISP_ATTR_BLINK ) := DISP_ATTR_NORMAL;
END_TYPE
xEnableInput:
byNoOfElements:
aElementDescription:ARRAY [1..12]
OF DISP_ElementDescription:
(* See DISP_ElementDescription*)
END_VAR
VAR_OUTPUT
byError
END_VAR
(* Return values:*)
(* 0:
TYPE DISP_ElementDescription :
STRUCT
xEnable
xInputEnable
: (* FALSE: Display of element, see figure 93; TRUE: Display (initialisation) value,
Entry possible*)
sName
byLine
byColumn:
eFont
byDigits
byPrecision
diMinInputValue#:
diMaxInputValue#:
eAttribut:
xInputActiv#:
xInputDone#:
eError
(* See DISP_ERROR*)
END_STRUCT
END_TYPE
END_VAR
# Active if xInputEnable = TRUE
(* Returnvalues: *)
(* DISP_ERROR_NO_ERROR,
OK, no error *)
(* DISP_ERROR_INVALID_LINE,
(* DISP_ERROR_INVALID_COLUMN,
(* DISP_ERROR_ELEMENT_NOT_FOUND,
Element not found*)
79
10/10 MN05003003Z-EN
Interactive display
(Display of
values/modifications
visible)
80
10/10 MN05003003Z-EN
Description of important
functions / function blocks
PLC_PRG
2 values are incremented.
The program Visualisation is called.
VISUALISATION
Registering and positioning of variables on the display in
the first cycle
The auxiliary variable g_xFirstCycleAfterStartProgram is
reset.
Activation of Entry/output mode (I1)
Start display (I3,I5)
Declare variables
X First declare for each text element that you wish to display, such
as motor1, a variable of type String in the
Global_Variables_Display list as shown in the following
example (see alsofigure 95):
VAR GLOBAL
g_sDisp_String1
END_VAR
:STRING:='Motor1';
:TON;
:BYTE;
wValue
:WORD;
END_VAR
----------------------------------------------------------fbTimer1(IN:=NOT fbTimer1.Q , PT:=t#50ms );
IF fbTimer1.Q = TRUE THEN
byValue := byValue + 1;
wValue := wValue + 1;
END_IF
81
10/10 MN05003003Z-EN
Interactive display
Disp_RegisterVariable('S2', ADR(g_sDisp_String2),
DISP_TYP_STRING);
Disp_RegisterVariable('V2', ADR(PLC_PRG.wValue),
DISP_TYP_WORD);
Disp_RegisterVariable('V1', ADR(PLC_PRG.byValue),
DISP_TYP_BYTE);
In this program section you can also define the position of the
variables on the display by specifying the Line and Column.
Call the function block (FB) Disp_DisplayElement and assign
parameters for the inputs sName, byLine, and byColumn, e.g.:
fbDisplayElement1.sName := 'S1';
fbDisplayElement1.byLine := 1;
fbDisplayElement1.sName
:= 'S1';
fbDisplayElement1.byLine
:= 1;
fbDisplayElement1.byColumn
:= 1;
fbDisplayElement2.sName
:= 'S2';
fbDisplayElement2.byLine
:= 3;
fbDisplayElement2.byColumn
:= 1;
fbDisplayElement3.sName
:= 'V1';
fbDisplayElement3.byLine
:= 1;
fbDisplayElement3.byColumn
:= 8;
fbDisplayElement3.byDigits
:= 4;
fbDisplayElement3.byPrecision
:= 1;
fbDisplayElement4.sName
:= 'V2';
fbDisplayElement4.byLine
:= 3;
fbDisplayElement4.byColumn
:= 8;
fbDisplayElement4.byDigits
:= 6;
fbDisplayElement4.byPrecision
:= 1;
fbDisplayElement1.byColumn := 1;
(* The first cycle is completed, reset flag *)
END_IF
VAR
fbDisplayElement3( xEnable:= I3 );
xIsDisplayEnabled: BOOL;
fbGetDisplayInfo:
Disp_GetDisplayInfo;
fbDisplayElement1: Disp_DisplayElement;
fbDisplayElement2: Disp_DisplayElement;
fbDisplayElement3: Disp_DisplayElement;
fbDisplayElement4: Disp_DisplayElement;
byError:
BYTE;
byValue:
BYTE;
wValue:
WORD;
END_VAR
-----------------------------------------------------------(* Initialisation in the first cycle after program start *)
IF g_xFirstCycleAfterStartProgram = TRUE THEN
Disp_ClearScreen(xEnable:=TRUE);
Disp_RegisterVariable('S1', ADR(g_sDisp_String1),
DISP_TYP_STRING);
82
g_xFirstCycleAfterStartProgram := FALSE;
10/10 MN05003003Z-EN
Description of important
functions / function blocks
VAR_GLOBAL
g_sDisp_String1
g_sDisp_String2
g_sDisp_String3
g_sDisp_String4
END_VAR
:TON;
:BYTE;
wValue
:WORD;
Execution
The example program consists of programs:
dwValue
:DWORD;
usiValue
:USINT;
siValue
:SINT;
END_VAR
----------------------------------------------------------
PLC_PRG:
2 values are incremented.
The program Visualisation is called.
VISUALISATION
Registering and positioning of variables on the display in
the first cycle.
The auxiliary variable g_xFirstCycleAfterStartProgram is
reset.
Activation of Entry/output mode (I1).
Enable ESC button (I2).
Start display (I3).
Start entry (I4).
83
10/10 MN05003003Z-EN
Interactive display
:BOOL;
fbDisplayPage1
:Disp_DisplayPage;
byError
:BYTE;
siValue
:SINT;
END_VAR
-----------------------------------------------------------(* Initialisation in the first cycle after program start *)
IF g_xFirstCycleAfterStartProgram = TRUE THEN
84
fbDisplayPage1.aElementDescription[1].sName
:= 'S1';
fbDisplayPage1.aElementDescription[1].byLine
:= 1;
fbDisplayPage1.aElementDescription[1].byColumn
:= 1;
fbDisplayPage1.aElementDescription[2].sName
:= 'S2';
fbDisplayPage1.aElementDescription[2].byLine
:= 2;
fbDisplayPage1.aElementDescription[2].byColumn
:= 1;
fbDisplayPage1.aElementDescription[3].sName
:= 'S3';
fbDisplayPage1.aElementDescription[3].byLine
:= 3;
fbDisplayPage1.aElementDescription[3].byColumn
:= 1;
fbDisplayPage1.aElementDescription[4].sName
:= 'S4';
fbDisplayPage1.aElementDescription[4].byLine
:= 4;
fbDisplayPage1.aElementDescription[4].byColumn
:= 1;
fbDisplayPage1.aElementDescription[5].sName
:= 'V1';
fbDisplayPage1.aElementDescription[5].byLine
:= 1;
fbDisplayPage1.aElementDescription[5].byColumn
:= 13;
fbDisplayPage1.aElementDescription[5].byDigits
:= 4;
fbDisplayPage1.aElementDescription[5].byPrecision
:= 1;
fbDisplayPage1.aElementDescription[5].xInputEnable
:= FALSE;
fbDisplayPage1.aElementDescription[5].diMinInputValue
:= 1;
fbDisplayPage1.aElementDescription[5].diMaxInputValue
:= 100;
fbDisplayPage1.aElementDescription[6].sName
:= 'V2';
fbDisplayPage1.aElementDescription[6].byLine
:= 2;
fbDisplayPage1.aElementDescription[6].byColumn
:= 12;
fbDisplayPage1.aElementDescription[6].byDigits
:= 5;
fbDisplayPage1.aElementDescription[6].byPrecision
:= 0;
fbDisplayPage1.aElementDescription[6].xInputEnable
:= TRUE;
fbDisplayPage1.aElementDescription[6].diMinInputValue
:= 0;
fbDisplayPage1.aElementDescription[6].diMaxInputValue
:= 33333;
fbDisplayPage1.aElementDescription[7].sName
:= 'V3';
10/10 MN05003003Z-EN
Description of important
functions / function blocks
fbDisplayPage1.aElementDescription[7].byLine
:= 3;
fbDisplayPage1.aElementDescription[7].byColumn
:= 8;
fbDisplayPage1.aElementDescription[7].byDigits
:= 9;
fbDisplayPage1.aElementDescription[7].byPrecision
:= 0;
fbDisplayPage1.aElementDescription[7].xInputEnable
:= TRUE;
fbDisplayPage1.aElementDescription[7].diMinInputValue
:= 0;
fbDisplayPage1.aElementDescription[7].diMaxInputValue
:= 4444444;
fbDisplayPage1.aElementDescription[8].sName
:= 'V4';
fbDisplayPage1.aElementDescription[8].byLine
:= 4;
fbDisplayPage1.aElementDescription[8].byColumn
:=13;
fbDisplayPage1.aElementDescription[8].byDigits
:= 4;
fbDisplayPage1.aElementDescription[8].byPrecision
:= 0;
fbDisplayPage1.aElementDescription[8].xInputEnable
:= TRUE;
fbDisplayPage1.aElementDescription[8].diMinInputValue
:= 4;
fbDisplayPage1.aElementDescription[8].diMaxInputValue
:= 400;
:= FALSE;
END_IF
X
85
10/10 MN05003003Z-EN
Interactive display
TERMINAL
same display as the
controller's display
Local Mode
Main menu
COM
MENU LANGUAGE
LIGHTING: 80%
CONTRAST: :+1
MFD setup
Figure 100: EC4-200 with MFD-CP4
86
10/10 MN05003003Z-EN
EASY205-ASI
EASY205-ASI
EASY240-DP
EASY221-CO
EASY222-DN
Inputs
Parameter
ASi
Outputs
EC4-200
easyNet
EASY8
Slave
EASY8
Outputs S1
S4
Inputs R5 R8
Inputs R1 R4
EASY205-ASI
EC4-200
Network
Data exchange
EASY205-ASI
ASi
cyclic
EASY204-DP
PROFIBUS-DP
Cyclic + acyclic
EASY221-CO
CANopen
Cyclic + acyclic
EASY222-DN
DeviceNet
Cyclic + acyclic
l R2
Q2
l R3
Q3
l R4
P0
l R5
P1
l R6
P2
l R7
P3
l R8
S1 l
I0
S2 l
I1
S3 l
I2
S4 l
I3
Master inputs
Q1
EC4 outputs
l R1
EC4 inputs
Q0
EC4 a Master
EC4 inputs
Master a EC4
EASY204-DP
MN05013005Z-EN
(previously AWB2528-1401GB)
EASY221-CO
MN05013008Z-EN
(previously AWB2528-1479GB)
EASY222-DN
MN05013007Z-EN
(previously AWB2528-1427GB)
87
10/10 MN05003003Z-EN
Configuration
Master
Inputs
Inputs
Status
Status
Outputs
Outputs
PROFIBUS-DP/
CANopen/DeviceNet
Slave
Outputs S1
Inputs R9 R16
Inputs R1 R8
EASY204-DP
EASY221-CO
EASY222-DN
EC4-200
From the point of view of the master, this data is written to the
EC4-200.
Byte
Meaning1)
R9 R16 (Inputs)
R1 R8 (Inputs)
From the point of view of the master, this data is read from the
EC4-200.
Cyclic data exchange
The EASY204-DP, EASY221-CO, EASY222-DN network modules
have the same cyclical data exchange procedure.
The master exchanges 3 bytes of data in each direction with the
network modules connected to the EC4-200.
Byte
Meaning1)
S1 S8 (Outputs)
Not used
88
10/10 MN05003003Z-EN
Configuration
The configuration is carried out in the PLC configuration of the
easy Soft CoDeSys programming software. The network module is
entered as an expansion device in the configuration tree. This
contains predefined input and output channels (R1R16,
S1S8) for the cyclical transfer of data.
EASY221-CO, EASY204-DP,
EASY222-DN
The objects listed in the table are supported by the EC4-200 and
can be addressed by a master on the CAN, PROFIBUS-DP or
DeviceNet.
Table 21: Objects of the EC4-200
Object name
Mode1)
R/W
Inputs I1 I16
Inputs R1 R161)
Outputs Q1 Q8
Outputs S1 S81)
R/W
R/W
MW964)
Note on EASY204-DP:
You can only change the bus address if communication
with the master is not active.
Once a module is assigned a valid address, it saves it
internally and loads it with every restart. If you set a new
address in the PLC configuration and carry out a program
download, this address will only be loaded if there was no
communication with the master during the download, i.e.
by unplugging the DP bus cable!
If you load the program from the PC to the PLC, this will
check whether the address currently used by the PLC
matches the configured address. A warning message is
generated if these are not the same.
R/W
R/W
R/W
(MD69MD72)4)
R/W
R/W
R/W
16 bytes data
h
MD964)
1)
2)
3)
4)
10/10 MN05003003Z-EN
90
Bit
9689
8881
8073
7265
6457
5649
4841
4033
3225
2417
169
81
(11.711.0) (10.710.0) (9.79.0) (8.78.0) (7.77.0) (6.76.0) (5.75.0) (4.74.0) (3.73.0) (2.72.0) (1.71.0) (0.00.7)
Byte
12 (11)
Word
6 (10)
DWord
3 (8)
Byte
24 (23)
Word
12 (22)
DWord
6 (20)
Byte
36 (35)
Word
18 (34)
DWord
9 (32)
Byte
48 (47)
Word
24 (46)
DWord
12 (44)
Byte
60 (59)
Word
30 (58)
DWord
15 (56)
Byte
72 (71)
Word
36 (70)
DWord
18 (68)
Byte
84 (83)
Word
42 (82)
DWord
21 (80)
Byte
96 (95)
Word
48 (94)
DWord
24 (92)
11 (10)
10 (9)
9 (8)
5 (8)
8 (7)
7 (6)
4 (6)
6 (5)
5 (4)
3 (4)
22 (21)
21 (20)
11 (20)
20 (19)
34 (33)
19 (18)
10 (18)
33 (32)
17 (32)
32 (31)
18 (17)
17 (16)
9 (16)
46 (45)
23 (44)
44 (43)
31 (30)
30 (29)
29 (28)
15 (28)
58 (57)
29 (56)
56 (55)
43 (42)
42 (41)
41 (40)
21 (40)
70 (69)
35 (68)
68 (67)
55 (54)
54 (53)
53 (52)
27 (52)
82 (81)
41 (80)
80 (79)
67 (66)
66 (65)
65 (64)
33 (64)
94 (93)
47 (92)
92 (91)
46 (90)
23 (88)
40 (39)
39 (38)
38 (37)
37 (36)
19 (36)
52 (51)
51 (50)
50 (49)
49 (48)
25 (48)
64 (63)
63 (62)
62 (61)
61 (60)
31 (60)
16 (60)
79 (78)
40 (78)
93 (92)
25 (24)
13 (24)
32 (62)
78 (77)
77 (76)
39 (76)
76 (75)
75 (74)
38 (74)
20 (76)
95 (94)
26 (25)
13 (48)
34 (66)
81 (80)
27 (26)
26 (50)
17 (64)
83 (82)
28 (27)
10 (36)
28 (54)
69 (68)
13 (12)
7 (12)
20 (38)
14 (52)
71 (70)
14 (13)
7 (24)
22 (42)
57 (56)
15 (14)
14 (26)
11 (40)
59 (58)
16 (15)
4 (12)
16 (30)
45 (44)
1 (0)
1 (0)
8 (14)
8 (28)
47 (46)
2 (1)
1 (0)
5 (16)
35 (34)
3 (2)
2 (2)
2 (4)
23 (22)
4 (3)
74 (73)
73 (72)
37 (72)
19 (72)
91 (90)
90 (89)
45 (88)
89 (88)
88 (87)
44 (86)
22 (84)
87 (86)
86 (85)
43 (84)
85 (84)
10/10 MN05003003Z-EN
EASY221-CO, EASY204-DP,
EASY222-DN
Word
54 (106)
DWord
27 (104)
53 (104)
52 (102)
51 (100)
Word
60 (118)
DWord
30 (116)
Word
66 (130)
DWord
33 (128)
Word
72 (142)
DWord
36 (140)
Word
78 (154)
DWord
39 (152)
Word
84 (166)
DWord
42 (164)
Word
90 (178)
DWord
45 (176)
Word
96 (190)
DWord
48 (188)
47 (184)
46 (180)
DWord
51 (200)
50 (196)
49 (192)
DWord
54 (212)
53 (208)
52 (204)
DWord
57 (224)
56 (220)
55 (216)
DWord
60 (236)
59 (232)
58 (228)
DWord
63 (248)
62 (244)
61 (240)
DWord
66 (260)
65 (256)
64 (252)
DWord
69 (272)
68 (268)
67 (264)
DWord
72 (284)
71 (280)
70 (276)
DWord
75 (296)
74 (292)
73 (288)
DWord
78 (308)
77 (304)
76 (300)
DWord
81 (320)
80 (316)
79 (312)
DWord
84 (332)
83 (328)
82 (324)
DWord
87 (344)
86 (340)
85 (336)
DWord
90 (356)
89 (352)
88 (348)
DWord
93 (368)
92 (364)
91 (360)
DWord
96 (380)
95 (376)
94 (372)
26 (100)
59 (116)
58 (114)
64 (126)
57 (112)
70 (138)
63 (124)
76 (150)
69 (136)
82 (162)
75 (148)
88 (174)
81 (160)
94 (186)
68 (134)
67 (132)
74 (146)
73 (144)
80 (158)
79 (156)
40 (156)
87 (172)
44 (172)
95 (188)
61 (120)
37 (144)
41 (160)
89 (176)
62 (122)
34 (132)
38 (148)
83 (164)
55 (108)
31 (120)
35 (136)
77 (152)
56 (110)
28 (108)
32 (124)
71 (140)
49 (96)
25 (96)
29 (112)
65 (128)
50 (98)
86 (170)
85 (168)
43 (168)
93 (184)
92 (182)
91 (180)
91
10/10 MN05003003Z-EN
92
10/10 MN05003003Z-EN
Network CAN/easyNet
Appendix
Network CAN/easyNet
Accessories
RJ45 plug, Type: EASY-NT-RJ45 (8-pole)
h
Cable resistance RL
Kbaud
10 to 125
F 30
250
F 25
500
F 12
Table 23:
Prefabricated cables
Cable length
Part no.
lmax
= maximum cable length in m
RL
= Total cable resistance in O
R = Cable resistance per unit length in O/m
cm
30
EASY-NT-30
80
EASY-NT-80
150
EASY-NT-150
lmax
Cable
resistance
Cross-section
mO/m
mm2
AWG
up to 40
F 140
0.13
26
up to 175
F 70
0.25 to 0.34
23, 22
up to 250
F 60
0.34 to 0.5
22, 21, 20
up to 400
F 40
0.5 to 0.6
20, 19
up to 600
F 26
18
up to 1000
F 16
1.5
16
Baud rate
= RL
R
Smin
h
= l x rcu
12.4
lmax
= S x 12.4
rcu
93
10/10 MN05003003Z-EN
Appendix
Activate the system event Start and name the Called POU
Startprg.
Open a new POU with the name Startprg in the POUs folder
and program the function SysCallbackRegister which
presents the Start/Stop functions to the operating system.
94
10/10 MN05003003Z-EN
Signal
RxD
TxD
DTR
GND
RTS
Weight
Dimensions W x H x D
4
9
3
8
2
7
1
6
[mm]
with adapter for MMC
107.5 x 90 x 72
107.5 x 90 x 79
[inches]
with adapter for MMC
[g]
320
[lb]
0.705
Mounting
The RTS signal must be set for the cable to function as the
voltage on the RTS cable supplies the components in the
plug.
16.25
75
16.25
M4
45
110
90
102
EU4A-MEM-CARD1
4.5
16
107.5
21
48.5
70.5
72
79
Dimensions in inches
mm
inches
mm
inches
4.5
0.177
79
3.11
16.25
0.64
90
3.54
48.5
1.91
102
4.01
70.5
2.78
107.5
4.23
72
2.83
110
4.33
75
2.95
95
10/10 MN05003003Z-EN
Appendix
Technical data
Climatic environmental conditions
(Cold to IEC 60068-2-1, Heat to IEC 60068-2-2)
Operational ambient temperature
Installed horizontally/vertically
C, (F)
Condensation
LCD display (reliably legible)
C, (F)
Storage/transport temperature
C, (F)
5 to 95
hPa
795 to 1080
IP20
Hz
5 to 9
constant acceleration 1 g
Hz
9 to 150
Shocks
18
mm
50
Drop
height
horizontal,vertical
kV
Contact discharge
kV
V/m
10
EN 55011, EN 55022
Class B
kV
kV
kV
0.5 symmetrical
1 asymmetrical
10
Signal cables
Insulation resistance
Clearance in air and creepage distances
EN 50178
Insulation resistance
EN 50178
II/2
Factory wiring:
96
mm
0.2 to 4
AWG
22 to 12
mm
0.2 to 2.5
AWG
22 to 12
AWG
30
10/10 MN05003003Z-EN
mm
3.5 x 0.8
inch
0.14 x 0.03
Nm
0.6
Program code
kByte
256
Program data
kByte
14 segments of 16 KB each
Marker/Input/Output/Retain data
kByte
16/4/4/8
Tightening torque
CPU
Memory specifications
< 0.3
200
180
160
140
120
100
80
60
40
20
0
25C
55C
2 3
10 11 12 13 14 15 16 17 18 19 20
s/day
g5
Per year
h/year
g 0.5
Interfaces
Programming interface
Terminals
RJ45, 8-pole
COM1
Potential isolation
none
Programming mode
Transfer rate
Character format
Transparent mode
Transfer rate
Character format
190
190
Ethernet
Transfer rate
MBit/s
Potential isolation
10
yes
COM2
Potential isolation
Terminals
easy800-PC-CAB cable
Transfer rate
kBit/s
9.6, 19.2
97
10/10 MN05003003Z-EN
Appendix
CAN(open)/easyNet
Transfer rate
kBit/s
yes
Terminals
2 x RJ45, 8pole
Number
max. 126
PDO type
Device profile
to DS301V4
easyNet mode:
Station
Number
max. 8
Power supply
Rated voltage
Nominal value
V DC, (%)
Permissible range
V DC
20.4 to 28.8
Residual ripple
F5
mA
140
ms
10
3.4
Inputs
Digital inputs
Number
12
I 7,8,11,12
I 1,2,3,4
I 1,2,3,4
Status indication
LC display
Potential isolation
from power supply, PC interface
No
No
Yes
Rated voltage
Nominal value
V DC
24
I1 to I6 and I9 to I10
V DC
<5
V DC
<8
I1 to I6 and I9 to I10
V DC
> 15
V DC
>8
I1 to I6, I9 to I10
mA
3.3
mA
2.2
At signal 0
At signal 1
98
10/10 MN05003003Z-EN
Technical data
ms
0.02
I5 to I12
ms
0.25
I1 to I4
ms
0.02
I5 to I12
ms
0.25
100
Signal range
V DC
0 to 10
Resolution, analog
0.01
Resolution, digital
Bit
10
Value
0 to 1023
kO
11.2
Two devices
g3
g2
Input current
mA
<1
30
Input impedance
Accuracy of actual value
I 1, I2
Number/value range
Bit
2 x 16 bit (I1,I2)
1 x 32 bit (I1)
Max. frequency
kHz
50
incrementing/decrementing
m
20
Pulse shape
Square
Mark-to-space ratio
01:01
Incremental counter
Quantity
Value range
Bit
32 Bit
Max. frequency
kHz
40
20
Pulse shape
Square
Counter inputs
Signal offset
90
01:01
Max. frequency
kHz
99
10/10 MN05003003Z-EN
Appendix
Relay outputs
Number of outputs
Not permissible
16
or fuse (slow-blow)
Electrical isolation
Yes
Safe isolation
V AC
300
Basic insulation
V AC
600
Switch
operations
10 x 106
mA
> 500
16
16
kV
V AC
250
V AC
300
V AC
300
Operation
s
300000
DC-13 L/R F ?
?
0 ms 24 V DC, 1 A (500 Ops/h)
Switch
operations
200000
Switch
operations
300000
Switch
operations
200000
1000 W at 230/240 V AC
Switch
operations
25000
500 W at 115/120 V AC
Switch
operations
25000
Switch
operations
25000
Mechanical lifespan
Contacts relays
100
10/10 MN05003003Z-EN
Technical data
Switch
operations
10 mill. (107)
Hz
10
Hz
Inductive load
Hz
0.5
Transistor outputs
Number of outputs
Rated voltage Ue
8
V DC
24
Permissible range
V DC
Residual ripple
F5
On 0 state, typical/maximum
mA
18/32
On 1 state, typical/maximum
mA
24/44
Supply current
Yes
hCaution!
Connecting the outputs to a power supply with a reverse polarity will result
in a short-circuit.
Yes
Potential isolation
Rated current Ie at state 1, maximum
0.5
mA
< 0.1
2.5
U = Ue 1 V
Yes
0.7 F Ie F 2
16
32
Thermal cutout
Maximum switching frequency with constant resistive
load RL = 100 kO (depends on program and load)
Yes
Switch
operations/h
40000
101
10/10 MN05003003Z-EN
Yes
Group 1: Q1 to Q4
Group 2: Q5 - Q8
Maximum number of outputs
total maximum current
4
2
h Caution!
Outputs connected in parallel must be switched at the
same time and for the same duration.
Status display of the outputs
LC display
L
R
DC13
T0,95 = 72 ms
R = 48 O
L = 1.15 H
0.25
100
Switching
operations/h
1500
0.25
Simultaneity factor g =
Relative duty factor
100
Switching
operations/h
1500
Simultaneity factor g =
0.25
100
Switch operations/h
1500
102
100
Switch operations/h
Depending on the
suppressor circuit
10/10 MN05003003Z-EN
Analog output
Quantity
Potential isolation
to power supply
No
No
yes
yes
DC voltage
Output type
Signal range
V DC
0 bis 10
mA
10
Load resistor
kO
yes
Resolution, analog
0.01
Resolution, digital
Bit
10
Value
0 to 1023
us
100
Recovery time
Accuracy
Conversion time
103
10/10 MN05003003Z-EN
Appendix
Character sets
Latin 1, Western European
Code Meaning
0
Space
1
A
2
B
3
C
4
D
5
E
6
F
7
G
8
H
9
I
10
J
11
K
12
L
13
M
14
N
15
O
16
P
17
Q
18
R
19
S
20
T
21
U
22
V
23
W
24
X
25
Y
26
Z
27
28
29
30
31
l (cursor)
32
Space
33
!
34
"
35
#
36
$
37
%
38
&
39
'
40
(
41
)
42
*
43
+
44
,
45
46
.
47
/
48
0
49
1
50
2
51
3
52
4
53
5
54
6
55
7
56
8
57
9
58
:
59
;
60
<
61
=
62
>
63
?
104
Code Meaning
64
@
65
A
66
B
67
C
68
D
69
E
70
F
71
G
72
H
73
I
74
J
75
K
76
L
77
M
78
N
79
O
80
P
81
Q
82
R
83
S
84
T
85
U
86
V
87
W
88
X
89
Y
90
Z
91
[
92
\
93
]
94
^
95
_
96
`
97
a
98
b
99
c
100
d
101
e
102
f
103
g
104
h
105
i
106
j
107
k
108
l
109
m
110
n
111
o
112
p
113
q
114
r
115
s
116
t
117
u
118
v
119
w
120
x
121
y
122
z
123
{
124
125
}
126
~
127
Code Meaning
128
129
130
131
?
132
133
z
134
h
135
d
136
#
137
o
138
k
139
s
140
141
u
142
j
143
t
144
145
146
147
^
148
149
150
151
152
153
154
155
156
157
158
159
160
`
161
162
163
164
165
166
167
168
(Cursor)
169
170
171
172
173
174
175
176
177
178
179
180
181
182
10
183
11
184
12
185
13
186
14
187
15
188
16
189
190
191
Code Meaning
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
>
248
249
250
251
252
253
254
255
10/10 MN05003003Z-EN
Character sets
Character set Latin 2, Central European (for Polish, Hungarian and Czech)
Code Meaning
0
Space
1
A
2
B
3
C
4
D
5
E
6
F
7
G
8
H
9
I
10
J
11
K
12
L
13
M
14
N
15
O
16
P
17
Q
18
R
19
S
20
T
21
U
22
V
23
W
24
X
25
Y
26
Z
27
28
29
30
31
l (cursor)
32
Space
33
!
34
"
35
#
36
$
37
%
38
&
39
'
40
(
41
)
42
*
43
+
44
,
45
46
.
47
/
48
0
49
1
50
2
51
3
52
4
53
5
54
6
55
7
56
8
57
9
58
:
59
;
60
<
61
=
62
>
63
?
Code Meaning
64
@
65
A
66
B
67
C
68
D
69
E
70
F
71
G
72
H
73
I
74
J
75
K
76
L
77
M
78
N
79
O
80
P
81
Q
82
R
83
S
84
T
85
U
86
V
87
W
88
X
89
Y
90
Z
91
[
92
\
93
]
94
^
95
_
96
`
97
a
98
b
99
c
100
d
101
e
102
f
103
g
104
h
105
i
106
j
107
k
108
l
109
m
110
n
111
o
112
p
113
q
114
r
115
s
116
t
117
u
118
v
119
w
120
x
121
y
122
z
123
{
124
125
}
126
~
127
Code Meaning
128
129
130
131
,
132
133
134
135
136
#
137
138
139
<
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
>
156
157
?
158
159
160
`
161
162
163
164
165
166
|
167
168
(cursor)
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
Code Meaning
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
>
248
249
250
251
252
253
254
255
105
10/10 MN05003003Z-EN
Appendix
29
30
31
l (cursor)
32
Space
33
!
34
"
35
#
36
$
37
%
38
&
39
'
40
(
41
)
42
*
43
+
44
,
45
46
.
47
/
48
0
49
1
50
2
51
3
52
4
53
5
54
6
55
7
56
8
57
9
58
:
59
;
60
<
61
=
62
>
63
?
106
Code Meaning
64
@
65
A
66
B
67
C
68
D
69
E
70
F
71
G
72
H
73
I
74
J
75
K
76
L
77
M
78
N
79
O
80
P
81
Q
82
R
83
S
84
T
85
U
86
V
87
W
88
X
89
Y
90
Z
91
[
92
\
93
]
94
^
95
_
96
`
97
a
98
b
99
c
100
d
101
e
102
f
103
g
104
h
105
i
106
j
107
k
108
l
109
m
110
n
111
o
112
p
113
q
114
r
115
s
116
t
117
u
118
v
119
w
120
x
121
y
122
z
123
{
124
125
}
126
~
127
Code Meaning
128
129
130
131
132
133
134
135
136
#
137
138
139
<
140
141
142
143
144
145
146
147
148
149
150
151
152
153
h
154
155
>
156
157
158
159
160
`
161
162
163
J
164
165
166
|
167
168
(cursor)
169
170
171
<
172
173
174
h
175
176
177
178
I
179
i
180
181
182
183
184
185
186
187
>
188
j
189
S
190
s
191
Code Meaning
192
A
193
194
B
195
196
197
E
198
199
200
201
202
203
204
M
205
H
206
O
207
208
P
209
C
210
T
211
212
213
X
214
215
216
217
218
219
220
221
222
223
224
a
225
226
227
228
229
e
230
231
232
233
234
235
236
237
238
239
240
p
241
c
242
243
y
244
245
x
246
247
248
249
250
251
252
253
254
255
10/10 MN05003003Z-EN
Index
Cable cross-sections . . . . . . . . . . . . . . . . . . . . . . . . . .
Cable length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Cable protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CAN
Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Device parameters . . . . . . . . . . . . . . . . . . . . . . . .
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Master parameters . . . . . . . . . . . . . . . . . . . . . . . .
Routing settings . . . . . . . . . . . . . . . . . . . . . . . . . .
canload, browser command . . . . . . . . . . . . . . . . . . . . .
Changing parameters . . . . . . . . . . . . . . . . . . . . . . . . .
Changing the folder function . . . . . . . . . . . . . . . . . . . .
Channel parameter setting . . . . . . . . . . . . . . . . . . . . . .
CoDeSys gateway server . . . . . . . . . . . . . . . . . . . . . . .
COLD START . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communication parameters . . . . . . . . . . . . . . . . . . . . .
Communication with target control . . . . . . . . . . . . . . .
Communications channel . . . . . . . . . . . . . . . . . . . . . . .
Configuration
EASY204-DP, EASY221-CO, EASY222-DN . . . . . .
EASY205-ASI . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Inputs/outputs . . . . . . . . . . . . . . . . . . . . . . . . . . .
XIO-EXT121-1 . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connecting
20 mA sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Analog inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Analog outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Contactors, relay . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Digital inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
easyNet network . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Expansions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
High-speed counters . . . . . . . . . . . . . . . . . . . . . . . 23
Incremental encoder . . . . . . . . . . . . . . . . . . . . . . . 23
Network connections . . . . . . . . . . . . . . . . . . . . . . 28
Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Proximity switches . . . . . . . . . . . . . . . . . . . . . . . . 21
Pulse transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Pushbuttons, switches . . . . . . . . . . . . . . . . . . . . . 21
Relay outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Setpoint potentiometers . . . . . . . . . . . . . . . . . . . . 22
Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . 22
Transistor outputs . . . . . . . . . . . . . . . . . . . . . . . . . 25
Connecting expansions . . . . . . . . . . . . . . . . . . . . . 20, 28
Connecting Servo valves . . . . . . . . . . . . . . . . . . . . . . . 26
Connection setup PC EC4-200 . . . . . . . . . . . . . . . . . 63
Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Counter interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Cursor display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Cursor keys, inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Cycle time monitoring . . . . . . . . . . . . . . . . . . . . . . . . . 44
27
70
21
26
51
93
93
21
27
71
16
71
71
60
37
39
72
70
49
63
71
64
89
88
39
39
107
10/10 MN05003003Z-EN
Index
Inputs
Symbolic operands . . . . . . . . . . . . . . . . . . . . . . . .
Type and number . . . . . . . . . . . . . . . . . . . . . . . . .
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interface
CAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining communication parameters . . . . . . . . . .
easyLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
easy-NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Multi-function . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interrupt source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
IP address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Scan/modify . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
easyNET
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Engineering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Error code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
Examples
Accessing a PLC program . . . . . . . . . . . . . . . . . . . .72
Analog value measurement . . . . . . . . . . . . . . . . . .21
General procedure for programming . . . . . . . . . . .80
Interrupt processing . . . . . . . . . . . . . . . . . . . . . . . .52
Node ID setting, baud rate . . . . . . . . . . . . . . . . . . .70
Program with function call . . . . . . . . . . . . . . . . . . .51
STARTUP.INI file for EC4-200 . . . . . . . . . . . . . . . . .67
Text and values output . . . . . . . . . . . . . . . . . . . . .81
Expansion units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
External display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
F
108
factoryset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
Fixing brackets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Forcing, variables and I/Os . . . . . . . . . . . . . . . . . . . . . .45
Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
Disp_RegisterVariable . . . . . . . . . . . . . . . . . . .77, 82
Function blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . .61, 77
16-bit counter . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
32-bit counter . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Disp_DisplayElement . . . . . . . . . . . . . . . . . . . . . . .78
Disp_DisplayPage . . . . . . . . . . . . . . . . . . . . . .76, 79
Disp_GetDisplayInfo . . . . . . . . . . . . . . . . . . . . . . .78
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
Function buttons, inputs . . . . . . . . . . . . . . . . . . . . . . . .12
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77
CAN_BUSLOAD . . . . . . . . . . . . . . . . . . . . . . . . . . .62
DisableInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . .52
Disp_EnableDisplay . . . . . . . . . . . . . . . . . . . . . . . .77
EnableInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . .52
FileOpen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
FileRead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
GetDisplayInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
ReadBitDirect . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53
TimerInterruptEnable . . . . . . . . . . . . . . . . . . . . . . .50
Transparent mode . . . . . . . . . . . . . . . . . . . . . . . . .73
17
11
21
61
16
63
17
16
14
52
53
64
66
Keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
LED status indication . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
CANUser.lib, CANUser_Master.lib . . . . . . . . . . . . . 7
EC_File.lib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
EC_SysLibCom.lib . . . . . . . . . . . . . . . . . . . . . . . . 73
EC_Util.lib . . . . . . . . . . . . . . . . . . . . . . . . . . . 52, 62
EC_Visu2.lib . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
SysLibRTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Local expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Network
Connecting easyNet . . . . . . . . . . . . . . . . . . . . . . . 93
Connections . . . . . . . . . . . . . . . . . . . . . . . . . . 28, 87
Network connections . . . . . . . . . . . . . . . . . . . . . . . . . 20
No Analog Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
No Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
No Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Node ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Node number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
10/10 MN05003003Z-EN
Index
Real-time clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Referencing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Relay outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Relay outputs Connecting . . . . . . . . . . . . . . . . . . . . . .
Remote expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Retentive variables . . . . . . . . . . . . . . . . . . . . . . . . . . .
Rocker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Routing
Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Screw mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sensor (20 mA)
Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Separate display . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Servo valves
Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setpoint potentiometers
Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
setrtc, Browser command . . . . . . . . . . . . . . . . . . . . . . . 60
Setting LCD contrast . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Setting the LCD backlight . . . . . . . . . . . . . . . . . . . . . . . 38
Setting the startup behaviour in the programming software
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Setup, EC4-200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Short-circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Short-circuit monitoring . . . . . . . . . . . . . . . . . . . . . 13, 17
Signals
Overview, inputs/outputs . . . . . . . . . . . . . . . . . . . 47
Single cycle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Single-step mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
START, system event . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Startup behaviour . . . . . . . . . . . . . . . . . . . . . . . . . 41, 67
STARTUP.INI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Station address
EASY204-DP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
EASY221-CO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
EASY222-DN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Status display
in the programming software . . . . . . . . . . . . . . . . 45
Status indication
on the LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Statusanzeige . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43, 49
Switching off the power supply . . . . . . . . . . . . . . . . . . 43
System
Clock, Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Setting parameters . . . . . . . . . . . . . . . . . . . . . . . . 67
Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
System menu, overview . . . . . . . . . . . . . . . . . . . . . . . . 32
T
Variables
Behaviour after Reset . . . . . . . . . . . . . . . . . . . . . . 45
Behaviour on startup . . . . . . . . . . . . . . . . . . . . . . . 43
WARM START . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Weekday setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
14
48
39
24
28
44
43
12
71
69
19
22
75
26
109