LOVATO ELECTRIC LRK Series Instruction Manual
LOVATO ELECTRIC LRK Series Instruction Manual

LOVATO ELECTRIC LRK Series Instruction Manual

Micro-plc
Hide thumbs Also See for LRK Series:
Table of Contents

Advertisement

Quick Links

LOVATO ELECTRIC S.P.A.
24020 GORLE (BERGAMO) ITALIA
VIA DON E. MAZZA, 12
TEL. 035 4282111
L
E
E-mail info@
ovato
lectric.com
L
E
Web www.
ovato
lectric.com
WARNING!
– Carefully read the manual before the installation or use.
– This equipment is to be installed by qualified personnel, complying to current standards, to avoid damages
or safety hazards.
– Before any maintenance operation on the device, remove all the voltages from measuring and supply inputs and
short-circuit the CT input terminals.
– The manufacturer cannot be held responsible for electrical safety in case of improper use of the equipment.
– Products illustrated herein are subject to alteration and changes without prior notice. Technical data and descriptions in
the documentation are accurate, to the best of our knowledge, but no liabilities for errors, omissions or contingencies
arising there from are accepted.
– A circuit breaker must be included in the electrical installation of the building. It must be installed close by the
equipment and within easy reach of the operator. It must be marked as the disconnecting device of the equipment:
IEC /EN 61010-1 § 6.11.3.1.
– Clean the device with a soft dry cloth; do not use abrasives, liquid detergents or solvents.
ATTENTION !
– Lire attentivement le manuel avant toute utilisation et installation.
– Ces appareils doivent être installés par un personnel qualifié, conformément aux normes en vigueur en
matière d'installations, afin d'éviter de causer des dommages à des personnes ou choses.
– Avant toute intervention sur l'instrument, mettre les entrées de mesure et d'alimentation hors tension et court-circuiter
les transformateurs de courant.
– Le constructeur n'assume aucune responsabilité quant à la sécurité électrique en cas d'utilisation impropre du
dispositif.
– Les produits décrits dans ce document sont susceptibles d'évoluer ou de subir des modifications à n'importe
quel moment. Les descriptions et caractéristiques techniques du catalogue ne peuvent donc avoir aucune valeur
contractuelle.
– Un interrupteur ou disjoncteur doit être inclus dans l'installation électrique du bâtiment. Celui-ci doit se trouver tout
près de l'appareil et l'opérateur doit pouvoir y accéder facilement. Il doit être marqué comme le dispositif d'interruption
de l'appareil : IEC/ EN 61010-1 § 6.11.3.1.
– Nettoyer l'appareil avec un chiffon doux, ne pas utiliser de produits abrasifs, détergents liquides ou solvants.
ACHTUNG!
– Dieses Handbuch vor Gebrauch und Installation aufmerksam lesen.
– Zur Vermeidung von Personen- und Sachschäden dürfen diese Geräte nur von qualifiziertem Fachpersonal
und unter Befolgung der einschlägigen Vorschriften installiert werden.
– Vor jedem Eingriff am Instrument die Spannungszufuhr zu den Messeingängen trennen und die Stromwandler
kurzschlieβen.
– Bei zweckwidrigem Gebrauch der Vorrichtung übernimmt der Hersteller keine Haftung für die elektrische Sicherheit.
– Die in dieser Broschüre beschriebenen Produkte können jederzeit weiterentwickelt und geändert werden. Die im
Katalog enthaltenen Beschreibungen und Daten sind daher unverbindlich und ohne Gewähr.
– In die elektrische Anlage des Gebäudes ist ein Ausschalter oder Trennschalter einzubauen. Dieser muss sich in
unmittelbarer Nähe des Geräts befinden und vom Bediener leicht zugänglich sein. Er muss als Trennvorrichtung für das
Gerät gekennzeichnet sein: IEC/ EN 61010-1 § 6.11.3.1.
– Das Gerät mit einem weichen Tuch reinigen, keine Scheuermittel, Flüssigreiniger oder Lösungsmittel verwenden.
ADVERTENCIA
– Leer atentamente el manual antes de instalar y utilizar el regulador.
– Este dispositivo debe ser instalado por personal cualificado conforme a la normativa de instalación vigente
a fin de evitar daños personales o materiales.
– Antes de realizar cualquier operación en el dispositivo, desconectar la corriente de las entradas de alimentación y
medida, y cortocircuitar los transformadores de corriente.
– El fabricante no se responsabilizará de la seguridad eléctrica en caso de que el dispositivo no se utilice de forma
adecuada.
– Los productos descritos en este documento se pueden actualizar o modificar en cualquier momento. Por consiguiente,
las descripciones y los datos técnicos aquí contenidos no tienen valor contractual.
– La instalación eléctrica del edificio debe disponer de un interruptor o disyuntor. Éste debe encontrarse cerca del
dispositivo, en un lugar al que el usuario pueda acceder con facilidad. Además, debe llevar el mismo marcado que el
interruptor del dispositivo (IEC/ EN 61010-1 § 6.11.3.1).
– Limpiar el dispositivo con un trapo suave; no utilizar productos abrasivos, detergentes líquidos ni disolventes.
UPOZORNĚNÍ
– Návod se pozorně pročtěte, než začnete regulátor instalovat a používat.
– Tato zařízení smí instalovat kvalifikovaní pracovníci v souladu s platnými předpisy a normami pro předcházení úrazů
osob či poškození věcí.
– Před jakýmkoli zásahem do přístroje odpojte měřicí a napájecí vstupy od napětí a zkratujte transformátory proudu.
– Výrobce nenese odpovědnost za elektrickou bezpečnost v případě nevhodného používání regulátoru.
– Výrobky popsané v tomto dokumentu mohou kdykoli projít úpravami či dalším vývojem. Popisy a údaje uvedené v katalogu
nemají proto žádnou smluvní hodnotu.
– Spínač či odpojovač je nutno zabudovat do elektrického rozvodu v budově. Musejí být nainstalované v těsné blízkosti přístroje a
snadno dostupné pracovníku obsluhy. Je nutno ho označit jako vypínací zařízení přístroje: IEC/ EN 61010-1 § 6.11.3.1.
– Přístroj čistěte měkkou utěrkou, nepoužívejte abrazivní produkty, tekutá čistidla či rozpouštědla.
AVERTIZARE!
– Citiţi cu atenţie manualul înainte de instalare sau utilizare.
– Acest echipament va fi instalat de personal calificat, în conformitate cu standardele actuale, pentru a evita deteriorări
sau pericolele.
– Înainte de efectuarea oricărei operaţiuni de întreţinere asupra dispozitivului, îndepărtaţi toate tensiunile de la intrările de
măsurare şi de alimentare şi scurtcircuitaţi bornele de intrare CT.
– Producătorul nu poate fi considerat responsabil pentru siguranţa electrică în caz de utilizare incorectă a echipamentului.
– Produsele ilustrate în prezentul sunt supuse modificărilor şi schimbărilor fără notificare anterioară. Datele tehnice şi descrierile
din documentaţie sunt precise, în măsura cunoştinţelor noastre, dar nu se acceptă nicio răspundere pentru erorile, omiterile sau
evenimentele neprevăzute care apar ca urmare a acestora.
– Trebuie inclus un disjunctor în instalaţia electrică a clădirii. Acesta trebuie instalat aproape de echipament şi într-o zonă uşor
accesibilă operatorului. Acesta trebuie marcat ca fiind dispozitivul de deconectare al echipamentului: IEC/EN 61010-1 § 6.11.3.1.
– Curăţaţi instrumentul cu un material textil moale şi uscat; nu utilizaţi substanţe abrazive, detergenţi lichizi sau solvenţi.
NOTE
Products illustrated herein are subject to alteration and changes without prior notice. Technical data and descriptions in the documentation are accurate, to the best of our knowledge, but no
liabilities for errors, omissions or contingencies arising there from are accepted.
GB MICRO-PLC
Instructions manual
LRK...
ATTENZIONE!
– Leggere attentamente il manuale prima dell'utilizzo e l'installazione.
– Questi apparecchi devono essere installati da personale qualificato, nel rispetto delle vigenti normative
impiantistiche, allo scopo di evitare danni a persone o cose.
– Prima di qualsiasi intervento sullo strumento, togliere tensione dagli ingressi di misura e di alimentazione e
cortocircuitare i trasformatori di corrente.
– Il costruttore non si assume responsabilità in merito alla sicurezza elettrica in caso di utilizzo improprio del dispositivo.
– I prodotti descritti in questo documento sono suscettibili in qualsiasi momento di evoluzioni o di modifiche.
Le descrizioni ed i dati a catalogo non possono pertanto avere alcun valore contrattuale.
– Un interruttore o disgiuntore va compreso nell'impianto elettrico dell'edificio. Esso deve trovarsi in stretta vicinanza
dell'apparecchio ed essere facilmente raggiungibile da parte dell'operatore. Deve essere marchiato come il dispositivo
di interruzione dell'apparecchio: IEC/ EN 61010-1 § 6.11.3.1.
– Pulire l'apparecchio con panno morbido, non usare prodotti abrasivi, detergenti liquidi o solventi.
UWAGA!
– Przed użyciem i instalacją urządzenia należy uważnie przeczytać niniejszą instrukcję.
– W celu uniknięcia obrażeń osób lub uszkodzenia mienia tego typu urządzenia muszą być instalowane przez
wykwalifikowany personel, zgodnie z obowiązującymi przepisami.
– Przed rozpoczęciem jakichkolwiek prac na urządzeniu należy odłączyć napięcie od wejść pomiarowych i zasilania oraz zewrzeć
zaciski przekładnika prądowego.
– Producent nie przyjmuje na siebie odpowiedzialności za bezpieczeństwo elektryczne w przypadku niewłaściwego użytkowania
urządzenia.
– Produkty opisane w niniejszym dokumencie mogą być w każdej chwili udoskonalone lub zmodyfikowane. Opisy oraz dane
katalogowe nie mogą mieć w związku z tym żadnej wartości umownej.
– W instalacji elektrycznej budynku należy uwzględnić przełącznik lub wyłącznik automatyczny. Powinien on znajdować się
w bliskim sąsiedztwie urządzenia i być łatwo osiągalny przez operatora. Musi być oznaczony jako urządzenie służące do
wyłączania urządzenia: IEC/ EN 61010-1 § 6.11.3.1.
– Urządzenie należy czyścić miękką szmatką, nie stosować środkow ściernych, płynnych detergentow lub rozpuszczalnikow.
ПРЕДУПРЕЖДЕНИЕ!
– Прежде чем приступать к монтажу или эксплуатации устройства, внимательно ознакомьтесь с одержанием
настоящего руководства.
– Во избежание травм или материального ущерба монтаж должен существляться только квалифицированным персоналом
в соответствии с действующими нормативами.
– Перед проведением любых работ по техническому обслуживанию устройства необходимо обесточить все
измерительные и питающие входные контакты, а также замкнуть накоротко входные контакты трансформатора тока (ТТ).
– Производитель не несет ответственность за обеспечение электробезопасности в случае ненадлежащего использования
устройства.
– Изделия, описанные в настоящем документе, в любой момент могут подвергнуться изменениям или
усовершенствованиям. Поэтому каталожные данные и описания не могут рассматриваться как действительные с точки
зрения контрактов
– Электрическая сеть здания должна быть оснащена автоматическим выключателем, который должен быть расположен
вблизи оборудования в пределах доступа оператора. Автоматический выключатель должен быть промаркирован как
отключающее устройство оборудования: IEC /EN 61010-1 § 6.11.3.1.
– Очистку устройства производить с помощью мягкой сухой ткани, без применения абразивных материалов, жидких
моющих средств или растворителей.
DİKKAT!
– Montaj ve kullanımdan önce bu el kitabını dikkatlice okuyunuz.
– Bu aparatlar kişilere veya nesnelere zarar verme ihtimaline karşı yürürlükte olan sistem kurma normlarına göre
kalifiye personel tarafından monte edilmelidirler
– Aparata (cihaz) herhangi bir müdahalede bulunmadan önce ölçüm girişlerindeki gerilimi kesip akım transformatörlerinede kısa
devre yaptırınız.
– Üretici aparatın hatalı kullanımından kaynaklanan elektriksel güvenliğe ait sorumluluk kabul etmez.
– Bu dokümanda tarif edilen ürünler her an evrimlere veya değişimlere açıktır. Bu sebeple katalogdaki tarif ve değerler herhangi bir
bağlayıcı değeri haiz değildir.
– Binanın elektrik sisteminde bir anahtar veya şalter bulunmalıdır. Bu anahtar veya şalter operatörün kolaylıkla ulaşabileceği yakın
bir yerde olmalıdır. Aparatı (cihaz) devreden çıkartma görevi yapan bu anahtar veya şalterin markası: IEC/ EN 61010-1 § 6.11.3.1.
– Aparatı (cihaz) sıvı deterjan veya solvent kullanarak yumuşak bir bez ile siliniz aşındırıcı temizlik ürünleri kullanmayınız.
UPOZORENJE!
– Prije instalacije ili korištenja uređaja, pažljivo pročitajte upute.
– Ovaj uređaj mora instalirati, u skladu s važećim normama, obučena osoba kako bi se izbjegle štete ili sigurnosne
opasnosti.
– Prije bilo kakvog zahvata na uređaju otpojite napajanje s mjernih i napajajućih ulaza i kratko spojite ulazne stezaljke strujnog
transformatora.
– Proizvođač ne snosi odgovornost za električnu sigurnost u slučaju nepravilnog korištenja opreme.
– Ovdje prikazan uređaj predmet je stalnog usavršavanja i promjena bez prethodne najave. Tehnički podaci i opisi u ovim uputama
su točni, ali ne preuzimamo odgovornost za možebitne nenamjerne greške.
– U električnu instalaciju zgrade mora biti instaliran prekidač. On mora biti instaliran blizu uređaja i na dohvat ruke operatera, te
označen kao rastavljač u skladu s normom IEC/EN/BS 61010-1 § 6.11.3.1.
– Uređaj čistite s mekom, suhom krpom bez primjene abraziva, tekućina, otapala ili deterdženta.
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LRK Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for LOVATO ELECTRIC LRK Series

  • Page 1 GB MICRO-PLC Instructions manual LOVATO ELECTRIC S.P.A. 24020 GORLE (BERGAMO) ITALIA VIA DON E. MAZZA, 12 TEL. 035 4282111 E-mail info@ ovato lectric.com Web www. ovato lectric.com LRK... WARNING! ATTENZIONE! – Carefully read the manual before the installation or use.
  • Page 2: Table Of Contents

    Contents Content Chapter 1 Summary Precautions for installation Environmental requirements LRK model explanation Quick use instructions Install LRXSW Programming Software Connect the power Connect programming cable Configure the gateway Establish communication Write simple program Chapter 2 Installation General specifications Type selection form Installation and fixing Wiring 12/24VDC input wiring...
  • Page 3: Content

    Logic Block Diagrams AND logic block diagram AND (EDGE) logic block diagram NAND logic block diagram NAND (EDGE) logic block diagram OR logic block diagram NOR logic block diagram XOR logic block diagram RS logic block diagram NOT logic block diagram Pulse logic block diagram BOOLEAN logic block diagram Functional Block Diagrams...
  • Page 4: Chapter 1 Summary

    Chapter 1 Summary Chapter 1 Summary Precautions for installation Environmental requirements LRK model explanation Quick use instructions Install LRXSW Programming Software Connect the power Connect programming cable Configure the gateway Establish communication Write simple program...
  • Page 5: Precautions For Installation

    PRECAUTION FOR INSTALLATION This product is used in industrial premises,and indoor use. For your safety, this manual for LRK micro-plcs provides [Danger], [Caution] and other symbols. Please pay attention to the safety precautions during handling, installation, running and inspection, and try to make it safer during LRK running. WARNING: Personal injury or death may be caused by misuse.
  • Page 6: Lrk Model Explanation

    LRK MODEL EXPLANATION Dxxx Funcional [ ]: LCD display, keys specification B: Blind type, without LCD and keys Input power D024: 12/24VDC A240: 100...240VAC Output type R: Relay Input/output 10: 10 points input/output points 12: 12 points input/output 20: 20 points input/output Series QUICK USE INSTRUCTIONS This section provides instructions on how to connect, program and operate a LRK controller in 5 steps.
  • Page 7: Connect The Power

    CONNECT THE POWER Select a proper power supply for the module and connect LRK to the power source, as shown below; refer to “Chapter II: Installation” for the detailed installation and wiring methods. CONNECT PROGRAMMING CABLE Insert the ethernet programming cable into the communication port of LRK, and connect the other cable end to network port of PC, as shown below.
  • Page 8 2. Configure IP address of PC side Select “Attribute” option of local area connection, and choose Internet protocol version 4. Configure IP address, Subnet mask and the default Gateway. Example: PC configurations: IP address: 192.168.0.5 Subnet mask: 255.255.255.0 Default gateway: 192.168.0.1...
  • Page 9: Establish Communication

    ESTABLISH COMMUNICATION a. Open the LRXSW programming software, and select “New”, as shown in the left below; b. Click menu operation “Operation —>Link”, as shown in the right below; c. Select TCPIP of programming cable connection, and click “Link”; WRITE SIMPLE PROGRAM a.
  • Page 10 b. Use the key “A” on the keyboard (or icon “A” in the Ladder toolbar) to draw a line from coil M to the rightmost unit of the programming area, as shown below. c. Select icon “Q” in the Ladder toolbar, put it into the rightmost unit of the programming area, select Q01 in the dialog box and press OK, as shown below.
  • Page 11 e. Click the button “RUN” on the toolbar, when the system pops up the dialog box “Read program from the module?”; select “No” to control LRK running, as shown below. f. Select the input status tool dialog, click coil M01 to make it ON, when output Q01 is enabled as ON, as shown below; the highlighted part is enabled, and output Q01 is ON.
  • Page 12: Chapter 2 Installation

    Chapter 2 Installation Chapter 2 Installation General specifications Type selection form Installation and fixing Wiring 12/24VDC input wiring 100~240V input wiring Sensor input wiring Relay output wiring IO Link or remote IO Link (for LRK20RD024RS type only) Indicator...
  • Page 13: General Specifications

    GENERAL SPECIFICATIONS LRK is a powerful micro PLC with up to 44 input/output points. Itself up to 20 input/output points, 20 of which integrated on the base module (for the biggest type LRK20...) and up to 24 with expansion modules. It can be configured with 3 groups of 4-in 4-out I/O extended module, 2 groups of analog output module, 2 groups of analog input module and 1 group of communication module.
  • Page 14: Type Selection Form

    Analog input Specification DC host module: 12bits Extended analog input module: 12bits Analog input range DC host module: 0~10VDC voltage input Extended module: 0~10V voltage input or 0~20mA current input Input signal OFF voltage <5VDC (same with 24VDC type digital input) Input signal ON voltage >9.8VDC (same with 24VDC type digital input) Isolation...
  • Page 15: Installation And Fixing

    INSTALLATION AND FIXING DIN-rail fixing LRK may be fixed directly with DIN-rail. After the mounting support in the back of LRK base module or expansion module is pulled out, the module can be fixed on the rail, and the extended module be connected to the host with expansion connector (press the button as shown below).
  • Page 16 It is suggested that a clamp be mounted at the rail end to fix LRK on the rail (as shown below). Fixing clamp DIN rail Direct fixing Pull out the mounting support in the back of module, and use M4 screws for fixing LRK directly (as shown below). For installation of extended module, the module should be moved, connected with the host and fixed with screws after the host is properly fixed.
  • Page 17: Wiring

    WIRING Output/input signal wire should not be parallel to high-voltage power line or placed in the same duct with such line. It is suggested that fast acting fuse or circuit protector be connected in each output section to avoid short circuit. Power and Signal cables should be selected by the following conditions: Use Copper Conductors Only, And minimum temperature rating of the cable to be connected to the field wiring terminals, 105°C.
  • Page 18: Input Wiring

    100~240VAC INPUT WIRING SENSOR INPUT WIRING RELAY OUTPUT WIRING...
  • Page 19: Io Link Or Remote Io Link (For Lrk20Rd024Rs Type Only)

    IO LINK OR REMOTE IO LINK (FOR LRK20RD024RS TYPE ONLY) Common ground is provided for LRK power supply and I/O port inside. When used as IO Link, it can be connected to 8 micro-plc type LRK20RD024RS (ID: 0~7) at most. When used as Remote I/O, it can be connected to 2 machines (host &...
  • Page 20: Chapter 3 Programming Tool

    Chapter 3 Programming Tool Chapter 3 Programming Tool PC programming software LRXSW Install the software Start screen Ladder programming environment Menu, icon and status display Programming Simulation mode Establish the connection Write program Online monitoring Run menu HMI/TEXT Program comment AQ analog output setting 3-column input/5-column input DR data register setting...
  • Page 21: Pc Programming Software Lrxsw

    PC PROGRAMMING SOFTWARE LRXSW The programming software LRXSW has two editing modes: Ladder diagram (Ladder) and functional block diagram (FBD). LRXSW is characterized as below: 1. Program can be established and edited simply and easily; 2. Program can be saved in PC and reused, or directly uploaded from LRK for saving or editing; 3.
  • Page 22: Menu, Icon And Status Display

    MENU, ICON AND STATUS DISPLAY Ladder programming environment includes the following menu, icon and status display. 1. Menu bar: 5 menu options, including File, Edit, Operation, View and Help; for LRK communication setting, special functions, display setting, help information and other functions are configured. 2.
  • Page 23: Simulation Mode

    Use the key or symbol “A” and “L”, and connect various coils; the rightmost is the programming column of output coil. SIMULATION MODE LRXSW has built-in simulation test function to enable simulation test and debugging of program while it is not downloaded to LRK controller. While LRXSW is not connected to the controller, click the icon RUN to enter the simulation mode, as shown below.
  • Page 24: Establish The Connection

    ESTABLISH THE CONNECTION The procedures for establishing the connection between PC programming software LRXSW and LRK micro-plc are described below: a. Select “Operation – > Link…” in the menu, when the serial port selection window pops up, as shown below; b.
  • Page 25: Online Monitoring

    ONLINE MONITORING LRXSW programming software allows online monitoring of the running program state, forced control of IO state and change of mode (Run, Stop or Exit).  LRK does not support online change of program control logic in the running mode. All logic editing (including coil, timer, counter and functional connection) must be written while LRK is in the stop mode.
  • Page 26: Hmi/Text

    As shown in the figure below: Compare, RTC Set, Analog Set, Module System Set HMI/TEXT HMI functional blocks: Status information displayed on 16*4 LCD of LRK includes: 1. Current and preset values of functional blocks, including timer, counter, RTC, comparator and DR register; the preset values of these functional blocks can be modified by the displayed HMI in the running mode;...
  • Page 27 HMI/TEXT editing steps: The steps ➀~➆ are shown and described below: ➀ Enter coil H01; ➁ Enter the HMI/TEXT editing interface; ➂ Select letter “T” ➃ Select letter “E” ➄ Select the current value of timer T01 ➅ Select the current value of timer T01 (with unit) ➆...
  • Page 28 85 built-in Chinese characters: The content is shown in the HMI/TEXT editing window in the left below; Example: HMI/TEXT function and input function of the key Z Power-on to tun the program Press “ ” (Z01) to display H03...
  • Page 29: Program Comment

    ➀ Press “SEL”, when the cursor blinks; ➁ Press “#”, “$”, “!” or “"” to move the cursor; ➂ Then press “SEL”, the blinking cursor changes to underline in the editable position; ➃ Press “#” or “$” to change digital value, and press “!” or “"” to confirm the input and move the underline.
  • Page 30 CONTACT/COIL SYMBOL Select the menu “Edit (E) – > Symbol” or click the symbol “...” or “More...” in the resource list for editing of contact/coil symbol; enter symbol in the corresponding number after the coil is selected; the contact/coil symbol editing function enables editing of all coil types and setting of display in the program editing area, as shown below.
  • Page 31: Aq Analog Output Setting

    AQ ANALOG OUTPUT SETTING Select the menu “Edit (E) – > Analog Output set” for editing of analog output, as shown in the left below. After the setting dialog box pops up, use channel 1~channel 4 for setting output AQ01~AQ04. When AQ0x is in the voltage output mode, the preset value range is 0~4095;...
  • Page 32: 3-Column Input/5-Column Input

    3-COLUMN INPUT/5-COLUMN INPUT The editing mode of 3-column input or 5-column input may be selected in the LRK LADDER programming mode. In the 3-column mode, three input coils and one output coil or functional block may be used in a line of Ladder instruction. The maximum number of lines of program is 500. In the 5-column mode, five input coils and one output coil or functional block may be used in a line of Ladder instruction.
  • Page 33: Dr Data Register Setting

    DR DATA REGISTER SETTING Data type of DR may be the type with symbol or without symbol, which may be set as shown below. For data without symbol, DR range is 0~65535; for data with symbol, DR range is -32768~32767 After the above operation, select the menu “Edit (E)~Data Register Set”...
  • Page 34 DESCRIPTION OF SPECIAL DR FUNCTION The current value of DR65~DRF0 may be kept in case of power failure. When DR is used as a special register, the enabling coil is not to be set. For enabling coil setting of special register under the enabled state ON, the current value of DR register will be covered by the preset value of the register.
  • Page 35: View Menu

    VIEW MENU The view menu includes some functions of display setting on PCLink software interface, as detailed below: View menu View function description Display of the list of resources used; Function Display of functional block parameter; Capacity Display of free space of program; Input Status Tool...
  • Page 36: Fbd Programming Environment

    FBD PROGRAMMING ENVIRONMENT The functional block diagram (FBD) programming environment includes all programming and simulation functions; select the menu “File (F) > New (N)” and choose the type LRK (as shown below) to begin new programming. The programming operations under FBD are similar to Ladder, as described below. MENU, ICON AND STATUS BAR FBD programming includes the following menu, icon and status bar.
  • Page 37: Simulation Mode

    Select the symbols “M” and “Q”, move icon to the editing area, and draw lines to connect the two coils, as shown in the left below (operation 1~3); if the lines are crossed, use the “Scissors” function for separate display of the lines, as shown in the right below (operation 4); SIMULATION MODE LRXSW has built-in simulation test function;...
  • Page 38: Online Monitoring

    ONLINE MONITORING PROGRAM COMMENT AND PARAMETER LIST Under FBD, comment is effective for the used coils and functional blocks only, and displayed in the program. Comment is function description of the whole program. As shown below, click “Comment” in FBD tool bar to pop up the comment setting dialog box, and click “OK”...
  • Page 39: Lcd Display And Keys

    Parameter list: Under FBD, all used coils and functional blocks are provided in the parameter list, which includes function and mark of coils, and set value and mark of functional blocks, as shown below. LCD DISPLAY AND KEYS KEYS The micro PLC LRK (excluded type LRK...B) integrate keypad and LCD display, which may be used for change of functional block setting, control of Run/Stop mode, user program reading and writing, real-time clock setting, as well as logic program editing in Ladder programming environment.
  • Page 40: Initial Screen

    INITIAL SCREEN LCD displays 4 lines of status information.  Power-on initial screen Input status keys input Z01-Z04 status □OFF Z enabled and on Z enabled and OFF Output status Z disabled Z enabled □OFF Mode RTC: week, hour, minute Stop At this time, the following keys can be used.
  • Page 41  Other status display Status of coils M, N, T, C, R, G: (T, C, R and G are effective in the Ladder mode only) Coil M2x 3x, Being M, N, T, C, R or G Analog input A01~A04: 0~9.99V A01=01.00V A02=02.00V A03=01.30V...
  • Page 42  I/O interface hiding: (to be tested) The initial interface includes 14 I/O display interfaces in total. Each of the lower 14 bits of the current value of DRD8 corresponds to one I/O interface. When one of the bits is 1, the corresponding I/O interface is hidden (it is impossible to switch to this I/O interface by the keys SEL+# $ or # $).
  • Page 43: Main Menu Screen

    MAIN MENU SCREEN (1) Main menu screen when LRK is stopped. On LRK initial interface, press “ESC” to enter Ladder main menu or FBD main menu: Menu Description > LADDER LADDER Ladder edit FUN.BLOCK PARAMETER FUN.BLOCK Ladder function block (timer/counter/ RTC …) edit PARAMETER FBD display...
  • Page 44 At this time, the following keys can be used. Function description 1. Ixx " ixx " – " space "~Ixx (Used for digit or character in columns 1, 3 and 5 only) 2. Qxx "space " Qxx (Used for digit or character in column8 only) 3.
  • Page 45  Run or Stop (1) RUN Mode (2) STOP Mode Stop > No > No Move the cursor Return to main menu after execution of instruction Return to main menu  DR register The preset value of DR is displayed in the stop mode, and the current value of DR displayed during running. DR01 = 00000 DR05 = 00000 DR02 = 00000...
  • Page 46: Rtc Summer Time/Winter Time Setting

     When M holding function is set, status of coil M and current value of timers TOE and TOF are held in case of power failure. At this time, the following keys can be used: Move the cursor # $ ! " Begin setting SEL+ !/"...
  • Page 47 RULES OF SUMMER TIME/WINTER TIME SETTING: 1) Month (M) range is 1~12; 2) Week (D) range is 0~5, which means. 0~5th Sunday of the current month; No. 0 Sunday means the final Sunday in the current month; 3) Hour (H) range is 1~22; hour parameter of summer time and winter time is the same. 2) Keypad Press “SEL”...
  • Page 48 (7) Password setting Password setting Password setting √ × " 0000 **** Press the following keys at this time: 1. Begin password input 2. When password is ON, 0000 is not displayed, but **** is displayed SEL+~!/"~ Move the cursor SEL+ # $ Password input 0~F Saved input data not being 0000 or FFFF, PASSWORD ON...
  • Page 49: System Error Display And Action

    (9) Program language selection INITIAL > LADDER ✓ Press the following keys at this time: Move the cursor Select mode Return to main menu The previously stored user program will be lost when Ladder or FBD editing mode is changed! SYSTEM ERROR DISPLAY AND ACTION Important system modules are monitored by LRK during power-on and running.
  • Page 50: Chapter 4 Parameter Transfer

    Chapter 4 Parameter Transfer Chapter 4 Parameter Transfer Internal data type of LRK Transfer of parameters out of range...
  • Page 51: Internal Data Type Of Lrk

    In LRK, almost all functional blocks use the current value of other blocks as the preset value. This process is called parameter transfer. The rules and precautions of parameter transfer are introduced in this chapter. INTERNAL DATA TYPE OF LRK All data in LRK exits in the integer form.
  • Page 52: Transfer Of Parameters Out Of Range

    TRANSFER OF PARAMETERS OUT OF RANGE Assuming the current value of MD (range -32768~32767) is transferred to T (range 0~9999) as the preset value. Obviously, the current value of MD may be higher than the upper limit of preset value of T or lower than the lower limit of the preset value. Under this condition, LRK will take the upper or lower limit applying the preset value of T as T preset value.
  • Page 53: Chapter 5 Ladder Programming Instructions

    Chapter 5 Ladder Programming Instructions Chapter 5 Ladder Programming Instructions Basic Elements Special Functional Instructions Output Instructions Analog Instructions Timer Instructions Counter Instructions Real-time clock (RTC) Instructions Analog Comparator Instructions Filter Instructions HMI Instructions IO Link/Remote IO Instructions (for LRK20RD024RS type only). MU (Modbus) Instructions (for LRK20RD024RS type only) SHIFT Instructions AQ Analog Output Instructions...
  • Page 54: Basic Elements

    BASIC ELEMENTS General Reset Pulse Normally Normally Quality output output output output open (NO) closed (NC) and number contact contact Symbol   (N.O./N.C.) Digital Input 12(I01-I0C/i01-i0C) Keypad Input 4(Z01-Z04/z01-z04) Digital Output 8(Q01-Q08/q01-q08) Auxiliary Coil 127(M01-M7F/m01-m7F) Auxiliary Coil 127(N01-N7F/n01-n7F) Counter 31(C01-C1F/c01-c1F) Timer 31(T01-T1F/t01-t1F)
  • Page 55 Auxiliary contacts M31~M3F as special auxiliary contact Meaning User program start icon User program outputs ON in the first scanning cycle and is reset after the first program execution cycle; M31 is used as general coil in subsequent cycles. 1second blinking output 0.5s ON, 0.5s OFF Summer/Winter output Output ON when summer time switching, and output OFF when winter...
  • Page 56 Counter status coil C Status of coil C depends on the relation between current value and preset value of counter. Coil C is set ON when the counter is set to count up and its current value is greater than or equal to the preset value, or set OFF when the counter is set to count down and its current value is 0. In the following example, the counter direction is decided by coil M09 (refer to Counter Instruction) and coil M02 is reset.
  • Page 57: Special Functional Instructions

    SPECIAL FUNCTIONAL INSTRUCTIONS Basic Reset Pulse Quality output output output output contact contact and number Symbol   (N.O./N.C.) Digital Input For functional block use Extended input coil 12(X01-X0C/x01-x0C) Extended output coil 12(Y01-Y0C/y01-y0C) Differential Real-time clock (RTC) 31(R01-R1F/r01-r1F) Analog comparator 31(G01-G1F/g01-g1F) 31(H01-H1F) 2(P01-P02)
  • Page 58: Output Instructions

    OUTPUT INSTRUCTIONS Set output instruction () When the control condition of set output instruction (SET instruction) changes from OFF to ON, the instruction controls and maintains coils Q and M ON, it is not required to keep the control condition ON afterwards, and output Q or M keeps ON till it is controlled by other output instruction.
  • Page 59: Analog Instructions

    ANALOG INSTRUCTIONS Analog input Analog output Quantity and number Analog input 8 (A01~A08) Analog input parameter 8 (V01~V08) Temperature input 4 (AT01~AT04) Analog output 4 (AQ01~AQ04) Add-Subtract control 31 (AS01~AS1F) Multiply-Divide control 31 (MD01~MD1F) PID control 15 (PI01~PI0F) Data Multiplexer control 15 (MX01~MX0F) Analog Ramp control 15 (AR01~AR0F)
  • Page 60: Timer Instructions

    TIMER INSTRUCTIONS LRK includes 31 independent timers. If “M KEEP” is set effective, the current values of T0E and T0F are kept in case of power failure. The timers have 8 working modes, and each timer has 6 configuration parameters to realize the 9 modes of timer (mode 0~ mode 8).
  • Page 61 TIMER MODE 1 (ON DELAY A) Timer begins timing when the control condition of timer mode 1 (ON Delay A) changes from OFF to ON, and it stops timing and the timer coil output is ON when the current value of timing reaches the preset value. The current value of timer and coil status are reset to 0 when the control condition of timer is OFF.
  • Page 62 TIMER MODE 2 (ON-DELAY WITH RESET) Timer mode 2 (ON Delay B) is designed with reset control. The timer begins timing when the control condition turns from OFF to ON, the current value of timer is kept when the control condition is OFF, and output coil is ON and timing is stopped when the current value of timer reaches the preset value.
  • Page 63 TIMER MODE 3 (OFF DELAY A) Timer mode 3 (OFF Delay A) is designed with reset control. T output is ON but the timer does not work when the control condition turns from OFF to ON; timer is started up for timing when the control condition turns from ON to OFF; timing is stopped, the current value is reset as 0 and T output is OFF when the current value of timer reaches the preset value;...
  • Page 64 TIMER MODE 4 (OFF-DELAY) Timer mode 4 (OFF Delay B) is designed with reset control. Timing is started and T output is ON when the control condition turns from ON to OFF; timing is stopped, the current value is reset and T output is OFF when the current value of timer reaches the preset value; the current value of timer and coil status are reset to 0 when reset control is effective.
  • Page 65 TIMER MODE 5 (FLASH WITHOUT RESET) Timer mode 5 is a flash output mode without reset control. The timer begins timing when the control condition is effective; status of output coil T is shifted when the current value of timer reaches the preset value; timing is continued when the current value is reset to 0. As shown below, output status of T01 is shifted when the control condition is ON and the current value of timer reaches the preset value 10;...
  • Page 66 TIMER MODE 6 (FLASH WITH RESET) Timer mode 6 is a flash output mode with reset control. The timer begins timing when the control condition turns from OFF to ON, status of output coil is shifted when the preset value is reached, and timing is continued when the current value of timer is reset to 0. In mode 6, the control condition is not required to be kept ON, and the current value of timer and output coil are reset to 0 when reset control is effective.
  • Page 67 TIMER MODE 7(FLASH CASCADE WITHOUT RESET) Timer mode 7 is a pulse output timer without reset control, which uses two timers T1 and T2. T1 begins timing and T1 output is ON when the control condition turns from OFF to ON; timing is stopped, the current value of T1 is kept, T1 output is OFF and T2 is started up when the current value of T1 reaches the preset value;...
  • Page 68 TIMER MODE 8 Timer mode 8 is a stopwatch mode with reset control and pause control. The timer begins timing when the control condition turns from OFF to ON; status of output coil is shifted, the current value of timer is displayed as the preset value and timing is discontinued when the preset value is reached;...
  • Page 69: Counter Instructions

    COUNTER INSTRUCTIONS LRK has 31 independent counters. Each counter has 6 parameters and 10 working modes, 1 of which is used as internal coil, 6 as general counter and 2 as high-speed counter. The 6 parameters and available coils are listed below. Symbol Description Available coil...
  • Page 70 COUNTER MODE 1 (NON-OVERTAKE, NON-RETENTIVE) The current value of counter is counted up from 0, counting is stopped and output coil is ON when the preset value is reached. In case of power failure, the current value is not kept and changes to 0 after power-on again or RUN/STOP switching. As shown below, I02 is the reset coil and M01 the counting direction coil;...
  • Page 71 COUNTER MODE 2 (OVERFLOW ALLOWED, NOT KEPT) The current value of counter is counted up from 0; after the preset value is reached, output coil is ON, but counting of input rising edge is continued till the current value is 65535. After power-on or RUN/STOP switching, the current value of counter is not kept but reset to 0. In the following example, I02 is the reset coil and M01 the counting direction coil;...
  • Page 72 COUNTER MODE 3 (OVERFLOW NOT ALLOWED, KEPT) The counter mode 3 is similar to mode 1, namely counting is stopped and output coil is ON when the current value reaches the preset value, but the current value is kept after power-on again. If “C KEEP” is effective, the current value is kept after RUN/STOP switching. In the following example, I02 is the reset coil and M01 the counting direction coil;...
  • Page 73 COUNTER MODE 4 (OVERFLOW ALLOWED, KEPT) The counter mode 4 is similar to mode 2, namely counting is continued after the current value reaches the preset value, but the current value is kept after power failure. If C KEEP is set, the current value is kept after RUN/STOP switching. In the following example, I02 is the reset coil and M01 the counting direction coil;...
  • Page 74 COUNTER MODE 5 (OVERTAKING, UP-DOWN COUNT, NON-RETENTIVE) The counter mode 5 is similar to mode 2, namely counting overflow is allowed, but the current value is not kept after power-on again or RUN/STOP switching. Regardless of counting direction in mode 5, output is ON only when the current value is higher than or equal to the preset value, and the current value is 0 after resetting, power failure or RUN/STOP switching.
  • Page 75 COUNTER MODE 6 (OVERFLOW ALLOWED, KEPT, COMPARISON COUNTER) The counter mode 6 is similar to mode 5, but the current value is kept in case of power failure; if C KEEP is set, the current value is kept after RUN/STOP switching. In the following example, I02 is the reset coil and M01 the counting direction coil; the counter C01 counts the input rising edge, and C01 output is ON and counting continues after the preset value 20 is reached.
  • Page 76 HIGH-SPEED COUNTER (FOR DC TYPE) Micro PLC LRK with DC power supply provides two 1KHz high-speed inputs I01 and I02, and uses two counters to realize two groups of high- speed counting. Counter modes 7 and 8 are high-speed counting that uses the same editing method with general counter but has different parameters.
  • Page 77 HIGH-SPEED COUNTER MODE 8 (1KHZ INPUT COUNTER) (DC POWERED VERSIONS ONLY) The Mode 8 High Speed Counter can use either input terminals I01 Symbol Description or I02 for forward up-counting to 1 KHz maximum at 24VDC high speed input signal. It will reflash its counted value in each “fixed High-speed counter mode 8 ➀...
  • Page 78 HIGH-SPEED COUNTER MODE 9 (1KHZ INPUT AB-PHASE COUNTER) Mode 9 is AB-phase high-speed counting function for counting of Symbol Description two lines of pulse with consistent periodic pulse width and phase difference of 90°, which uses the same editing method with general High-speed counter mode 9 ➀...
  • Page 79: Real-Time Clock (Rtc) Instructions

    REAL-TIME CLOCK (RTC) INSTRUCTIONS LRK includes 31 independent RTC functional blocks, and each block has 6 operating modes Clock setting V3.0 (mode 0~mode 5) and 6 parameters. Display of functional blocks and meaning of each parameter under Ladder are provided below. 2009.04.30 Thur 13:30 Symbol...
  • Page 80 RTC MODE 1 (DAY MODE) RTC mode 1 is for setting the daily ON/OFF time of each week. In the following example (1), effective time of each week is set as MO (Monday) 8:00 to FR (Friday) 17:00, namely coil R01 outputs ON from 8:00 to 17:00 in Monday to Friday, and outputs OFF at other times.
  • Page 81 Example 4: Example 5: Example 6:...
  • Page 82 RTC MODE 2 (WEEK MODE) RTC mode 2 is for setting ON/OFF time of coil R in a week. In the following example (1), coil R01 outputs ON from TU (Tuesday) 8:00 to SA (Saturday) 17:00, and outputs OFF at other times. Example 1: Example 2: Example 3:...
  • Page 83 RTC MODE 3 (YEAR-MONTH-DAY MODE) RTC mode 3 uses the set year-month-day to control status of coil R. The parameters of this mode and meanings of the parameters are provided below. In example 1, coil outputs ON from February 17, 2009 to November 11, 2010. When the year setting is 00-00 in RTC mode3, a special mode is used to enable RTC from the beginning month and day to the end month and day of each year, as shown in example 4.
  • Page 84 RTC MODE 4 (30S COMPENSATION) RTC mode 4 is a 30s compensation mode, which uses the set week, hour, minute and second for operation of the current value of RTC and correction of RTC error. The display form and parameter meaning of RTC mode 4 and programming interface under Ladder are provided below. Symbol Description Corrected week of RTC...
  • Page 85 Example 2: Corrected second>= 30s  R01 outputs ON when the current value of RTC is 8:00:40, and outputs OFF when RTC time changes to 8:01:00. The duration when output is ON is a scanning cycle only.
  • Page 86 RTC MODE 5 (ASTRONOMICAL CLOCK) RTC mode 5 is the astronomical clock mode that uses the set longitude and latitude and offset time to control output of RTC coil. The display form and parameter meaning of RTC mode 5 and programming interface under Ladder are provided in the following diagram and table. Symbol Description RTC mode 5...
  • Page 87: Analog Comparator Instructions

    ANALOG COMPARATOR INSTRUCTIONS LRK includes 31 independent comparator instructions, and each comparator has 8 working modes and 5 functional parameters. The display diagram and parameters of the comparator are provided below. Symbol Description Comparator mode (0~7) ➀ Ax analog input (0.00~99.99) ➁...
  • Page 88 Example 2: The comparator works in mode 5, and G01 outputs ON when comparator reference value T01 is lower than or equal to Ax analog input C01, or outputs OFF otherwise.
  • Page 89: Filter Instructions

    FILTER INSTRUCTIONS LRK includes 31 independent Filter instructions, and each filter has 5 working modes. The display diagram and parameters of filter are provided below. FILTER MODE 0 (INTERNAL COIL) Mode 0 Filter (Internal Coil) used as internal auxiliary coils. No preset value. In the example below shows the relationship among the numbered block diagram for a Mode 0 Filter, the ladder diagram view, and the software Edit Contact/Coil dialog box.
  • Page 90 FILTER MODE 2: AVERAGE VALUE Function description: The enabling coil is set ON to enable the average function, which is used to calculate the average value of analog inputs in the set time period. Symbol Description F mode ➀ Time base ➁...
  • Page 91 FILTER MODE 3: MAXIMUM VALUE The maximum value function is enabled and status of output coil and enabling coil is consistent after the enabling coil is set ON, and the function is disabled and status of output coil and enabling coil is consistent after the enabling coil is set OFF. While the enabling coil is ON, the current value of block F is recorded as the maximum value of analog input Ax.
  • Page 92: Hmi Instructions

    HMI INSTRUCTIONS LRK includes 31 independent HMI instructions, and each HMI instruction enables display of content in 16×4 characters on LCD in the form of text, figure, coil status, preset value and current value of functional block. Text displayed by HMI has three types: multi-language (as shown to the right), built-in Chinse and user-defined Chinese.
  • Page 93 HMI DISPLAY DESCRIPTION 1. HMI enables display of characters, built-in Chinese character and phone number which cannot be modified by keypad. 2. HMI enables display of the preset value and current value of functional blocks (T, C, R, G, DR) and analog input and output (A, AT, AQ), among which, preset value can be modified by keypad.
  • Page 94: Io Link/Remote Io Instructions (For Lrk20Rd024Rs Type Only)

    IO LINK/REMOTE IO INSTRUCTIONS (FOR LRD20RD024RS TYPE ONLY) LRD20RD024RS has built-in RS 485 communication port. It can be used as master/slave station of ModBus RTU, or connected with other LRD20RD024RS to form IO Link or remote IO. The communication mode and baud rate can be set through Operation(O)»Module system setting(Y) of LRXSW programming software or keypad.
  • Page 95 IO LINK An IO Link is composed of 8 micro-plc type LRD20RD024RS type at most, where each slave contact is used as an independent station for running of its logic program and all slave contacts are connected to the same master station. IO Link ID must be continuous and be 0~7; master station ID is 0, and slave station ID begins from 1 to 7;...
  • Page 96 Example 1: Sending mode The set mode is 1, coil number is 5, starting coil is I03 and LRK ID is 1, status of coil I03~I07 will be sent to W09~W13, as shown below. ① ② ③ ④ Example 2: Receiving mode The set ➀...
  • Page 97 Remote IO A remote IO network is composed of two LRK20RD024RS at most, where one is the master station and the other is the slave station. The setting method and IO correspondence are as follows. Master station Remote IO disabled Set to slaver Set to slaver Set to master...
  • Page 98: Mu (Modbus) Instructions (For Lrk20Rd024Rs Type Only)

    MU (MODBUS) INSTRUCTIONS (FOR LRD20RD024RS TYPE ONLY) The Modbus block of LRD20RD024RS realizes Modbus RTU master communication at RS485 interface. LRD20RD024RS includes 15 Modbus blocks, MU01~MU0F. RS485 type communication gives priority to Remote IO and IO Link, namely the functional block is not executed by Remote IO master and slave and IO Link master, and Modbus instruction is executed only when it is set as N (remote IO) and ID is not 0.
  • Page 99 Modbus block has 5 parameters, the display and meaning of which are listed below. Symbol Description MU block mode 1~5 ➀ Communication address: Slave station ID, range 0~7f ➁ Communication command address and communication data length: ➂ 1) Constant, range 0000~ffff; Data length of modes 1 and 3 is 1 word;...
  • Page 100 MU MODE 1: READ REGISTER Set communication address of parameter ➂ as a constant: As shown above, communication data length is 1. Set communication address of parameter ➂ as register DR: Functional block parameters are displayed as below: Set command address DR03=0001 Set data length DR04=0002 The sending command is: 01 03 00 01 00 02 CRC16...
  • Page 101 MU MODE 2: WRITE A SINGLE REGISTER Set communication address of parameter ➂ as a constant: Functional block parameters are displayed as below: Command address constant 0003 Set numerical data DRE0=1234 (hex: 04D2) The sending command is: 01 06 00 03 04 D2 CRC16 Receiving response data of slave station 1: 01 06 00 03 04 D2 CRC16 Set communication address of parameter ➂...
  • Page 102 MU MODE 3: WRITE VARIOUS REGISTERS Set communication address of parameter ➂ as a constant: Functional block parameters are displayed as below: Command address constant 0003 Data length is 1 word Set data DRE0=1234 (hex: 04D2), The sending command is: 01 10 00 03 00 01 02 04 D2 CRC16 Receiving response data of slave station 1: 01 10 00 03 00 01 CRC16...
  • Page 103 MU MODE 4: READ COIL Set communication address of parameter ➂ as a constant: Functional block parameters are displayed as below: Command address constant 32 (hex: 0020), Data length is 16 (hex: 10H, 1word), The sending command is: 01 01 00 20 00 10 CRC16 Receiving response data of slave station 1: 01 01 02 data1 data2 CRC16;...
  • Page 104 MU MODE 5: WRITE A SINGLE COIL Set communication address of parameter ➂ as a constant: Functional block parameters are displayed as below: Command address constant 0003, Set data DRE0=65280 (hex: FF00), T he sending command is: 01 05 00 03 FF 00 CRC16. Receiving response data of slave station 1: 01 05 00 03 FF 00 CRC16.
  • Page 105 Example: Data is sent and received through RS485 port after MU is enabled. It is suggested to use communication of D trigger control MU instruction. T01 controls MU01 and MU05; Set MU01 mode 1, read register, address is DR11=14 (0x0E), length is DR12=4, save to register DR01~DR04; Set MU05 mode 3, write register, address is DR13=14 (0x0E), length is DR14=4, data is fetched from register DR05~DR08 (DR05=10000=0x2710, DR06=8000=0x1F40, DR07=6000=0x1770, DR08=4000=0x0FA0);...
  • Page 106: Shift Instructions

    SHIFT INSTRUCTIONS LRK includes 1 SHIFT instruction, which is for cycling and alternating output of effective status at the specified contacts. SHIFT instruction has 4 parameters, the display and meaning of which are listed below. Symbol Description Number of output contacts (1~8) ➀...
  • Page 107: Aq Analog Output Instructions

    AQ ANALOG OUTPUT INSTRUCTIONS AQ analog output instructions are used with the extended analog output module 2AO. The default output mode of AQ is voltage mode 0~10V, where 12bits value is 0~4095 and the corresponding AQ value is 0~1000. When the output mode is set as current mode 0~20 mA, 12bits value is 0~2047 and the corresponding AQ value is 0~500. 12bits value of AQ is stored in register DRD4~DRD7, and output mode is based on the current value of register DRD0~DRD3, as listed below.
  • Page 108 Example 1: AQ01 preset value as a constant. During running, M01 is not enabled, DRD4 current value is AQ01 set value 4000, and AQ01 outputs 9.77V. When M01 is enabled, DRD4 output is V01 value, and AQ01 output varies while V01 value is regulated. Example 2: AQ01 preset value as other parameter.
  • Page 109: As (Addition And Subtraction) Instructions

    AS (ADDITION AND SUBTRACTION) INSTRUCTIONS LRK includes 31 independent AS instructions for data addition and subtraction. AS instruction has 6 parameters, the display and meaning of which are provided below. Symbol Description AS current value: -32768~32767 ➀ V1: operand 1: -32768~32767 ➁...
  • Page 110: Md (Multiplication And Division) Instructions

    MD (MULTIPLICATION AND DIVISION) INSTRUCTIONS LRK includes 31 independent MD instructions for data multiplication and division. MD instruction has 6 parameters, the display and meaning of which are provided below. Symbol Description MD current value: -32768~32767 ➀ V1: operand 1: -32768~32767 ➁...
  • Page 111: Pid Instructions

    PID INSTRUCTIONS LRK includes 15 independent PID instructions for PID operation of integer data. PID instruction has 9 parameters, the display and meaning of which are provided below. Symbol Description PI: PID current value (-32768~32767) ➀ SV: target value (-32768~32767) ➁...
  • Page 112 There are three basic types of controller: Proportional controller (P); Integral controller (I); Differential controller (D); The controllers form the proportion integration differentiation controller (PID controller). Functions of the basic controllers are explained below. Proportional controller Proportional controller (P) Process proportional gain (KP) control Based on the error EV between the target value SV and measured value PV, the regulated variable ~PI is changed proportionally (Kp) to change...
  • Page 113 Differential controller Differential controller changes the regulated variable rPI in proportion to variation of the measured value PV to control the output result PI. In response to variation of the measured value PV, it changes the regulated variable to quickly complete the transition process. Differential controller characteristics: overcoming oscillation, improving stability and speeding up the transition process., PID controller characteristics: Fast, stable and accurate.
  • Page 114: Mx (Multiplex Controller) Instructions

    MX (MULTIPLEX CONTROLLER) INSTRUCTIONS LRK includes 15 independent MX (multiplex controller) instructions, and each MX instruction has 7 parameters as listed below. When MX is disabled, MX current value is 0; when MX is enabled, MX current value is one of the parameters ➀~➃ based on status of ➄ and ➅, namely parameter is output.
  • Page 115: Ar (Ramp Function Generator) Instructions

    AR (RAMP FUNCTION GENERATOR) INSTRUCTIONS LRK includes 15 independent AR (ramp function generator) instructions which are used to make the current level of AR change to the set level gradually at the set rate by operation of integer data. Each AR instruction has 2 modes. AR mode 1 In mode 1, AR current value changes from the starting level to the target level at stepping rate.
  • Page 116 Timing diagram of AR current level: Display and editing interface of AR are shown below.
  • Page 117 AR mode2 In mode 2, the four output levels L0~L3 can be set, and at the same time, one of the levels can be output as the target level as per the level selection ports Sel1 and Sel2. AR mode 2 has 12 parameters for setting. Symbol Description AR current value (AR:0~32767)
  • Page 118 Timing diagram of AR mode 2 Example:...
  • Page 119: Dr (Data Register) Instructions

    DR (DATA REGISTER) INSTRUCTIONS LRK includes 240 independent DR (data register) instructions, and each DR instruction has 3 parameters. When DR is enabled, the preset value is transferred to DR current value register. Data in DR may be the type with symbol or the type without symbol, and the control bit can be set by LRK user programming software menu Operation (O)>>Module system setting(Y)…or keypad.
  • Page 120 Menu interface DR register: DR preset value is displayed in STOP mode, and DR current value is displayed in RUN mode. STOP RUN (DR01 = C01 current value) DR01 = C01 DR01 = 00009 DR02 = 00000 DR02 = 00000 DR03 = 00000 DR03 = 00000 DR04 = 00000...
  • Page 121: Chapter 6 Fbd Programming Instructions Fbd Coil

    Chapter 6 FBD Programming Instructions Chapter 6 FBD Programming Instructions FBD Coil FBD Program Storage Space Analog Coil Analog input Analog output Coil Blocks HMI graph block IO Link graph block (for LRK20RD024RS type only). SHIFT graph block Logic Block Diagrams AND logic block diagram AND (EDGE) logic block diagram NAND logic block diagram...
  • Page 122: Fbd Coil

    FBD COIL Input Output Range Input coil 12 (I01~I0C) Key input 4 (Z01~Z04) Extended input 12 (X01~X0C) Output coil 8 (Q01~Q08) Extended output 12 (Y01~Y0C) Auxiliary contact 127(M01~M7F) Auxiliary contact 127(N01~N7F) 31 (H01~H1F) 2 (P01~P02) SHIFT 1 (S01) I/O LINK 8 (L01~L08) Logic block/functional block 260 (B001~B260)
  • Page 123: Fbd Program Storage Space

    FBD PROGRAM STORAGE SPACE LRK provides limited resource for FBD program: Number of graph System memory (byte) block B 10000  The size of each block diagram B varies with its function.  Functional block diagrams include: special functional block diagram, regulating functional block diagram and serial port communication functional block diagram.
  • Page 124  Logic block diagrams include AND, AND EDGE, NAND, NAND EDGE, OR, NOR, XOR, NOT, RS, PULSE and BOOLEAN functions; each logic block uses 1 B, and the available quantity is limited by number of B and system memory space. Logic function block Number of graph blocks B System memory (byte)
  • Page 125: Analog Coil

    ANALOG COIL Analog coil includes analog input A01~A04, extended analog input A05~A08, analog offset gain V01~V08, extended analog temperature input AT01~AT04 and extended analog output AQ01~AQ04. Analog value may be used as preset value of other functional blocks. Analog input A01~A04 Expansion analog input A05~A08...
  • Page 126: Analog Output

    Analog output AQ analog output instructions are used with extended analog output module 2AO. Default output mode of AQ is voltage mode 0~10V, where 12bits value is 0~4095, and the corresponding AQ value is 0~1000. When the output mode is set as current mode 0~20 mA, 12bits value is 0~2047, and the corresponding AQ value is 0~500. The 12bits value of AQ is stored in register DRD4~DRD7.
  • Page 127: Coil Blocks

    COIL BLOCKS Output coils include Q, Y, M, N, H, L, P and S; FBD menu display is shown below: Output contact Output coil type Output coil graph block H, L, P and S special functional output coils; press “OK” to enter the functional display interface. Press the following keys at this time: Enter the functional display interface when cursor is in the coil position and coil type is H, L, P or S.
  • Page 128: Hmi Graph Block

    HMI GRAPH BLOCK LRK includes 31 independent HMI instructions, and each HMI enables display of content in 16×4 characters on LCD in the form of text, figure, coil status, preset value and current value of functional block, and current value of analog. Text displayed by HMI has types multi-language and Chinese.
  • Page 129: Io Link Graph Block (For Lrk20Rd024Rs Type Only)

    IO LINK GRAPH BLOCK (FOR LRK20RD024RS TYPE ONLY) An IO Link is composed of 8 micro-plc type LRK20RD024RS at most, where each contact is used as an independent station for running of its logic program and all slave contacts are connected to the same master station. IO Link ID must be continuous and be 0~7; master station ID is 0, and slave station ID begins from 1 to 7;...
  • Page 130 Example 1: Sending mode The set mode is 1, coil number is 5, starting coil is I03 and LRK ID is 1, status of coil I03~I07 will be sent to W09~W13, as shown below. Mode=1, Num= 5, coil= I03~I07, ID=1 (W09~W13) W table position Receiving or —...
  • Page 131: Shift Graph Block

    SHIFT GRAPH BLOCK LRK includes 1 SHIFT instruction, which is for cycling and alternating output of effective status at the specified contacts. Coil output display Press OK to enter Press “SEL” to modify under FBD functional display coil number and type Display description Output contact Number...
  • Page 132: Logic Block Diagrams

    LOGIC BLOCK DIAGRAMS Logic block display under FBD: Graph block code Next connected graph block Output contact Logic functional block type Press the following keys at this time: " Move the cursor, input contact " graph block code~" next connected graph block/coil display Move the cursor, graph block code~"...
  • Page 133: Nand Logic Block Diagram

    NAND logic block diagram FBD: Ladder: " Not (I01 And I02 And I03)  Input contact NOP is equivalent to Hi;  B outputs ON when any input contact is OFF. NAND (EDGE) logic block diagram FBD: Ladder: " Not (I01 And I02 And I03) And D ...
  • Page 134: Nor Logic Block Diagram

    NOR logic block diagram FBD: Ladder: " Not (I01 or I02 or I03)  Input contact NOP is equivalent to Lo;  B outputs ON when all input contacts are OFF. XOR logic block diagram FBD: Ladder: " I01 XOR I02 ...
  • Page 135: Not Logic Block Diagram

    NOT logic block diagram Ladder: FBD: " Not I01  Input contact NOP is equivalent to Hi. Pulse logic block diagram FBD: Ladder: "  Input contact NOP is equivalent to Lo;  B output status changes when input contact status changes from OFF to ON. BOOLEAN logic block diagram FBD: Ladder:...
  • Page 136: Functional Block Diagrams

    FUNCTIONAL BLOCK DIAGRAMS  Operation rule of all functional blocks in FBD mode is basically the same with that in Ladder mode. Functional block type Graph block code Input contact Parameter setting Next connected graph block  When the cursor is in parameter setting “Par”, press “OK” to enter the parameter display setting interface for editing and modifying the preset value of functional blocks.
  • Page 137: Timer Functional Block Diagram

    TIMER FUNCTIONAL BLOCK DIAGRAM Under FBD, 250 timers may be used at the maximum in mode 0~8 where the function is the same with that under Ladder.  In timer mode 7 under FBD, a functional block B uses two timers T. ...
  • Page 138 TIMER MODE 1 (ON-DELAY A MODE) Timer begins timing when the control condition of timer mode 1 changes from OFF to ON, and it stops timing and the timer coil outputs ON when the current value of timing reaches the preset value. The current value of timer and coil status are reset to 0 when the timer control condition is OFF.
  • Page 139 TIMER MODE 2 (ON-DELAY B MODE) Timer mode 2 is designed with reset control. The timer begins timing when the control condition turns from OFF to ON, the current value of timer is kept when the control condition is OFF, and output coil is ON and timing is stopped when the current value of timer reaches the preset value.
  • Page 140 TIMER MODE 3 (OFF-DELAY A MODE) Timer mode 3 is designed with reset control. T output is ON but the timer does not work when the control condition turns from OFF to ON; timer is started up for timing when the control condition turns from ON to OFF; timing is stopped, the current value is reset as 0 and T output is OFF when the current value of timer reaches the preset value;...
  • Page 141 TIMER MODE 4(OFF-DELAY B MODE) Timer mode 4 is designed with reset control. Timing is started and T output is ON when the control condition turns from ON to OFF; timing is stopped, the current value is reset and T output is OFF when the current value of timer reaches the preset value; the current value of timer and coil status are reset to 0 when reset control is effective.
  • Page 142 TIMER MODE 5(FLASH A MODE) Timer mode 5 is a flash output mode without reset control. The timer begins timing when the control condition is effective; status of output coil T is shifted when the current value of timer reaches the preset value; timing is continued when the current value is reset to 0. Functional block diagram Parameter display Enabling input...
  • Page 143 TIMER MODE 6 (FLASH B MODE) Timer mode 6 is a flash output mode with reset control. The timer begins timing when the control condition turns from OFF to ON, status of output coil is shifted when the preset value is reached, and timing is continued when the current value of timer is reset to 0. In mode 6, the control condition is not required to be kept ON, and the current value of timer and output coil are reset to 0 when reset control is effective.
  • Page 144 TIMER MODE 7 (FLASH C MODE) Timer mode 7 is a pulse output timer without reset control, which uses two timers T1 and T2. T1 begins timing and T1 outputs ON when the control condition turns from OFF to ON; timing is stopped, the current value of T1 is kept, T1 outputs OFF and T2 is started up when the current value of T1 reaches the preset value;...
  • Page 145 TIMER MODE 8 Timer mode 8 is a stopwatch mode with reset control and pause control. The timer begins timing when the control condition turns from OFF to ON; status of output coil is shifted, the current value of timer is displayed as the preset value and timing is discontinued when the preset value is reached;...
  • Page 146: General Counter Functional Block Diagram

    GENERAL COUNTER FUNCTIONAL BLOCK DIAGRAM The maximum number of counters used under FBD is 250. Modes 0~6 are general counter, and modes 7~9 are high-speed counter; the counter function is the same with that under Ladder. Counter editing and display: FBD display: Parameter display: ...
  • Page 147 COUNTER MODE 1 (OVERFLOW NOT ALLOWED, NOT KEPT) The current value of counter is counted up from 0, counting is stopped and output coil is ON when the preset value is reached. In case of power failure, the current value is not kept after power-on again or RUN/STOP switching. Functional block diagram Parameter display Counting pulse input...
  • Page 148 COUNTER MODE 2 (OVERFLOW ALLOWED, NOT KEPT) The current value of counter is counted up from 0; after the preset value is reached, output coil is ON, but counting of input rising edge is continued till the current value is 65535. After power-on or RUN/STOP switching, the current value of counter is not kept. Parameter display Functional block diagram Counting pulse input...
  • Page 149 COUNTER MODE 3 (OVERFLOW NOT ALLOWED, KEPT) The counter mode 3 is similar to mode 1, namely counting is stopped and output coil is ON when the current value reaches the preset value, but the current value is kept after power-on again. If “C KEEP” is effective, the current value is kept after RUN/STOP switching. Functional block diagram Parameter display Counting pulse input...
  • Page 150 COUNTER MODE 5 (OVERFLOW ALLOWED, NOT KEPT, COMPARISON COUNTER) The counter mode 5 is similar to mode 2, namely counting overflow is allowed, but the current value is not kept after power-on again or RUN/ STOP switching. Regardless of counting direction in mode 5, output is ON only when the current value is higher than or equal to the preset value, and the current value is 0 after resetting, power failure or RUN/STOP switching.
  • Page 151 COUNTER MODE 6 (OVERFLOW ALLOWED, KEPT, COMPARISON COUNTER) The counter mode 6 is similar to mode 5, but the current value is kept in case of power failure; if C KEEP is set, the current value is kept after RUN/STOP switching. Functional block diagram Parameter display Counting pulse input...
  • Page 152: High-Speed Counter Functional Block Diagram (For Dc Type Only)

    HIGH-SPEED COUNTER FUNCTIONAL BLOCK DIAGRAM (FOR DC TYPE ONLY) LRK with DC power supply provides two 1KHz high-speed inputs I01 and I02, and uses two counters to realize two groups of high-speed counting. Counter modes 7~9 are high-speed counting function. (1) High-speed counter mode 7 (proportional input counter) In DC machine, high-speed counter mode 7 uses I01 or I02 as the maximum 1KHz high-speed input, and counting is stopped and output coil is ON after the counting value reaches the preset value.
  • Page 153 HIGH-SPEED COUNTER MODE 8 (1KHZ INPUT COUNTER) In high-speed counter mode 8, I01 or I02 is used as the maximum 1KHz high-speed input port. Output coil is ON if the number of rising edges counted in the set time interval is more than or equal to the ON preset value; on the contrary, output coil is OFF if the counted number of rising edge is less than the OFF preset value;...
  • Page 154 HIGH-SPEED COUNTER MODE 9 (1KHZ INPUT AB PHASE COUNTER) Mode 9 is AB-phase high-speed counting function for counting of two lines of pulse with consistent periodic pulse width and phase difference of 90°, which uses the same editing method with general high-speed counting but has different parameters. In DC machine, high-speed counter mode 9 enables high-speed input counting of the maximum 1KHz AB phases of I01 (A) ahead of I02 (B);...
  • Page 155: Rtc Functional Block Diagram

    RTC FUNCTIONAL BLOCK DIAGRAM The maximum number of RTC functional blocks used under FBD is 250. RTC works in modes 0~5, and its function is the same with that under Ladder. RTC MODE 0 (INTERNAL COIL) RTC of mode 0 is used as internal coil, which does not have preset value and parameter display. Functional block diagram Enabling input "...
  • Page 156 RTC MODE 1 (DAY MODE) RTC mode 1 is for setting the daily ON/OFF time of each week. In the following example (1), effective time of each week is set as MO (Monday) 8:00 to FR (Friday) 17:00, namely coil B002 (R01) outputs ON from 8:00 to 17:00 in Monday to Friday, and outputs OFF at other times.
  • Page 157 RTC MODE 2 (WEEK MODE) RTC mode 2 is for setting ON/OFF time of coil R in a week. In the following example (1), coil B002 (R01) outputs ON from TU (Tuesday) 8:00 to SA (Saturday) 17:00, and outputs OFF at other times. Example 1: Functional block diagram Parameter display...
  • Page 158 RTC MODE 3 (YEAR-MONTH-DAY MODE) RTC mode 3 uses the set year-month-day to control status of coil R. In example 1, coil outputs ON from February 17, 2009 to November 11, 2010. When the year setting is 00-00 in RTC mode3, a special mode is used to enable RTC from the beginning month and day to the end month and day of each year, as shown in example 3.
  • Page 159 RTC MODE 4 (30S COMPENSATION) RTC mode 4 is a 30s compensation mode, which uses the set week, hour, minute and second for operation of the current value of RTC and correction of RTC error. Example 1: Functional block diagram Parameter display Enabling input Current time...
  • Page 160 RTC MODE 5 (ASTRONOMICAL CLOCK) RTC mode 5 is the astronomical clock mode that uses the set longitude and latitude and offset time to control output of RTC coil. The display form and parameter meaning of RTC mode 5 and programming interface under Ladder are provided in the following diagram and table. After the corresponding parameter, E/W (east/west longitude) and longitude value, S/N (south/north latitude) and latitude value are set, the functional block R will work out the sunrise time and sunset time in the set place in the current season and enable the setting of forward (-) or backward (+) offset time (0~59min) of sunrise/sunset time by setting the offset direction, and coil R will output ON from sunrise to sunset and...
  • Page 161: Analog Comparator Functional Block Diagram

    ANALOG COMPARATOR FUNCTIONAL BLOCK DIAGRAM The maximum number of analog comparator functional blocks used under FBD is 250. Analog comparator works in modes 0~7, and its function is the same with that under Ladder. ANALOG COMPARATOR MODE 0 (INTERNAL COIL) Analog comparator of mode 0 is used as internal auxiliary coil, which does not have preset value and parameter display.
  • Page 162 ANALOG COMPARATOR MODE 1~7 The set parameters of analog comparator include analog input Ax, analog input Ay and comparison reference value. The relations are as follows: Comparator mode 1: (Ay- comparison reference value) ≤Ax≤(Ay+ comparison reference value), output ON; Comparator mode 2: Ax≤Ay, output ON;...
  • Page 163 Comparator mode 4 Functional block diagram Parameter display Enabling input " Ax preset value Comparison reference value Parameter setting " B003 (G01) outputs ON when A01 value is not more than 2.50. The current value of Ax is displayed in the RUN mode. Comparator mode 5 Functional block diagram Parameter display...
  • Page 164: Filter Functional Block Diagram

    FILTER FUNCTIONAL BLOCK DIAGRAM The maximum number of filter functional blocks used under FBD is 250. Filter works in mode 0~4 and its function is the same as under Ladder. FILTER MODE 1: ANALOG FILTER Function description: Analog filter function is started after parameters are configured and status of the enabled coil turns from 0 to 1. This function enables filtering of Ax analog value based on the selected sampling mode, and the filtered value is the current value of coil F.
  • Page 165 FILTER MODE 2: AVERAGE VALUE The enabling coil is set ON to enable the average function, which is used to calculate the average value of analog inputs in the set time period. After the enabling coil is set ON, the average value of analog inputs in the set time period is calculated based on the configured parameters and updated to the current value of functional block, and meanwhile, output coil is set ON.
  • Page 166: Addition And Subtraction Functional Block Diagram

    ADDITION AND SUBTRACTION FUNCTIONAL BLOCK DIAGRAM The maximum number of addition and subtraction functional blocks used under FBD is 250. The function is the same as under Ladder. Computing formula: AS = V 1 + V 2 − V 3 Operand V1~V3 may be a constant or code of current value of another functional block.
  • Page 167: Multiplication And Division Functional Block Diagram

    MULTIPLICATION AND DIVISION FUNCTIONAL BLOCK DIAGRAM The maximum number of multiplication and division functional blocks used under FBD is 250. The function is the same as under Ladder. Computing formula: MD = V 1 * V 2 / V 3 Operand V1~V3 may be a constant or code of current value of another functional block.
  • Page 168: Pid Functional Block Diagram

    PID FUNCTIONAL BLOCK DIAGRAM The maximum number of analog comparator functional blocks used under FBD is 30. The function is the same as under Ladder. PID computing formula: PI: PID current value (-32768~32767) SV: target value (-32768~32767) PV: measured value (-32768~32767) TS: sampling time (1~32767 * 0.01s) KP: proportional gain (1~32767%) TI: integral time (1~32767 * 0.1s)
  • Page 169: Multiplex Controller (Mx) Functional Block Diagram

    MULTIPLEX CONTROLLER (MX) FUNCTIONAL BLOCK DIAGRAM The maximum number of multiplex controller functional blocks used under FBD is 30. The function is the same as under Ladder. When MX is enabled, status of S1 and S2 is input as per setting, output value of MX is one of the preset parameters V0~V3, and coil outputs ON;...
  • Page 170: Ramp Function Generator (Ar) Functional Block Diagram

    RAMP FUNCTION GENERATOR (AR) FUNCTIONAL BLOCK DIAGRAM The maximum number of AR functional blocks used under FBD is 30. The function of AR mode 1 and mode 2 is the same as under Ladder. AR MODE 1 AR current value (AR: 0~32767) Function description: Level 1 (Levl1: -10000~20000) After AR is enabled, the current level is kept at “Start/Stop offset+ offset”...
  • Page 171 AR MODE 2 AR current value (AR:0~32767) Function description: Level 0 (Levle0:0~32767) In AR02, the current output level is decided by level selection ports Sel1 and Sel2, and the fixed variation Rate by parameters MaxL and Ta. After AR is Level 1 (Levle0:0~32767) enabled, AR output will change from 0 to the current output level at the Rate.
  • Page 172 Example: FBD display Parameter display Program display Enabling input " Selection input 1 " Selection input 2 " SEL+ !/" Parameter setting "  AR output value is only displayed during running.
  • Page 173: Data Register (Dr) Functional Block Diagram

    DATA REGISTER (DR) FUNCTIONAL BLOCK DIAGRAM The maximum number of DR functional blocks used under FBD is 240. The function is the same as under Ladder. When DR is enabled, the preset value is transferred to DR current value register, and coil B outputs ON; when DR is disabled, the current value is kept and coil B outputs OFF.
  • Page 174: Modbus Functional Block Diagram

    MODBUS FUNCTIONAL BLOCK DIAGRAM The maximum number of Modbus functional blocks used under FBD is 250. Modbus works in mode 1~5, and its function is the same as under Ladder. RS485 communication gives priority to Remote IO and IO Link, namely the functional block is not executed by Remote IO master and slave and IO Link master, and Modbus instruction is executed only when it is set as N (remote IO) and ID is not 0.
  • Page 175 MU MODE 1: READ REGISTER Set communication address as a constant: Set command address constant 0003, Set data length as 1 word, The sending command is: 01 03 00 03 00 01 CRC16; Receiving response data of slave station 1: 01 03 02 data1 data2 CRC16;...
  • Page 176 MU MODE 2: WRITE A SINGLE REGISTER Set communication address as a constant: Command address constant 0003, Set value data DRE0=1234 (hex: 04D2), The sending command is: 01 06 00 03 04 D2 CRC16; Receiving response data of slave station 1: 01 06 00 03 04 D2 CRC16;...
  • Page 177 MU MODE 3: WRITE VARIOUS REGISTERS Set communication address as a constant: Command address constant 0003, Set data length as 1 word, Set data DRE0=1234 (hex: 04D2), The sending command is: 01 10 00 03 00 01 02 04 D2 CRC16; Receiving response data of slave station 1: 01 10 00 03 00 01 CRC16;...
  • Page 178 MU MODE 4: READ COIL Set communication address as a constant: Command address constant 32 (hex: 0020), Set data length as 16 (hex: 10H, 1word), The sending command is: 01 01 00 20 00 10 CRC16; Receiving response data of slave station 1: 01 01 02 data1 data2 CRC16;...
  • Page 179 MU MODE 5: WRITE A SINGLE COIL Set communication address as a constant: Command address constant 0003, Set data DRE0=65280 (hex: FF00), The sending command is: 01 05 00 03 FF 00 CRC16; Receiving response data of slave station 1: 01 05 00 03 FF 00 CRC16;...
  • Page 180: Chapter 7 Hardware Specifications General Specifications

    Chapter 7 Hardware Specifications Chapter 7 Hardware Specifications General Specifications Input Power Specifications (current consumption to be tested) General type specifications Schematic diagram of incoming power line: Input Specifications 100~240VAC type 12/24VDC type 12 I/O 12/24VDC type 20 I/O Output Specifications Precautions for Output Terminal Connection Relay life Outline Drawing (unit: mm)
  • Page 181: Input Power Specifications (Current Consumption To Be Tested)

    GENERAL SPECIFICATIONS Item Specification Program input method Ladder and FBD Operating environment Operating temperature -20~50°C Storage temperature -40~70°C Operating humidity 90% RH, no condensation Operating gas Non-corrosive gas Body structure Vibration resistance IEC60068-2-6 Amplitude 0.075mm /acceleration 1.0G Impact resistance IEC60068-2-27 Peak 15G peak, duration 11ms Noise resistance Contact ±4KV, air discharge ±8KV...
  • Page 182: Schematic Diagram Of Incoming Power Line

    Schematic diagram of incoming power line: 1) AC 10/20 points 2) DC 24V (power supply 12/24) 3) Master, extension and communication...
  • Page 183: Input Specifications

    Input Specifications 100~240VAC type Item LRK10RA240 Input circuit components I1~I6 Quantity 6 (digital input) Input AC 240V Signal current 1.3mA Input ON > AC 79V /0.41mA current Input < AC 40V /0.28mA OFF current Wire length < / = 100m Input On=>Off Response time...
  • Page 184: 12/24Vdc Type 20 I/O

    12/24VDC type 20 I/O Item LRD20RD024RS General digital input High speed input Analog input Input circuit components I3~I6 I1, I2 A1~A2~A3~A4 Quantity Input signal current 3.2mA:12/24VDC 3.2mA:12/24VDC <0.17 mA/0~10V Input ON current >1.52mA/10V >1.52mA/10V >0.163mA/9.8V Input OFF current < 0.625mA/7.5V <...
  • Page 185: Precautions For Output Terminal Connection

    PRECAUTIONS FOR OUTPUT TERMINAL CONNECTION Relay life Life expectancy Note 1: The above shown is standard value, but relay life may be affected by temperature of the operating environment. Note 2: Relay life is generally over 100 thousand times when current is below 2A. DIMENSIONS (unit: mm) LRK12RD024 –...
  • Page 186: Chapter 8 Function Specification Of Lrk20Rd024Rs Type Communication Specifications Function Description

    Chapter 8 Function Specification of LRK20RD024RS Type Chapter 8 Function Specification of LRK20RD024RS Type Communication Specifications Function Description MU instructions (Modbus communication master function) Modbus communication slave function ModBus communication protocol...
  • Page 187 The RS485 interface of LRK20RD024RS can be connected to industrial equipment with RS485 communication function and itself. Take two LRK20RD024RS communicating through RS485 interface as an example (one host and one slave). The master and slave positions have the following requirements: a.
  • Page 188 Functional parameters: ID setting ¢ ID setting (00~99) Remote I/O ¢ Remote IO mode (N: none M: master S: slave) Function description: Function Remote I/O Description setting setting Remote IO function 00~99 M & S Two sets (master, slave) connected IO Link function 8 sets connected at most;...
  • Page 189 FUNCTION DESCRIPTION Function description: LRK slave input (I)/output (Q) is used as extended input (X)/output (Y) of LRK master I/O address Master (M) Slave (S) Input coil I01~I0C Output coil Q01~Q08 Extended input coil X01~X0C I01~I0C Extended output coil Y01~Y08 Q01~Q08 Hardware setting: 1.
  • Page 190 Hardware setting: 1. Connect A and B lines of multiple (1~8 sets) LRK20RD024RS, as shown below W table comparison • max. 8 points I/O send per stations W01~W08 • max 7*8 (=56) points I/O received per station W09~W16 W17~W24 W25~W32 W33~W40 W41~W48 W49~W56...
  • Page 191: Mu Instructions (Modbus Communication Master Function)

    MU instructions (Modbus communication master function) Modbus block of micro-plc type LRK20RD024RS realizes Modbus RTU master communication through RS485 interface. In Ladder programming mode, there are 15 Modbus blocks (MU01~MU0F); in FBD programming mode, 250 Modbus blocks can be used at most. Multiple communication instructions may be used in a program, but only one instruction can be driven at the same time.
  • Page 192 In Ladder mode, Modbus block has 5 parameters, the display and meaning of which are listed below. Symbol Description MU block mode 1~5 ➀ Communication address: Slave ID, range 0~7f ➁ Communication command address and communication data length: ➂ 1) Constant, range 0000~ffff; Data length of modes 1 and 3 is 1 word;...
  • Page 193: Modbus Communication Slave Function

    Modbus communication slave function Function description: According to Modbus communication protocol, LRK, as Modbus communication slave, supports reading and writing coil status, reading the current value of functional blocks, writing and reading the preset value of blocks, and control of running and stop status of LRK. The maximum transmission capacity is 128 bytes.
  • Page 194 Exception code In case of exception during online communication, the upper computer will send the function code followed by 80H (final bit set as 1) to the master system together with exception code. Exception code Description Communication command error (function code error, invalid data address, parity error etc.) Communication command error in the Run mode Communication command error in the Password mode Invalid data...
  • Page 195: Chapter 9 Extended Module Instructions Overview

    Chapter 9 Extended Module Instructions Chapter 9 Extended Module Instructions Overview Extended Digital IO Modules Extended Analog Modules Analog input module 4AI Temperature input module 4PT Analog output module 2AO Extended Communication Module RS485 Modbus RTU module.
  • Page 196 OVERVIEW LRK base module is compatible with the expansion modules LRE series, listed below. The connection mode of LRK expansion module is the same as that of LRD expansion module. Digital inputs and outputs expansion modules: – LRE08RD024 (4 digital inputs + 4 relay outputs, auxiliary supply 24VDC) –...
  • Page 197 INSTALLATION The installation method of all LRE expansion modules is the same, modules are connected to each other via connectors as shown below: ® M4 X 20 (# 8 x 32) CLIC CONNECTOR 2X 3 I1 I2 I3 I6 A1 A2 Inpu t PRESS-BUTTON 4 xA C...
  • Page 198: Extended Digital Io Modules

    EXTENDED DIGITAL IO MODULES The number of extended digital IO modules connected should be set in the system. In case of setting error, the extended digital IO modules can not be used normally, and use of the connected analog modules and communication modules will be affected. Setting method of extended IO: 1.
  • Page 199 Display status of digital IO extension Expansion input status Expansion output □ Expansion module RTC: week hour minute status Installation and wiring LRE08RD024 LRE08TD024 LRE08RA240 LRE04AD024 LRE08RD024 LRE08TD024 Power supply terminal Retractable mounting feet Input terminal block Voltage/operatioin mode LRE08RA240 Button Input terminal block Connector...
  • Page 200 Wiring 1) Input 24VDC: LRE08RD024 / LRE08TD024 2) Input 24VAC/100~240VAC: LRE08RA024 / LRE08RA240 Output relay (Relay): LRE08R...
  • Page 201 3) Output transistor (Transistor): ① -1A fast acting fuse ② -Surge arrester (cut-off voltage: 43VDC) ③ - Surge arrester (input 100~240VAC, cut-off voltage:430VAC) ④ -Fuse Both extended digital module and extended analog module are designed with orange status LED, the display status of which is the same in different operating modes, as shown below: Extended module in running state Quick flashing (3Hz), extended module in fault...
  • Page 202: Extended Analog Modules

    I706 GB 11 23 31100536 EXTENDED ANALOG MODULES LRK can be simultaneously connected to two 2AO module, one 4PT module and one 4AI module at most. ANALOG INPUT MODULE 4AI: LRE04AD024 This is 4-channel 12bits analog input module with input corresponding to A05~A08, which is available for input of 0~10V voltage signal or 0~20mA current signal.
  • Page 203: Temperature Input Module 4Pt

    TEMPERATURE INPUT MODULE 4PT: LRE04PD024 This is 4-channel 12bits temperature (PT100) analog input module with input corresponding to AT01~AT04, which is available for input of -100°C~600°C signal. Item Specification Temperature input range -100°C~600°C Digital display -100.0°C~600.0°C Resolution 0.1°C Accuracy ±1% 4PT wiring error or lack of connection will lead to input out of range.
  • Page 204: Analog Output Module 2Ao

    ANALOG OUTPUT MODULE 2AO: LRE02AD024 This is 2-channel 12bits analog output module. Two of the modules can be connected at the same time. Output of the 2AO close to LRK corresponds to AQ01~AQ02, and output of the second 2AO corresponds to AQ03~AQ04. The module enables output of 0~10V voltage signal or 0~20mA current signal.
  • Page 205 Wiring Voltage output Current output External External External External equipment equipment equipment equipment...
  • Page 206: Extended Communication Module

    COMMUNICATION MODULE Extended RS485 Modbus RTU module: LREP00 System overview LREP00 communication module makes LRK micro-plc without communication function able to communicate with other controllers in the master/slave mode according to Modbus RTU protocol, for application to auto control system for industrial bus. LREP00 communication module uses passive slave node of Modbus RTU transmission mode.
  • Page 207 Communication setting In LREP00 communication module, 8-bit dip switch (DIP) SW1 can be used to set communication baud rate, parity check bit and stop bit, as instructed below: Baud rate setting SW1-1~SW1-3, for setting communication baud rate: 4.8K, 9.6K, 19.2K, 38.4K, 57.6K SW1-1 SW1-2 SW1-3...
  • Page 208: Chapter 10 External Memory

    Chapter 10 External Memory Chapter 10 External Memory User program reading and writing with micro SD card Data logging function Card formatting Configuration file reading...
  • Page 209: User Program Reading And Writing With Sd Card

    EXTERNAL MEMORY LRK support a micro SD card as external memory for program backup and data logging: 1. User programming reading and writing: Read and write SD card to duplicate user program by three means (keypad and display, PC, and LRK power-on automatic operation).
  • Page 210: Data Logging And Output (Log Function)

    DATA LOGGING FUNCTION 1. Data logging As shown below, the data logging function is configured. LOG can be used for recording of the selected parameters. In the above program, value of the set target register T1 is stored in LRK or micro SD card after coil M11 is enabled;...
  • Page 211: Card Formatting

    2. Data storage location and format If you insert the same card into a LRK host module, new data will be stored following the file saved in the current day, but the maximum line number of a file to be saved is limited by the memory size. 1.
  • Page 212: Configuration File Reading

    CONFIGURATION FILE READING For the types without LCD display (type LRK...B), parameter can be setting by reading the configuration file XXX.ini: Located under the root directory of SD card, XXX.ini file can be written in the set parameter of LRK (removing the file from the root directory or rewriting the file name will lead to file reading error).
  • Page 213: Chapter 11 Ethernet Communication Function

    Chapter 11 Ethernet Communication Function Chapter 11 Ethernet Communication Function Overview Device connection LRXSW programming software connection Extended device connection and network block configuration Web server Network communication between two LRK devices Modbus TCP function/Modbus RTU over TCP function E-mail transfer function...
  • Page 214: Overview

    OVERVIEW LRK series products support the Ethernet communication function. User can realize the following functions through Ethernet communication: – User program reading, writing and monitoring – Extended device connection and network functional block configuration Network server – Device program upgrade DEVICE CONNECTION The module is designed with an Ethernet RJ45 interface and a network status LED.
  • Page 215 Set master IP: -> MASTER IP -> MASTER IP 192.169.000.005 IAP upgrade setting: IAP SET Network communication Master/slave station setting: -> M/S SET -> M/S SET After setting all , press “ESC” to return to the NETCONFIG menu(this time will not save your settings to flash), press “ESC” to return to the main menu when LRK automatically save the network settings.
  • Page 216: Lrxsw Programming Software Connection

    LRXSW PROGRAMMING SOFTWARE CONNECTION After communication network connection of device and PC, open editing environment. LRXSW, and enter Ladder or FBD program Right click “Station” under the project, and select the “Link” item popped up. The “Select communication port” window pops up, as shown below: Note: Modify IP address of PC and device in the same network segment.
  • Page 217 Inputs and outputs function: LRK provides network digital inputs/outputs and network analog inputs/outputs. The LRK master can communicate with the LRK slave using the network inputs and outputs. Blocks Function Number J01 ~ J3F Network digital inputs K01 ~ K3F Network digital outputs NI01 ~ NI1F Network analog inputs...
  • Page 218: Web Server

    WEB SERVER LRK micro-plc are designed with the web server function to enable the view of the main LRK information and status through a PC or mobile device in the network. Web server credentials The first time you want to use the web server of LRK, a password must be set in the project. Open the software LRXSW and connect to the LRK. Then, clic on Operation ->...
  • Page 219 IO status page: View device working state information: digital and analog inputs and outputs, timers, counter, etc... Setting page: page to modify the password of the web server credentials.
  • Page 220: Network Communication Between Two Lrk Devices

    NETWORK COMMUNICATION BETWEEN TWO LRK DEVICES Multiple LRK can be used for monitoring of input and output points through network and for remote control of the input and output points. Network input and output: – Network digital input and output J (01~3F), K (01~3F); –...
  • Page 221 2. Set master Select “NETCONFIG” under the main menu, and press “OK”. OUTPUT RECORD FORMAT Card > NETCONFIG NET IO SET Select “NET SET” under the “NETCONFIG” menu, and press “OK”. GATEWAY MASTER IP IAP SET > NET SET Select master. M/S SET 3: Configure network I/O address mapping The configuration of the network I/O addressing can be done on the software LRXSW (menu Operation ->...
  • Page 222 2: Set slave Select “NETCONFIG” under the main menu, and press “OK”. OUTPUT RECORD FORMAT Card > NETCONFIG NET IO SET Select “NET SET” under the “NETCONFIG” menu, and press “OK”. GATEWAY MASTER IP IAP SET > NET SET Select slave. M/S SET Run the program after correct configuration and connection;...
  • Page 223: Modbus Tcp Function/Modbus Rtu Over Tcp Function

    MODBUS TCP FUNCTION/MODBUS RTU OVER TCP FUNCTION MODBUS function block of LRK device enables Modbus TCP and Modbus RTU over TCP communication functions through Ethernet interface. The functions of MODBUS block are detailed in Chapter 8 (Function Specification of LRK20RD024RS Type). Device ID setting: Open LRXSW software, and click Module System Set window under the Operation menu: Enable LRK device of the master station mode and set ID as 0;...
  • Page 224 The above setting can be modified by KEYPAD in the LCD interface: -> MODBUS SET -> MODBUS_TCP RTU/TCP CHANNEL MODBUS_TCP RTU/TCP CHANNEL Select Modbus TCP or Modbus RTU over TCP for communication mode setting. Change CHANNEL (01~08), and press OK to enter the channel setting: CHANNEL 01 SERVER_IP 192.168.000.006...
  • Page 225 The above setting can be modified by KEYPAD in the LCD interface: -> MODBUS SET -> MODBUS_TCP RTU/TCP CHANNEL MODBUS_TCP RTU/TCP CHANNEL Select Modbus TCP or Modbus RTU over TCP for communication mode setting. The setting becomes effective only after the device is powered-on again upon modification. Example: Set ID of the slave station device corresponding to channel 1 as 2 and IP address as 169.254.200.33.
  • Page 226 MU module setting: As shown above, TCP/IP is to be selected when Modbus TCP or Modbus RTU over TCP communication is used for the MU module.
  • Page 227: E-Mail Transfer Function

    E-MAIL TRANSFER FUNCTION Note. This function is not compatible with SMTP servers that requires the SSL/TLS encrypting. After LRK device is connected to Ethernet, E-mail can be sent to the E-mail box designated by user through SMTP E-mail transfer protocol. The mail content includes the current status of device input and output points.
  • Page 228 As SMTP server address varies with mailbox, user needs to check before using it for acquiring the IP address of SMTP, as instructed below: Press win+R key on the PC, and enter ping (the above-checked SMTP address) in the pop-up window (as shown below) to obtain IP address of SMTP server: The above selected is the IP address, which is to be entered in server IP.
  • Page 229: Chapter 12 Project Transfer From Lrd To Lrk

    Chapter 12 Project transfer from LRD to LRK Chapter 12 Project transfer from LRD to LRK. Conversion of LRD program to use with LRK either already saved as a file or Read (uploaded) directly from LRD Conversion of LRD programs to use with LRK already saved as a file...
  • Page 230: Conversion Of Lrd Program To Use With Lrk Either Already Saved As A File Or Read (Uploaded) Directly From Lrd

    CONVERSION OF LRD PROGRAM TO USE WITH LRK EITHER ALREADY SAVED AS A FILE OR READ (UPLOADED) DIRECTLY FROM LRD For both cases Station Export/ Import functions must be used . Example below shows the reading of the program from LRD and transfering to LRK. Step 1.
  • Page 231 Step 4. Create a new file for LRK Clic on Station and New and select LRK then the LRK model. Step 5. Select Station -> Import and open the LRD program file previously saved. Once imported and displayed on the screen go to the next step.
  • Page 232: Conversion Of Lrd Programs To Use With Lrk Already Saved As A File

    CONVERSION OF LRD PROGRAMS TO USE WITH LRK ALREADY SAVED AS A FILE Example below shows the Reading of a program that has been previousely compiled using the previous realease of LRXSW programming software. Step 1. Use the LRXSW programming software (latest version 0.05 or greater) and create a new station for the LRK unit that has to be programmed with the program that was developed for LRD.

Table of Contents