Rievtech PR-12 Series User manual

Introduction-------------------------------------------------------------------------------------------------------1
Validrangeofthismanual-------------------------------------------------------------------------------- 2
SafetyGuideline-------------------------------------------------------------------------------------------- 2
QualifiedPersonnel---------------------------------------------------------------------------------------- 3
PrescribedUsage------------------------------------------------------------------------------------------- 3
Warning------------------------------------------------------------------------------------------------3
Trademarks--------------------------------------------------------------------------------------------3
CopyrightRievtech2016allrightsreserved----------------------------------------------------- 4
DisclaimofLiability---------------------------------------------------------------------------------- 4
Additionalsupport----------------------------------------------------------------------------------- 4
1.whatisXlogic?
-------------------------------------------------------------------------------------------------5
1.1Overview------------------------------------------------------------------------------------------------ 5
1.2Highlightfeature--------------------------------------------------------------------------------------- 5
1.3SomeofthethingsxLogiccandoforyou?-------------------------------------------------------- 7
1.4xLogicdevices --------------------------------------------------------------------------------------- 7
xLogicBasicisavailableintwovoltageclasses-------------------------------------------------- 7
Expansionmodules---------------------------------------------------------------------------------- 8
Communicationcableandmodule----------------------------------------------------------------8
2.Hardwareintroduction--------------------------------------------------------------------------------------11
2.1NamingRulesofPRSeriesPLC---------------------------------------------------------------------11
2.2Hardwaremodelselection--------------------------------------------------------------------------11
2.3Structure&dimension------------------------------------------------------------------------------ 13
3.Installing/removingxLogic--------------------------------------------------------------------------------- 16
Dimensions------------------------------------------------------------------------------------------------ 16
3.1DINrailmounting------------------------------------------------------------------------------------ 17
3.2Wall-mounting----------------------------------------------------------------------------------------18
3.3wiringxLogic------------------------------------------------------------------------------------------ 21
3.4Connectingthepowersupply---------------------------------------------------------------------- 21
3.4.1ConnectingxLogicinputs------------------------------------------------------------------- 22
3.4.2ConnectingxLogicOutputs-----------------------------------------------------------------25
3.4.3Communicationportinstructions:-------------------------------------------------------- 28
4.Quickreferencemanual---------------------------------------------------------------------------------- 30
4.1Specialmemoryarea:------------------------------------------------------------------------------- 30
4.2InterruptEvents:-------------------------------------------------------------------------------------- 30
4.3Highspeedcounter ------------------------------------------------------------------------------- 30
XLadder directionforuse------------------------------------------------------------------------------------32
5.Thedetailedannotationof operationinterface--------------------------------------------------------32
5.1Themainmenu------------------------------------------------------------------------------------- 32
5.1.1File--------------------------------------------------------------------------------------------- 32
5.1.2Edit--------------------------------------------------------------------------------------------- 33
5.1.3View--------------------------------------------------------------------------------------------33
5.1.4PLC--------------------------------------------------------------------------------------------- 35
5.1.5Debug------------------------------------------------------------------------------------------36
5.1.6Help-------------------------------------------------------------------------------------------- 36

5.2toolbar------------------------------------------------------------------------------------------------- 37
5.3Instructiontree--------------------------------------------------------------------------------------- 40
5.3.1Project----------------------------------------------------------------------------------------- 41
5.3.2Datablock-------------------------------------------------------------------------------------41
5.3.3Systemblock----------------------------------------------------------------------------------42
5.3.4Programblock-------------------------------------------------------------------------------- 48
5.3.5Functionsymbol----------------------------------------------------------------------------- 48
5.3.6Variablesymbol------------------------------------------------------------------------------ 48
5.3.7Statuschart----------------------------------------------------------------------------------- 49
5.3.8Crossreference-------------------------------------------------------------------------------49
5.3.9Communication------------------------------------------------------------------------------ 50
5.3.10 Instructions------------------------------------------------------------------------------- 51
5.3.11Theprogrameditor------------------------------------------------------------------------ 52
5.3.12Statuschart,informationoutput-------------------------------------------------------- 53
5.4Programmingconcepts------------------------------------------------------------------------------54
5.4.1Howtheprogramworks-------------------------------------------------------------------- 54
5.4.2Addressingoverview------------------------------------------------------------------------ 54
5.4.3Howtoorganizetheprogram--------------------------------------------------------------56
5.5Howtoentertheladderlogicprogram-----------------------------------------------------------57
5.5.1Howtobuildanewproject---------------------------------------------------------------- 57
5.5.2Ladderlogicelementanditsworkingprinciple-----------------------------------------57
5.5.3NetworkrulesforseriesandparallelinLAD---------------------------------------------58
5.5.4 HowtoinputcommandsinLAD-------------------------------------------------------- 58
5.5.5HowtoentertheaddressinLAD----------------------------------------------------------60
5.5.6HowtoeditprogramelementsinLAD--------------------------------------------------- 60
5.5.7Howtousefind/replace-------------------------------------------------------------------63
5.5.8HowtodisplayerrorsinLADintheprogrameditor------------------------------------64
5.5.9HowtocompileinLAD----------------------------------------------------------------------64
5.5.10Howtosavetheproject-------------------------------------------------------------------65
5.6Howtosetupacommunicationanddownloadprogram------------------------------------- 65
5.6.1Communicationsettings--------------------------------------------------------------------65
5.6.2 Downloadprogram------------------------------------------------------------------------67
5.6.3Howtocorrectcompilationerrorsanddownloaderrors------------------------------68
5.7Howtomonitoranddebugtheprogram---------------------------------------------------------69
5.8PLCoperationandoptions--------------------------------------------------------------------------73
6.XLadderinstructionsdescriptions-------------------------------------------------------------------------74
6.1Bitlogic------------------------------------------------------------------------------------------------ 74
6.1.1Normallyopenandnormallyclosed------------------------------------------------------74
6.1.2Normallyopenimmediateandnormallyclosedimmediate.------------------------- 76
6.1.3NOTReverseinstruction-------------------------------------------------------------------- 76
6.1.4Risingedgeandfallingedge----------------------------------------------------------------77
6.1.5Output-----------------------------------------------------------------------------------------78
6.1.6Outputimmediate--------------------------------------------------------------------------- 78
6.1.7Setandreset----------------------------------------------------------------------------------79

6.1.8Setimmediateandresetimmediate------------------------------------------------------80
6.1.9SRinstruction---------------------------------------------------------------------------------80
6.1.10RSinstruction------------------------------------------------------------------------------- 81
6.1.11NOPinstruction-----------------------------------------------------------------------------82
6.2Clockinstruction--------------------------------------------------------------------------------------83
6.2.1Readandsettherealtimeclock---------------------------------------------------------- 83
6.3Communication---------------------------------------------------------------------------------------84
6.3.1 Getportaddress---------------------------------------------------------------------------84
6.3.2 Setportaddress--------------------------------------------------------------------------- 84
6.4 Compare---------------------------------------------------------------------------------------------85
6.4.1Bytecompare---------------------------------------------------------------------------------85
6.4.2Integercomparison--------------------------------------------------------------------------87
6.4.3Doubleintegercomparison---------------------------------------------------------------- 88
6.4.4Realnumbercomparison-------------------------------------------------------------------89
6.4.5Stringcomparison--------------------------------------------------------------------------- 90
6.5Convert------------------------------------------------------------------------------------------------ 91
6.5.1Bytetointeger--------------------------------------------------------------------------------91
6.5.2Integertobyte--------------------------------------------------------------------------------92
6.5.3Integertodoubleinteger-------------------------------------------------------------------92
6.5.4Integertostring------------------------------------------------------------------------------ 92
6.5.5Doubleintegertointeger-------------------------------------------------------------------94
6.5.6Doubleintegertorealnumber------------------------------------------------------------ 94
6.5.7Doubleintegertostring---------------------------------------------------------------------95
6.5.8BCDtointeger,integertoBCDconversion-----------------------------------------------96
6.5.9ROUND---------------------------------------------------------------------------------------- 97
6.5.10TRUNC----------------------------------------------------------------------------------------98
6.5.11Realnumbertostring----------------------------------------------------------------------99
6.5.12IntegertoASCIIcode---------------------------------------------------------------------101
6.5.13DoubleintegertoASCIIcode----------------------------------------------------------- 103
6.5.14RealnumbertoASCIIcode--------------------------------------------------------------104
6.5.15ATH&HTA-----------------------------------------------------------------------------------106
6.5.16Stringtointeger---------------------------------------------------------------------------107
6.5.17Stringtodoubleinteger----------------------------------------------------------------- 109
6.5.18Stringtorealnumber-------------------------------------------------------------------- 111
6.5.19 DECO------------------------------------------------------------------------------------- 113
6.5.20ENCO----------------------------------------------------------------------------------------114
6.5.21Sevensegmentcode--------------------------------------------------------------------- 115
6.6Counter-----------------------------------------------------------------------------------------------116
6.6.1CTU------------------------------------------------------------------------------------------- 116
6.6.2CTD------------------------------------------------------------------------------------------- 117
6.6.3CTUD----------------------------------------------------------------------------------------- 118
6.7Floatingpointcalculation--------------------------------------------------------------------------119
6.7.1ADD-R&SUB-R------------------------------------------------------------------------------ 119
6.7.2MUL-R&DIV-R
---------------------------------------------------------------------------- 121

6.7.3SQRT------------------------------------------------------------------------------------------122
6.7.4 SIN------------------------------------------------------------------------------------------123
6.7.5COS------------------------------------------------------------------------------------------- 124
6.7.6 TAN-----------------------------------------------------------------------------------------125
6.7.7LN--------------------------------------------------------------------------------------------- 126
6.7.8EXP--------------------------------------------------------------------------------------------127
6.7.9 PID------------------------------------------------------------------------------------------128
6.8Integeroperations----------------------------------------------------------------------------------131
6.8.1ADD-I&SUB-I-------------------------------------------------------------------------------- 131
6.8.2ADD-DI&SUB-DI--------------------------------------------------------------------------133
6.8.3MUL&DIV-----------------------------------------------------------------------------------134
6.8.4MUL-I&DIV-I------------------------------------------------------------------------------ 135
6.8.5MUL-DI&DIV-DI-------------------------------------------------------------------------- 137
6.8.6INC-B&DEC-B------------------------------------------------------------------------------ 138
6.8.7INC-W&DEC-W---------------------------------------------------------------------------- 139
6.8.8INC-DW&DEC-DW----------------------------------------------------------------------- 140
6.9Interrupt--------------------------------------------------------------------------------------------- 141
6.9.1ENI&DISI------------------------------------------------------------------------------------141
6.9.2RETIinstruction-----------------------------------------------------------------------------143
6.9.3 ATCH--------------------------------------------------------------------------------------- 144
6.9.4 DTCH--------------------------------------------------------------------------------------- 146
6.9.5Clearinterruptevent---------------------------------------------------------------------- 148
6.10Logicoperation------------------------------------------------------------------------------------ 149
6.10.1 INV-B-------------------------------------------------------------------------------------149
6.10.2INV-W--------------------------------------------------------------------------------------150
6.10.3INV-DW------------------------------------------------------------------------------------ 151
6.10.4WAND-B、WOR-B、WXOR-B--------------------------------------------------------- 152
6.10.5WAND-W、WOR-W、WXOR-W------------------------------------------------------153
6.10.6WAND-DW、WOR-DW、WXOR-DW------------------------------------------------154
6.11Move------------------------------------------------------------------------------------------------ 155
6.11.1Bytemove----------------------------------------------------------------------------------155
6.11.2Wordmove-------------------------------------------------------------------------------- 156
6.11.3Doublewordmove----------------------------------------------------------------------- 157
6.11.4Realnumbermove----------------------------------------------------------------------- 158
6.11.5BLKMOV-B---------------------------------------------------------------------------------159
6.11.6BLKMOV-W--------------------------------------------------------------------------------160
6.11.7BLKMOV-D-------------------------------------------------------------------------------- 161
6.11.8SWAP--------------------------------------------------------------------------------------- 162
6.11.9MOV-BIR-----------------------------------------------------------------------------------163
6.11.10MOV-BIW-------------------------------------------------------------------------------- 163
6.12Programcontrol----------------------------------------------------------------------------------- 164
6.12.1 FOR、NEXT------------------------------------------------------------------------------164
6.12.2Jumptolabelandlabel------------------------------------------------------------------ 166
6.12.3Sequencecontrolrelay-------------------------------------------------------------------167

6.12.4Returnfromsubroutine------------------------------------------------------------------169
6.12.5Conditionalend--------------------------------------------------------------------------- 170
6.12.6STOP---------------------------------------------------------------------------------------- 171
6.12.7WatchdogReset---------------------------------------------------------------------------172
6.12.8DiagnosisLED------------------------------------------------------------------------------173
6.13Shiftcycle-------------------------------------------------------------------------------------------174
6.13.1SHR-B&SHL-B--------------------------------------------------------------------------- 174
6.13.2SHR-W&SHL-W------------------------------------------------------------------------- 176
6.13.3SHR-DW&SHL-DW--------------------------------------------------------------------- 177
6.13.4ROR-B&ROL-B-------------------------------------------------------------------------- 178
6.13.5ROR-W&ROL-W------------------------------------------------------------------------ 179
6.13.6ROR-DW&ROL-DW---------------------------------------------------------------------180
6.13.7SHRB---------------------------------------------------------------------------------------- 181
6.14Characterstring----------------------------------------------------------------------------------- 182
6.14.1Stringlength------------------------------------------------------------------------------- 182
6.14.2Copystring---------------------------------------------------------------------------------183
6.14.3SSTR-CPY----------------------------------------------------------------------------------- 184
6.14.4Stringcatenate---------------------------------------------------------------------------- 185
6.14.5STR-FIND-----------------------------------------------------------------------------------186
6.14.6Lookforthefirstcharacterinthestring---------------------------------------------- 187
6.15Table-------------------------------------------------------------------------------------------------188
6.15.1Lastinfirstout---------------------------------------------------------------------------- 188
6.15.2FIFO----------------------------------------------------------------------------------------- 190
6.15.3Addtotable--------------------------------------------------------------------------------192
6.15.4Memoryfill-------------------------------------------------------------------------------- 194
6.15.5TableFind---------------------------------------------------------------------------------- 195
6.16Timer------------------------------------------------------------------------------------------------197
6.16.1Switchondelaytimer-------------------------------------------------------------------- 197
6.16.2 TONR------------------------------------------------------------------------------------- 199
6.16.3Disconnectdelaytimer------------------------------------------------------------------ 200
6.16.4Starttimeinterval------------------------------------------------------------------------ 201
6.16.5Calculationintervaltime-----------------------------------------------------------------202
6.17Pulsetrainoutput---------------------------------------------------------------------------------203
6.17.1Pulseoutput-------------------------------------------------------------------------------203
6.17.2Pulsewidthmodulation----------------------------------------------------------------- 205
6.18Subroutine----------------------------------------------------------------------------------------- 206
6.18.1Usingsubroutine--------------------------------------------------------------------------206
6.18.2Usingparameterstocallsubroutine---------------------------------------------------207
6.18.3Howtosetupasubroutine------------------------------------------------------------- 208
6.18.4Howtocallasubroutine-----------------------------------------------------------------209
7.PLCstoragearea---------------------------------------------------------------------------------------------212
7.1Storageareatypesandproperties---------------------------------------------------------------212
7.2Directandindirectaddressing--------------------------------------------------------------------213
7.3Bit,byte,wordanddoublewordaccess-------------------------------------------------------- 216

7.4Memoryaddressrange---------------------------------------------------------------------------- 216
7.5Datatype---------------------------------------------------------------------------------------------217
7.6Constant----------------------------------------------------------------------------------------------218
8.AssignmentandfunctionofSMspecialstoragearea------------------------------------------------- 219
9.Easyladdercommunication------------------------------------------------------------------------------- 220
9.1PRseriesPLCbasicintroductionofnetworkcommunication------------------------------- 220
9.2PRseriesPLCcommunication-------------------------------------------------------------------- 222
9.3Optimizenetworkperformance------------------------------------------------------------------230
10.Additionalchapter---------------------------------------------------------------------------------------- 231
10.1HowtoswitchPLCmode-------------------------------------------------------------------------231
10.2Valuerangeofanalogquantity:-----------------------------------------------------------------232
10.3Extensionmoduleaddress-----------------------------------------------------------------------232
10.4PLChostaddressrange---------------------------------------------------------------------------233
10.5Formula---------------------------------------------------------------------------------------------233
10.6Setextensionmoduleaddresswithadialswitch-------------------------------------------- 234
10.7Additionalinstructions--------------------------------------------------------------------------- 235
10.7.1LCDrelatedinstructions----------------------------------------------------------------- 235
10.7.2CAN,serialportinitializationinstructions-------------------------------------------- 244
10.8Exampleofserialportfreeportcommunication---------------------------------------------245
10.9ExampleofCANfreeport------------------------------------------------------------------------247
10.10MODBUScommunicationmasterprogram--------------------------------------------------249
10.11TheexampleofusingPIDinstruction-------------------------------------------------------- 250
MODBUSADDRESS--------------------------------------------------------------------------------------------254

1
Introduction
CongratulationswithyourxLogicMicroPLCprovidedbyRievtech
ElectronicCo.,Ltd.
ThexLogicMicroPLCisacompactandexpandableCPUreplacingminiPLCs,
multipletimers,relaysandcounters.
ThexLogicMicroPLCperfectlyfitsinthespacebetweentimingrelays
andlow-endPLCs.EachCPUincorporatesnotonlyareal-timeclockand
calendar,butalsoprovidessupportforoptionalexpansionI/Omodules
toenhancecontrolandmonitoringapplications.Dataadjustmentscan
easilybeperformedviathekeypad,theLCDdisplay,orthroughthe
Rievtech-to-usexLogicsoft.DIN-railandpanel-mountedoptionsareboth
available,offeringfullflexibilitytothevariousinstallationneeds
ofyourapplication.
ThexLogicMicroPLCisavailablein120V/240VACor12Vand24VDCversions,
makingittheidealsolutionforrelayreplacement,orsimplecontrol
applicationsasbuildingandparkinglotlighting,managingautomatic
lighting,accesscontrol,wateringsystems,pumpcontrol,ventilation
systems,homeautomationandawidefieldofotherapplicationsdemanding
lowcosttobeaprimarydesignissue.
Westronglyrecommendedtakingthetimetoreadthismanual,before
puttingthexLogicMicroPLCtowork.Installation,programminganduse
oftheunitaredetailedinthismanual.Thefeature-richxLogicMicro
PLCprovidesaforoff-lineoperationmode,allowingfullconfiguration
andtestingpriortoin-fieldservicecommissioning.Inreviewingthis
manualyouwilldiscovermanyadditionaladvantageousproductproperties,
itwillgreatlysimplifyandoptimizetheuseofyourxLogicMicroPLC.

2
Validrangeofthismanual
ThemanualappliestodevicesofPRseriesPLC.
SafetyGuideline
Thismanualcontainsnoticesyouhavetoobserveinordertoensureyour
personalsafety,aswellastopreventdamagetoproperty.Thenotices
referringtoyourpersonalsafetyarehighlightedinthemanualbyasafety
alertsymbol;noticesreferringtopropertydamageonlyhavenosafety
alertsymbol.Thenoticesshownbelowaregradedaccordingtothedegree
ofdanger.
Caution
Indicatesthatdeathorseverepersonalinjurymay
resultifproperprecautionsarenottaken
Caution
Withasafetyalertsymbolindicatesthatminor
personalinjurycanresultifproperprecautionsare
nottaken.
Caution
Withoutasafetyalertsymbolindicatesthatproperty
damagecanresultifproperprecautionsarenottaken.
Attention
Indicatethatanunintendedresultorsituationcan
occurifthecorrespondingnoticeisnottakeninto
account.
Ifmorethanonedegreeofdangerispresent,thewarningnotice
representingthehighestdegreeofdangerwillbeused.Anoticewarning

3
ofinjurytopersonswithasafetyalertsymbolmayalsoincludeawarning
relatingtopropertydamage.
QualifiedPersonnel
Thedevice/systemmayonlybesetupandusedinconjunctionwiththis
documentation.Commissioningandoperationofadevice/systemmayonly
beperformedbyqualifiedpersonnel.Withinthecontextofthesafety
noticesinthisdocumentationqualifiedpersonsaredefinedaspersons
whoareauthorizedtocommission,groundandlabeldevices,systemsand
circuitsinaccordancewithestablishedsafetypracticesandstandards.
Pleasereadthecompleteoperatinginstructionsbeforeinstallationand
commissioning.
Rievtechdoesnotacceptanyliabilityforpossibledamagetopersons,
buildingsormachines,whichoccurduetoincorrectuseorfromnot
followingthedetails.
PrescribedUsage
Notethefollowing:
Warning
Thisdeviceanditscomponentsmayonlybeusedfortheapplications
describedinthecatalogorthetechnicaldescription,andonlyin
connectionwithdevicesorcomponentsfromothermanufacturerswhichhave
beenapprovedorrecommendedbyRievtech.Correct,reliableoperationof
theproductrequirespropertransport,storage,positioningandassembly
aswellascarefuloperationandmaintenance.
Trademarks
AllnamesidentifiedbyxLogicareregisteredtrademarksoftheRievtech.
Theremainingtrademarksinthispublicationmaybetrademarkswhoseuse
bythirdpartiesfortheirownpurposescouldviolatetherightsofthe
owner.

4
CopyrightRievtech2016allrightsreserved
Thedistributionandduplicationofthisdocumentortheutilizationand
transmissionofitscontentsarenotpermittedwithoutexpresswritten
permission.Offenderswillbeliablefordamages.Allrights,including
rightscreatedbypatentgrantorregistrationofautilitymodelordesign,
arereserved.
DisclaimofLiability
Wehavereviewedthecontentsofthispublicationtoensureconsistency
withthehardwareandsoftwaredescribed.Sincevariancecannotbe
precludedentirely,wecannotguaranteefullconsistency.However,the
informationinthispublicationisreviewedregularlyandanynecessary
correctionsareincludedinsubsequenteditions.
Additionalsupport
Wetakeprideinansweringyourquestionassoonaswecan:
Pleaseconsultourwebsiteat www.rievtech.com foryourclosestpointof

5
1.whatisXlogic?
1.1Overview
xLogicisauniversallogicmodulemadebyRievtech.
xLogic,acompact,expandableCPUthatcanreplaceminiPLC,multiple
timers,relaysandcounters,Splittingthedifferencebetweenatiming
relayandalow-endPLC,EachCPUhasareal-timeclockandcalendar,
andsupportsoptionalexpansionI/Omodulestoenhanceyourcontroland
monitoringapplications.Dataadjustmentscanbedoneviatheon-board
keypadandLCDdisplay,orwithxLogicsoft.ItcanbeeitherDIN-rail
orpanelmounted,dependingupontheneedsofyourapplication,andit
isavailablein120V/240Vacaswellas12Vand24Vdcversions,andit
istheidealsolutionforrelayreplacementapplications,simplecontrol
applicationssuchasbuildingandparkinglotlighting,managing
automaticlighting,accesscontrol,wateringsystems,pumpcontrol,or
ventilationsystemsinfactory,andhomeautomationandapplicationsin
whichcostisaprimarydesignissue.
1.2Highlightfeature
lMultiplevaluedisplayandinputviakeypadandLCDdisplay.
lUniqueladderdiagram,improvesyourprogrammingefficiency.
lStandardModbusRTU/ASCII/TCPcommunicationprotocolsupported.
lIt’soptionalforxLogictoactasslaveormasterincertainModbus
communicationnetwork.(easyconnecttootherfactorytouchscreenby
RS232cable,RS485module)
lSupportfreeportcommunication,CANcommunicationandMODBUS
communication
lExpandableupto16linkedIOexpansionmodulesreaching282I/Opoints
inmaximum
lOptionalRS232,RS485connectivity
lMultiplechannelsanaloginputsavailablewithDC0-10Vsignal,PT100

6
signal&0/4….20mA.
lDefaultRealTimeClock(RTC) andsummer/wintertimeris
available
lBackupatRealTimeClock(RTC)at25 °C:20days
l4channelshigh-speedcounting
lPre-configuredstandardfunctions,e.g.on/off-delays,pulserelay
andsoftkey
l2PWMchannels(10KHzinmaximum)
lRetentivememorycapability(NotappliedtoPR-6&PR-12-EseriesCPU)
lRS232andUSBcommunicationdownloadcablewithphoto-electricity
isolation
lSupportladderdiagramprogramming(NotappliedtoPR-6&PR-12-Eseries
CPU)
lMountingviamodular35mmDINrailorscrewfixedmountingplate
lOn-linemonitorcapability(FreechargeSCADAforallseriesxlogic)
lDatalogging
lKindsofanalogsignalsprocesscapacity(DC0..10V,0/4...20mAand
PT100probeinputsandDC0..10Vand0/4...20mAoutputs)
lLowcost

7
1.3SomeofthethingsxLogiccandoforyou?
ThexLogicMicroPLCprovidessolutionsforcommercial,industrial,
buildingand
domesticapplicationssuchaslighting,pumping,ventilation,shutter
operationsorinswitchingcabinets.Theapplicationfieldiswidespread
andthesearejustafewtomention.
UsingtheRS485busandEthernetconnectivityallowstheusertorealize
variousextensive(real-time)monitoringandcontrolapplications.
Specialversionswithoutoperatorpanelanddisplayunitareavailable
forseriesproductionapplicationsinsmallmachine,installationand
cabinetbuildingenvironmentstofurtherslashcost.
1.4xLogicdevices
xLogicBasicisavailableintwovoltageclasses:
*Classes1:DC12-24V:i.e.:PR-6DCSeries,PR-12DCseries,PR-18series,
PR-24DCseries.
*Classes2:AC110-240V:i.e.:PR-6ACSeries,PR-12ACseries,PR-18AC
series,PR-24ACseries.
Intheversions:
*WithDisplay:with “-HMI”model,suchasPR-12DC-DA-R-HMI
*WithoutDisplay:PR-6seriesandwith “-CAP”model,suchas
PR-12DC-DA-R-CAP.OnlyPR-12has-CAPversion.PR-18,PR-24allhave
displayindefault.

8
Expansionmodules:
PR-E(appliedtoPR-18/PR-24CPU)
*xLogicdigitalmodulesareavailableforoperationwith12…24VDC,and
110...240VAC,andareequippedwitheightinputsandeightoutputs.
*xLogicanalogmodulesareavailableforoperationwith12…24VDCand
areequippedwithsixdigitaland4analoginputs.
Communicationcableandmodule:
lxLogic:RS232communicationcable(Model:ELC-RS232)
Itiskindofuniversalcablewithphotoelectricityisolationwhichcan
bedirectlyconnectedtostandard9-pinportofPC,alsokindofinterface
modulewhichcanenableuser’sprogramtobedownloadedintoxLogicCPU
throughxLogicsoftforrunning.Italsoistheconnectioncablebetween
CPUandthirdpartydevicewiththeRS232port(justlikeHMI)inmodbus
communicationsystem.
lxLogic:USBcommunicationcable(Model:ELC-USB).
Itiskindofcommunicationcablewithphotoelectricityisolationthrough
whichPCwithUSBportonlycanbeconnectedtoxLogicmainmodule,
moreover,ithassamefeaturesasELC-RS232module,soitisquite
convenientforuserwhosecomputerhasnostandardserialport.
lxLogic:PRO-RS485cable(Model:PRO-RS485).
Itiskindofconvertercablewithphotoelectricityisolationtomakethe
programportservesasRS485port.
lxLogic:RS485module(Model PR-RS485)
isolated485converter,usedtobringouttheterminalsofRS485port
built-inPR-18,PR-24seriesCPUforconnectionwiththirdpartydevices.

9
Communication/Network
xLogicoffersdifferentwaystocommunicatewithinthesystem.
RS485port
TheRS485portisusedforcommunicationbetweentheCPUandvarious
devicesorequipmentswhichhavethestandardRS485port.Communicate
usingModbusRTU/ASCIIprotocol.
Note PR-RS485moduleisrequiredtoconnecttheCPUtoRS485BUS.
RS232orUSBport(ELC-ES232/ELC-USBneeded)
Ifthereisnonetworkrequiredandonlyonemainmodulewithsome
expansionmodulesisneededfortheapplication,thedown-anduploadof
theprojecttoandfromthemainmodulehappensoverthestandardRS232
orUSBport.Itallowssystemmaintenancelikemonitoringtoo.
Note PR-E-RS485moduleisrequiredtoconnecttheCPUtoRS485BUS.

10
Note
xLogicCPUmaybeequippedwithexpansionmodulesofthedifferentvoltage
class,butexpansionmodulemustbesuppliedthecorrectpower
correspondingtoitstype.

11
2.Hardwareintroduction
2.1NamingRulesofPRSeriesPLC
1.Seriesname
2.E:expansionmodule
3.Pointsofinputandoutput
4.SupplypowerACorDC
5.Digital/AnalogD:digitalDA:digital/analog
6.OutputtypeR:relayTP: “NPN”transistor;TN:“PNP”transistor
2.2Hardwaremodelselection
PR-12 SeriesCPUUnits(Noneexpandable)
Model Expansio
nSupplyvoltage Inputs Outputs High-speedcount PWM HMI RTC
PR-12AC-R-HMI no AC110~AC240V 8digital 4relays(10A) no no yes yes
PR-12DC-DA-R-HMI no DC12-24V 4(0...10V)+4 digital 4relays(10A) 4(I5-I8)(60KHZ) no yes yes
PR-12DC-DA-TN-HMI no DC12-24V 4(0...10V)+4 digital 4Transistor(0.3A/PNP
)4(I5-I8)(60KHZ) Yes(10KHZ) yes yes
PR-14 SeriesCPUUnits(Expandable)-built-inRS485port
Model Expansion Supplyvoltage Inputs Outputs High-speedcount PWM HMI RTC
PR-14AC-R-HMI yes AC110~AC240V
/DC110-DC240V 10 digital 4relays(10A) no no yes yes
PR-14DC-DA-R-HMI yes DC12-24V 6(0...10V)/6digital+4
digital 4relays(10A) 4(I7-IA)(60KHZ) no yes yes
PR-18 SeriesCPUUnits(Expandable)
Model Expansion Supplyvoltage Inputs Outputs High-speedcount PWM HMI RTC
PR-18AC-R-HMI yes AC110~AC240V
/DC110-DC240V 12 digital 6relays(10A) no no yes yes
PR-18DC-DA-R-HMI yes DC12-24V 6(0...10V)/6digital+6
digital 6relays(10A) 4(I9-IC)(60KHZ) no yes yes
PR-18DC-DA-RT-HMI yes DC12-24V 6(0...10V)/6digital+6
digital
4relays(10A)+
2transistor(0.3A) 4(I9-IC)(60KHZ) yes(10khz) yes yes

12
PR-24 SeriesCPUUnits(Expandable)-built-inRS485port
Model Expansion Supplyvoltage Inputs Outputs High-speed
count PWM HMI RTC
PR-24AC-R-HMI yes AC110~AC240V 16 digital 10 relays(10A) no no yes yes
PR-24DC-DA-R-HMI yes DC12-24V 6(0...10V)/6digital+8
digital 10 relays(10A) 4(I9-IC)(60KHZ) no yes yes
PR-24DC-DAI-RTA yes DC12-24V
2(0/4...20mA)+
4(0...10V)/4digital+8
digital
6
relays(10A)+2Transistor(0.3A/PNP)
+1(0...10V)/(0...20mA)
4(I9-IC)(60KHZ) YES(10khz) yes yes
ExpansionModules(ForPR-18,PR-24series)
Model Supplyvoltage Inputs Outputs
PR-E-16AC-R AC110~
AC240V
8digital 4relays(10A)+4relays(3A)
PR-E-16DC-DA-R DC12-24V 4digital+4analog(0..10V)/digital 4relays(10A)+4relays(3A)
PR-E-16DC-DA-TN DC12-24V 4digital+4analog(0..10V)/digital 8transistors(PNP)(0.3A)
PR-E-PT100 DC12-24V 3ChannelsPT100,resolution:0.5),temperaturerange:-50℃-200℃none
PR-E-AQ-VIDC12-24V none 2Channels(DC0…10V/0...20mA)
PR-E-AI-I DC12-24V 4Channels(0/4…..20mA),CurrentSignal none
PR-RS485 DC12-24V isolated485converter,usedtobringouttheterminalsofRS485portbuilt-in PR-18&PR-24 seriesCPUforconnectionwiththird
partydevices.
Accessories
RS232Cable RS232communicationmodule/downloadcablebetweenPCandxLogicCPUunits
USBCable USBcommunicationmodule/downloadcablebetweenPCandxLogicCPUunits
PRO-RS485 ConvertercablefromprogramporttoRS485port.
ELC-BATTERY RTCBATTERY,theRTCcanbebackupfor20daysindefault,butwiththisbattery,theRTCshallbebackupfor1year(onlycanbeappliedwithPR-18CPU).

13
2.3Structure&dimension
1.StandardPR-12serieswithLCDmodel:
1.Powersupply&Inputterminals2.ProgramPort(canbeusedasRS232port
withELC-RS232orRS485portwithPRO-RS485)3.HMI/LCDpanel4.keypad
5.Outputterminals
2.PR-14andPR-18seriesmodel:
1.Powersupply&Inputterminals2.HMI/LCDpanel3.keypad4.Output
terminals5.ProgramPort(canbeusedasRS232portwithELC-RS232or
RS485portwithPRO-RS485)6.Extensionport
This manual suits for next models
14
Table of contents
Other Rievtech Relay manuals