Rievtech User Manual
Rievtech User Manual
Rievtech User Manual
Introduction
Getting started
Programming xLogic
Configuring &software
Applications
Technical data
2
Introduction
Congratulations with 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 timing 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. Data adjustments can easily be performed via
the keypad, the LCD display, or through the Rievtech-to-use xLogic soft. DIN-rail and panel-mounted
options are both available, offering full flexibility to the various installation needs of your application.
The xLogic Micro PLC is available in 120V/240V AC or 12V and 24V DC versions, making it the ideal
solution for relay replacement, or simple control applications as building and parking lot lighting,
managing automatic lighting, access control, watering systems, pump control, ventilation systems,
home automation and a wide field of other applications demanding low cost to be 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 a for 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, it will greatly simplify and optimize the use of your xLogic Micro PLC.
Safety Guideline
This manual contains notices you have to observe in order to ensure your personal safety, as well as to
3
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.
Caution
Indicates that death or severe personal injury may result if proper precautions are
not taken
Caution
With a safety alert symbol indicates that minor personal injury can result if proper
precautions are not taken.
Caution
Without a safety alert symbol indicates that property damage can result if proper
precautions are not taken.
Attention
If more than one degree of danger is present, the warning notice representing the highest degree of
danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a
warning relating to property damage.
Qualified Personnel
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 does not accept any liability for possible damage to persons, buildings or machines, which occur
due to incorrect use or from not following the details.
4
Prescribed Usage
Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Rievtech. Correct, reliable operation of the product
requires proper transport, storage, positioning and assembly as well as careful operation and
maintenance.
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.
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 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
sales@rievtech.com
5
Contents
Contents........................................................................................................................................................................................... 6
Chapter 1 General Introduction to xLogic........................................................................................................................ 11
1.1 Overview............................................................................................................................................................................... 11
1.2 Highlight feature................................................................................................................................................................ 11
Chapter 2 Hardware models and resources.................................................................................................................... 15
2.1 Naming Rules of ELC&PR Series.................................................................................................................................. 16
2.2 Hardware model selection.............................................................................................................................................. 16
2.3 Structure & dimension..................................................................................................................................................... 18
Chapter 3 Installing/removing xLogic............................................................................................................................... 22
3.1 DIN rail mounting.............................................................................................................................................................. 23
3.2 Wall-mounting..................................................................................................................................................................... 24
3.3 wiring xLogic........................................................................................................................................................................ 27
3.4.1 Connecting the power supply............................................................................................................................ 27
3.4.2 Connecting xLogic inputs.................................................................................................................................... 28
3.4.3 Connecting xLogic Outputs................................................................................................................................ 32
3.4.4 Communication port instructions:................................................................................................................... 34
Chapter 4 Parameters modification HMI operation.................................................................................................. 37
4.1 Overview of xLogic menu............................................................................................................................................... 37
4.2 LCD panel instruction....................................................................................................................................................... 38
4.3 Select function page......................................................................................................................................................... 41
4.3.1 How to switch Run/Stop...................................................................................................................................... 43
4.3.2 Set parameter......................................................................................................................................................... 43
4.3.3 Set password........................................................................................................................................................... 46
4.3.4 How to set address of CPU and expansion module.................................................................................. 50
4.3.5 Set LCD (backlight and Contrast)....................................................................................................................52
4.3.6 Set communication parameters....................................................................................................................... 54
4.3.7 Modification of System Time............................................................................................................................. 56
Chapter 5 Configuring & Programming software.......................................................................................................... 58
5.1 xLogic Functions................................................................................................................................................................. 59
5.2 General Input & Output functions............................................................................................................................... 59
5.2.1 Inputs......................................................................................................................................................................... 59
5.2.2 Cursor keys.............................................................................................................................................................. 60
5.2.3 Outputs...................................................................................................................................................................... 60
5.2.4 Permanent logical levels HI and LO................................................................................................................ 61
5.2.5 Panel Key.................................................................................................................................................................. 61
5.2.6 Shift register bits................................................................................................................................................... 62
5.2.7 Analog inputs........................................................................................................................................................... 62
5.2.8 F (digital flag).......................................................................................................................................................... 63
5.2.9 AF (Analog flag)......................................................................................................................................................64
5.3 Basic functions list – GF.................................................................................................................................................. 64
5.3.1 AND............................................................................................................................................................................. 65
5.3.2 AND with edge evaluation.................................................................................................................................. 66
6
5.3.3 NAND.......................................................................................................................................................................... 67
5.3.4 NAND with edge evaluation............................................................................................................................... 68
5.3.5 OR................................................................................................................................................................................ 68
5.3.6 NOR............................................................................................................................................................................. 69
5.3.7 XOR............................................................................................................................................................................. 70
5.3.8 NOT..............................................................................................................................................................................71
5.3.9 Boolean Function.................................................................................................................................................... 71
5.4 Basics on special functions.............................................................................................................................................72
5.4.1 Designation of the inputs....................................................................................................................................73
5.4.2 Time response......................................................................................................................................................... 74
5.4.3 Backup of the real-time clock........................................................................................................................... 74
6.4.4 Retentivity.................................................................................................................................................................74
5.4.5 Parameter protection............................................................................................................................................ 75
5.4.6 Calculating the gain and offset of analog values...................................................................................... 75
5.5 Special functions list – SF...............................................................................................................................................77
5.5.1 On-delay.................................................................................................................................................................... 81
5.5.2 Off-delay....................................................................................................................................................................82
5.5.3 On-/Off-delay.......................................................................................................................................................... 84
5.5.4 Retentive on-delay................................................................................................................................................ 85
5.5.5 Wiping relay (pulse output)............................................................................................................................... 86
5.5.6 Edge triggered wiping relay............................................................................................................................... 88
5.5.7 Asynchronous pulse generator......................................................................................................................... 89
5.5.8 Random generator.................................................................................................................................................90
5.5.9 Stairway lighting switch...................................................................................................................................... 92
5.5.10 Multiple function switch.................................................................................................................................... 94
5.5.11 Weekly timer......................................................................................................................................................... 95
5.5.12 Yearly timer........................................................................................................................................................... 98
5.5.13 Up/Down counter.............................................................................................................................................. 103
5.5.14 Hours counter..................................................................................................................................................... 105
5.5.15 Threshold trigger.............................................................................................................................................. 107
5.5.16 Latching relay..................................................................................................................................................... 109
5.5.17 Pulse relay........................................................................................................................................................... 110
5.5.18 Message text.......................................................................................................................................................111
5.5.18.1 How to change parameters of blocks in displayed message ?............................................119
5.5.19 Softkey.................................................................................................................................................................. 121
5.5.20 Shift register....................................................................................................................................................... 123
5.5.21 Analog comparator........................................................................................................................................... 124
5.5.22 Analog threshold trigger................................................................................................................................ 127
5.5.23 Analog amplifier................................................................................................................................................ 129
5.5.24 Analog value monitoring................................................................................................................................ 130
5.5.25 Analog differential trigger..............................................................................................................................132
5.5.26 Analog multiplexer........................................................................................................................................... 134
5.5.27 System cover...................................................................................................................................................... 136
5.5.28 Pulse Width Modulator (PWM)..................................................................................................................... 137
7
5.5.29 Analog Ramp...................................................................................................................................................... 140
5.5.30 Analog Math........................................................................................................................................................ 142
5.5.31 Analog math error detection........................................................................................................................ 144
5.5.32 Modbus Read...................................................................................................................................................... 146
5.5.33 Modbus Write...................................................................................................................................................... 151
5.5.34 Data latching relay........................................................................................................................................... 155
5.5.35 PI controller.........................................................................................................................................................157
5.5.36 Memory write..................................................................................................................................................... 168
5.5.37 Memory Read......................................................................................................................................................172
5.5.38 Word to Bit.......................................................................................................................................................... 175
5.5.39 Bit to Word.......................................................................................................................................................... 177
5.5.40 Stopwatch............................................................................................................................................................ 178
5.5.41 Analog filter......................................................................................................................................................... 180
5.5.42 Max/Min................................................................................................................................................................ 181
5.5.43 Average value..................................................................................................................................................... 184
5.5.44 Device Reset....................................................................................................................................................... 185
5.5.45 Comport Status................................................................................................................................................. 187
5.5.46 Astronomical clock............................................................................................................................................190
5.5.47 Cam Control........................................................................................................................................................ 192
5.5.48 Angular Cam Timer.......................................................................................................................................... 193
5.5.49 Pumps Management........................................................................................................................................ 194
5.5.50 Defrost.................................................................................................................................................................. 196
5.5.51 Comparison of 2 values.................................................................................................................................. 197
5.5.52 Multicompare...................................................................................................................................................... 198
5.5.53 Compare in zone............................................................................................................................................... 199
5.5.54 Conversion Word bits...................................................................................................................................... 200
5.5.55 Conversion bits Word...................................................................................................................................... 201
5.5.56 Demultiplexer..................................................................................................................................................... 201
5.5.57 Multiplexing......................................................................................................................................................... 202
5.5.58 Multiplexer........................................................................................................................................................... 203
5.5.59 Square Boot........................................................................................................................................................ 203
5.5.60 Sin Cos.................................................................................................................................................................. 204
5.5.61 Absolute Humidity............................................................................................................................................ 205
5.6 xLogicsoft........................................................................................................................................................................... 206
5.7 Main Functions..................................................................................................................................................................212
5.8 Operation Instructions...................................................................................................................................................213
5.8.1 Menu Bar.................................................................................................................................................................213
5.8.1.1 File................................................................................................................................................................. 213
5.8.1.2 Edit................................................................................................................................................................ 214
5.8.1.3 Tools..............................................................................................................................................................214
5.8.1.4 SMS............................................................................................................................................................... 215
5.8.1.5 View.............................................................................................................................................................. 216
5.8.1.6 Help...............................................................................................................................................................216
5.8.2 Toolbar..................................................................................................................................................................... 217
8
5.8.3 Programming Toolbar.........................................................................................................................................217
5.8.4 Simulation Tool and status window.............................................................................................................. 219
5.9 Basic Operation................................................................................................................................................................ 221
5.9.1 Open File................................................................................................................................................................. 221
5.9.1.1 Open New File........................................................................................................................................... 221
5.9.1.2 Open Existed Document....................................................................................................................... 223
5.9.2 Edit Function Diagram Program.................................................................................................................... 224
5.9.2.1 Place Function Block............................................................................................................................... 224
5.9.2.2 Edit Property of Function Block..........................................................................................................224
5.9.2.3 Setup link................................................................................................................................................... 225
5.9.2.4 Delete Function Block or Delete Link...............................................................................................227
5.9.2.5 Change block index................................................................................................................................ 228
5.10 Simulation Running...................................................................................................................................................... 228
5.11 Save and Print................................................................................................................................................................ 230
5.12 Modify Password and transfer the Program....................................................................................................... 231
5.13 On-line monitoring/test circuit program.............................................................................................................. 233
Chapter 6 How to configure the Ethernet modem built-in CPU ?........................................................................ 239
6.1 Configuration with DeviceManager................................................................................................................... 239
6.2 Establish communication between CPU and xLogicSoft/SCADA via Ethernet.............................. 248
6.3 How to establish the communication among CPUs via Ethernet ?...................................................... 251
Chapter 7 Applications.......................................................................................................................................................... 262
7.1 Dual-function switch...................................................................................................................................................... 262
7.1.1 Standard solution .............................................................................................................................................. 262
7.1.2 The scheme of xLogic........................................................................................................................................ 264
7.2 Automatic gate................................................................................................................................................................. 265
7.2.1 Standard solution................................................................................................................................................ 266
7.2.2 The scheme of xLogic........................................................................................................................................ 267
7.3 Ventilation system...........................................................................................................................................................269
7.3.1 Standard solution................................................................................................................................................ 269
7.3.2 The scheme of xLogic........................................................................................................................................ 270
7.4 Factory door...................................................................................................................................................................... 272
7.4.1 Standard solution................................................................................................................................................ 272
7.4.2 The scheme of xLogic........................................................................................................................................ 273
7.5 Daylight lamp system.................................................................................................................................................... 275
7.5.1 Standard solution................................................................................................................................................ 276
7.5.2 The scheme of xLogic........................................................................................................................................ 276
7.6 Rainwater pump............................................................................................................................................................... 278
7.6.1 Standard solution................................................................................................................................................ 279
7.6.2 The scheme of xLogic........................................................................................................................................ 280
Chapter 8 Modbus function code and Register addresses...................................................................................... 281
8.1 xLogic modbus function code ................................................................................................................................... 281
8.2 Register addresses of xLogic...................................................................................................................................... 282
Appendix..................................................................................................................................................................................... 286
A Technical data....................................................................................................................................................................... 286
9
A.3 Switching capacity and service life of the relay outputs................................................................................. 309
10
Chapter 1 General Introduction to xLogic
1.1 Overview
xLogic , a compact, expandable CPU that can replace mini PLC, multiple timers, relays and counters,
Splitting the difference 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 enhance your control and monitoring
applications . Data adjustments can be done via the on-board 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 120V/240V ac as well as 12V and 24V dc versions, and it is the 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.
11
RS232 and USB communication download cable with photo-electricity isolation
Programmable capability up to 512 function blocks(standard PR-12/PR-18/PR-24) and 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 charge SCADA for all series xlogic)
Datalogging
Kinds of analog signals process capacity (DC 0..10V ,0/4...20mA and PT100 probe inputs and DC
0..10V and 0/4...20mA outputs)
Low cost
The xLogic Micro PLC provides solutions for commercial, industrial, building and
domestic applications such as lighting, pumping, ventilation, shutter operations or
in switching cabinets. The application field is widespread and these are just a few
to mention.
Using the RS485 bus and Ethernet connectivity allows the user to realize various extensive (real-time)
monitoring and control applications.
Special versions without operator panel and display unit are available for series production applications
in small machine, installation and cabinet building environments to further slash cost.
xLogic devices:
*Classes 1:DC12-24V: i.e.: PR-6DC Series, PR-12DC series, PR-18 series, PR-24DC series.
*Classes2: AC110-240V: i.e.: PR-6AC Series, PR-12AC series, PR-18AC series , PR-24AC series.
In the versions:
* Without Display: PR-6 series and with “-CAP” model, such as PR-12DC-DA-R-CAP. Only PR-12 has -CAP
Expansion modules:
12
PR-E (applied to PR-18/PR-24 CPU)
* xLogic digital modules are available for operation with 12…24V DC, and 110.. .240 V AC, and are
equipped with eight inputs and eight outputs.
* xLogic analog modules are available for operation with 12…24 V DC and are equipped with six digital
and 4 analog inputs.
It is kind of universal cable with photoelectricity isolation which can be directly connected to standard
9-pin port of PC, also kind of interface module which can enable user’s program to be downloaded into
xLogic CPU through xLogicsoft for running. It also is the connection cable between CPU and third party
device with the RS232 port(just like HMI) in modbus communication system.
It is kind of communication cable with photoelectricity isolation through which PC with USB port only can
be connected to xLogic main module, moreover, it has same features as ELC-RS232 module, so it is
quite convenient for user whose computer has no standard serial port.
It is kind of converter cable with photoelectricity isolation to make the program port serves as RS485
port.
isolated 485 converter,used to bring out the terminals of RS485 port built-in PR-18,PR-24 series CPU for
Communication / Network
RS485 port
The RS485 port is used for communication between the CPU and various devices or equipments which
have the standard RS485 port. Communicate using Modbus RTU/ASCII protocol.
13
Note:PR-RS485 module is required to connect the CPU to RS485 BUS.
If there is no network required and only one main module with some expansion modules is needed for the
application, the down- and upload of the project to and from the main module happens over the standard
RS232 or USB port. It allows system maintenance like monitoring too.
If the application requires a system where more than one main module is needed and these main
modules have to communicate, each Ethernet CPU will be connected directly to the Ethernet by the
built-in LAN port. The project down- and upload to and from the main modules and the communication
between the CPU happens over the Ethernet network. Furthermore the our free of charge SCADA can be
also established connection with Ethernet CPU
Note
14
xLogic CPU may be equipped with expansion modules of the different voltage class, but expansion
module must be supplied the correct power corresponding to its type.
Each xLogic CPU provides the following connections for the creation of the circuit program, regardless of
the number of connected blocks:
15
2.1 Naming Rules of ELC&PR Series
Note:
The model end with “-HMI” means the CPU has LCD and panel keys on it;
The model end with “-CAP” means the CPU has no LCD on it.
Model name (expansion module ,plus with PR-18/PR-24 CPU together to use):
1.Series name
2.E: expansion module
3.Points of input and output
4.Supply power AC or DC
5.Digital/Analog D: digital DA: digital/analog
6.Output type R: relay TP: “NPN” transistor;TN :“PNP” transistor
High-speed
Model Expansion Supply voltage Inputs Outputs PWM HMI RTC
count
AC110~AC240V/
PR-6AC-R no 4 digital 2 relays (10A) no no no yes
DC110-DC240V
16
PR-12 Series CPU Units(None expandable)
Expansio
Model Supply voltage Inputs Outputs High-speed count PWM HMI RTC
n
4Transistor(0.3A/
PR-12DC-DA-TN-HMI no DC12-24V 4(0...10V)+4 digital 4 (I5-I8)(60KHZ) Yes(10KHZ) yes yes
PNP)
Model Expansion Supply voltage Inputs Outputs High-speed count PWM HMI RTC
AC110~AC240V
PR-18AC-R-HMI yes 12 digital 6 relays (10A) no no yes yes
/DC110-DC240V
6(0...10V)/6digit
PR-18DC-DA-R-HMI yes DC12-24V 6 relays (10A) 4(I9-IC)(60KHZ) no yes yes
al+4 digital
High-speed
Model Expansion Supply voltage Inputs Outputs PWM HMI RTC
count
6(0...10V)/6digital
PR-24DC-DA-R-HMI yes DC12-24V 10 relays (10A) 4(I9-IC)(60KHZ) no yes yes
+8 digital
6
2(0/4...20mA)+
relays(10A)+2Transistor(0.3
PR-24DC-DAI-RTA yes DC12-24V 4(0...10V)/4digital 4(I9-IC)(60KHZ) YES(10khz) yes yes
A/PNP)+1(0...10V)+1(0...20
+8 digital
mA)
AC240V
PR-E-PT100 DC12-24V 3 Channels PT100, resolution: 0.5°), temperature range : -50℃- 200℃ none
17
PR-RS485 DC12-24V isolated 485 converter,used to bring out the terminals of RS485 port built-in ELC-12 series CPU for connection with third party
devices.
Accessories
ELC-RS232 RS232 communication module /download cable between PC and xLogic CPU units
ELC-USB USB communication module /download cable between PC and xLogic CPU units
ELC-COPIER ELC-COPIER can be used to save user program and download program into xLogics.(including all the ELC series and EXM series PLC)
ELC-MEMORY Real time data-logging device with a mini-SD card slot for ELC&EXM series CPUs. The history data( IO status , analog value, current value of registers)
ELC-BATTERY RTC BATTERY, the RTC can be backup for 20days, but with this battery, the RTC shall be backup for 1 year
18
1.Power supply 2. Input 3. Program port for applied to ELC-6 CPU 4.Output
1.Power supply&Input terminals 2. Program Port(can be used as RS232 port with ELC-RS232 or RS485
port with PRO-RS485) 3.HMI/LCD panel 4.keypad 5.Output terminals
1.Power supply&Input terminals 2. Program Port(can be used as RS232 port with ELC-RS232 or RS485
port with PRO-RS485) 3.RUN/STOP Indicator 4.Output terminals
19
4. PR-18 series model:
20
1. Power supply 2.Input 3. Program/RS232 port 4.HMI/LCD panel 5.keypad 6.Extension/RS485
port 7.Output
21
1. Power supply&Input terminals 2. Connection cable between CPU and extension(Detached)
Dimensions of PR-E:
Dimensions
W a r n i n g
Always switch off power before you “remove” and “insert” an expansion module.
Mounting
How to mount a xLogic module and an expansion module onto a DIN rail:
1. Hook the xLogic Basic module onto the rail.
2. Push down the lower end to snap it on. The mounting interlock at the rear must engage.
3. Hook the xLogic expansion module onto the rail
4. Slide the module towards the left until it touches the xLogic CPU.
5. Push down the lower end to snap it on. The mounting interlock at the rear must engage.
6. Remove the plastic cover in the expansion port of CPU and expansion module.
7. Plus the connector on the flat cable to CPU
23
Note:If you need install the expansion and CPU on different rows, you need order the longer
flat connection which is used to connected with CPU, the longest distance can
be 200meters between the CPU and the end expansion module.
Removal
To remove xLogic:
....... if you have installed only one xLogic Basic:
1. Insert a screwdriver into the eyelet at the bottom of the slide interlock and move the
latch downward.
2. Swing the xLogic Basic off the DIN rail.
....... if you have connected at least one expansion module to xLogic Basic:
1. Remove the connector on the flat cable
2. Slide the expansion module off towards the right.
3. Insert a screwdriver into the eyelet at the bottom of the slide interlock and lever it
downward.
4. Swing the expansion module off the profile rail.
Repeat steps 1 to 4 for all other expansion modules.
3.2 Wall-mounting
For wall-mounting, first slide the mounting slides on the rear side of the devices towards the outside. You
can now wall-mount xLogic by means of two mounting slides and two ØM4 screws (tightening torque 0.8
to 1.2 Nm).
24
Drilling template for wall-mounting
Before you can wall-mount xLogic, you need to drill holes using the template shown below.
All dimensions in mm
Bore hole for Ø M4 screw, tightening torque 0.8 to 1.2 Nm
1. xLogic CPU
PR-6 series:
25
PR-18 series:
PR-24 series
26
3.3 wiring xLogic
You do not need wire ferrules for the terminals. You can use conductors with
cross-sections of up to the following thicknesses:
1 x 2.5 mm2
Note
Note
27
3.4.2 Connecting xLogic inputs
1. Requirements
the inputs you connect sensor elements such as: momentary switches, switches, light barriers,
28
AC Type DC Type
Note:
1. For PR-6DC-DA-R, PR-12DC-DA , PR-18DC-DA ,PR-24DC-DA Series and
versions. That can receive analog input. They can be set to analog input or
digital input as either may be used in the program. They will be recognized
as analog inputs when the input terminal is connected with an analog
function block, and they will be recognized as switching inputs when the
input terminal is not connected with an analog function block.
3. They can be recognized as switching input when the input voltage is more
than 10.0V and cannot be recognized as an analog input.
4. For the switching input off, when the switch status changes from 0 to 1,
the time of Status 1 must be greater than 50ms, and when the switch status
changes from 1 to 0, the time of Status 0 also must be greater than 50ms.
29
* AC type digital inputs
30
The above figure shows how to make a four-wire current measurement.
PR-E-PT100
31
3.4.3 Connecting xLogic Outputs
Various loads such as lamp, fluorescent tube, motor, contact, etc., can be connected to the outputs of
xLogic. The maximum ON output current that can be supplied by xLogic is 10A for the resistance load and
3A for the inductive load. The connection is in accordance with the following figure:
Notes (PNP):
32
PR-E-AQ-V(DC0..10V analog output).
ELC12-E-AQ-I /ELC-E-AQ-I
PR-RS485
Actually, PR-RS485 is just a converter with photo isolation bringing out 3 wiring terminals(short circuited
inner of such 3 terminals, so only one channel RS485 bus is available) from RS485 port (2x8pin) of
CPU(PR-18/ELC-22/ELC-26) for your easy connection with other devices.
33
If “RT1”, RT2” terminal are short connected, one 120R resistor will be connected between A/+ and B/-
ELC-6 CPUs
34
1. Programming port/RS232 port
(ELC-RS232 ,ELC-USB,ELC-Copier,ELC-MEMORY,ELC-BATTERY,PRO-RS485) should be inserted in this
port)
When the programming port should be used as the standard RS232 port (D-shape 9 pin header) ,the
ELC-RS232 cable needed.Blow is show you the pin definition of the header:
PIN function
2 RXD
3 TXD
5 GND
others NULL
35
3------RS485 A
5------RS485 B
4------GND
6------GND
7------CANL
9------CANH
15------+5V
16------+5V
Communication between CPU and expansion module will use 4.7,9,15 pin.
PR-RS485 module is required when PR-18/ELC-22/ELC-26 CPU communicate with the third party devices
via RS485 bus
PR-12 CPUs
36
Chapter 4 Parameters modification HMI operation
PR-12 ,PR-18,ELC-22,ELC-26 series CPU has same menu on the LCD, so here we show the PR-18 for
example.
37
4.2 LCD panel instruction
PR-12 Series CPU PR-18 Series CPU ELC-22 and ELC-26 series CPU
Menu shows:
38
39
After being powered on, xLogic shall self-check program stored in the CPU.
If the program is accurate, then the CPU will be running, meanwhile the system cover will show as
follows:
In xLogicsoft, this interface is defaulted as its initialization screen.
If there are several parameter pages, users can press or key to go to the page you would like.
40
Cursor keys can be controlled in this page by press arrow keys and ESC key at the same time.
If xLogic has several alarm interfaces in the same period and it only displays the message with highest
priority in the function block, also you may go through all alarm messages by pressing or key.
Note:
The message text block would be treated as parameter page only when it has no input, otherwise, it may
be regarded as alarm page. When input has high pulse, LCD shall display alarm message.
After pressing ESC key, xLogic would be switched to function page and meanwhile open function menu as
figure below shows.
41
Brief introduction on 5 options of function page:
Run/stop
Select this menu to switch over xLogic status between RUN and Stop. Refer to
chapter4.3.1 for details.
Set Param
To set function block parameter. Refer to chapter 4.3.2 for details.
Set…
Used to set /modify password ,set address of CPU&extension , LCD settings and
communication parameters settings refer to chapter 4.3.3 and 4.3.4 for details
please.
1. ”Press ”UP” or “DOWN” key to move the cursor to “Set….”
2. Then press OK key ,xLogic will display as follows:
Clock
To set and modify date and time .Refer to chapter 4.3.5 for details.
Menu Language
To change the language of the Menu. Refer to chapter 4.3.6 for detail
Network(This only for Ethernet CPU)
Recovery ET: when you press ok when the cursor stay on this menu, the Ethernet modem
built-in Ethernet CPU will be reset to default settings.
42
4.3.1 How to switch Run/Stop
After pressing ESC key, you’ll find out your circuit program has changed to “stop” status as figure below
shows:
43
2. Confirm by pressing OK key.
Then xLogic displays the first parameter, so you can modify as you like. If there is no parameter to
set/modify, you can press ESC key to return.
4. Select certain specific value of that parameter which you want to edit, then press OK key.
A. First select certain parameter which you need to edit by following the below procedures:
44
3. Confirm the value after modification: press OK key.
Note:
When xLogic is running, not only time value but also time unit(S,M,H) can be
altered , but Besides alter time parameter at RUN time ,you can alter time
base(s=second, m=minute ,h=hour).
You are allowed to modify configuration time. Switch on/off time for a time segment.
45
Current value of hour counter
In parameter mode, the view of hour counters:
xLogic supply password protection function for your program. You can choose according to your need.
See the following instruction; you’ll understand the method of setting password.
46
A password contains less than or equal to 4 characters and each character is Arabian number from 0 to
9 .It is easy to specify, edit or remove the password directly on the xLogic in the “Password” menu of the
function page:
You should first select the FUNCTION PAGE. (Read 5.2)
1. Move the cursor to “Password”: Press “UP” or “DOWN” key.
2. Confirm “Password”: Press OK key.
Example: let us set “1234” as password for a program. Now the LCD displays the following interface:
Note:
You can cancel a password newly-set via ESC key. In this instance, xLogic will return to main menu and
not reserve that password. Such password is for the parameter, that means only when you operate the
menu of LCD, the password is required. The program password need be set in xlogicosoft by the menu
File->Property-> Parameter
47
Modify password:
LCD displays:
Thus, you could select “New” to input new password such as “8888”:
3. Select “8”: press “UP” key.
4. Move the cursor to next character: press “Right” key.
Repeat the step 3 and 4 to realize the third and fourth character.
LCD displays:
48
How to remove the password:
In case you need to remove password .e.g. allow the other users to edit your program, then you must
know the current password. The process of removing password is the same as that of modifying
password.
Input nothing under the “New”, and let it keep blank to clear password.
4.Confirm “blank” password: press OK key. Now you have cleared password and return to main menu. If
you want to set password next time, the LCD will display:
49
4.3.4 How to set address of CPU and expansion module
Change the address with arrow keys, and confirm with "Ok".
The CPU address also can be set by xlogicsoft, if the CPU without HMI, you only can set the expansion
address with such method.
You can set the CPU address by the menu Tools-> transfer-> set PLC’s address in xlogicsoft.
50
1. Plastic slice
Step 1: Using a screwdriver , take the plastic slice down and we’ll find a dial switch.
2: Dial the switch as the below instructions to set the address what you need.
Up to 8 extensions (includes IO ,AQ,AI,PT100 modules) can be connected with the CPU .
The default address of ELC-E extensions is 1 and the dial switch as below:
Address 1:
Address 2:
Address 3:
Address 4:
Address 5:
Address 6:
51
Address 7:
Address 8:
Notes:
1.The address setup of the extension module must be before powering on. Modification when powering
on will be ineffective.
2.Freely connection with CPU and expansion , do not care the power supply type of CPU and
extensions ,that means the AC type module also can be connected with the DC type module or AC type
expansion module also can be connected with DC type CPU.
3.If the communication is established between CPU and extensions , the indicator on the top of the
extensions’ house will turn to RUN(green color)(If the LED is red, that means the CPU cannot get
communication with it).
4.If more than one expansion module connect to CPU at the same time ,the address of expansion module
must be different each other, otherwise the system(CPU+expansions) would run abnormal, but if the
expansion already has each own separately address, then the installation sequence of the expansion is
not important anymore, for example you can let the expansion with address 8 as the first one with CPU.
The backlight of CPU can be set “ON” time as 10 sec or “ON” all the time. The setting way as follows:
52
3.Select "Backlight"menu and click "OK"
4. Default is 10 seconds, and another option is "Always On". Confirm with "OK"
53
Modify the contrast with Left or right key, and confirm with "Ok".
COM2: reserved
Set Baud rates
54
Confirm with "OK"
55
Change with Up and Down key. And confirm with "OK"
There are 4 options available: RTU, ASCII, TCP RTU, TCP ASCII.
Note:If you want to use the Modbus TCP protocol, generally, you can select the "TCP
RTU".
56
Press “UP” or “DOWN” key to realize the date which you want to set .After you
finished your setting, press OK key to return to:
If you want to set the time further, please move the cursor to” Set Time” menu, then press OK key:
Here you can set week day (From Monday to Sunday) and the clock. The method is similar to above. After
completion of your setup, press OK key:
57
Press ESC key and return to FUNCTION PAGE.
Users who are familiar with the logic boxes of Boolean algebra can use the xLogicsoft. In fact xLogicsoft
adapts the function block programming way. xLogicsoft is available as a programming package for the
PC. This mode provides many features, for example:
Saving a backup of the circuit program on the hard drive or other media
Online test: Display of status changes and process variables of xLogic in RUN mode:
Starting and stopping circuit program execution via the PC (RUN, STOP).
3. You can add comments to the circuit program and create hard-copies.
4. You save a copy of your circuit program to the file system on your PC, to make it
directly available for any modifications.
5. It takes only a few key actions to download the circuit program to xLogic.
6. Under Simulate mode in xLogicsoft, you can study how to program via the panel
58
key.
ELC series adapts programming methods by means of function blocks. A total of 9 general function blocks,
37 special function blocks, and 11 input & output function blocks are configured. And each block can
achieve a specific control function independently, e.g. TOND, TOFD, SBPL, TBPL, SCHD, etc. As several
blocks are linked up in a specific way, relatively complicated control functions can be performed.
Programming with function blocks is simpler and better appreciated than the conventional PLC
instruction programming.
The following types of operator for xLogic function blocks are available for options:
5.2.1 Inputs
Input blocks represent the input terminals of xLogic. Up to 4 digital inputs(ELC-6 CPU),8(PR-12
CPU) , 76 inputs(PR-18 ) 78 inputs(ELC-22) and 80 inputs(ELC-26) are available to you.
In your block configuration, you can assign an input block a new input terminal, if this terminal
is not already used in the circuit program.
Note:
I11 means the I1 input of the expansion with address 1.
I85 means the I5 input of the expansion with address 8.
59
5.2.2 Cursor keys
Up to four cursor keys are available to you. Cursor keys are programmed for the circuit program in the
same ways as other inputs. Cursor keys can save switches and inputs, and allow operator control of the
circuit program.
Switch the screen to current page(above shows) by pressing the Left or Right key, and press
ESC key and arrow keys at the same time, then the corresponding cursor keys will turn on and
give off a high trigger!
5.2.3 Outputs
Output blocks represent the output terminals of xLogic. You can use up to 2 outputs(ELC-6), 4
outputs(PR-12),70 outputs(PR-18), 72 outputs(PR-22),74 outputs(PR-26). In your block configuration,
you can assign an output block a new terminal, provided this terminal is not already used in your circuit
program.
The output always carries the signal of the previous program cycle. This value does not change within the
current program cycle.
Note:
Q11 means the Q1 output of the expansion with address 1.
Q85 means the Q5 output of the expansion with address 8.
60
5.2.4 Permanent logical levels HI and LO
Set the block input to logical hi (hi = high) to set it permanently to logical '1' or 'H' state.
Set the block input to logical lo (lo = low) to set it permanently to logical '0' or 'L' state.
It is the symbol of the Function key on the panel (F1—F4). If one of the function keys is pressed down,
the status of the corresponding symbol in the program shall turn from 0 to 1. And it shall give off one high
trigger.
Notes: 1.Only one function key is allowed to be pressed down at any one time, if you press down two or
more at the same time, xLogic does not process.
2. If the arrow keys(UP, DOWN, LEFT and RIGHT), Esc and OK had been applied to the program,
then they would be invalid for menu operation (e.g. manual programming,parameters modification and
view alarming message etc).
61
5.2.6 Shift register bits
xLogic provides the shift register bits S1 to S8, which are assigned the read-only attribute in the circuit
program. The content of shift register bits can only be modified by means of the Shift register special
function
You can use up to 36 analog inputs. In your block configuration, you can assign a new input terminal to
an input block, provided this terminal is not already used in the circuit program.
For help on analog block parameter, refer to Information on analog value processing.
Note:
AI11 means the AI1 input of the expansion with address 1.
AI82 means the AI2 input of the expansion with address 8.
Based on different analog input signals, you need select different sensor type in the analog blocks, you
need use an analog amplifier with the AI input, and select the corresponding sensor type for DC0..10V,
0/4..20mA or PT100 input.
62
5.2.8 F (digital flag)
Flags are used when xLogic works in a communication system. F is digital flag which is used to save
/transfer signal 1 or 0(data format is Bit) and AF is analog flag which is used to save /transfer analog
values (data format is Signed short) between the master and slave devices. Up to 32(ELC-6),
128(PR-12/ELC-22/ELC-26) can be used when programming. In your block configuration, you can assign
a new number to the flag, provided this flag number does not already exist in your circuit program.
The output always carries the signal of the previous program cycle. This value does not change if the
communication has failed.
Startup flag: F8
The F8 flag is set in the first cycle of the user program and can thus be used in your circuit program as
a startup flag. It is reset after the first program execution cycle.
In the subsequent cycles, the F8 flag reacts in the same way as the F1 to F64 flags.
Backlight flags: F64
The F64 flag controls the backlight of the xLogic display or the ELC-43T backlight.
You can use the outputs of timers, message texts, or other function blocks to activate the backlight flags.
To enable multiple conditions to control the backlight of the devices, you can use multiple function blocks
in parallel or in sequence.
Buzzer of ELC-43TS control flag:F63
Notes: 1.The address of “ F“ can be found in the modbus communication protocol file . the F block figure
must have the input pin in the xLogic showing.
1. Keep the input pin of F NULL(do not connect with other blocks) ,if you want to use the write property.
63
5.2.9 AF (Analog flag)
Flags are used when xLogic works in a communication system. AF is analog flag which is used to save
/transfer analog values (data format is Signed short) between the master and slave devices. Up to
32(ELC-6) and 256(PR-12/ELC-22/ELC-26) for xLogic CPU can be used when programming. In your
block configuration, you can assign a new number to the analog flag, provided this flag number does not
already exist in your circuit program.
The output always carries the signal of the previous program cycle. This value does not change if the
communication were failed.
Notes: 1.The address of “AF“ can be found in the modbus communication protocol file .
2.Keep the input pin of AF NULL(do not connect with other blocks) ,if you want to use the write
property.
You can set a start value for the AF1--AF64(PR-12/ELC-22/ELC-26), and the value does not lost if the
power was failure, so you can use such AF in your program as a number input from the touch screen or
the panel key of the CPU.
Notes: 1.AF65--AF256 does not support such function(start value settings). and the value of
AF65--AF256 will be lost if the power is failure.
2. If you enable the "start value option" of AF, then you are not allowed to connect any other
function to the input leg of the AF.
3. If you connect the input leg of AF block to other function blocks, the "start value" will not be
available anymore.
View in the circuit diagram View in xLogicsoft Name of the basic function
AND
64
AND with edge evaluation
NAND
(Not AND)
OR
NOR
(Not OR)
XOR
(exclusive OR)
NOT
(negation, inverter)
5.3.1 AND
(Symbol in xLogic)
The output of an AND function is only 1 if all inputs are 1, i.e. when they are closed.
A block input that is not used (x) is assigned: x = 1.
Logic table of the AND block:
0 0 0 0 0
0 0 0 1 0
65
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
(Symbol in xLogic)
The output of an AND with edge evaluation is only 1 if all inputs are 1 and at least one input was 0
during the last cycle.
The output is set to 1 for the duration of one cycle and must be reset to 0 for the duration of the next cycle
before it can be set to 1 again.
A block input that is not used (x) is assigned: x = 1.
Timing diagram of an AND with edge evaluation
66
5.3.3 NAND
(Symbol in xLogic)
The output of an NAND function is only 0 if all inputs are 1, i.e. when they are closed.
A block input that is not used (x) is assigned: x = 1.
Logic table of the NAND block:
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 0
67
5.3.4 NAND with edge evaluation
The output of a NAND with edge evaluation is only 1 at least one input is 0 and all inputs were 1 during
the last cycle.
The output is set to 1 for the duration of one cycle and must be reset to 0 at least for the duration of the
next cycle before it can be set to 1 again.
A block input that is not used (x) is assigned: x = 1.
5.3.5 OR
(Symbol in xLogic)
The output of an OR is 1 if at least one input is 1 (closed).
A block input that is not used (x) is assigned: x = 0.
68
Logic table of the OR function:
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
5.3.6 NOR
(Symbol in xLogic)
The output of a NOR (NOT OR) is only 1 if all inputs are 0 , i.e. when they are open. When one of the
inputs is switched on (logical 1 state), the output is switched off.
A block input that is not used (x) is assigned: x = 0.
69
Logic table of the NOR function:
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
5.3.7 XOR
(Symbol in xLogic)
The XOR (exclusive OR) output is 1 if the signal status of the inputs is different.
A block input that is not used (x) is assigned: x = 0.
Logic table of the XOR function:
0 0 0
0 1 1
70
1 0 1
1 1 0
5.3.8 NOT
(Symbol in xLogic)
The output is 1 if the input is 0. The NOT block inverts the input status.
Advantage of the NOT, for example: xLogic no longer requires break contacts. You simply use a make
contact and convert it into a break contact with the help of the NOT function.
Logic table of the NOT function:
Input 1 Output
0 1
1 0
The BOOLEAN function gives the value of the output according to the combination of inputs.
The function has four inputs, and therefore 16 combinations. These combinations can be found in a truth
table; for each of these, the output value can be adjusted. The number of configurable combinations
depends on the number of inputs connected to the function.
Non-connected inputs are set to 0.
The following diagram shows an example of part of the Boolean function truth table:
71
Parameters
Having connected at least one input, you can configure the value of the output in the truth table, in the
Parameters window.
The output values can be 0 for the Inactive state, and 1 for the Active state(Double click to change the
0 or 1 ).
By selecting the Output ON if result is TRUE option, the output takes the value configured in the truth
table.
By selecting the Output OFF if result is TRUE option, the output takes the inverse value of the value
configured in the truth table.
Because of their different input designation, you can see right away that there is a difference between the
special functions and basic functions. SFs contain timer functions, retentive functions and various
parameter assignment options, which allow you to adapt the circuit program to suit your own
requirements.
This section provides you with a brief overview of input designations and with some particular
background information on SFs. The SFs in particular are described in Chapter7.5
72
5.4.1 Designation of the inputs
Logical inputs
Here, you will find the description of the connectors you can use to create a logical link to other blocks
or to the inputs of the xLogic unit.
S (Set):
A signal at input S sets the output to logical “1”.
R (Reset):
The reset input R takes priority over all other inputs and resets the outputs.
Trg (Trigger):
This input is used to trigger the start of a function.
Cnt (Count):
This input is used for counting pulses.
Fre (Frequency):
Frequency signals to be evaluated are applied to this input.
Dir (Direction):
This input determines the direction of count.
En (Enable):
This input enables a block function. When this input is “0”, other signals to the block will be ignored.
Inv (Invert):
A signal at this input inverts the output signal of the block.
Ral (Reset all):
All internal values are reset.
Parameter inputs
At some of the inputs you do not apply any signals. You configure the relevant block values instead.
Examples:
Par (Parameter):
This input will not be connected. Here, you set the relevant block parameters (times, on/off thresholds
etc.).
No (Cam):
This input will not be connected. Here, you configure the time patterns.
P (Priority):
This is an open input. Here, you define priorities and specify whether a message is to be acknowledged
in RUN.
73
5.4.2 Time response
Parameter T
In some of the SFs it is possible to configure a time value T. When you preset this time, note that your
input values are based on the time base set:
Time base __ : __
Accuracy of T
Because of slight tolerances in the characteristics of electronic components, the set time T may deviate. The
xLogic has a maximum tolerance of ± 0.02 %.
When 0.02 % of the time T is smaller than 0.02 seconds, the maximum deviation is 0.02 seconds.
Example: The maximum tolerance per hour (3600 seconds) is ±0.02%, which is proportional to ± 0.72
seconds. The maximum tolerance per minute (60 seconds) is ± 0.02 seconds.
Accuracy of the timer (weekly/yearly timer)
The maximum timing in accuracy is ± 5 s/day.
Because the internal real-time clock of an xLogic is backed up, it continues operation after a power
failure. The ambient temperature influences the backup time. At an ambient temperature of 25°C, the
typical backup time of xLogic is 100 hours.
6.4.4 Retentivity
The switching states and counter values of SFs can be set retentive. This means that current data is retained
after a power failure, and that the block resumes operation at the break point. The timer is not reset,
but resumes operation until the time-to-go has expired, for example, to enable this response, however,
74
the relevant functions must be set retentive.
R: The data is retained.
/: Current data is not retained (default). See the section in topic "Second circuit program
" on enabling and disabling retentivity.
SFs hours counter, weekly timer, yearly timer and PI controller are always retentive.
In the parameter protection settings, you can determine whether or not the parameters can be displayed
and edited in xLogic parameter assignment mode. Two options are available:
+: The parameter attribute permits read/write access in parameter assignment mode(default).
-: The parameter settings are read–/write–protected in parameter assignment mode, and can be
edited only in programming mode. See the parameter protection mode example in the "Second circuit
program".
A sensor is connected to the analog input and converts a process variable into an electrical signal. This
value of signal lies within the typical range of this sensor. xLogic always converts the electrical signals at
the analog input into digital values from 0 to 1000. A voltage of 0 to 10 V (or current signal 0/4…20mA)
at input AI is transformed internally into range of values from 0 to 1000. An input voltage exceeding 10
V is shown as internal value 1000.
Because you cannot always process the range of values from 0 to 1000 as predetermined by xLogic, you
can multiply the digital values by a gain factor and then shift the zero of the range of values (offset). This
allows you to output an analog value to the xLogic display, which is proportional to the actual process
variable.
Mathematical rule
Actual value Ax =
(internal value at input Ax∙gain) + offset
75
The gain and offset is calculated based on the relevant high
and low values of the function.
Example 1:
Example 2:
A pressure sensor converts a pressure of 1000 mbar into a voltage of 0 V, and a pressure of 5000 mbar into
a voltage of 10 V.
Actual value = (internal value. gain) + offset, thus
= (0·A) + B, i.e. offset B = 1000
=(1000 ∙A) +1000, i.e. gain A = 4
0 0 0.01 0 0
5 500 0.01 0 5
10 1000 0.01 0 10
0 0 1 0 0
5 500 1 0 500
10 1000 1 0 1000
0 0 10 0 0
5 500 10 0 5000
10 1000 10 0 10000
0 0 0.01 5 5
5 500 0.01 5 10
10 1000 0.01 5 15
0 0 1 500 500
76
10 1000 1 –200 800
0 0 10 –10000 –10000
10 1000 10 –10000 0
0.02 2 0.01 0 0
0.02 2 0.1 0 0
0.02 2 1 0 2
0.02 2 10 0 20
When you create your circuit program in xLogicsoft, you find the special function blocks in the SF list.
You can invert the inputs of SFs individually, i.e. the circuit program converts a logical “1” at the input into
a logical “0”; a logical “0” it converts into a logical “1”. The table also specifies whether the relevant function can
be set retentive (Rem). The following SFs are available:
Timer
On-delay REM
Off-delay REM
On-/Off-delay REM
Random generator
77
Weekly timer
Yearly timer
Counter
Up/down counter REM
Threshold trigger
Analog
Analog threshold trigger
Analog comparator
Analog amplifier
Analog multiplexer
Analog math
Analog ramp
PI controller
Miscellaneous
Latching relay
Pulse relay
Message texts
78
Softkey
Shift register
Modbus Read
Modbus Write
Memory Write
Memory Read
Device Reset
Comport status
RH math
79
Pumps management
Defrost
Comparison of 2 values
Multicompare
Compare in Zone
Demultiplexer
Multiplexing
Multiplexer
Square root
Sin Cos
80
5.5.1 On-delay
Short description
The output is not switched on until a configured delay time has expired.
Connection Description
Trg input The on delay time is triggered via the Trg (Trigger) input
Parameter T
The time for parameter T can also be preset based on the actual value of another, already-configured
function. You can use the actual values of the following functions:
Analog comparator: Ax - Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller:AQ
Data latching relay: AQ
Up/Down counter: Cnt
You select the required function via the block number. Time-base can be adjusted.
The value of "T" can be set/modified in parameter mode. For information about how to modify,refer
to chapter 5.2.2 please.
For information on the validity and accuracy of the time base, refer to the xLogic time-base list as follows:
s (seconds) 99:99 10 ms ± 10 ms
81
m (minutes) 99:59 1s ±1s
Timing diagram
5.5.2 Off-delay
Short description
The output with off delay is not reset until a defined time has expired.
82
Connection Description
Input Trg Start the off delay time with a negative edge (1 to 0
transition) at input Trg (Trigger)
Input R Reset the off delay time and set the output to 0 via the R
(Reset) input.
Reset has priority over Trg
Parameter
The time set in parameter T can be supplied by the value of another already-programmed function:
Analog comparator: Ax - Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller:AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "T"can be set/modified in parameter mode. For information about how to modify, refer to
chapter 5.2.2 please.
Select the required function by the block number. The time base is configurable. For
information on valid time base ranges and parameter preset, refer to chapter 4.4.1 the On-delay topic.
Timing diagram
83
5.5.3 On-/Off-delay
Short description
The on/off delay function is used to set an output after a configured on delay time and then reset it again
upon expiration of a second configured time.
Connection Description
Parameter TH is the on delay time for the output (output signal transition
0 to 1).
TL is the off delay time for the output (output signal transition
1 to 0).
Retentivity on = the status is retentive in memory.
Parameter
The on-delay time and off-delay time set in parameter TH and TL can be provided by the actual value of
another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "TH","TL"can be set/modified in parameter mode. For information about how to
modify, refer to chapter 7.2.2 please.
For information on the validity and accuracy of the time base, refer to 7.4.2
Timing diagram
84
Description of the function
The time TH is triggered with a 0 to 1 transition at input Trg.
If the status at input Trg is 1 at least for the duration of the configured time TH, the output is set to logical
1 upon expiration of this time (output is on delayed to the input signal).
The time TH is reset if the status at input Trg is reset to 0 before this time has expired.
The time TL is triggered with the 1 to 0 transition at the output.
If the status at input Trg remains 0 at least for the duration of a configured time TL, the output is reset
to 0 upon expiration of this time (output is off delayed to the input signal).
The time TL is reset if the status at input Trg is returns to 1 before this time has expired.
Short description
A one-shot at the input triggers a configurable time. The output is set upon expiration of this time.
Connection Description
Input Trg Trigger the on delay time via the Trg (Trigger) input.
Input R Reset the time on delay time and reset the output to 0 via
input R (Reset).
Reset takes priority over Trg.
Parameter T is the on delay time for the output (output signal transition
0 to 1).
Retentivity on = the status is retentive in memory.
Parameter
The time in parameter T can be provided by the value of another already-programmed function:
85
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "T"can be set/modified in parameter mode. For information about how to modify, refer
to chapter 5.2.2 please.
Timing diagram
Short description
An input signal generates an output signal of a configurable length.
86
Connection Description
Input Trg You trigger the time for the wiping relay with a signal at
input Trg (Trigger)
Output Q A pulse at Trg sets Q. The output stays set until the time T
has expired and if Trg = 1 for the duration of this time. A 1
to 0 transition at Trg prior to the expiration of T also resets
the output to 0.
Parameter
The off time T can be provided by the actual value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "TL"can be set/modified in parameter mode. For information about how to modify, refer
to chapter 5.2.2 please.
Timing diagram
87
5.5.6 Edge triggered wiping relay
Short description
An input pulse generates a preset number of output pulses with a defined pulse/pause ratio
(retriggerable), after a configured delay time has expired.
Connection Description
Input Trg You trigger the times for the Edge-triggered wiping relay
with a signal at input Trg (Trigger).
Input R The output and the current time Ta are reset to 0 with a
signal at input R.
Parameter TL, TH: The inter-pulse period TL and the pulse period TH are
adjustable.
N determines the number of pulse/pause cycles TL / TH:
Value range: 1...9.
Retentivity set (on) = the status is retentive in memory.
Output Q Output Q is set when the time TL has expired and is reset
when TH has expired.
Parameter
The pulse width TH and the inter-pulse width TL can be provided by the actual value of another
already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller:AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "TH","TL"can be set/modified in parameter mode. For information about how to
modify, refer to chapter 5.2.2 please.
Timing diagram
88
TL = 0; N = 1
Description of the function
With the change at input Trg to 1, the time TL (time low) is triggered. After the time TL has expired, output
Q is set to 1 for the duration of the time TH (time high).
If input Trg is retriggered prior to the expiration of the preset time (TL + TH), the time Ta is reset and the
pulse/pause period is restarted.
If retentivity is not set, output Q and the time are reset after a power failure.
Description of function
The pulse shape at the output can be modified via a configurable pulse/pause ratio.
Connection Description
Input Inv The Inv input can be used to invert the output signal of the
active asynchronous pulse generator..
Parameter TL,TH: You can customize the pulse (TL)/ pause (TH)
ratio.
Retentivity set (on) = the status is retentive in memory.
Parameter
The pulse width TH and the inter-pulse width TL can be provided by the actual value of another
already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
89
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "TH","TL"can be set/modified in parameter mode. For information about how to
modify, refer to chapter 5.2.2 please.
Timing diagram
Short description
The output of a random generator is toggled within a configurable time.
Connection Description
90
between 0 s and TL.
Parameter
The on-delay time TH and the off-delay time TL can be provided by the actual value of another
already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "TH","TL"can be set/modified in parameter mode. For information about how to
modify, refer to chapter 5.2.2 please.
Timing diagram
91
5.5.9 Stairway lighting switch
Short description
The edge of an input pulse triggers a configurable time. The output is reset when this time has expired.
An off warning can be output prior to the expiration of this time.
Connection Description
Input Trg You trigger the time (off delay) for the stairway switch with
a signal at input Trg (Trigger).
Output Q Q is reset after the time T has expired. A warning signal can
be output before this time has expired.
Parameter
The off-delay time T, the pre-warning time T! and the pre-warning period T!L can be provided by the
actual value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "T"can be set/modified in parameter mode. For information about how to modify, refer
to chapter 5.2.2 please.
Timing diagram
92
Changing the time base
You can change the pre-warning time base and the period.
93
5.5.10 Multiple function switch
Short description
Switch with two different functions:
Pulse switch with off delay
Switch (continuous light)
Connection Description
Input Trg With a signal at input Trg (Trigger) you set output Q
(continuous light), or reset Q with off delay. Output Q can
be reset with a signal at the Trg input.
Input R You set the current time Ta, and reset the output to 0, with
a signal at input R.
Parameter
The off-delay time T, the permanent light time TL, the on-delay pre-warning time T!, and the pre-warning
time period T!L can be provided by the actual value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
94
Up/Down counter: Cnt
The value of "T","TL"can be set/modified in parameter mode. For information about how to
modify, refer to chapter 5.2.2 please.
Timing diagram
Caution
Caution
Your xLogic must be equipped with an internal real-time clock if you are going to use this SFB.
Short description
The output is controlled by means of a configurable on/off date. The function supports any combination
of weekdays.
Connection Description
95
parameters you set the on and
off triggers for each cam of the
weekly timer. The parameter
units are the days and the
time-of-day.
Parameter
You can configure a time hysteresis for each individual cam in parameter mode. For information about
how to modify, refer to chapter 4.2.2 please.
Timing diagram (three practical examples)
Each weekly timer is equipped with three cams. You can configure a time hysteresis for each individual
cam. At the cams you set the on and off hysteresis. The weekly timer sets the output at a certain time,
provided it is not already set.
The output is reset at a certain time, provided it is not already reset. A conflict is generated in the weekly
timer when the set on time and the set off time at another cam are identical. In this case, cam 3 takes
priority over cam 2, while cam 2 takes priority over cam 1.
The switching status of the weekly timer is determined by the status at the No1, No2 and No3 cams.
96
On-/Off-times
Any time between 00:00 h and 23:59 h is possible. You can also configure the on time to be a
pulse signal. The timer block will be activated at the specified time for one cycle and then the
output is reset.
- -:- - means: No on-/off-times set.
Modify the value at the respective position, using the keys and . Move to the cursor to
the various positions, using the keys and . At the first position, you can only select the
value - -:- -
(- -:- - means: No on-/off-times set).
The block properties window offers a tab for each one of the three cams. Here you can set the weekly on
times for the cams. Each tab offers you in addition an option of defining the on and off times for each cam
in hour and minute units. Hence, the shortest switching cycle is one minute.
You can disable the on and off times individually, i.e. you can achieve switching cycles extending across
more than one day, for example, by setting the on time for cam 1 to Monday 7:00 h and the off time of
cam 2 to Wednesday 13:07 h, while disabling the on time for cam 2.
97
Backup of the real-time clock
The internal real-time clock of xLogic is buffered against power failure. The buffering time is influenced
by the ambient temperature, and is typically 100 hours at an ambient temperature of 25°C.
Caution
Your xLogic must be equipped with an internal real-time clock if you are going to use this SFB.
Short description
The output is controlled by means of a configurable on/off date
Connection Description
98
for the cam of the yearly
timer.
Parameter
The on and off trigger for the cam of the yearly timer can be set/modified in parameter mode and you can
configure what you need. For information about how to modify, refer to chapter 5.2.2 please.
Timing diagrams
Example 1: Yearly mode on, Monthly mode off, Pulse Off, On Time = 2000-06-01, Off Time =
2099-08-31: Every year on June 1 the timer output switches on and remains on until August
31.
Example 2: Yearly mode on, Monthly mode off, Pulse on, On Time = 2000-03-15, Off Time =
2099-**-**: Every year on March 15, the timer switches on for one cycle.
Example 3: Yearly mode on, Monthly mode off, Pulse off, On Time = 2008-06-01, Off Time =
2010-08-31: On June 1 of 2008, 2009, and 2010 the timer output switches on and remains
on until August 31.
Example 4: Yearly mode on, Monthly mode off, Pulse on, On Time = 2008-03-15, Off Time =
2010-**-**: On March 15 of 2008, 2009, and 2010, the timer output switches on for one cycle.
99
Example 5: Yearly mode off, Monthly mode off, Pulse off, On Time = 2008-06-01, Off Time =
2008-08-31: On June 1, 2008 the timer output switches on and remains on until August 31,
2010.
Example 6: Yearly mode off, Monthly mode off, Pulse selected, On Time = 2008-03-15, Off Time =
****-**-**: On March 15, 2008 the timer output switches on for one cycle. Because the timer does not
have a monthly action or yearly action, the timer output pulses only one time
at the specified On Time.
Example 7: Yearly mode on, Monthly mode off, Pulse off, On Time = 2008-12-15, Off Time =
2010-01-07: On December 15 of 2008 and 2009, the timer output switches on and remains
on until January 7 of the following year. When the timer output turns off on January 7, 2010 it
does NOT turn on again the following December 15.
Example 8: Yearly mode on, Monthly mode on, On Time = 2008-**-01, Off Time = 2010-**-
05: Starting in 2008, on the first day of each month the timer output switches on and switches off on the
fifth day of the month. The timer continues in this pattern through the last month of 2010.
100
Description of the function
The yearly timer sets and resets the output at specific on and off times.
The off-date identifies the day on which the output is reset again. The first value defines the month, the
second the day.
When you select the every month check box, the yearly clock switches on or off at a certain day of every
month.
The internal real-time clock of xLogic is buffered against power failure. The buffering time is influenced
by the ambient temperature, and is typically 100 hours at an ambient temperature of 25°C.
Special characteristics to note when configuring
A click on the dialog box enables direct keyboard input of the month and day values. The values entered
may not exceed the logical maximum of the relevant input boxes; otherwise xLogicsoft returns an error
message.
The calendar icon offers you an Rievtech way of setting the date. It opens a window where you can set
the days and months by clicking the relevant buttons.
Sample configuration
The output of an xLogic is to be set annually on March 1, reset on April 4, set again on July 7,
and reset again on November 19. You need to configure two yearly timers with corresponding on-times.
Then logically link the outputs by means of an OR block.
101
Yearly Timer 1
On-time Mar 1
Off-time Apr 4
Yearly Timer 2
On-time Jul 7
Off-time Nov 19
Result
Place two yearly timer switch SFBs on your programming interface and configure the blocks as specified.
Create a logical link of the blocks via a standard OR block. The OR output is 1 if at least one of the yearly
timer switches is set.
102
5.5.13 Up/Down counter
Short description
An input pulse increments or decrements an internal value, depending on the parameter setting. The
output is set or reset when a configured threshold is reached. The direction of count can be changed with
a signal at input Dir
Connection Description
Parameter
103
The on threshold On and the off threshold Off can be provided by the value of another
already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
The value of "On","Off"and "Cnt"can be set/modified in parameter mode. For information about
how to modify ,refer to chapter 5.2.2 please.
Timing diagram
104
5.5.14 Hours counter
Short description
A configured time is triggered with a signal at the monitoring input. The output is set when this time has
expired.
Connection Description
Input Ral A positive edge at input Ral (Reset all) resets both the hours
counter (OT) and the output, and sets the configured value
MI at the counter to for the duration of the time-to-go (MN).
That is,
Output Q = 0,
105
Timing diagram
The value of "MI" can be set and modified in parameter mode. For information about how to modify,
refer to chapter 4.2.2 please.
The hours counter monitors input En. As long as the status at this input is 1, xLogic calculates the time
expired and the time-to-go MN. xLogic displays these times when set to configuration mode. The output
is set to 1 when the time-to-go is equal to zero.
You reset output Q and the time-to-go counter to the specified value MI with a signal at input R. The
operation hour counter OT remains unaffected.
106
You reset output Q and the time-to-go counter to the specified value MI with a signal at input Ral. The
operation hour counter OT is reset to 0.
Depending on your configuration of the Q parameter, the output is either reset with a reset signal at input
R or Ral, or when the reset signal is 1 or the En signal is 0.
Limit value of OT
The values of the operating hours in OT are retained when you reset the hours counter with a signal at
input R. The hours counter OT continues the count as long as En = 1, irrespective of the status at the
reset input R. The counter limit of OT is 99999 h. The hours counter stops when it reaches this value.
Parameter preset
In xLogicsoft, you can define MI and an OT start value.
You determine that Q does not depend on En by selecting the corresponding check box.
Short description
The output is switched on and off, depending on two configurable frequencies.
107
Connection Description
Parameter
The gate time G_T can be provided by the actual value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
PI controller: AQ
Up/Down counter: Cnt
Data latching relay: AQ
Analog Math AQ
The value of " On" ," Off" can be set/modified in parameter mode. For information about how to
modify, refer to chapter 5.2.2 please.
Timing diagram
fa = Input frequency
108
Description of the function
The trigger measures the signals at input Fre. The pulses are captured during a configurable period G_T.
Q is set or reset according to the set thresholds. See the following calculation rule.
Calculation rule
Short description
A signal at input S sets output Q. A signal at input R resets output Q.
Connection Description
Timing diagram
109
Logic table of the latching relay:
S R Q Remark
0 0 x Status unchanged
0 1 0 Reset
1 0 1 Set
1 1 0 Reset
When retentivity is enabled, the output signal corresponds with the signal status prior to the power
failure.
Short description
The output is set and reset with a short one-shot at the input.
Connection Description
Input Trg You switch output Q on or off with a signal at input Trg
(Trigger) input.
Parameter Selection:
RS (input R priority), or
SR (input S priority)
Retentivity set (on) = the status is retentive in memory.
No
110
parameter of Latching relay can be set/modified in parameter mode .
Timing diagram
Short description
Display parameterized message texts and parameters of other blocks in RUN mode.
Connection Description
111
EnDate: Shows the 0 to 1 transition of the date
You can press the and keys to step through multiple active message texts.
Example
This is how two message texts could be shown:
Display field of xLogic in RUN mode
Input P configuration
From the input P, you configure the following characteristics of the message text:
● Priority
● Acknowledgement
● Message destination
Restrictions
Up to 64 message text functions are available for PR-12,PR-18/ELC-22/ELC-26 .
112
1 "General" area
3 "Blocks" area
Shows a list of all the circuit program blocks and their parameters.
4 Language selection
5 Animate option
This option is used to the animate display on ELC-43TS, you can refer to
the user instruction of ELC-43TS.
113
6 "Insert" button
Shows the parameters of a block selected from the "Blocks" area which you
can output in the message text.
9 "Delete" button
10 "Messages" area
You arrange the message text in this area. Information entered in this area
corresponds with that on the xLogic display.
From the "Blocks" area, select the block whose parameters you want to output.
Drag and drop the parameters required from the "Block parameters" to the "Messages" area. You may
also use the "Insert" button to do so.
In the "Messages" area, you can add parameter data as required.
The message text can be configured in the block properties dialog. You can enter up to 4 lines for each
message text (the text display of the xLogic has 4 x 16 characters) and set the priority. You can move to
the next line using the cursor keys or the mouse. Hit the [ENTER] key to confirm all your entries in the
block properties dialog and to close the dialog.
You may also enter the actual values of other blocks in the text lines. To do so, select the relevant block
from the Block dialog. A Parameter dialog opens to display a list of all parameters available for the
selected block. The block parameter you select in this dialog is written to the selected text line. The actual
parameter value is now included when you call the message text.
Set the "Acknowledge message" attribute to specify whether a message is be acknowledged before it
is closed.
114
A. I/O status of CPU and extensions
B .Blocks
115
D. Analog output value of CPU and extensions
116
F. AF(analog flag) value
G. M status
117
H. AM value
With text message, the text can display big number(6 bits or 4 bits). (This feature only can be used in
ELC-22/26 Series CPU and PR-12 CPU).
118
Animate option
This option is for the ELC-43TS touch screen, it is used to trigger the pictures saved in the screen, you can
refer to the ELC-43TS user guide for detail information.
Parameters of blocks can be changed in displayed message if inserted into the “message text
“ block by press “OK” key for 3 seconds.
Step as follows:
A. Insert the parameters of block into message text.(Here is On-delay).
119
B. Change the page to display the message text contents by arrow keys.
120
5.5.19 Softkey
Short description
This SFB provides the action of a mechanical pushbutton or switch.
Connection Description
Factory state
Default of 'Type' is 'momentary action switch'.
Timing diagram
121
Description of the function
The output is set, when input En is set and the 'Status' parameter is set to 'On' and confirmed with OK.
This action is performed irrespective of a configured switch or pushbutton function.
The output is reset to '0' in the following three cases:
When a pushbutton function is configured and one cycle has expired after its
actuation.
When the 'Status' parameter sets the 'Off' status in configuration mode, and this
has been confirmed with OK.
The softkey can be used both with momentary push button or switching action. At the status parameter
you can define the on (actuated) or off state for the switch/push button.
If the softkey is assigned a push button action, the output is always set for the duration of one cycle with
a 0 to 1 transition at input En when the push button is in on state, or if the push button state changes
from Off to On when En=1.
122
5.5.20 Shift register
Short description
The shift register function can be used to read an input value and to shift the bits. The output value
corresponds with the configured shift register bit. The shift direction can be changed at a special input.
Connection Description
Timing diagram
123
Setting the Par parameter
This special function is not available in parameter assignment mode.
The function reads the value of input In with a positive edge (0 to 1 transition) at input Trg (Trigger).
This value is written to shift register bits S1 or S8, depending on the set shift direction:
Shift up: S1 accepts the value of input In; the previous value of S1 is shifted to
S2, S2 is shifted to S3, etc.
Shift down: S8 accepts the value of input In; the previous value of S8 is shifted
to S7, S7 is shifted to S6, etc.
Note
The special function shift register can be used only once in the circuit program.
Short description
The output is set and reset depending on the difference Ax - Ay and on two configurable thresholds.
Connection Description
124
Inputs Ax, Ay Input the analog signals of which you want to
determine the delta at the inputs Ax and Ay.
Use the analog inputs AI1...AI8, the analog outputs
AQ1 and AQ2.
AI1..AI8: 0 - 10 V corresponds with 0 - 1000 (internal
value).
Parameter A: Gain
Range of values: ± 10.00
B: Zero offset
Range of values: ± 10,000
On: On threshold
Range of values: ± 20,000
Off: Off threshold
Range of values: ± 20,000
p: Number of decimals
Range of values: 0, 1, 2, 3
Applies only to Ax, Ay, Delta, On and Off values displayed in a message text.
Does not apply to the comparison of on and off values! (The compare function ignores the decimal point.)
The value of "On","Off"and "Dec" can be set/modified in parameter mode. For information about
how to set/modify, refer to chapter 5.2.2 please.(Dec means decimal point.)
Timing diagram
125
Q for Ax - Ay > 200, On = Off = 200
Description of the function
The function reads the value of the signal at the analog input Ax.
This value is multiplied by the value of parameter A (gain). Parameter B (offset) is added to the product,
hence
(Ax ∙ gain) + offset = Actual value Ax.
(Ay ∙ gain) + offset = Actual value Ay.
Output Q is set or reset depending on the difference of the actual values Ax - Ay and the set thresholds.
See the following calculation rule.
Calculation rule
126
the difference is less than 5 °C.
The process variable of the temperature is to be shown in parameter assignment mode.
The thermocouples available have the following technical data: -30 to +70 °C, 0 to 10 VDC.
Short description
The output is set or reset depending on two configurable thresholds (hysteresis).
Connection Description
127
Parameter A: Gain
Range of values: ± 10.00
B: Zero offset
Range of values: ± 10,000
On: On threshold
Range of values: ±20,000
Off: Off threshold
Range of values: ± 20,000
p: Number of decimals
Range of values: 0, 1, 2, 3
The On and Off parameters can be provided by the actual value of another already-programmed
function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
Applies only to the display of On, Off and Ax values in a message text.
Does not apply to the comparison of On and Off values! (The compare function ignores the decimal
point.)
The value of "On","Off"and "Dec" can be set/modified in parameter mode. For information about
how to set/modify, refer to chapter 4.2.2 please.(Dec means decimal point.)
Timing diagram
128
Description of the function
The function reads the value of the signal at the analog input Ax.
This value is multiplied by the value of parameter A (gain). Parameter B (offset) is added to the product,
hence
(Ax ∙Gain) + Offset = Actual value Ax.
Output Q is set or reset depending on the set threshold values. See the following calculation rule.
Calculation rule
If threshold (On) ≥ threshold (Off), then:
Q = 1, if the actual value Ax > On
Q = 0, if the actual value Ax ≤Off.
If threshold (On) < threshold (Off), then Q = 1, if
On ≤ the actual value Ax < Off.
Note
The decimal point setting must be identical in the min. and max. range.
129
Short description
This SFB amplifies an analog input value and returns it at the analog output.
Connection Description
Parameter A: Gain
Range of values: ± 10.00
B: Zero offset
Range of values: ± 10000
p: Number of decimals
Range of values: 0, 1, 2, 3
Short description
This special function saves the process variable of an analog input to memory, and sets the output when
130
the output variable exceeds or drops below this stored value plus a configurable offset.
Connection Description
Parameter A: Gain
Range of values: ± 10.00
B: Zero offset
Range of values: ± 10,000
Delta: Difference value for the Aen on/off threshold
Range of values: ± 20,000
p: Number of decimals
Range of values: 0, 1, 2, 3
Applies only to the display of Aen, Ax and Delta values in a message text.
Timing diagram
131
Description of the function
A 0 to 1 transition at input En saves the value of the signal at the analog input Ax. This saved process
variable is referred to as Aen".
Both the analog actual values Ax and Aen are multiplied by the value at parameter A (gain), and
parameter B (offset) is then added to the product, i.e.
(Ax ∙ gain) + offset = Actual value Aen, when input En changes from 0 to 1, or
(Ax ∙ gain) + offset = Actual value Ax.
Output Q is set when the signal at input En = 1 and if the actual value at input Ax is out of range of Aen
± Delta.
Output Q is reset, when the actual value at input Ax lies within the range of Aen +- Delta, or when the
signal at input En changes to lo.
Short description
The output is set and reset depending on a configurable threshold and a differential value.
Connection Description
132
Parameter A: Gain
Range of values: ± 10.00
B: Zero offset
Range of values: ± 10,000
On: On threshold
Range of values: ±20,000
Delta: Differential value for
calculating the off parameter
Range of values: ± 20,000
p: Number of decimals
Range of values: 0, 1, 2, 3
133
product, i.e.
(Ax ∙ gain) + offset = actual value of Ax.
Output Q is set or reset, depending on the set (On) threshold and difference value (Delta). The function
automatically calculates the Off parameter: Off = On + Delta, whereby Delta may be positive or negative.
See the calculation rule below.
Calculation rule
When you set a negative differential value Delta, the On threshold >= Off threshold, and:
Q = 1, if the actual value Ax > On
Q = 0, if the actual value Ax ≤ Off.
See the timing diagram A.
When you set a positive differential value Delta, the On threshold < the Off threshold, and Q = 1, if:
On ≤ the actual value Ax < Off.
See the timing diagram B.
Short Description
This special function displays 0 or one of 4 saved analog values on the analog output.
Connection Description
134
Parameter V1...V4: Analog values
(Value) that will be issued.
Value range:
-32768...+32767
p: Number of decimal places
value range: 0, 1, 2, 3
Parameters V1…V4
The values for V1…V4 can be provided by the value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
Timing Diagram
Description of Function
If input En is set, then the function issues one of 4 possible analog values V1 to V4 at the output AQ,
depending on the parameters S1 and S2.
135
If the input En is not set, then the function issues the analog value 0 at output AQ.
Analog output
If you interconnect this special function with a real analog output, note that the analog output
can only process values between 0 and 1000. To do this, you may need to connect an
additional amplifier between the analog output of the special function and the real analog
output. Using this amplifier, you standardize the output range of the special function to a
value range of 0 to 1000.
This block cannot directly be found in the block list ,however, it is set as default by system of xLogic,
hence system cover can be available if you follow the below procedures : use your mouse to left-click
“Tools” menu->select “Edit Cover HMI” by left-click in xLogicsoft .
Short description
Display the status (Run or Stop) of xLogic when power-on or simulation by soft.
Particular characteristics to be noted when configuring
136
5.5.28 Pulse Width Modulator (PWM)
Short Description:
The Pulse Width Modulator (PWM) instruction modulates the analog input value Ax to a pulsed digital
output signal. The pulse width is proportional to the analog value Ax.
connection Description
EN A positive edge (0 to 1 transition) at
input En enables the PWM function
block.
A: Gain
parameter
Range of values: +- 10.00
B: Zero offset
Range of values: +- 10,000
PT: Periodic time over which the digital
output is modulated
p: Number of decimals
Range of values: 0, 1, 2, 3
Output Q Q is set or reset for the proportion of each time
period according to the proportion of the
standardized value Ax to the analog value range.
Parameter PT
The periodic time PT can be provided by the actual value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
PI controller: AQ
Analog math: AQ
Data latching relay: AQ
Up/Down counter: Cnt
137
Parameter p (number of decimals)
Parameter p applies only to the display of the Ax value in a message text.
The digital output of the PWM function is 2 seconds high, 2 seconds low, 2 seconds high, 2 seconds low
and continues in that pattern as long as parameter "En" = high.
Example 2
Analog input value: 300 (range 0...1000)
Periodic time T: 10 seconds
The digital output of the PWM function is 3 seconds high, 7 seconds low, 3 seconds high, 7 seconds low
and continues in that pattern as long as parameter "En" = high.
138
Calculation rule
Q = 1, for (Ax – Min) / (Max – Min) of time period PT
Q = 0, for PT – [(Ax – Min) / (Max – Min)] of time period PT.
Note: Ax in this calculation refers to the actual value Ax as calculated using the Gain and Offset. Min and
Max refer to the minimum and maximum values specified for the range
Special feature.
Generally, the output frequency could be up to 30Hz But the Q3,Q4 of ELC-12 type,Q5,Q6 of
ELC-18/22/26 (PNP transistor output) CPU could be up to 333 Hz and the property dialog box of PWM
function block setting as follows:
If the special output is selected in the property dialog box of PWM block, then the unit of “periodic time”
will be changed from s:1/100s to s:1/1000s, so if you input 3 (1/1000s) , then its frequency is 1000/3 Hz.
Notes:
139
settings must be same for Q3&Q4 of ELC-12 CPU and Q5&Q6 of ELC-22/26 and upgraded ELC-18 CPUs.
Short Description:
The Analog Ramp instruction allows the output to be changed from the current level to a selected level at
a specified rate.
Connection Description
Input En A change in the status from 0 to 1 at input EN (Enable) applies the start/stop level (Offset "B"
+ StSp) to the output for 100 ms and starts the ramp operation to the selected level.
A change in the status from 1 to 0 immediately sets the current level to Offset "B", which
makes output AQ equal to 0.
SeI = 0: The step 1 (level 1) is selected.
Input Sel
SeI = 1: The step 2 (level 2) is selected.
A change in status of Sel causes the current level to start changing to the selected level at the
specified rate.
A change in the status from 0 to 1 at input St (Decelerated Stop) causes the current level to
Input St
decrease at a constant rate until the start/stop level (Offset "B" + StSp) is reached. The
start/stop level is maintained for 100 ms and then the current level is set to Offset "B", which
makes output AQ equal to 0.
Level1 and Level2: Levels to be reached; value range for each level: -10,000 to +20,000
parameter
MaxL: Maximum value that must not be exceeded.
Value range: -10,000 to +20,000
StSp: Start/Stop offset: value that is added to Offset "B" to create the start/stop level. If the
Start/Stop offset is 0, then the start/stop level is Offset "B").
Value range: 0 to +20,000
Rate: Speed with which level 1, level 2 or 0ffset is reached. Steps/seconds are issued.
Value range: 1 to 10,000
A: Gain
Value range: 0 to 10,00
B: Offset
Value range: +- 10.000
140
The output AQ is scaled using the formula:
Output AQ
(Current Level - Offset "B") / Gain "A"
Parameter p only applies for displaying the values of AQ, level 1, level 2, MaxL, StSp, and Rate in a
message text.
Description of function
If the input En is set, then the function sets the value StSp + Offset "B" for 100 ms.
Then, depending on the connection of Sel, the function runs from the level StSp + Offset "B" to either
141
level 1 or level 2 at the acceleration set in Rate.
If the input St is set, the function runs to a level of StSp + B at the acceleration set in Rate. Then the
function holds the level at StSp + Offset "B" for 100 ms. After 100 ms, the level is set to Offset "B". output
AQ. The scaled value (output AQ) is 0.
If the input St is set, the function can only be restarted once the inputs St and En have been reset.
If input Sel has been changed, depending on the connection of Sel, the function runs from the current
target level to the new target level at the rate that is specified.
If the input En is reset, the function immediately sets the current level to Offset "B".
The current level is updated every 100 ms. Note the relationship between output AQ and the current
level:
Output AQ = (current level – Offset "B" ) / Gain "A"
Short Description
The analog math block calculates the value AQ of an equation formed from the user-defined operands
and operators.
Connection Description
Input EN Enable the analog math function block.
Parameter V1:Value 1: First operand
V2: Value 2: Second operand
V3: Value 3: Third operand
V4: Value 4: Forth operand
P: number of decimals
Range of values: 0,1,2,3
Output AQ The output AQ is the result of the equation formed from the operand values and
operators. AQ will be set to 32767 if a divide by 0 or overflow occurs, and -32768
if a negative overflow (underflow) occurs.
142
Parameter p (number of decimals)
The values V1, V2, V3, and V4 can be provided by the actual value of another already-programmed
function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
Parameter p applies to the display of V1, V2, V3, V4 and AQ in a message text.
143
2 +(L) 3 *(M) 1 +(H) 4
Equation: 2+ (3*(1+4))
Result: 17
Short Description
The analog math error detection block sets an output if an error has occurred in the referenced analog
math function block.
Connection Description
Parameter Referenced FB
The value for the Referenced FB parameter references the block number of an already-programmed
analog math function block.
The analog math error detection block sets the output when the referenced analog math function block
has an error. You can program the function to set the output on a zero division error, an overflow error,
or when either type of error occurs.
If you select the automatically reset check box, the output is reset prior to the next execution of the
function block. If not, the output retains its state until the analog math error detection block is reset with
the R parameter.
In any scan cycle, if the referenced analog math function block executes before the analog math error
detection function block, the error is detected in the same scan cycle. if the referenced analog math
function block executes after the analog math error detection function block, the error is detected in the
144
next scan cycle.
In the table below, Error to Detect represents the parameter of the analog math error detection
instruction that selects which type of error to detect. Zero represents the zero division bit set by the
analog math instruction at the end of its execution: 1 if the error occurred, 0 if not. OF represents the
overflow bit set by the analog math instruction: 1 if the error occurred, 0 if not. Zero division OR Overflow
represents the logical OR of the zero division bit and the overflow bit of the referenced analog math
instruction. Output (Q) represents the output of the analog math error detection function. An “x”
indicates that the bit can be either 0 or 1 with no influence on the output.
Overflow X 0 0
Zero 1 0 1
division OR
Overflow
Zero 0 1 1
division OR
Overflow
Zero 1 1 1
division OR
Overflow
Zero 0 0 0
division OR
Overflow
145
5.5.32 Modbus Read
Short description:
When there is a high level at En, the Modbus Read block will be activated and the xLogic shall
communicate with a peripheral device as a master via RS232 or RS485 interface. Furthermore, the
output will be switched on when communication is established successfully. Otherwise the output (Q pin)
remains “off” which means communication has failed.
A signal at input R resets output Q and disables this block at the same time
Connection Description
Input En A high signal at En input will enable “Modbus Read” function block to be activated
Input R To disable the MODBUS read function and set the output to 0 via the R (Reset)
input. Reset has priority over En
146
However, the “Modbus Read” or “Modbus Write”(next chapter will introduce it) function block would be
utilized if xLogic shall be required to play a role of master to communicate with other devices. As the
following figure shows:
When you put the “Modbus read” or “Modbus Write” function block in your program and make some
configurations, the function that xLogic serves as master will be realized.
147
1. Slave Address: 1 is default
2. Communication parameters:BPS is baud rate、Stopbits、Databits、Communication
type: RS232、RS485 . Actually RS232 or RS485 are just interface of xLogic.
3. Command, register address and register count
02 Fetch one group data of the status of switch input Read input Status (input relay)
(10000~1XXXX)
Example: The following we'll take a example that one xLogic (Master) communicate with other xLogic
(Slave) via RS485.
Example 1: Get Q1 status of SLAVE1(xLogic) and then save the bit status to F1.
148
If count was set 4, the Q1,Q2,Q3,Q4 of xLogic (station No.1) will be read and save to F1 to F4
F is bit type flag. It can be used to receive bit data from slave device.
Example 2 : Get AI value from Slave 2(xLogic with station No.2) and save the data to AQ11
149
The number setting of Q,I,AQ are continuous .AQ12 cannot be set as AQ 12 and should be set AQ 4 as
above figure shows.
The following table shows how to set.
Note: this table also can be applied for the configuration of Modbus Write function block.
AQ1—AQ2 AQ1—AQ2
Expansion1 I11-I14 I9-I12
(Address is 1) Q11-Q14 Q9-Q12
AI11-AI14 AI9—AI12
AQ11-AQ12 AQ3,AQ4
Expansion2 I21-I24 I18—I21
(Address is 2 Q21-Q24 Q17—Q19
AI21-AI24 AI17---AI24
AQ21-AQ22 AQ5--AQ6
150
…………….
Short description:
When a high level in En, the Modbus Write block will be activated and the xLogic could communicate with
peripheral as a master via RS232 or RS485 interface, further the output will be switched on when the
communication is established successfully. Otherwise the output (Q pin) is kept“off” it means
communication has failed.
A signal at input R resets output Q and disable, this block at the same time
Connection Description
Input En A high signal at En input will enable “Modbus Write” function block to be activated
Input R Reset the value read from peripheral and set the output to 0 via the R (Reset) input.
Reset has priority over En
Parameter Slave address: 1 is default .
Communication protocol: Modbus(RTU)
Communication parameter: baud rate (BPS),Data bits, Stop bits,
Parity, Overtime (response time out)
Comm Type: RS232 or RS485( Communication interface of xLogic )
Data register Index: High Low /Low High
Command: 05 Write Single Coil
06 Write Single Register
15 Write Multiple Coils
16 Write Multiple Registers
Register start address, count
151
The Property in dialog box of “Modbus Write” shows as below figure:
(output)
(40000~4XXXX)
4. Where is to save the pre-configuration data that would be written to Slave. It contains 2 kind ways to
pre-configuration. One is auto mode, this data uses the flags in the program, such as FM, AFM, I, Q and
AQ. The manual mode is input a fixed value or bit status.
152
Example 1
Write the I2 bit status of Master xLogic to Slave xLogic with No.1 and control Q1 of Slave via RS485 port.
The program of master can be made as follows:
I1of master is used to control the communication .If I1 is high and the communication is established
successfully, one alarm message (text message block) will be displayed on LCD. Then the Q1 of slave
No.1 will be controlled by I2 of master. If I2 is high, Q1 of slave No.1 would be ON and if I2 is low, Q1 of
slave would be OFF.
Note: The Q1 must be free, it means the in the program of Slave No.1, the input pin of Q1 must be not
linked to other blocks.
153
The above configuration is to force Q1, Q2, Q3 of Slave No.1 ON. " " means pre-set the BIT 1
and " " means pre-set the BIT 0 ”Coil 0” is corresponding to the start address ,Here is Q1.
Note: The manual input value is Hex data .it contains 4 bytes. If you want to write a decimal value to the
register of SLAVE, please convert it to Hex format.
154
For the detail information about I, AI, Q, AQ, registers address of xLogic ,refer to the RTU protocol file.
Short description
This special function saves the process variable of an analog input to memory, and returns it at the
analog output.
Connection Description
Input S Save the Ax to memory and return it at the analog output with a
signal at input S (Set).
Input Ax Input the analog signal to be amplified at input Ax. Use the
analog inputs, the block number of a function with analog output,
or the analog outputs.
Input R Reset analog output AQ to 0 with a signal at input R (Reset).
analog Output AQ is reset if S and R are both set (reset has
priority over set).
Output AQ Analog output
Value range for AQ: -32768...+32767
Parameter Value range for Start value: -32768...+32767
Example
When I1 turn to HIGH, the value of AI2 will be saved to memory and return it to AQ1
as follows:
155
When the I3 turns to HIGH, the value of this function block will be reset to 0.
1.Start value, you can set a start value for the data latch relay block now.
2. The HEG value of the data latch relay can be modified by press OK key for 3 seconds in text message
block.
The HEG value of data latch relay block also can be displayed with decimal point now.
156
There is Modbus address for the HEG, so you can also can change the HEG value by Master(Touch screen
etc.). You can found the address in the modbus RTU protocol(Memory map) file.
Note: If your firmware of CPU cannot support such function, you can download the firmware
update package from our website.
5.5.35 PI controller
Short Description
It is proportional-action and integral-action controllers. You can use both types of controller individually
or combined.
Connection Description
Input R Use the input R to reset the output AQ. As long as this input
is set, the input A/M is disabled. The output AQ is set to 0.
157
A: Gain
Value range: +- 10.00
B: Offset
Value range: +- 10,000
SP: Set-value assignment
value range: -10,000 to +20,000
Mq: Value from AQ with manual mode.
Value range: 0 to 1,000
Parameter sets: application-related presets for KC, TI
and Dir (see below)
KC: Gain
value range: 00.00 to 99.99
TI: Integral time
value range 00:01 min to 99:59 min
Dir: Action direction of the controller
value range: + or -
p: Number of decimal places
value range: 0, 1, 2, 3
158
1. A disturbance causes the PV to drop, as Dir is positioned upwards, AQ increases until PV corresponds
again to SP.
Dir is coordinated to the basic conduct of a control loop. The direction (dir) cannot be changed
during the term of the function. The change in Dir here is shown for the purposes of clarification.
3. As AQ is set to 0 by means of the input R, PV changes. This is based on the fact that PV increases,
which on account of Dir = upwards causes AQ to drop.
Description of Function
If the input A/M is set to 0, then the special function issues output AQ with the value that you set with
parameter Mq.
If the input A/M is set to 1, then automatic mode commences. As an integral sum the value Mq is adopted,
the controller function begins the calculations in accordance with the formulas given in Control and
regulate basics. The updated value PV is used to calculate in the formulas.
If the updated value PV = SP, then the special function does not change the value
of AQ.
159
If the updated value PV > SP, then the special function reduces the value of AQ.
If the updated value PV < SP, then the special function increases the value of
AQ.
If the updated value PV > SP, then the special function increases the value of
AQ.
If the updated value PV < SP, then the special function reduces the value of AQ.
If the input R is set to 1, then the AQ output is reset. As long as R is set, the input A/M
is disabled.
Sampling Time
Parameter sets
In order to simplify the use of the PI controller, the parameters for KC, TI and Dir are
already given as sets for the following applications:
160
Characteristics when configuring
Observe the Control and regulate basics.
Control and regulate
In engineering, quantities can be both controlled and regulated.
When controlling, a quantity is manipulated without being able to compensate for outside influences.
When regulating, a quantity is maintained at a specific value in order to compensate for outside
influences.
In the following example, controlling means that the person can set the heat output at a fixed value. The
heater cannot compensate for the drop in room temperature when a window is opened.
In the example below, regulating means that the person can increase the heat output if the room
temperature drops to below 20 °C. If the room temperature rises above 20 °C, the heat output is
reduced.
161
The control device is formed from the actuator and the control.
The control and controller together form the regulating device.
The following picture gives an abstract portrayal of the situation described above.
The comparing element uses the sensor to compare the command variable with the process value. If the
command variables and process value deviate from one another, this results in a positive or negative loop
error that in turn changes the process value.
Control loop
The process value x influences the manipulated variable M by means of the regulating device. This
creates a closed circuit that is also known as a control loop.
If, in the example above, the window is opened, the temperature in the room drops. The person must
increase the heat output of the heater. If the heat output is increased too much, it will get too hot. The
person must then reduce the heat output.
If the heat output is increased or reduced too quickly, then the control loop starts to sway. The room
temperature fluctuates. It is either too hot or too cold. To prevent this, the person must carefully and
slowly reduce or increase the heat output.
Loop error
The loop error is the difference between the command variable and the process value. In other words:
the deviation of a process value from a set value.
162
e = SP – PV
The loop error e brings about a change to the manipulated variable M.
The example above illustrates this very well: if, with a desired temperature of 20 °C (= command value
w), the room temperature is 22 °C (= process value PV), this results in the loop error:
e = SP – PV = 20 °C - 22 °C = -2 °C
In this case, the negative sign indicates a reversing action: the heat output is reduced.
In a control loop's state of equilibrium, the loop error is zero or very small. If the command variable
changes or there is a disturbance, a loop error arises. The loop error is corrected by means of the
manipulated variable M.
Controller basics
The comparing element and the controller function describe the conduct of the controller.
The following describes the most important types of controller. A controller's step response tells us a lot
about its conduct. The step response describes how a controller reacts to the erratic change in the
process value.
There are 3 important basic types of controller:
Proportional-action controller (P controller)
Integral-action controller (I controller)
Differential-action controller (D controller – we're not touching on this here)
These are combined for a real controller. For instance, the PI controller:
P Controller
A proportional-action controller (P controller) changes the manipulated variable M proportional to the
loop error. The P controller works immediately. By itself it cannot drive the loop error to zero.
163
Summary
The P controller has the following characteristics:
It cannot correct faults with the control process > lasting loop error.
It reacts immediately to a change in the process value.
It is stable.
I Controller
An integral-action controller (I controller) changes the manipulated variable M proportional to the loop
error and to the time. The I controller works by delayed action. It completely remedies a loop error.
In order to calculate the value of the manipulated variable at a period of time n, the time up until this
period of time must be divided into small time slices. The loop errors at the end of each time slice must
be added up (integrated) and they are then entered in the calculation.
: Manipulated variable of the I controller at the time n-1; also called integral sum
: Integral time: by means of this time, the influence of the integral part is controlled on the
The following picture shows a jump in process value and step response of the controller:
164
Summary
The PI controller has the following characteristics:
It sets the process value exactly to the command variable.
By so doing, it tends to oscillate and is unstable.
It requires more time to carry out the control action than the P controller .
PI controller
A PI controller reduces the loop error immediately and will eventually drive the loop error to zero.
: Manipulated variable of the I controller at the time n-1; also called integral
sum
: Integral time; by means of this time the influence of the integral part is
165
: Loop error at the time n
The following picture shows a jump in process value and step response of the controller:
Summary
The PI controller has the following characteristics:
The P controller components quickly intercept an occurring loop error.
The I controller components can then remedy the remaining loop error.
The controller components supplement each other so that the PI controller works quickly and precisely.
If KC <> 0: kP = kI = KC
TI Integral time Parameter TI, if you set this 00:01 min to 99.59 min
parameter to 99:59 min, then you
switch off the I part of the controller.
166
en Refer to SP and PV "
167
5.5.36 Memory write
Short Description
Only when there is a low to high trigger at Trg pin, the Memory Write block will be activated and the
pre-configured record action will be performed, at the same time the output will switch on if the record
action had been done successfully.
Connection Description
Trg input Only when there is a low to high trigger at Trg pin, the Memory
write Read block will be activated and the pre-configured record
action will be performed. Each trigger, only write once.
Input R Reset the Memory Write block and set the output to 0 via the R
(Reset) input. Reset has priority over Trg
Output Q Q switches on only after Write function had been executed
correctly.
1. File name
Place where you can set the name of the file used to save the registers’ data
168
2. Record title
Below is an example in the “OUTPUT.TXT”
The above range circled in red is just pre-set contents in the “Record title” of the Memory write block’s
property dialog box.
pre-set in the “file name” in the Mini SD card inserted in ELC-MEMORY If such
box has been ticked ,the file content will show the time when the data starts to be recorded.
4. Separator
Such separator shall be required while more than one analog values would be stored and displayed for
easier observation and convenient analysis.
5. File Size
It is an option for you to set the size of file to be stored.
6. After memory Full
Two options can be selected after memory is full (it means the relative file has reached its pre-configured
size), one is to over-write and the other is to stop recording.
7. Register params:
This section is for register’s parameters setting. The register includes following sorts:
A. I digital inputs
Name Address:
I1-I8 0….7
I11-I14 8---15
I21-I24 16…23
….. ……
B. Q digital outputs
169
Name Address:
Q1-Q4 0….7
Q11-Q14 8---15
Q21-Q24 16…23
….. ……
C. F digital flag
Name Address:
F1-F64 0….63
D. M
Name Address:
M1-M512 0….511
Name Address:
AI1-AI8 0….7
AI11-AI14 8---15
AI21-AI24 16…23
….. ……
F. AQ analog outputs
170
Name Address:
AQ1-AQ2 0….1
AQ11-AQ12 2---3
AQ21-AQ22 4…5
….. ……
Name Address:
AF1-AF256 0….255
I. AM
Name Address:
AM1-AM512 0….511
EXAMPLE:
171
Please refer the property dialog box of B003, it can record the output status .The start address is from 0
and it must record the 20 outputs with continuous addresses.
Per program, every 6 seconds the record will do once, and the Q1, Q2, Q3, Q4, Q11 will be all “ON”. You
can see the record file and you’ll see the recording time and the status of the output.
Notes: 1.The ELC-MEMORY only can be inserted into the RS232 port ( programming port) of ELC series
CPU.
2.If this function block is working ,the RS232 port ( programming port) will be occupied ,some data will
be being transferred , if you want to use the programming port for some purposes (for example download
or upload program) , you must make sure the Trg pin of this block keeps at Low status or stop the CPU
by panel key.
Short Description
Only when there is a low to high trigger at Trg pin, the Memory Read block will be activated once and
xLogic CPU will read correlative data (bit or short) to set pre-configured register from the file in the SD
card of ELC-MEMORY module, at the same time the output will switch on if the read action had been done
successfully.
172
Connection Description
Trg input Only when there is a low to high trigger at Trg pin, the Memory
Read block will be activated and xLogic CPU will read some data (bit
or short) to set pre-configured register from the file in the SD card
of ELC-MEMORY module. Each trigger, only write once.
Input R Reset the Memory Read block and set the output to 0 via the R
(Reset) input.
Reset has priority over Trg
Output Q Q switches on only after the Read function had been executed
correctly, provided.
1. File name
The name of the file which you want to access is stored in the mini-SD card of the ELC-MEMORY module.
2. Record Title
Below is an example in the “OUTPUT.TXT”
3. Data Type:
Two options available: Option A. BIT (0 or 1, this is used to be set the status of Q or F )
Option B . WORD (this is used to be set the value of AQ or AF)
4. Record Index:
Here is used to set which line the CPU will access via this Memory Read block
173
3. Register Params
Here is to set the parameters of register, all these registers have “write” property.
BIT data can be used to set the register “Q” and “F”.
Q: digital outputs
Name Address:
Q1-Q4 0….7
Q11-Q14 8---15
Q21-Q24 16…23
….. ……
F: digital flag
Name Address:
F1-F64 0….63
WORD data can be used to set the register “AQ” and “AF”
AQ analog outputs
Name Address:
AQ1-AQ2 0….1
AQ11-AQ12 2---3
AQ21-AQ22 4…5
….. ……
AF analog flags
Name Address:
AF1-AF64 0….63
Count
Here is to set how many register you want to set once.
174
For example
If the Memory Read block had been triggered, the Q1 of ELC-12 CPU will be set “1”.
, .
Short description
This special function is used to transfer the word type data (AI, AF or AQ) to 16 bit status (0 or 1)(F or Q)
175
Connection Description
Example1:
Example2:
176
Convert the counter value (5) to Q1,Q2 and F1--F14(0000000000000101)
Short description
This special function is used to transfer the 16-Bit status(0 or 1)(F or Q) to word type data (AF or AQ).
Connection Description
For example
Transfer the F1--F3 and Q1 status to the AQ001. F1 is saved in Bit0, F2 is saved in Bit1,F3 is saved in
Bit2,Q1 is saved in Bit3.
F1 F2 F3 Q1 AQ1 value
0 0 0 0 0
1 0 0 0 1
0 1 0 0 2
1 1 0 0 3
0 0 1 0 4
177
1 0 1 0 5
0 1 1 0 6
1 1 1 0 7
0 0 0 1 8
1 0 0 1 9
0 1 0 1 10
1 1 0 1 11
0 0 1 1 12
1 0 1 1 13
0 1 1 1 14
1 1 1 1 15
Notes:
1.The Bit4--Bit15 was not ticked, they are all recognized as 0.
2. With such block you can realize to modify one bit of the word register in the slave devices together
with the code 06/16 in Modbus network.
5.5.40 Stopwatch
Short description
The stopwatch records the time elapsed since it was enabled.
Connection Description
Input En En (Enable) is the monitoring input. xLogic sets the current elapsed time to 0 and begins
counting elapsed time when En transitions from 0 to 1. When En transitions from 1 to 0,
the elapsed time is frozen.
Input Lap A positive edge (0 to 1 transition) at input Lap pauses the stopwatch, and sets output to lap time.
A negative edge (1 to 0 transition) at input Lap resumes the stopwatch, and set the output to
current elapsed time..
Input R A signal at input R (Reset) clears the current elapsed time and lap time.
Parameter Time base for elapsed time, which you can set to hours, minutes, seconds, or 1/100ths of seconds.
Output AQ The output AQ outputs value of the current elapsed time when it is a negative edge (1 to 0 transition)
at the input Lap, and outputs value of the Lap time when it is a positive edge (0 to 1 transition)
at the input Lap.
A positive edge (0 to 1 transition) resets the value at output AQ to 0.
178
The time base for the elapsed time can be in hours, minutes, seconds, or 1/100ths of seconds (units of
10 milliseconds). The smallest time base, and therefore the resolution, is 10 milliseconds, or 1/100ths of
seconds.
Timing diagram
179
When R = 1, both the current time and the Lap time are reset.
Short Description
Connection Description
Input Ax Analog Inputs
Analog Outputs
Analog Flags
The block number of a function with analog output
Parameter Sn (Number of samples): determines how many analog values are sampled
within the program cycles that are determined by the set number of
samples. xLogic samples an analog value within every program cycle. The
number of program cycles is equal to the set number of samples.
Possible settings:
8, 16, 32, 64, 128, 256
Output AQ AQ outputs an average value of the analog input Ax over the current
number of samples, and it is set or reset depending on the analog input and
the number of samples.
* Analog inputs: 0 to 10 V corresponds with 0 to 1000 (internal value).
Parameter
You can set the number of samples to the following values:
180
After you set the parameter, the analog filter calculates the average value of the samples and assigns this
value to AQ.
Timing diagram
Description of function
The function outputs the average value after sampling the analog input signal according to the set
number of samples. This SFB can reduce the error of analog input signal.
Note
There are a maximum of eight analog filter function blocks available for use in the circuit program in
xLogicsoft.
5.5.42 Max/Min
Connection Description
Input En The function of input En (Enable) depends on the settings of parameter Mode
and the selection of check box "when En = 0, reset Max/Min".
Input S1 This input is enabled when you set Mode =2:
A positive transition (0 to 1) at input S1 sets the output AQ to the maximum
value..
A negative transition (1 to 0) at input S1 sets the output AQ to the minimum
value.
Input Ax Input Ax is one of the following analog signals:
Analog Inputs
Analog Outputs
Analog flags
Block number of a function with analog output
Mode
Parameter Possible settings: 0, 1, 2, 3
181
Mode = 0: AQ = Min
Mode = 1: AQ = Max
Mode = 2 and S1= 0 (low): AQ = Min
Mode = 2 and S1= 1 (high): AQ = Max
Mode = 3 or a block value is referenced: AQ = Ax
Output AQ AQ outputs a minimum, maximum, or actual value depending on the inputs, or
is reset to 0 if configured to do so when function is disabled
Analog inputs: 0 to 10 V corresponds with 0 to 1000 (internal value).
Parameter Mode
You can set the values for parameter Mode based on the actual values of another already-programmed
function:
Analog comparator: Ax - Ay
Analog threshold trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
Up/Down counter: Cnt
Threshold trigger: Fre
Max/Min: Ax
PI controller: AQ
Analog filter : AQ
Average value : AQ
You can select the required function by the block number.
Timing diagram
182
If you select the check box "when En = 0, reset Max/Min":
En = 0: The function sets the AQ value to 0.
En = 1: The function outputs a value at AQ, depending on the settings of Mode and S1.
If you do not select the check box "when En = 0, reset Max/Min":
En = 0: The function holds the value of AQ at the current value.
En = 1: The function outputs a value at AQ, depending on the settings of Mode and S1.
Mode = 0: The function sets AQ to the minimum value
Mode = 1: The function sets AQ to the maximum value
Mode = 2 and S1 = 0: The function sets AQ to the minimum value
Mode = 2 and S1 = 1: The function sets AQ to the maximum value
Mode = 3 or a block value is referenced: The function outputs actual analog input value.
In the dialog box of Max/Min block, there is a upper/lower limit setting, when the block output the AQ
value is less than the lower value, the AQ shall be equal to the Lower value; While the block output the
183
AQ value is more than the upper value, the AQ shall be equal to the upper value.
If someone wants to use the upper/lower limitation for other function blocks. such upper/lower limit
function can be used, then this block can be referenced as other blocks parameters when programming.
Here is an example:
Someone wants to use the panel key to change the on-delay parameters for 1s—10s in the text message
block, if the value which user set exceeds such range, then it will crush the machine, hence we must add
the upper/lower limitation in the program to avoid such trouble.
Short description
The average value function samples the analog input signal during configured time period and outputs
the average value at AQ.
Connection Description
Input En A positive edge (0 to 1 transition) at input En (Enable) sets the output AQ to the
average value of input Ax after the configured time. A negative edge (1 to 0
transition) holds the output at its last calculated value.
Input R A positive edge (0 to 1 transition) at input R (Reset) resets the output AQ to 0.
Input Ax Input Ax is one of the following analog signals:
Analog Inputs
Analog Outputs
Analog Flags
The block number of a function with analog output
Parameter St (Sampling time): You can set it to Seconds, Days, Hours or Minutes.
Range of values:
If St = Seconds: 1 to 59
If St = Days: 1 to 365
If St = Hours: 1 to 23
If St = Minutes: 1 to 59
Sn (Number of samples):
Range of values:
If St = Seconds: 1 to St*100
If St = Days: 1 to 32767
If St = Hours: 1 to 32767
If St = Minutes and St ≤ 5 minutes: 1 to St*6000
If St = Minutes and St ≥ 6 minutes: 1 to 32767
184
Output AQ
Timing diagram
When En = 1, the average value function calculates the average value of the samples during the
configured time interval. At the end of the sampling time, this function sets output AQ to this calculated
average value.
When En = 0, the calculation stops, and AQ retains the last calculated value. When R = 0, AQ is reset to
0.
Short description
This function block is used to reset the device (Ethernet modem or WIFI modem built-in) in the CPU, if
there is a trigger at the Trg pin. It merely can be applied to the CPU with Ethernet module or Wifi module
built-in.
185
ELC-12AC-R-N
ELC-22DC-DA-R-N
ELC-22AC-R-N
Connection Description
Trg If there is a trigger at the Trg pin, then the Ethernet modem will be
reset , The modem will be startup again until the time "Reset period"
reached.
Output When the Ethernet module had been reset successfully, this block will
output a short trigger.
Here are two examples with detailed description on how to use these blocks in the program.
Example 1
Just as below program shows, after the CPU running, we can push down the digital input1(just need a
short trigger to reset the Ethernet modem), after the Reset period(here is 5s) is reached, the Ethernet
modem will start up and this block will output a short trigger at the same time.
Example2
We also can use such “device reset” block along with the “Com status” function block together in the
program, when there is no data transmission through the Ethernet port while the timeout period(50s) is
reached, the com port status will output HI signal ,and then the Device reset block would be enabled and
the Ethernet module will be reset for the Reset period in the device reset block property dialog box.
186
5.5.45 Comport Status
Short description
This function block is used to monitor the communication status of the RS232 (programming port),
RS485 port, Ethernet/WIFI port.
With the text message block, we can insert the com port status from such function block for displaying on
the LCD.
Connection Description
En Enable the function block if a HI level at En input pin and if a trigger from HI to
LOW, the function would be disabled.
Output When a HI level at the En pin and the timeout is reached the output will be HI,
and it will be reset when the En is switched.
187
Parameters
Channel
RS232: This channel is the programming port, it can be used to monitor or display the communication
status of the below accessories:
ELC-RS232 cable
ELC-USB cable
PRO-RS485 cable
ELC-MEMORY
ELC-Copier
RS485: This channel is the RS485 port, it can be used to monitor or display the communication status of
the below accessories:
For Standard ELC-12 Series
ELC12-E-RS485
For ELC-12DC-DA-R-N-HMI CPU
EXM-E-RS485
For ELC-18/22/26 Series CPUs
ELC-RS485
Ethernet: This channel is the Ethernet port, it can be used to monitor or display the communication
status of the LAN port built-in in the CPU:
Timeout 1—100s
Monitor type
Tx : Data from CPU to external devices.
Rx: Data from external device to CPU
Tx+Rx: Data transmission between external device and CPU.
188
In order to monitor the communication status of the RS232, RS485 and Ethernet port, we can enable
such function block, when the timeout period exceeds, such block shall output a high level trigger.
How to insert the com port status to the text message for displaying?
Put the “com port status” into program.
189
So, you can view the communication status on the LCD, even if there are no indicators on the
ELC-RS232/ELC-USB/PRO-RS485.
If there is data transmission, the status of the com port on the LCD will be flashing.
Short description
The astronomical clock SFB is used to set an output high between sunrise and sunset based on the local
time at the geographical location of the xLogic devices. The output status of this function block also
depends on the configuration of summer time/wintertime conversion.
Connection Description
Parameter
The location info including longitude, latitude and time zone.
Output Q
Q is set to hi when sunrise time is reached. It holds this state until sunset time is reached.
Parameters
190
In the astronomical clock dialog, you can select the location of the xLogic device. You can select one of
following pre-defined time zone locations:
Beijing
Berlin
London
Rome
Moscow
Tokyo
Washington
Ankara
Madrid
Amsterdam
If you select one of these locations, xLogicsoft uses the latitude, longitude, and time zone of your
selection.
Alternatively, you can configure a specific latitude, longitude, and time zone for your location, and
provide a name for this custom location.
Based on the location and time zone, xLogic calculates the absolute sunrise and sunset time for the
current day. The block also takes summer time/winter time into consideration, if it is configured on the
computer where xLogicsoft is installed. To do such configuration, you should select check box of
"Automatically adjust clock for daylight for saving changes" in the "Date and Time Properties" dialog.
Timing diagram
191
Description of function
The function calculates the value at the input and sets or resets Q depending on the sunrise time and
sunset time at the configured location and time zone of the module.
Short description
The cam programmer function Cam Control is used to control a set of 8 built-in cam wheels.
On its 8 outputs (representing the 8 wheels), the function provides the state corresponding to the current
position of the shaft wheels.The cam configuration can be set for each position, output state is
adjustable.Once the maximum value has been reached, the cam restarts from its initial position (output
returns to 0).
Connection Description
Input Forward MOVE FORWARD is the input which is used to control cam progress; it
moves one step forward at each rising edge (digital status is changed
from 0 to 1).
Input Reverse MOVE BACKWARD is the input which is used to control backward cam
movement; it moves one step backward at each rising edge (digital
status is changed from 0 to 1).
Input Reset RESET (initialization): When this input is active, the cam is replaced to
its initial position: the POSITION output will be forced to 0.
Output Output1.. The status of the 8 outputs is corresponding to the current position of
............ the shaft (representing the 8 wheels).
............
Output8
Position analog output corresponding to the current cam position (0 to 49).
Parameters From the property dialog box, you may adjust:
The number of program steps: Its value is between 1 and 50,
Output status [1..8]: for each position of the shaft.
192
The following figure shows an example of a part of parameters window:
Notes:
1.The FORWARD input takes priority over the BACKWARD input.
2.If the FORWARD and REVERSE inputs are not connected, they are set to inactive.
When selected, the "Retentivity" enables the current value of the timer to be retrieved following a power
failure.
Short description
This function block is used to describe operation of a cam timer based on the angle made by the cams
as the analog input. The number of steps can be selected and each step corresponds 2
configurable outputs.
Connection Description
Input Enables the function. If this input is not activated, the function remains inactive.
VALIDATION: Activated implicitly if it has not been connected.
Input ANGLE: Timer command input (from 0° to 359°). The outputs vary according to this value
193
and the OUTPUT STATE parameter.
Output OUTPUT 1: Output 1 is related to the value in the OUTPUT 1 column in the OUTPUT STATE
table. If the value of the angle in the ANGLE input is higher or the same as a value
N in the ANGLE column in the OUTPUT STATE table and less than the value N+1 in
the table, the value of the corresponding OUTPUT 1 column is copied to OUTPUT 1
(1 => output at ON, 0 => output at OFF).
Output OUTPUT 2: Output 2 is related to the value in the OUTPUT 2 column in the OUTPUT STATE
table. If the value of the angle in the ANGLE input is higher or the same as a value
N in the ANGLE column in the OUTPUT STATE table and less than the value N+1 in
the table, the value of the corresponding OUTPUT 2 column is copied to OUTPUT 2
(1 => output at ON, 0 => output at OFF).
Short description
The ON duration of the outputs is set to equal values by applying the following technique:
As the number of ON inputs increases, the outputs changing to ON are those following the order of the
PILOT OUTPUT NUMBER: 1 for OUTPUT 1, 2 for OUTPUT 2, 3 for OUTPUT 3 and 4 for OUTPUT 4. For
example, if the "outputs controlled" parameter has the value 4, if PILOT OUTPUT NUMBER has the value
3 and just one input is set to ON, only the OUTPUT 3 output will be set to ON. As soon as two inputs
change to ON, the OUTPUT 3 output remains at ON and the OUTPUT 4 output changes to ON. As soon as
a third input changes to ON, the OUTPUT 3 and OUTPUT 4 outputs remain ON and OUTPUT 1 changes to
ON.
As soon as the number of outputs decreases, the outputs changing to OFF will be those which have been
in the ON state the longest. As soon as one output changes to OFF, PILOT OUTPUT NUMBER takes the
value of the output number after the output(s) which has (have) just been set to OFF. To complete the
194
above example, as soon as one input changes to OFF, the OUTPUT 3 output changes to OFF and PILOT OUTPUT
NUMBER displays the integer value 4.
The Parameters tab in the property box contains the number of outputs which may change to ON
depending on the number of inputs which are set to ON. The values of this parameter are fixed at 2, 3 or
4.
If the value of the parameter is fixed at 2, only the OUTPUT 1 and OUTPUT 2 outputs are used and may
therefore change to ON. In this case, if more than two inputs change to ON, the OUTPUT 1 and OUTPUT
2 outputs remain at ON and the OUTPUT 3 and OUTPUT 4 outputs remain fixed at OFF.
If the value of the parameter is fixed at 3, only the OUTPUT 1, OUTPUT 2 and OUTPUT 3 outputs are used
and may therefore change to ON. . In this case, if four inputs change to ON, the OUTPUT 1, OUTPUT 2 and
OUTPUT 3 outputs remain at ON and OUTPUT 4 remains fixed at OFF.
If the value of the parameter is fixed at 4, only the OUTPUT 1, OUTPUT 2, OUTPUT 3 and OUTPUT 4
outputs are used and may therefore change to ON.
All inputs which are not connected have the value OFF.
The Parameters tab contains the default check box which re-initializes PILOT OUTPUT NUMBER to 1 (and
defines the first output activated when the first input changes to 1) after a controller power failure.
Example of use:
Filling a tank with a group of four pumps operating in parallel. The operating duration of each pump is the
same.
195
On initialization, PILOT OUTPUT NUMBER has the value 1. On initialization, if the tank is in the state
indicated and if a sensor above the water is in the ON state, when the user program is executed, the
INPUT 1 and INPUT 2 inputs are ON, INPUT 3 and INPUT 4 are OFF and OUTPUT 2 and OUTPUT3 are ON.
Assuming that the tank is full, INPUT 2 changes to OFF and OUTPUT 1 changes to OFF. PILOT OUTPUT
NUMBER indicates the value 2.
Assuming that the tank is empty, INPUT 2 changes back to ON, OUTPUT 3 changes to ON and OUTPUT 2
remains ON.
Assuming that the tank refills, INPUT 2 changes back to OFF, OUTPUT 2 changes to OFF and PILOT
OUTPUT NUMBER indicates the value 3.
Assuming that the tank continues to refill, INPUT 1 changes to OFF, OUTPUT 3 changes to OFF and PILOT
OUTPUT NUMBER indicates the value 4.
5.5.50 Defrost
short Description
The defrost output changes to ON when the input temperature is less than the minimum temperature for
a time T (T being the cumulative duration of passages below the minimum temperature). If the
temperature rises to higher than the maximum temperature during the defrost cycle, the defrost output
reverts to OFF even if it has not finished. This output can be triggered and stopped by means of the
corresponding inputs.
Connection Description
Input function validation input. The function remains inactive for as long as this input is not
VALIDATION activated. VALIDATION is implicitly active if it is not connected.
Input Sets the defrost output to ON if the temperature is less than the maximum
MANUAL temperature.
DEFROST ON
Input
MANUAL Sets the defrost output to OFF (Priority stop).
DEFROST OFF
Output The defrost output is at ON when the CUMULATIVE OPERATING TIME has elapsed.
DEFROST
196
Output Measured duration, in minutes, when the temperature is less than the minimum
CUMULATIVE temperature or duration of the current defrost cycle.
TIME:
Parameters CUMULATIVE OPERATING TIME: Time T, in minutes, at the end of which the function
triggers defrosting (1 to 32767).
DEFROST CYCLE: Duration of defrosting in minutes (1 to 32767).
MAXIMUM TEMPERATURE: Temperature in °C above which defrosting is stopped
(10°C ... 20°C).
MINIMUM TEMPERATURE: Temperature in °C below which the time T is measured
(-10°C ... 0°C).
Short Description
The COMPARE function is used to compare two analog values.
197
Connection Description
Function If the VALUE 1 or VALUE 2 input is not connected, the value is set to 0.
The function provides a discrete-type OUTPUT.
The output is active if the result of the comparison between VALUE 1 and
VALUE 2 is true and if the ENABLE FUNCTION input is active or not connected.
The output does not change state if the ENABLE FUNCTION input changes from
Active to Inactive state.
Parameters The comparison operators that can be chosen from the Parameters window
are:
Symbol Description
Greater than.
Equal to.
Different.
Less than or equal to
Less than
5.5.52 Multicompare
Short Description:
This function is used to activate the output corresponding to the value present on the "Value" input.
Connection Description
Input Function validation input. Until this input is activated, the function remains
VALIDATION inert. Validation is active implicitly if it has not been connected.
198
VALUE N + 2: Output ON if Value = Value N + 2.
VALUE N + 3: Output ON if Value = Value N + 3.
VALUE N + 4: Output ON if Value = Value N + 4.
VALUE N + 5: Output ON if Value = Value N + 5.
VALUE N + 6: Output ON if Value = Value N + 6.
VALUE N + 7: Output ON if Value = Value N + 7.
Operation:
The comparison value (Value N) can be configured. It must be between 0 and 32760.
Short Description
The COMP IN ZONE comparison function is used to compare one value between two set points (the MIN
and MAX values of the zone).
Connection Description
Input ENABLE a discrete ENABLE FUNCTION input; this input is Active if it is not connected.
Input VALUE TO The value is used to be compared with the min and max value, whose type is
COMPARE Integer.
OUTPUT The OUTPUT indicates the result of the comparison when the ENABLE FUNCTION
input is active.
The OUTPUT does not change state when the ENABLE FUNCTION input is inactive.
Parameters From the Parameters window, you can select the state of the output according to
the result of the comparison:
ON in the zone: the output will be active if the input value is between the two
setpoints (MIN and MAX),
OFF in the zone: the output will be inactive if the input value is between the two
199
setpoints (MIN and MAX).
Comparison Function
The diagram below shows the different states the output can take, depending on the input value to
compare and the enable input:
Short Description
When the "En" is high, The DEC/BIN function breaks down an integer (16-bit) type input into 16 bit-type
outputs.
Illustration:
Inputs/Outputs
This function supports 1 integer type 16-bit input:
This function supports 16 discrete outputs: BIT01 (least significant byte) ... BIT16 (most significant
byte).
200
5.5.55 Conversion bits Word
Short Description
When the "En" is high, the BIN/DEC function produces a 16-bit integer-type output from 16 inputs of the
following type: Bit
Inputs/Outputs
This function supports 16 discrete inputs: BIT01 (least significant byte) ... BIT16 (most significant byte).
This function supports one 16-bit integer-type output.
5.5.56 Demultiplexer
This function demultiplexer integers. It is used to route the input value onto one of the 4 OUTPUTS on
each rising edge of the VALIDATION input.
A VALUE copied to an output does not revert to 0 when a VALUE is written to another ADDRESS.
The BASE ADDRESS parameter allows several blocks to be used at the same time to multiply outputs.
The Parameters tab contains:
BASE ADDRESS: Contains the address of the ADDRESS 1 output.
Retentivity: Chooses whether or not the function is reinitialised if the controller power supply is
disconnected.
When they are not connected, the ADDRESS and VALUE inputs are set to zero.
Example:
When the BASE ADDRESS parameter contains the value 0 these outputs have addresses 0, 1, 2, 3
respectively, and in this case if the ADDRESS input equals 2 the VALUE will be copied to the third output.
If a second block is being used, 8 outputs can be demultiplexed by putting the value 4 as the BASE
ADDRESS in the second block and connecting the VALIDATION and ADDRESS inputs to the same source.
201
5.5.57 Multiplexing
Short Description
The MUX function carries out two input channel multiplexing on the OUTPUT.
Connection Description
Input this input is used to choose the input channel to apply to the output.
SELECTION
202
5.5.58 Multiplexer
Short Description
This function multiplexes the WORD inputs. It is used to route the value of one of the inputs selected by
the ADDRESS input to the output. The input is routed to the output on each rising edge of the
VALIDATION input.
The BASE ADDRESS parameter allows several blocks to be used at the same time to multiply inputs.
The Parameters tab contains:
BASE ADDRESS(corresponding to Input 1): Contains the address of the INPUT 1 input.
Retentivity: Chooses whether or not the function is reinitialized if the controller power supply is
disconnected.
When they are not connected, the digital input is in the OFF state and the WORD inputs contain 0.
Example:
When the BASE ADDRESS parameter contains the value 0 these inputs have addresses 0, 1, 2, 3
respectively, and in this case if the ADDRESS input equals 2 the VALUE of the third input will be copied to
the output.
If a second block is being used, 8 inputs can be demultiplexed by putting the value 4 as the BASE
ADDRESS in the second block and connecting the VALIDATION and ADDRESS inputs to the same source.
203
Short Description:
This function is used to calculate the square root of the number present as an input with accuracy to two
decimal points.
Connection Description
Input Validation Function validation input. Until this input is activated, the function remains inert.
Validation is active implicitly if it has not been connected.
Output Calculation Calculation output: The result is presented in the format "Root" x 100.
output
Operation:
Example: for X = 20000 => Root of X = 141.42. The value read as an output of the function is 14142.
If used as an input, the number is negative and the result is 0.
Performance:
The calculation is accurate to 0.01 either way.
Short Description
This function is used to calculate the cos and sin of an angle between 0° and 90°.
Connection Description
Input Validation Function validation input. Until this input is activated, the function remains
inert. Validation is active implicitly if it has not been connected.
Input Angle Represents the angle in degrees. Its value must be between 0 and 900 for
an angle between 0° and 90°.
Performance:
The function calculates the cos and the sin to the nearest 0.0001 by rounding up or down as appropriate.
204
Sin (63°8) = 0.8973 and Cos (63°8) = 0.4415
Short Description
This function is used to calculate the absolute humidity.
Connection Description
Input T Temperature
Output RH Humidity
Calculate rule:
205
5.6 xLogicsoft
xLogicSoft
xLogicsoft runs under Windows 95/98,
Windows NT 4.0, Windows Me®, Windows 2000®, Windows XP®,windows Vista xLogicsoft is capable of
client/server operation and offers you a high degree of freedom for creating your circuit program.
xLogicSoft: xLogicV3.1.6.2
This is the current version of xLogicsoft. You will find all the functions and the functionality of the devices
described in this manual in the version 3.1.6.2 and later.
Note
If a full version is not installed, you can carry out an upgrade as follows:
Install the software from the CD.
When the system prompts you for the previous version, place the old xLogicsoft CD in CD drive.
Point your browser to the “...\Install” directory on the CD.
Installing xLogicsoft:
206
1. Double-click on Setup.exe or left-click the “INSTALL” menu directly.
4. Where is the program to be installed? If you do not want to accept the recommended file
location:
C:\Program Files\Rievtech\xLogicsoft, specify another directory using Browse.
207
5. If you want to accept the recommended file location, click Next to Confirm.
6. In this example, the program icon is to be placed on the desktop. Use Next to proceed.
208
7.Click Install button to install. Program is being installed. . . . .
209
8. The installation is finished. You can start the xLogicsoft immediately or later by
double-clicking the icon on the desktop.
210
You now see the complete user interface of xLogicsoft The programming interface for creating your
circuit programs occupies the greater part of the screen. The icons and logical links of the circuit program
are arranged on this programming interface.
To help you to maintain an overview of large circuit programs, the right side and the bottom of the
programming interface contains scroll bars, which you can use for vertical and horizontal scrolling of the
circuit program.
1. Menu bar
2. Standard Toolbar
3. Programming Toolbar
4. Reference material (Function block list)
5. Info box (Display memory Info, IO status and analog IO values under simulation/monitoring mode)
211
6. Status bar (Including current operation, current CPU model and the communication status)
7. Programming Interface
Notes: For the detailed operation, please refer to Chapter 10 and Chapter 11 of this part.
1. Edition function
The main function of xLogicsoft is programming for xLogic. By using the Logical
Function Edition window of xLogicsoft, you can create and edit your desired xLogic programs using
various function blocks of xLogic and can also perform file operations such as save, print, program
management etc.
2. Simulation operation function
After the program is edited, you can view the program operation result on the computer and conveniently
check if the said program meets your control requirements. Here xLogicsoft provides you with a
completely new off-line test function, through which you can debug the program without installing the
xLogic on site. With this function, many inconvenience of the site test can be avoided.
3. Real-time monitoring
xLogicsoft has a Real-Time Monitoring window. You can view the process of the control system and the
running conditions of all xLogic and control remote xLogic, by connecting the xLogic communication port
(RS232,USB, Ethernet optional) to the computer you can view the process of the control system.
4. Document
The program circuit can be saved and printed. The analog values also can be saved in one excel file .
212
5.8 Operation Instructions
When xLogicsoft is used to edit xLogic programs under customized mode, some basic operations
including files management, opening and closing of the Tool Bar and Status Bar access to Help
information are completed by using pull-down menu under File, Edit, Tools, SMS, View and Help. The
Instruction Function list of xLogicsoft is characterized by its flexibility and variation according to the main
selection.
It can be changed according to the current operation for convenience of your specific operations.
5.8.1.1 File
The instruction is mainly used for file management, including creation, opening, saving and printing of
files.
213
Property File property(page size &model select)
Exit Exit the xLogicsoft
5.8.1.2 Edit
※ Undo: Undo the previous step operation and support consecutive operations.
※ Redo: Recover the contents undone by the previous step of operation and support consecutive
operations.
※ Cut: Cut the contents in the area highlighted with the cursor.
※ Copy: Copy the contents highlighted with the cursor.
※ Paste: Paste the contents cut or copied.
※ Delete: Delete various graphic components.
※ Select All: Select all the contents in the current window editing box and setup the label.
※ Goto Apponited block: Goto the apponited block in the program interface.
※ Property: open the property box of the apponited block
※ Properties (all blocks): Open all the property boxes of the selected blocks.
※ Phonebook: Add/Delete phone number into phonebook Refer to the chapter 6.5.2 .
5.8.1.3 Tools
This instruction is mainly used for reading program from xLogic, writing program to xLogic, diagnosis the
communication situation of xLogic, program management and simulation and so on. The pull down menu
of Tools is shown as the following:
214
Fig. 10.3 Tools Menu
※ Configuration: Select and open the Com port.
※ Disconnect Line: Cancel the connection of PC and xLogic.
※ Transfer: Transfer the following data between PC and xLogic.
PC-> PLC: Download the program to xLogic
PLC->PC: Upload the program from xLogic.
Password set: Set Password protection to xLogic
Get PLC Version: Get the current xLogic hardware version
Set Clock: Set RTC for xLogic
Get Clock: Get RTC from xLogic
Get Communication Type: Get current communication type
Set Communication Type: Set communication type for current xLogic
Set PLC’s address: Set the current xLogic address
Get PLC’s address: Get the address of current xLogic
Get PLC’s scan time: Get the scan period of the xLogic for current program
Summer time/Winter time: Activate/disable the conversion of the summer/ winter time
Set Extended module: Activate/disable the expansion port of xLogic (Only applied to
Standard ELC-12 series CPU)
5.8.1.4 SMS
※ Set Modbus config : Change the MODBUS data format based on the device which will communicate
with xLogic.
215
5.8.1.5 View
This instruction is to display the status bar, workspace and the Information window and so on. The pull
down menu is shown as the following:
5.8.1.6 Help
216
5.8.2 Toolbar
The icons of the standard toolbar provide quick access to commands that are also available on the menu.
Standard
Toolbar
New Zoom In
The programming toolbar contains integral icons for creating, editing and testing programs. Each one of
these tools represents a programming mode, in which mouse operations have different effects.
Selection Tool
217
Text Tool
Cut/Join
Connector Tool
Basic functions
Special functions
Simulation
On-line test
Selection Tool
You can use the selection tool to select and move blocks, text and connecting lines. You can select objects
individually with a left-click; you can select multiple objects with [Ctrl]+Click, or you can use the mouse
as a "lasso" to surround objects with a rectangle and capture them as a selection.
You can call the selection tool in any other tool by pressing the [ESC] key or by clicking on the icon in the
programming toolbar.
Text Tool
This tool is used to insert or edit user-defined text objects in the programming interface. You can specify
the font type, font size and font color for each individual label.
Text figures can be set in Wrap Text format. You can adjust the size of a text figure typically by dragging
the rectangle handles.
Cut/Join
This tool is used to cut and join connections between blocks. To cut a connection, left-click to select the
relevant line while the Cut/Join tool is active. The connection is replaced at the blocks by a reference to
the partner block. The reference is labeled with the page number, block number and the I/O of the
partner block.
218
5.8.4 Simulation Tool and status window
An icon for the simulation of a power failure, for testing the switching response with reference
to retentivity characteristics after power failure.
Start simulation
Stop simulation
Time control
If you have programmed a time-sensitive circuit, you should use the time control to monitor the reaction
of your circuit program.
Set the period and the number of cycles using the following
icons.
Setting the period and the time base for a time limited
simulation or setting a specific number of cycles
219
Status display
Layout of inputs
The inputs are displayed in the form of key or switch icons. The name of the input is displayed below the
icon. An open input represents an inactive switch. When you click on the icon, it is indicated active and
the switch is shown in closed state.
The status of an output is indicated by a light or dark bulb icon. The name of the output in your circuit
program is displayed below this icon.
The output status only indicates the status as such. Here, you cannot switch an output by clicking on an
icon. When your circuit program switches an output, the indicator lamp is active; when the output is
switched off, the indicator lamp is also switched off.
220
Prerequisite: The display of signal states and process variables is enabled under Tools
Simulation.
The colored indication lets you identify the "1" or "0" status of a connecting line. Default color of
connecting lines carrying a "1" signal is red. Default color of connecting lines carrying a "0" signal is blue.
This chapter will tell you how to write logic function graph Program with xLogicsoft, how to simulate the
Program you write with xLogicsoft, how to communicate between PC and xLogic with xLogicsoft, how to
copy system document of xLogic with xLogicsoft, and how to complete the update of application and
system Program code. If you want to write a function graph Program, first of all, it’s necessary to start an
empty document, and then put the function block into editing box. First set the property of every function
block, then link every function block according to logic controlling relation, thereby complete the
protracting of a logic function graph. In addition, in order to help the users confirm if the function graph
accord with the prospective controlling result, xLogicsoft also provides most intuitionist function of
simulation. You can get the moving result of the program through simulation of the function graph.
Operation method:
To open a new file, click ‘New’ option of menu ‘File’, click once with left button of mouse. As shown in the
following fig.
221
Fig.7. 9.1 Open New Document
Notes: An option Window of outside-meet extended module will appear before a new document opened.
In the Page Layout tab, you can specify how and on how many pages to print your circuit program. You
can preview the pagination in this tab. If you choose more than one program page, the page breaks are
indicated by white lines on the programming interface.
The hardware type selection is also needed be done before programming. The available
elements are showing in the right area in the above figure.
222
Click the payout icon or double click the model displayed area on the right down of the interface,
the model selection dialog box also can pop out
Operation Method:
1. To open a document, click ‘Open’ option of menu ‘File’ once with left button of mouse ,or click
once in toolbar, shortcut key ‘Ctrl+O’ also can be used. As shown in Fig 11.3:
3. Click the file you want to open with left button of mouse, then click button “Open”. After
223
opening the document, you can modify or print the document.
While you set up a new document, you can write your control Program in the new program
interface. The method and process of placement is as follows:
The method of placing function block is as follows: choose function block needed from the
workspace left of the program interface.
Operation Procedure:
1. Choose corresponding function group. “Constant”, “Basic”, ”Special” list and various blocks
can be selected .Refer to the function block instruction chapter 5 for detail instruction of
function blocks
2. Click the block you needed with left button of the mouse
3. Move the mouse to the proper place in the program interface, click with left button of the
mouse, then complete the placement of a block.
4. According to above operation, put all modules in program interface.
E.g.: To complete all the function block of one certain system control, as Fig 7.10.1 shown, put
all function modules into the edit program interface.
After put all function block in edit box, it’s necessary to setup property of every function block.
This is the most important step to write function block Program.
Operation Method:
1. In the function block Program interface, click some block twice with left button of the mouse,
or pitch on a block and press right button of the mouse, then an edit menu appears, and then
click “Properties…” of this menu. As shown in Fig 11.6:
224
Fig 7.10.2 Block edit menu
2.You also can click the menu Edit-> Properties or Edit-> Properties(all blocks) to change the
settings of the block.
Property dialogue box, as shown in Fig 7.10.3, to setup each item of content according to what
you need, you also could click “Help” to observe the detail instruction.
Note: Different block has different property setup, especially the property of special function
block. Please read chapter 5, the explanation to refer the detailed setup.
After put all the blocks needed in protracting function graph, and set up properties as needed,
it’s necessary to set up link according to logic control relation and make it an integrated
function diagram.
Operation Method:
225
1. Pitch on shortcut key , when the mouse becomes the shape of a pen, it can be used to
link.
2. To do so, move the mouse pointer to a block input or output and press the left mouse button. Keep the
mouse button being pressed down and then drag the mouse pointer from your selected source terminal
to the target terminal. Now release the mouse button to anchor the connecting line to both terminals.
While the connecting line is being drawn, it is shown as a straight line between the first terminal and the
mouse pointer. Once it is anchored, it appears as a combination of horizontal and vertical lines, which can
be manipulated using the selection tool.
Fig. 7.10.4
xLogicsoft offers you a further option of connecting blocks when you right-click on the input or output of
a block. In the shortcut menu, click the Connect with block menu command. This calls a selection list
that contains all blocks available for your connection. Click on the relevant target block. xLogicsoft
Comfort then draws the connecting line. This method is especially useful for connecting a source to a
target block over a greater distance on the programming interface.
226
Fig. 7.10.5
When you put some needless block in program interface or link some default ones, you need to
delete them as follows:
1. Pitch on module or link to delete with mouse.
2. Press “Delete” in the keyboard, or click right button of the mouse, select option
“Delete” in the menu, then you can delete the module or link.
227
5.9.2.5 Change block index
In a program cycle, the block with little number will be run before the block with big number.
For example, The below program, the run sequence is B001,B002,B003, the Q1 cannot get
high.
If I change the B002 to B004, the Q1 will get high in first. The program run sequence is
B001,B003,B004.
You can change the block number with clicking the block by right key and select the “change
block index” option, then change to other block number.
xLogicsoft could edit function diagram, and perform function of simulation operation.
After you finish the edit, you can start the function of simulation operation, to
examine program to see if it performs your control logic or not.
228
Operation Method:
1.Click “Simulation” under the menu “Tools” with left button of the mouse . It’s time to start
program of simulation, or click “ ” in the simulation toolbar with mouse, and it also can open
229
Fig. 7.10.7 Simulation Operation
Attn: In above graph, you can see “ON” or “OFF” state of input and output, and the output state and the
current state of timing and counting of all blocks. Through this simulation operation graph, you can exam
the program to see if it performs control requirement or not.
2. You can set up saving path and file name in this box.
3. After the setup of the file saving path and file name, click “save” to save file in the appointed path, then
complete to save file.
230
Fig. 7.10.9 File Print
Operation Method:
a. First of all, link xLogic with your PC through the optional way: RS232 cable, USB cable (need install
driver first), Ethernet connection.
b. Open application software xLogicsoft, set up a new document, then open computer com. Click option
“Configuration” under menu “Tools” with left button of the mouse, or click“ ”in toolbar, dialog box
shown as 7.10.10 appears, then select your communication port and speed.
Option A. RS232. This option is used when you use the ELC-RS232 or ELC-USB(relative driver needed)
cable.
Option B. Ethernet. This option is used when you use the ELC-E-Ethernet module.
Option C. GPRS. This option is used when you has established the GPRS connection between xLogic and
PC.
231
Operation method of setup password
a. Click “File->Property” and select “parameter” option, then you can input the password into the dialog
box shown as Fig.7.10.11 appears:
c. Clink option “Tools->transfer->Set xLogic time” with left button of the mouse, or clink “ ” under
d. Display system time in this dialog box, click “ “, cue shown as Fig. 7.10.13 appears, to renew
time of xLogic succeed.
232
After you debug the function graph successfully, you need to download it into xLogic, and operate as
following process.
Operation Method of read-in Program
a. First of all, connect xLogic with your PC through the optional way: RS232 cable, USB cable(need install
driver first), Ethernet connection.
b. Open xLogicsoft, create a new program, then open computer com port by click then menu Tools->
c. Click option “transfer->PC->xLogic” under menu “Tools”; or click button “ ”in toolbar
d. Click button “ ” with left button of mouse, start update Program, downloading status shown as Fig.
“ ”under toolbar.
b. Click button “ ” with left button of mouse, start upload Program, uploading status shown as Fig.
After you are satisfied with your program simulation and have downloaded it to xLogic CPU, you can also
perform an online test of the circuit program. An online test is similar to simulation in that you can view
inputs and outputs and block parameters. It differs, however, in that you are testing the program running
in the xLogic with "live" inputs rather than testing the program on the PC with simulated inputs.
Multiple registers can be accessed individually by clicking “Tools->Set Monitor Config”.
233
Monitor mode:
Under monitor mode, user can change the spare output (the input pin of Q is not connected to other
blocks) state via xLogicsoft.
234
Right click "Q2" and then click "Set Output State".
235
How to transfer monitoring data (AI/AQ) to an Excel file ?
Example program:
1. Select Tools-> Set Monit Config and further click it.
236
As below configuration shows, all history data of AI/AQ under monitor mode can be automatically saved
to one EXCEL file for user’s reference.
Caution: If the “clear previous data” is selected as well, then the history data cannot be saved, and then
only the current monitor data can be saved, furthermore, the history data (previous monitor data) would
be simultaneously cleared.
2. Click here to enter Monitor Mode
4. Click to transfer data into one excel file (it contains AI1/AQ number, value and the
corresponding time.).
237
238
Chapter 6 How to configure the Ethernet modem built-in CPU ?
Note: 1. This chapter is only applied to the CPU with built-in LAN port(Ethernet PLC).
Available CPU types : ELC-12DC-DA-R-N ;ELC-12AC-R-N
ELC-12DC-DA-R-N figure
Ethernet network
If the application requires a system where more than one main module is needed and these main
modules have to communicate, each main module will be connected over an Ethernet Module box to the
Ethernet. The project down- and upload to and from the main modules and the communication between
the main modules happens over the Ethernet network. Furthermore the visualization of the whole system
is possible and Rievtech to realize by a personal computer.
239
Software part:
Users need ensure that PC has Ethernet cards,and that the network settings of PC and Ethernet module’s
must keep in the same network segment before establishing communication between PC and Ethernet
module.
The Ethernet module has a factory setting IP(192.168.0.250)and network mask(255.255.255.0). Users
can process as shown in Figure 4.3 to check whether the Ethernet module and PC in the same network
segment. If in the same network segment, then congratulations to you, and you do not have to read the
following network setting contents. If it is different, then the following settings is very important to you.
Figure 4.3
Above contents is used to tell you how to make the user’s PC with the Ethernet module in the same
network segment.
240
How to configure Ethernet module built-in ELC-22DC-DA-R-N IP address?
Step one: Double click the file “DeviceManager” in CD and then the following contents will pop out:
Step two: Select “DeviceManagement.exe” file, and start it with double-click the left key of your mouse.
241
In order to enable your Ethernet module to link to Ethernet, you are required to connect the LAN port of
the CPU to your computer by net router. You are allowed to connect the LAN port of the CPU to Ethernet
directly by common net cable. Hereunder let’s take computer as an example:
Connect diagram:
You are required to set as following way, otherwise the Ethernet module may fail to work , please take
some time to study the below instruction carefully :
Power on ELC-12DC-DA-R-N module and click to search Ethernet module. At the same time the
searching
242
Process will be showing. In the search window, we can see the search module, and the corresponding
MAC address and IP Address.
Double-click the device in the list of equipment; or select equipment items, click the toolbar button
Input the username and password to login. The default is Username: admin; Password is admin.
If the username and the password are both correct, you can click the button. And the
243
Basic Settings:
You can rename the Device name, default is NB-L
After you click the “OK” button, the settings in the current dialog box would be set into the CPU.
Network settings:
You can view the network parameters in such table.
244
Serial Settings:
This item is very important, You need keep the settings as the above figure shows, the baud rates need
be 9600.
Note: Baudrate can be set “4800” ,”9600”,”19200” and the corresponding communication port must be
set the same as baudrate , namely , the COM3 of CPU. The default baudrate is 9600 in CPU.
245
Connection settings:
ELC-12DC-DA-R-N can work as either server or client.
Net Protocol: TCP
Worked As: Server/Client
Remote Host: The remote PC IP address (while working as client, CPU will automatically get connected
to such remote host.)
Active connect : AutoStart
Remote Port: the remote port (while working as client, CPU will get connected to remote host with such
port.)
Local Port: the local port (while working as server, the client shall be connected with the CPU
246
Password setting
Password can be changed in such dialog box. Password is required for accessing the Ethernet port. You
must enter at least one character or number.
Apply Settings/Reset
Merely “Save and reboot “ option can be selected among those options shown in above page.
Note:
After you change or configure the settings for Ethernet module, you must apply settings by save and
reboot the module, otherwise the modification settings is not finished.
Export you settings:
247
You also can import the existed configuration by the menu Tools->Import Config
Note:
1. Ethernet CPU can communicate with Touch screen/SCADA via LAN port.
2. Communication protocol is Modbus TCP.
Here. we only introduce how to establish the connection between CPU and xlogicsoft via Ethernet?
1.Connect the ELC-12DC-DA-R-N as the first part, and configure as the first part.
2. Here are two options to open “COM PORT”:
Option 1: Ethernet module in ELC-12DC-DA-R-N works under TCP client mode, xLogicsoft
software acting as server .
248
3.Select “Ethernet” option
249
xLogicSoft Com port setting dialog box LAN port setting in Device manager
Port number and PLC’s IP pre-configure in Device manager shall be configured as above figure shows
Notes:
1.The remote host IP address is the same as that of the PC in which the xLogicSoft being
installed .
2.Modbus Type in xlogic shall be MODBUS TCP
3. Active Connect must be “AutoStart” in device manager.
5. Click "Connect to PLC" button, and then the Ethernet module and PC will be linked.
After the ELC-12DC-DA-R-N and PC being linked, many features can come true, e.g. downloading user
program into xLogic CPU module , uploading program into PC and online monitor (monitor real time
status of xLogic IO)can be done, herewith Ethernet module just plays a role of ELC-RS232/USB cable.
Option 2: ELC-12DC-DA-R-N work under TCP serve mode, xLogicsoft software acting as Client.
250
6. Click "Connect to PLC" button, and then the Ethernet module and PC will be linked.
Hardware connection.
Step A.
First you need use the device manger to configure the LAN connection .
Example:
Master PLC works as server. Its IP address is 192.168.0.16 and the local port shall be set as 5001.
251
As below configure shows :
The items with red circle marked must be the same as the above figure.
Slave 1 settings:
IP address is 192.168.0.17
252
Work as : Client
Remote Host: 192.168.0.16
Remote port: 5001
The items with red circle marked must be the same as the above figure.
PLC address need be changed to 1 (default is 1). Change the CPU address with the panel key
Slave 2 settings:
IP address is 192.168.0.18
253
Work as : Client
Remote Host: 192.168.0.16
Remote port: 5001
PLC address need be changed to 2 (default is 1). Change the CPU address with the panel key
254
2. Read the Inputs I1--IA status of slave 1 to control the F11--F20 in master; Read the Inputs I1--IA
status of slave 2 to control the F21--F30.
3. Read the AF1 value of slave1 to be saved in the AF1 of master; Read AF1 value of slave2 to be saved
in AF2 of master.
Program in slave 1
(Note: In the program, you can put the input/output block in, but you cannot link the input pin of the
output)
Program in slave 2
(Note: In the program, you can put the input/output block in, but you cannot link the input pin of the
output)
Program in master
You need use the MODBUS BLOCK to realize the data transmission between master and slaves.
255
B001: Transfer the I1--IA status from the master to the Q1-QA of the slave1. Setting as follows:
256
B002: Transfer the I1--IA status from the master to the Q1-QA of the slave2. Setting as follows:
257
B005: Read the I1--IA status from the slave1 to the F11-F20 of the master. Setting as follows:
258
B006: Read the I1--IA status from the slave2 to the F21-F30 of the master. Setting as follows:
259
B009: Read the AF1 value from the slave1 to the AF1 of the master. Setting as follows:
B010: Read the AF1 value from the slave2 to the AF2 of the master. Setting as follows:
260
Notes:
1. When you do not use the MODBUS blocks in your program, then ELC-22DC-DA-R-N CPU shall work as
slave, in this case, you can use the SCADA or touch screen to communicate with ELC-22DC-DA-R-N via
the LAN port. However, if MODBUS BLOCKS had been used in your program, moreover, the
communication type (comm Type) is Ethernet, then ELC-22DC-DA-R-N can not work as slave through
Ethernet port
2. In your program, if the Modbus read/write blocks would be used, then you can use the
ELC-22DC-DA-R-N as the master CPU to communicate with the slave ( i.e. xlogic or the devices from
other supplier which supports the standard MODBUS TCP communication protocol.) in Modbus network
261
Chapter 7 Applications
In order to let users know the far going application field of xLogic, we present a set of application example.
Each instance includes the circuit program of its original solution and the compare of solution in which
xLogic has been applied.
Note:
The application example of xLogic is available free of charge to our clients, but we can’t make any
promise, it is only to explain the general rule of using xLogic. It is possible that these instances can be
different from user’s specific application, so user should take all related responsibility of running those
instance systems, and we sincerely suggest user shall refer to relevant nation standard and installation
rules related to systems. Also, we have to point out that error is unavoidable, and we reserve the
according modification rights.
Pulse relay: When the lights are off, press any of the pushbuttons to switch on the lights. When the
lights are on, press any of the pushbuttons to switch off the lights again.
Automatic stairway light switch: Press any one of the pushbuttons to switch on the lights. The lights
switch off again automatically when a preset off delay time has expired.
Disadvantage: You can't keep the lights switched on over an extended period of time. The permanent on
switch, usually installed inside the stairway lighting timer unit, may be difficult or impossible to access.
xLogicSoft solution
The xLogic system can replace the automatic stairway light switch or the pulse relay.
xLogic also lets you create a simple automatic stairway light switch via the stairway light switch SFB.
You can also implement both functions (off delay timer and pulse relay) in a single unit. What is more,
you can incorporate extra functions without making any alterations to the wiring. In our example
263
program, we have combined the advantages of both the current impulse relay and the automatic
stairway lighting timer as follows:
Actuate the pushbutton The light is switched on and switched off again on
expiration of a predefined time.
The wiring of a lighting system with xLogic is the same as standard corridor or stairway lighting systems.
Only the automatic lighting timer/pulse relay is replaced.
xLogic lets you quickly and easily combine all those functions in a single dual-function switch SFB,
without additional wiring and expenditure.
When the input “I1” has a pulse, the output “Q1”will be on or off.
264
If input “I1”has a pulse, the output Q1will be on and keep 6 minutes, then be off.
When the input “I1” has a pulse, the output “Q1” will be on and not off until the period“TH”be over.
Keep the momentary switch holding down in period “TL”, the light will be on all the time.
The following selection can be done as special function or saving energy sources:
The lighting flicker before it gets off automatically.
You can integrate different central control functions:
Central control off
Central control on(emergency button)
Control all lighting or certain single circuitry by lighting control switch.
To control by integrated timer.
265
7.2.1 Standard solution
As long as the detector B1 or B2 detects someone approach, the switch K3 will be on and open the door.
If the two detectors don’t detect person in a short time, trigger K4 and close the door.
266
7.2.2 The scheme of xLogic
Required components:
K1 open contactor
K2 close contactor
S1(break contact) close limit switch
S2(break contact) open limit switch
B1(make contact) outdoor infrared action detector
B2(make contact) infrared action detector inside
Motion detector
267
During business hours, if someone enters store, the detector B1 will trigger electric motor to open the
door, vice versa.
At closing time, the detector B2 make electromotor keep running for an hour to make more time for
customer to leave.
The door has not been opened entirely (I4 limit switch is not off.).
Buzzer
Connect the buzzer to output Q3.When the door is going to be closed; the buzzer
gives off sounds for a short time (1s in this example). To attach buzzer, need to
connect the following circuit program to output Q3.
268
7.3 Ventilation system
A Ventilation system supplies fresh air into a room and exhausts the contaminated
air. Let us look at the following sample system:
The pressure in the room may rise above the atmospheric pressure.
The fresh-air fan may only be switched on if the flow sensor signals the safe
operational state of the extractor fan.
269
The fans are monitored by means of flow sensors. If no air flow is registered after a short delay time has
expired, the system is switched off and an error message is generated, which can be acknowledged by
pressing the off button.
Fan monitoring requires an analyzer circuit with several switching devices, in addition to the flow sensors.
A single xLogic device can replace this analyzer circuit.
Required components:
K1 Main contactor
270
K2 Main contactor
H1 Flashing lamp
H2 Flashing lamp
xLogicSoft solution
The use of xLogic reduces the amount of switchgear. Thus, you save installation time and space in the
control cabinet. You may even be able to use as a smaller control cabinet.
With xLogic you can also switch off of the fans sequentially after the system is switched off.
The system is switched on and off at the inputs I1 and I2. The fans are connected to outputs Q1 and Q2,
the flow sensors are connected to the inputs I3 and I4. Blocks B07 and B10 are used to set the watchdog
times after which the flow sensors should send a signal to the fault output Q3.
You can invert output Q3 to use output messages at Q4. Relay Q4 only drops out if main power is lost or
if there is a fault in the system. The output can then be used for a remote message.
271
7.4 Factory door
In many cases a factory entrance is closed with roll gates. Those gates are only opened when vehicles
need to enter or leave the factory grounds. The gate is controlled by the porter.
The sliding gate is opened and closed by means of a pushbutton control in the gatehouse. The porter
can monitor the gate operation.
The roll gate is normally fully opened or it is closed. However, gate movements can always be
interrupted.
A flashing light is activated five seconds before the gate moves, and while the gate is in motion.
A safety pressure strip ensures that people are not injured and that no objects are trapped and
damaged when the gate is closing.
There are many different control systems for operating automatic gates. The OPEN and CLOSE buttons
initiate gate movements into the relevant direction, provided it is not already moving in the opposite
direction. Movement of the gate is terminated either by means of the STOP button or the relevant limit
switch.
272
7.4.2 The scheme of xLogic
273
Required components:
K1 Main contactor
K2 Main contactor
xLogicSoft solution
A xLogic circuit provides a further feature compared to standard controls: The actuation of a safety bar
interrupts the closing motion of the gate. Five seconds before the gate is opens or closes, a flashing light
274
is activated and signals the start of the movement. It continues flashing until the gate has stopped.
In contrast to standard solutions, xLogic offers an Rievtech and economic means of modifying the control
system.
Different daylight lamp rows should be able to be switched on and off handily.
If window at one side has enough light, the light will be switched off automatically via lightness
275
sensitivity switch.
The light would be switched off automatically at 8:00 p.m.
The light can be switched on and off manually at any time.
Lighting lamp can be operated by pulse relay controlled by button besides the door. Pulse relay can be
repositioned by means of timer and lightness sensitivity switch. Pulse relay may shorten pulse width of
“off command”.
Required component:
Button S1—S4
Daylight control switch B1
Timer T1
Pulse relay K1 and K2
pulse switch K3—K6 able to be switched off collectively
276
Components:
S1—S4(make contact) Momentary switch
B1(make contact) Daylight control switch
277
Benefits:
While power consumption of load does not exceed output of switch’s voltage range, lamp can be directly
connected to xLogic main module; however, if power consumption of load exceeds output of switch’s
voltage range, then power contactor would be required.
You can connect directly lightness sensitivity switch to the input of xLogic.
Don’t need external timer, as this function has been integrated in xLogic.
Less equipment
According to your demand, you may setup supplementary on/off timing (lamp can be switched off in
order at the end of day.
Easier to apply role of lightness sensitivity switch to lamp or already modified lamp row.
Nowadays besides drinkable water in family, rainwater applications is gradually increasing. In this way
much costs can be saved, also environment can be improved as well. The application of rain water as
follows:
278
Wash clothes
Water system in garden
Potted plant water
Wash car
Scour W.C.
The following figure is to tell you how to run the rainwater application system:
The rain water is collected in the container and then pumped to service water ductwork through pumping
station. So you can apply rain water as drinkable water. If the rain water in the container dried up, this
system can supply drinkable water.
It can provide service water all day, under the contingency instance, the control system must be
able to be switched over to drinkable water system automatically.
When switching to drinkable water system, it can’t interlard rain water.
If rain container has not enough rain water, service water pump can’t be on (rain water dry-up
protection).
279
7.6.2 The scheme of xLogic
Components:
K1 main contactor
280
Y1 Solenoid valve
S1 Pressure switch
Length of
Order
Function description message(one frame Remarks
code(Hex)
order can deal with)
01 Read one group coil status ( 00000 ~ -- Read Coil Status (Output
0XXXX) relay)
02 Fetch one group data of the status of -- Read input Status (input
switch input relay)
(10000~1XXXX)
281
(00000~0XXXX)
4 cursors
(Cursor key) C 256~259 BIT R
Function
code 02
(1x)
282
Coils outputs PR-6(CPU): 0~1 BIT R/W
PR-18(CPU): 0~5
PR-E-16(EXT1): 8~15 Function
PR-E-16(EXT2): 16~23 code
PR-E-16(EXT3): 24~31 01/05/15
∙ ∙
(0x) ∙ ∙
∙ ∙
PR-12(CPU): 0~7
ELC-22/26(CPU) 0~9
PR-E-16(EXT1) 10~17
PR-E-16(EXT2) 18~25
PR-E-16(EXT3) 26~33
PR-12-HMI/PR-18/PR-24 256~767
(0x)
F outputs (F) PR-6 Series: 1536~1567 BIT R/W
PR-12-E Series:
Function
code
01/05/15
PR-12-HMI/PR-18/PR-24 1536~1599
(0x)
283
Holding register(timer、 PR-6 Series: 0~63 LONG R
counter value) PR-12-E Series:
(4x)
0~511
PR-12-HMI/PR-18/PR-24
(4x) REG
Analog quantity input PR-12 Series: 1024~1031 Signed short R
register (AI) CPU
PR-18/PR-24
(CPU) : 1024~1031
EXT1: 1032~1039
EXT2: 1040~1047
(4x)
Analog quantity output PR-18/PR-24 /ELC-12-N Signed short R/W
buffer (AQ) Series:
CPU: 1280~1281
EXT1: 1282~1283
EXT2: 1284~1285
(4x)
Analog quantity buffer PR-6 Series: 1536~1599 Signed short R
(AM)
PR-12/PR-18/PR-24/ELC- 1536~2074
12-N Series:
(4x)
284
Analog quantity buffer PR-6Series: 3072~3103 Signed short R/W
(AF)
PR-12/PR-18/PR-24/ELC- 3072~3135
12-N
(4x)
The frequency value Word R
buffer of threshold
trigger (HEG) PR-12/PR-18/PR-24/ELC- 2560~3071
12-N
(4x)
RTC All ELC&PR series CPU Signed short R/W
Year 3328
Month 3329
Day 3330
Hour 3331
Minute 3332
Second 3333
285
Appendix
A Technical data
Dimensions Approx.180g
on a 35 mm profile rail or wall mounting
(W x H x D) Weight
Installation
PR-12 Series Main Module
Dimensions 72 x 90 x 61 mm
Approx.300g
(W x H x D) Weight
on a 35 mm profile rail or wall mounting
Installation
Dimensions Approx.400g
on a 35 mm profile rail or wall mounting
(W x H x D) Weight
Installation
PR-E-16 Series Expansion
Module
Dimensions 72 x 90 x 58 mm
Approx.300g
(W x H x D)
on a 35 mm profile rail or wall mounting
Weight
Installation
PR-24 Series CPU
(W x H x D) Weight
Approx. 500 g
Installation
on a 35 mm profile rail or wall mounting
Climatic conditions
Ambient temperature Horizontal Low temperature
- - to -20 ... 55 °C
IEC 6006821 -20 ... 55 °C
installation High temperature to IEC
Vertical installation 60068-2-2 -40 °C ... +70 °C
Storage/shipping
Relative humidity IEC 60068-2-30 From 10 to 95 % no condensation
286
Criterion Tested in accordance with Values
Ambient mechanical conditions
Protection mode IP20
287
A.2 Technical data: xLogic (PR&ELC series)
288
Resolution --- 9bit ,0.015V
289
High speed input No
HMI No
Note: The following function block cannot be used in PR-6 & Economic PR-12series
Constant (Cursor key, Sms input/output,Sms message input/output)
Basic (Boolean function)
Timer( Astronomical clock, Stopwatch)
Analog (Analog MUX, PI Controller,Analog Ramp,Analog Math,Analog Math error detection,Analog
filter,Max/Min,Average value)
Miscellaneous(Message texts, Pwm,Modbus Read,Modbus Write,word to bit,bit to word,device reset,
comport status)
App(all are unavailable)
290
frequency
Sensor type Contact or 3-wire PNP Contact or 3-wire PNP
Isolation between power None Resistive
supply and inputs
Isolation between inputs None None
Protection against polarity Yes None
inversions
Inputs used as analog inputs( I1-I4 )
Measurement range --- DC 0---10V
Input impedance --- Min, 24KΩ ; Max. 72KΩ
Input voltage --- 28.8 V DC max
Resolution --- 9bit ,0.015V
Expectancy
Mechanical life 107 Operations at No Load condition
Response time Operate Time : 15 mSec. Max.
Release Time : 10 mSec. Max.
Built-in protections Against short-circuits: None
Against overvoltages and overloads: None
Switch frequency:
Mechanism 10Hz
Resistor/light load 2Hz
Sensitive load 0.5Hz
Other parameters:
291
Cycle time typ. 0.6ms ➞ 8.0ms
Connection cables 2 x 1.5 mm² or 1 x 2.5 mm²
292
Standard CPU Units PR-12AC-R PR-12DC-DA-R PR-12DC-DA-TN
(PR-12 series)
Power supply:
Nominal voltage AC110V-240V DC 12-24V
293
Accuracy at 25 °C --- ± (Max.0.02)V
Accuracy at 55 °C --- ± (Max.0.04)V
Isolation between analog --- None
channel and power supply
Cable length --- 10 m max. shielded and twisted
Output parameters:
Output No. 4 (Q1-Q4) 4 (Q1-Q4)
Output type Relay output Transistor output
Continuous current Resistive load 10A/Inductive load 2A 0.3A
Max. breaking voltage AC 250 V /DC 110 V DC 30V
Max. Allowable Power Force 1250VA /300W 9W
Electrical durability 10 Operations at Rated Resistive Load
5
---
Expectancy
Mechanical life 107 Operations at No Load condition ---
Response time Operate Time : 15 mSec. Max. Operate Time : <1 ms
Release Time : 10 mSec. Max. Release Time : <1 ms
Built-in protections Against short-circuits: None
Against overvoltages and overloads: None
Switch frequency:
Mechanism 10Hz ---
Resistor/light load 2Hz 10HZ
Sensitive load 0.5Hz 0.5HZ
PWM frequency --- 10K HZ(Q3,Q4 must have
same frequency when
PWM works)
PWM accuracy at 500Hz --- < 0.5% (20 % ➞ 80 %)
load at 10 mA
Other parameters:
294
Programming cable PC cable, (RS232 or USB)
Third party device(HMI) Yes (work as modbus master or slave)
<=> xLogic
Extensions No
High speed input No I5---I8(60kHz)
HMI Yes
RS485 port Option1:Can use PRO-RS485 cable to convert program port to RS485 port
295
supply and inputs
Isolation between inputs None None
Protection against polarity Yes None
inversions
Inputs used as analog inputs( I1-I6 )
Measurement range --- DC 0---10V
Input impedance --- Min, 24KΩ ; Max. 72KΩ
Input voltage --- 28.8 V DC max
Resolution --- 10bit ,0.01V
296
Function blocks 512 blocks
297
Input voltage AC0-240V DC 0-28.8V DC 0-28.8V(I3-IE)
Input signal0 AC0-40V;<0.03mA < 5V < 5V
DC;<0.1mA(I1-I6),<1m DC;<0.1mA(I3-I6),<1m
A(I7-IC) A(I7-IC)
Input signal1 AC79-240V; >8V >8V
>0.06mA DC;>0.3mA(I1-I6),>1.7 DC;>0.3mA(I3-I6),>1.7
mA(I7-IC) mA(I7-IC)
Input current --- 0.4mA(I1-I6),2.3mA(I7-I 0.4mA(I3-I6),2.3mA(I7-I
C),@ 10.8V dc C),@ 10.8V dc
0.5mA(I1-I6),2.6mA(I7-I 0.5mA(I3-I6),2.6mA(I7-I
C),@ 12.0 V dc C),@ 12.0 V dc
1.2mA(I1-I6),5.2mA(I7-I 1.2mA(I3-I6),5.2mA(I7-I
C),@ 24 V dc C),@ 24 V dc
1.5mA(I1-I6),6.3mA(I7-I 1.5mA(I3-I6),6.3mA(I7-I
C),@ 28.8 V dc C),@ 28.8 V dc
Input Response Time Delay time at 0 to 1: Delay time at 0 to 1 : Delay time at 0 to 1 :
120V AC :Typ. 50 ms Typ. 1.5 ms Typ. 1.5 ms
240V AC :Typ. 30 ms (I1-I6),<1ms(I7-IC); (I3-I6),<1ms(I7-IC);
Delay time at 1 to 0: Delay time at 1 to 0 : Delay time at 1 to 0 :
120V AC :Typ. 90 ms Typ. 1.5 Typ. 1.5
240V AC :Typ.100 ms ms(I1-I6),<1ms(I7-IC); ms(I3-I6),<1ms(I7-IC)
298
Accuracy at 25 °C 0.05mA
Output parameters:
Output No. 10 (Q1-QA) 6 (Q1-Q6) Relay
Output type Relay output +2(Q7-Q8)Transistor(PNP)
+2AQ
Continuous current Resistive load 10A/Inductive load 2A (Relay) Resistive load
10A/Inductive load 2A
(Relay)
0.3A(Transistor)
Max. breaking voltage AC 250 V /DC 110 V(Relay) AC 250 V /DC 110
V(Relay)
DC 30V(Transistor)
Max. Allowable Power Force 1250VA /300W(Relay) 1250VA /300W(Relay)
9W(Transistor)
Electrical durability 105 Operations at Rated Resistive Load(Relay) ---
Expectancy
Mechanical life 107 Operations at No Load condition(Relay) ---
Response time Operate Time : 15 mSec. Max.(Relay) Operate Time : <1 ms
Release Time : 10 mSec. Max.(Relay) Release Time : <1 ms
Built-in protections Against short-circuits: None
Against overvoltages and overloads: None
Analog Output
Signal type None 1(0...10V)+1(0...20mA)
Resolution None 0.01V 、0.02mA
Switch frequency:
Mechanism 10Hz ---
Resistor/light load 2Hz 10HZ
Sensitive load 0.5Hz 0.5HZ
PWM frequency --- 10K HZ(Q7,Q8 must have
same frequency when PWM
works)
PWM accuracy at 500Hz --- < 0.5% (20 % ➞ 80 %)
load at 10 mA
Other parameters:
299
Cycle time typ. 0.6ms ➞ 8.0ms
Connection cables 2 x 1.5 mm² or 1 x 2.5 mm²
300
1.5mA(I1-I4),6.3mA(I5-I8),@ 28.8 V dc
Input Response Time Delay time at 0 to 1: Delay time at 0 to 1 :
120V AC :Typ. 50 ms Typ. 1.5 ms (I1-I4),<1ms(I5-I8);
240V AC :Typ. 30 ms Delay time at 1 to 0 :
Delay time at 1 to 0: Typ. 1.5 ms(I1-I4),<1ms(I5-I8);
120V AC :Typ. 90 ms
240V AC :Typ.100 ms
301
Ambient temperature -20 to + 55 ºC
Storage temperature –40 ºC to + 70 ºC
Certification CE
Mounting On 35 mm standard mounting rail, 4 MW, or wall-mounting
Dimensions W x H x D (133*90*61 mm)
302
Storage temperature –40 ºC to + 70 ºC
Certification CE
Mounting On 35 mm standard mounting rail, 4 MW, or wall-mounting
Dimensions W x H x D (72*90*58 mm)
303
Input No 8 ( I1-I8 ) 8 (I1-I8 )
Digital input 8 ( I1-I8 ) 8 (I1-I8 )
Analogue input None 4 ( I1-I4)(0..10V DC)
Input voltage AC0-240V DC 0-28.8V
Input signal0 AC0-40V;<0.03mA < 5V DC;<0.1mA(I1-I4),<1mA(I5-I8)
Input signal1 AC79-240V; > 8 V DC;>0.3mA(I1-I4),>1.7mA(I5-I8)
>0.06mA
Input current --- 0.4mA(I1-I6),2.3mA(I7-IC),@ 10.8V dc
0.5mA(I1-I6),2.6mA(I7-IC),@ 12.0 V dc
1.2mA(I1-I6),5.2mA(I7-IC),@ 24 V dc
1.5mA(I1-I6),6.3mA(I7-IC),@ 28.8 V dc
Input Response Time Delay time at 0 to 1: Delay time at 0 to 1 :
120V AC :Typ. 50 ms Typ. 1.5 ms (I1-I4),<1ms(I5-I8);
240V AC :Typ. 30 ms Delay time at 1 to 0 :
Delay time at 1 to 0: Typ. 1.5 ms(I1-I4),<1ms(I5-I8);
120V AC :Typ. 90 ms
240V AC :Typ.100 ms
304
Response time Operate Time : 15 mSec. Max.(Relay)
Release Time : 10 mSec. Max.(Relay)
Built-in protections Against short-circuits: None
Against overvoltages and overloads: None
Switch frequency:
Mechanism 10Hz
Resistor/light load 2Hz
Sensitive load 0.5Hz
Other parameters:
305
Max. Startup current --- Max. 0.25A
Max. absorbed power 34mA (85V ac) ; 1.1 W (10.8V dc) ;
26mA (265V ac) 1.2 W (28.8V dc)
Protection against polarity Yes Yes
inversions
The main frequency range 47-63Hz ---
Input parameters:
Input No 4 ( I1-I4 ) 4 (I1-I4 )
Digital input 4 ( I1-I4 ) 4 (I1-I4 )
Analogue input None 4 ( I1-I4)(0..10V DC)
Input voltage AC0-240V DC 0-28.8V
Input signal0 AC0-40V;<0.03mA < 5V DC;<0.1mA(I1-I4),<1mA(I5-I8)
Input signal1 AC79-240V;>0.06mA > 8 V DC;>0.3mA(I1-I4),>1.7mA(I5-I8)
Input current --- 0.4mA(I1-I4),2.3mA(I5-I8),@ 10.8V dc
0.5mA(I1-I4),2.6mA(I5-I8),@ 12.0 V dc
1.2mA(I1-I4),5.2mA(I5-I8),@ 24 V dc
1.5mA(I1-I4),6.3mA(I5-I8),@ 28.8 V dc
Input Response Time Delay time at 0 to 1: Delay time at 0 to 1 :
120V AC :Typ. 50 ms Typ. 1.5 ms (I1-I4),<1ms(I5-I8);
240V AC :Typ. 30 ms Delay time at 1 to 0 :
Delay time at 1 to 0: Typ. 1.5 ms(I1-I4),<1ms(I5-I8);
120V AC :Typ. 90 ms
240V AC :Typ.100 ms
306
Continuous current Resistive load 10A/Inductive load 2A (Relay)
Max. breaking voltage AC 250 V /DC 110 V(Relay)
Max. Allowable Power Force 1250VA /300W(Relay)
Electrical durability 10 Operations at Rated Resistive Load(Relay)
5
Expectancy
Mechanical life 107 Operations at No Load condition(Relay)
---
Response time Operate Time : 15 mSec. Max.(Relay)
Release Time : 10 mSec. Max.(Relay)
Built-in protections Against short-circuits: None
Against overvoltages and overloads: None
Switch frequency:
Mechanism 10Hz
Resistor/light load 2Hz
Sensitive load 0.5Hz
Other parameters:
Weight Approx.250g
Connection cables 2 x 1.5 mm² or 1 x 2.5 mm²
307
Accuracy at 25 °C Max. 0.05mA <1℃ ---
Isolation between analog None None
channel and power supply
Cable length 10 m max. shielded and twisted
Output parameters:
Output No. --- 2(AQ1-AQ2)
Output type --- 0...10V 0...20mA
Resolution --- 0.01V 0.02mA
Accuracy at 25 °C --- 0.02V 0.05mA
Other parameters:
Weight Approx.250g
Short-circuit protection External fuse required
Connection cables 2 x 1.5 mm² or 1 x 2.5 mm²
308
A.3 Switching capacity and service life of the relay outputs
Ohmic load
Figure A Switching capacity and service life of the contacts with ohmic load (heating)
Inductive load
309
Figure B Switching capacity and service life of the contacts with high inductive load (contactors,
solenoid coils, motors).
REVISION RECORD
Revision Description
310
311
REVISION RECORD
Revision Description
312