Rievtech ELC Series User manual


EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 22020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
Programmable Relay User’s Manual

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 3 2020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
October, 2020
Version 6.0
Rievtech Electronic Co. Ltd,
Unit 506, Zone A3, No.99 Gao Hu Road, Jiang Ning District., Nanjing, Jiangsu, China (Mainland)
Tel: +86-025-52713690
Document Revisions
Date
Version Number
Document Changes
28/06/2017
4.0
Initial Draft
20/05/2018
4.1
First Revision
02/07/2018
4.2
Addition of MQTT Functions
28/07/2018
4.3
Addition of Library Function
30/09/2018
4.4
Addition of PR Ethernet Series
15/10/2018
4.5
Addition of Webserver
08/12/2018
4.6
Updated LID Save instructions p.126
01/04/2019
4.7
Corrected Modbus Addresses for Middle Coils (M) p.193
27/05/2019
5.0
Addition of User Web Pages –Section 8.2

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 42020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
30/06/2019
5.1
x-Messenger Block Addition
19/08/2019
5.2
Addition of Analogue Table, Free Protocol, General Data Latching Relay and
General Arithmetic blocks
07/09/2019
5.3
Added Modbus Read Write block
08/11/2019
5.4
Updated new MQTT Methods
13/01/2020
5.5
Added SMS Usage Examples and Error Codes
28/05/2020
5.6
Added PR-23 Series, new digital expansions and some minor amendments
15/06/2020
5.7
Corrected Analogue Input expansion Modbus addressing
13/08/2020
5.8
Added new Out 2 status codes for Connect to MQTT Server block
19/10/2020
5.9
Added new Modbus addresses for 16-way expansion IO
21/10/2020
6.0
Added Wi-Fi Communication Instructions for Wi-FI CPU’s

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 5 2020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
Table of Contents
1. Products Covered ........................................................................................................................................................... 15
Product Safety ................................................................................................................................................................ 15
Qualified Personnel........................................................................................................................................................ 15
Trademarks...................................................................................................................................................................... 15
Copyright Rievtech 2015 all rights reserved ............................................................................................................. 15
Disclaim of Liability........................................................................................................................................................ 15
Additional support......................................................................................................................................................... 16
Overview .......................................................................................................................................................................... 17
Feature Highlights.......................................................................................................................................................... 17
Some of the things xLogic can do for you................................................................................................................ 17
xLogic Devices................................................................................................................................................................. 18
Communication / Network........................................................................................................................................... 18
ELC and PR-Series CPU Naming Convention ............................................................................................................ 21
ELC, EXM and PR-Series Expansion Unit Naming Convention............................................................................... 23
Range of Hardware........................................................................................................................................................ 24
3.3.1. Non-Expandable CPU Range........................................................................................................................................ 24
3.3.2. Expandable CPU Range ................................................................................................................................................. 24
Expansion Modules........................................................................................................................................................ 28
Accessories ...................................................................................................................................................................... 28
Structure & Dimensions................................................................................................................................................ 29
3.6.1. PR-6 Series CPU and EXM-E Expansion Modules..................................................................................................... 29
3.6.2. PR-12 Series with LCD................................................................................................................................................... 29
3.6.3. PR-12 Series without LCD............................................................................................................................................. 29

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 62020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
3.6.4. PR-14 and PR-18 Series ................................................................................................................................................ 29
3.6.5. PR-24 Series .................................................................................................................................................................... 30
3.6.6. PR-26 Series .................................................................................................................................................................... 30
3.6.7. PR-E Expansion Modules .............................................................................................................................................. 30
EXM GSM/GPRS Built-In Module ................................................................................................................................ 31
3.7.1. How to Establish Connection between CPU and PC Using GPRS ......................................................................... 31
3.7.2. Configuration of E-mail Settings................................................................................................................................. 38
3.7.3. Changing CPU Information via SMS ........................................................................................................................... 39
Dimensions ...................................................................................................................................................................... 45
DIN Rail Mounting ......................................................................................................................................................... 45
4.2.1. Mounting Your Hardware............................................................................................................................................. 45
4.2.2. Removing Your Hardware............................................................................................................................................. 45
Wall Mounting................................................................................................................................................................ 46
4.3.1. Drilling Templates for Wall Mounting ....................................................................................................................... 46
Wiring............................................................................................................................................................................... 47
4.4.1. Connecting Power .......................................................................................................................................................... 47
4.4.2. Connecting Input Signals.............................................................................................................................................. 48
4.4.3. DC Type Digital Input Connections............................................................................................................................. 49
4.4.4. AC Type Digital Input Connections............................................................................................................................. 49
4.4.5. Analogue Input Connections (0 to 10 VDC).............................................................................................................. 49
4.4.6. Analogue Input Connections (0 to 20 mA) ............................................................................................................... 49
4.4.7. Analogue Input Connections (PT100)......................................................................................................................... 50
4.4.8. Connecting Output Signals........................................................................................................................................... 50

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 7 2020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
Communication Port Instructions ............................................................................................................................... 51
Overview of CPU Menu Structure ............................................................................................................................... 54
Parameter Assignment Mode ...................................................................................................................................... 54
LCD Panel Instructions .................................................................................................................................................. 54
Selecting a Function Page ............................................................................................................................................ 57
5.4.1. Function Page Options.................................................................................................................................................. 57
5.4.2. How to Switch Between RUN and STOP.................................................................................................................... 57
5.4.3. Set Parameter.................................................................................................................................................................. 58
5.4.4. Set Password................................................................................................................................................................... 61
5.4.5. How to Set the Address of a CPU and Expansion Modules................................................................................... 63
5.4.6. Setting LCD Backlight and Contrast ........................................................................................................................... 65
5.4.7. Set Communication Parameters .................................................................................................................................. 66
5.4.8. Setting System Date and Time .................................................................................................................................... 67
xLogicsoft Functions...................................................................................................................................................... 69
6.1.1. General Input and Output Functions.......................................................................................................................... 70

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 82020 v6.0 ●©Rievtech Co., Ltd.
●www.rievtech.com
6.1.2. Basic Functions List –GF............................................................................................................................................... 86
6.1.3. Basics of Special Functions - SF................................................................................................................................... 89
6.1.4. Special functions list –SF ............................................................................................................................................. 92

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 10 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
6.1.5. App Functions List –AP .............................................................................................................................................. 193
6.1.6. Library Function (LIB) .................................................................................................................................................. 220
6.1.7. MQTT Functions ........................................................................................................................................................... 225

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 11 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
Installing xLogicsoft..................................................................................................................................................... 247
Main Functions ............................................................................................................................................................. 250
Operation Instructions................................................................................................................................................. 250

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 12 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
Modification of User Web Pages .............................................................................................................................. 295
Downloading Web Pages to CPU.............................................................................................................................. 299
Configuration with Ethernet Device Manager ........................................................................................................ 301
Establish communication between CPU and xLogicsoft/SCADA via Ethernet. ................................................. 305
Establish communication between CPU and xLogicsoft/SCADA via Wi-Fi........................................................ 306
8.5.1. Connecting xLogicsoft to PLC.................................................................................................................................... 307
8.5.2. Open/Create a Program with Correct PLC Model .................................................................................................. 307
8.5.3. Configure Wi-Fi Settings in xLogicsoft .................................................................................................................... 307
8.5.4. Confirm Wi-Fi Parameters .......................................................................................................................................... 308
8.5.5. Setting the PLC as a Server Example........................................................................................................................ 311
8.5.6. Setting the PLC as a Client Example......................................................................................................................... 312
How to Establish Communication Between CPUs via Ethernet?.......................................................................... 313
Resetting to Factory Defaults .................................................................................................................................... 317
Dual-function switch.................................................................................................................................................... 320

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 13 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
Automatic Gate............................................................................................................................................................. 321
Ventilation System ....................................................................................................................................................... 323
Factory Gate .................................................................................................................................................................. 325
Daylight Lamp System................................................................................................................................................. 326
Rainwater Pump ........................................................................................................................................................... 328
xLogic Supported Modbus Function Codes ............................................................................................................ 330
Register Addresses of xLogic..................................................................................................................................... 330

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 14 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
1. Introduction
Congratulations on the purchase of your xLogic Micro PLC
provided by Rievtech Electronic Co., Ltd.
The xLogic Micro PLC is a compact and expandable CPU
replacing mini PLCs, multiple timers, relays and counters.
The xLogic Micro PLC perfectly fits in the space between
timer relays and low-end PLCs. Each CPU incorporates not
only a real-time clock and calendar but also provides
support for optional expansion I/O modules to enhance
control and monitoring applications. Adjustments to
programs can easily be performed via the Rievtech easy to
use xLogicsoft programming software. The hardware can
be either DIN-rail and panel-mounted, offering full
flexibility for the various installation needs of your
application.
The xLogic Micro PLC is available in 120V/240V AC or
12V/24V DC versions, making it the ideal solution for relay
replacement, or simple control applications such as
building and parking lot lighting, managing automatic
lighting, access control, watering systems, pump control,
ventilation systems, home automation and a wide array of
other applications which require a low cost as a primary
design issue.
We strongly recommended taking the time to read this
manual, before putting the xLogic Micro PLC to work.
Installation, programming and use of the unit are detailed
in this manual. The feature-rich xLogic Micro PLC provides
an off-line operation mode, allowing full configuration and
testing prior to in-field service commissioning. In reviewing
this manual, you will discover many additional
advantageous product properties, which will greatly
simplify and optimize the use of your xLogic Micro PLC.

1. Products Covered
The manual applies to devices of ELC and EXM series and
PR series. Our full range of xLogic Micro PLC’s.
Product Safety
This manual contains notices you have to observe to ensure
your personal safety, as well as to prevent damage to
property. The notices referring to your personal safety are
highlighted in the manual by a safety alert symbol; notices
referring to property damage only, have no safety alert
symbol. The notices shown below are graded according to
the degree of danger.
Table 1 - Safety Warnings
Symbol
Hazard Description
Indicates that death, severe personal
injury or damage to assets will result if
proper precautions are not taken.
Indicates that death, severe personal
injury or damage to assets may result if
proper precautions are not taken.
Indicates personal injury or damage to
assets can result if proper precautions
are not taken.
Indicates that an unintended result or
situation may occur if the corresponding
notice is not taken.
NOTICE:
If more than one warning is present, then the
warning with the highest degree of danger shall be used.
Qualified Personnel
Only persons qualified to correct electrical and safety
standards and regulations at the time of use should be
allowed to install, commission and operate this equipment.
The device/system may only be set up and used in
conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by
qualified personnel. Within the context of the safety notices
in this documentation qualified persons are defined as
persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with
established safety practices and standards. Please read the
complete operating instructions before installation and
commissioning. Rievtech or its distributors does not accept
any liability for possible damage to persons, buildings or
machines, which occur due to incorrect use or from not
following this manual.
Trademarks
All names identified by xLogic are registered trademarks of
the Rievtech. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own
purposes could violate the rights of the owner.
Copyright Rievtech 2015 all rights
reserved
The distribution and duplication of this document or the
utilization and transmission of its contents are not
permitted without express written permission. Offenders
will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or
design, are reserved.
Disclaim of Liability
We have reviewed the contents of this publication to
ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 16 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any
necessary corrections are included in subsequent editions.
Additional support
We take pride in answering your question as soon as we
can. Please consult our website at www.rievtech.com for
your closest point of contact or email us at

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 17 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
2. General Introduction to xLogic
Overview
xLogic is a universal logic module made by Rievtech.
xLogic is a compact, expandable CPU that can replace mini
PLC, multiple timers, relays and counters. Bridging the gap
between a timing relay and a low-end PLC. Each CPU has
a real-time clock and calendar and supports optional
expansion I/O modules to meet your control and
monitoring applications needs. Data adjustments can be
done via the onboard keypad and LCD display, or with
xLogicsoft. It can be either DIN-rail or panel mounted,
depending upon the needs of your application, and it is
available in 120/240 VAC as well as 12/24 VDC versions,
and it is an ideal solution for relay replacement
applications, simple control applications such as building
and parking lot lighting, managing automatic lighting,
access control, watering systems, pump control, or
ventilation systems in factory, and home automation and
applications in which cost is a primary design issue.
Feature Highlights
4-lines, 16-characters per line, backlight display.
Multiple value display and input via keypad and LCD
display.
70 kinds of function Blocks can be used in a circuit
program in maximum
Standard Modbus RTU/ASCII/TCP communication
protocol supported.
It’s optional for xLogic to act as a slave or master in
a Modbus communication network.
Easily connect to other factory devices such as touch
screens by RS232 cable and/or RS485 module.
CAN BUS protocol-based expansion modules (PR-
18/PR-24 series CPU)
Expandable up to 16 linked IO expansion modules
reaching 282 I/O points in maximum
Optional RS232, RS485 and Ethernet connectivity
Multiple channels analogue inputs available with 0-
10 VDC, PT100 & 0/4….20mA.
Default Real Time Clock (RTC) and Summer/Winter
timer available
Real Time Clock (RTC) at 25 °C kept for 20 days
4 channels high-speed counting
Pre-configured standard functions, e.g. on/ off-delays,
pulse relay and softkey
2 PWM channels (10kHz maximum)
Retentive memory capability (Not applicable to PR-6
& PR-12-E series CPU)
Isolated RS232 and USB programming cables
Program capability up to
1024 function blocks for PR-18, PR-24, PR-12-
N, PR-18-N & PR-26-N
512 function blocks for PR-12 & EXM
64 function blocks for PR-6 & PR-12-E
Mounting via modular 35mm DIN rail or screw fixed
mounting plate
On-line monitor capability (Free SCADA software for
all series xLogic)
Datalogging
A range of analogue signals available (0 to 10 VDC,
0/4 to 20 mA and PT100 probe inputs and 0 to10VDC
and 0/4 to 20mA outputs)
Low cost
Some of the things xLogic can do for you
The xLogic Micro PLC provides solutions for commercial,
industrial, building and domestic applications such as

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 18 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
lighting, pumping, ventilation, shutter operations or in
switching cabinets. The possible uses are diverse, and
these are just a few possibilities.
Using the RS485 bus and Ethernet connectivity allows the
user to realize various extensive (real-time) monitoring
and control applications.
Special versions, without operator LCD and display unit,
are available for series production applications in a small
machine, installation and cabinet building environments to
further reduce cost.
xLogic Devices
xLogic Basic is available in two voltage ranges.
*DC Range: 12-24 VDC i.e.: PR-6DC, PR-12DC, PR-14DC,
PR-18, PR-24DC, PR-26DC and EXM-12DC series.
*AC Range: 110-240 VAC i.e.: PR-6AC, PR-12AC, PR-14AC,
PR-18AC, PR-24AC, PR-26AC and EXM-8AC series.
*Without LCD Display: PR-6 series and with “-E” model,
such as PR-12DC-DA-R-E.
PR-18, PR-24, PR26 and EXM models all have an LCD
display.
Expansion modules:
PR-E (for use with PR-14, ELC-22-N, PR-18, PR-24, PR-26
and all PR-Ethernet CPUs).
EXM-E (for use with all EXM CPUs.
* xLogic digital expansion modules are available in 12/24
VDC and 110/240 VAC versions and have eight inputs and
eight outputs.
* xLogic analogue expansion modules are available in
12/24 VDC only and have up to six digital and 4 analogue
inputs.
Communication Cable and Expansion Module:
xLogic: RS232 communication cable (Model: ELC-RS232)
It is a serial cable with photoelectric isolation which can
be directly connected to a standard 9-pin port of PC. This
enables the user's program to be downloaded into xLogic
CPU through xLogicsoft.
It can also serve as a connection cable between CPU and
third-party devices with an RS232, such as HMIs, PLCs, etc.
in a Modbus communication system.
xLogic: USB communication cable (Model: ELC-USB).
It is a communication cable with photoelectric isolation
through which PC with USB port can be connected to
xLogic CPU module, moreover, it has same features as the
ELC-RS232 module, so it is quite convenient for users
whose computer has no standard serial port.
xLogic: PRO-RS485 cable (Model: PRO-RS485).
It is a serial converter cable with photoelectric isolation,
which converts the CPU RS232 programming port to an
isolated RS485 port.
xLogic: RS485 module(Model:PR-RS485)
An isolated RS485 converter providing terminals of RS485
port for PR-14, PR-18, ELC-22-N and PR-24 series CPUs
for connection with third-party devices.
Communication / Network
xLogic offers different ways to communicate within a
system.
RS485 port
The RS485 port is used for communication between the
CPU and various devices or equipment which have a
standard RS485 port. Communication is via the Modbus
RTU/ASCII protocol.

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 19 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
Figure 1 xLogic as RS485 Slave
NOTICE:
PR-E-RS485 module (or PRO-RS485 Cable) is
required to connect the CPU to the RS485 bus except for
models with built-in RS485 port.
RS232 or USB port (ELC-RS232/ ELC-USB needed)
If the application does not require an RS485 network and
only one main module with some expansion modules is
needed for the application, then download/upload of the
CPU program happens over the standard RS232 or USB
port. It allows system maintenance like monitoring too.
Figure 2 xLogic as RS485 Master
Ethernet network
If the application requires a system where more than one
main module is needed and these main modules must
communicate with each other, then an Ethernet CPU can
be connected directly to an Ethernet network using the
built-in LAN port. The CPU programs can also be
uploaded/downloaded via Ethernet too. Furthermore, our
free of charge SCADA software can be used with our
Ethernet CPUs.
Figure 3 xLogic Ethernet
xLogic CPU can be connected with expansion modules of
different supply voltages, but the expansion module must
be supplied with the correct voltage corresponding to its
type.
Each xLogic CPU provides the following program
capabilities regardless of the number of connected
expansion units:
Digital Inputs
I1 to I4 (PR-6)
I1 to I6 (EXM-8AC)
I1 to I8 (PR-12, EXM-12)
I1 to IC (PR-18)
I1 to IE (PR-24)
I1 to IG (PR-26)
I11 to I18 (Expansion with address 1)
I161 to I168 (Expansion with address 16)
Analogue Inputs
I1 to I4 (PR-6, PR-12, EXM-12)
I1 to I6 (PR-14, PR-18, PR-24)

EN
Programmable Relay ●User Manual for ELC, EXM and PR Series 20 2020 v6.0 ●©Rievtech Co.,
Ltd. ●www.rievtech.com
I1 to I8 and ID to IG (PR-26)
I11 to I14 (PR-E expansion with address 1)
AI161 to AI164 (PR-E expansion with address 16)
Digital Outputs
Q1 to Q2 (PR-6)
Q1 to Q4 (PR-12, PR-14, EXM-12)
Q1 to Q6 (PR-18)
Q1 to QA (PR-24, PR-26)
Q11 to Q18 (PR-E expansion with address 1)
Q161 to Q168 (PR-E expansion with address 16)
Digital Flag blocks
F1-F32 (PR-6 and PR-12-E)
F1-F256 (PR-12, PR-18, PR-24, PR-26 and EXM)
-F8: Start-up flag
-F63: Buzzer of ELC-43TS control bit
-F64: Backlight control bit (to control the
backlight of LCD and backlight of ELC-43TS)
Analogue Flag blocks
AF1-AF32 (PR-6 and PR-12-E)
AF1 to AF256 (PR-12, PR-18, PR-24, PR-26 and
EXM)
Shift register bits S1 to S8
This manual suits for next models
59
Table of contents
Other Rievtech Relay manuals
Popular Relay manuals by other brands

Eaton
Eaton EDR-5000 Nstallation, operation and maintenance manual

Muuntosahko
Muuntosahko Superintend Trafox VR-16 Short Operating Manual

Eaton
Eaton Cutler-Hammer D64RPB125 instruction manual

ABB
ABB REC650 ANSI Product guide

Toshiba
Toshiba BMS-IFWH5UL installation manual

Allen-Bradley
Allen-Bradley 193 E1 PLUS Series Application and Installation Bulletin