Setup
10/10 MN05003003Z-EN
14
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.
Interfaces
Programming interface for connection to a PC
Communication between PLC and the programming device is
implemented via the programming interface, consisting of an RJ45
connector.
The connector is provided with an RS232 interface and an
additional Ethernet interface on the EC4P- 222-... PLC types for
programming.
Table 5: Signal assignment of the programming interface
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.
Splitting the RS232/Ethernet interface
Using a cable splitter XT-RJ45-ETH-RS232 you can communicate
simultaneously via the RS232 and the Ethernet interface.
The connection between the PLC and the cable splitter is
established using the EASY-NT-30/80/130 cable. The pin
assignment of the RS232 and Ethernet connector socket of the
cable splitter corresponds with the pin assignment of the
programming interface as shown in table 5.
See also:
a section “CAN/easyNet, PC connection”, page 27
a chapter 12 „Connection setup PC – EC4-200“, page 63
Multi-function interface (MFI)
The controller can alternatively communicate with the following
devices via this interface:
•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 EASY800-
PC-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.
EC4P-221… EC4P-222-…
Signal Signal
RJ45
RS232 RS232 Ethernet
1
– – Tx+
2
– – Tx-
3
– – Rx+
4
GND GND
1)
5
TxD TxD –
6
– – Rx-
7
GND GND
1)
8
RxD RxD –
1) The GND signal is not required for an Ethernet connection. Therefore
use a cable with unassigned terminal pins 4 and 7!
Figure 6: Connecting the PLC with XT-RJ45-ETH-RS232
I
N
E
T
H
E
R
N
E
T
R
S
2
3
2
RJ45
RJ45
RJ45
EASY-NT-30/80/150
XT-RJ45-ETH-RS232
RUN
STOP
SF
CAN/
NET