U p d at e d : F e b r u a ry 2 2 , 20 10
xLogic User'sManual
AppliedtoELCseriesCPU&Extensions__Ver:2.3
Contents
² Introduction
² Gettingstarted
² Installationandwiring
² ProgrammingxLogic
² Configuring&software
² Applications
² Technicaldata
2
Introduction
CongratulationswithyourxLogicMicroPLCprovidedbyEasyElectronicCo.,Ltd.
ThexLogicMicroPLCisacompactandexpandableCPUreplacingminiPLCs,multipletimers,relaysand
counters.
ThexLogicMicroPLCperfectlyfitsinthespacebetweentimingrelaysandlow-endPLCs.EachCPU
incorporatesnotonlyareal-timeclockandcalendar,butalsoprovidessupportforoptionalexpansionI/O
modulestoenhancecontrolandmonitoringapplications.Dataadjustmentscaneasilybeperformedvia
thekeypad,theLCDdisplay,orthroughtheeasy-to-usexLogicsoft.DIN-railandpanel-mountedoptions
arebothavailable,offeringfullflexibilitytothevariousinstallationneedsofyourapplication.
ThexLogicMicroPLCisavailablein120V/240VACor12Vand24VDCversions,makingittheideal
solutionforrelayreplacement,orsimplecontrolapplicationsasbuildingandparkinglotlighting,
managingautomaticlighting,accesscontrol,wateringsystems,pumpcontrol,ventilationsystems,
homeautomationandawidefieldofotherapplicationsdemandinglowcosttobeaprimarydesignissue.
Westronglyrecommendedtakingthetimetoreadthismanual,beforeputtingthexLogicMicroPLCto
work.Installation,programminganduseoftheunitaredetailedinthismanual.Thefeature-richxLogic
MicroPLCprovidesaforoff-lineoperationmode,allowingfullconfigurationandtestingpriortoin-field
servicecommissioning.Inreviewingthismanualyouwilldiscovermanyadditionaladvantageousproduct
properties,itwillgreatlysimplifyandoptimizetheuseofyourxLogicMicroPLC.
Validrangeofthismanual
ThemanualappliestodevicesofELCseriesmodules.FormoreinformationaboutSMSmoduleor
Ethernetmodule,pleaserefertotheSMSmoduleorEthernetmoduleuser'smanual.
3
SafetyGuideline
Thismanualcontainsnoticesyouhavetoobserveinordertoensureyourpersonalsafety,aswellasto
preventdamagetoproperty.Thenoticesreferringtoyourpersonalsafetyarehighlightedinthemanual
byasafetyalertsymbol;noticesreferringtopropertydamageonlyhavenosafetyalertsymbol.The
noticesshownbelowaregradedaccordingtothedegreeofdanger.
Caution
Indicatesthatdeathorseverepersonalinjurymayresultifproperprecautionsare
nottaken
Caution
Withasafetyalertsymbolindicatesthatminorpersonalinjurycanresultifproper
precautionsarenottaken.
Caution
Withoutasafetyalertsymbolindicatesthatpropertydamagecanresultifproper
precautionsarenottaken.
Attention
Indicatethatanunintendedresultorsituationcanoccurifthecorresponding
noticeisnottakenintoaccount.
Ifmorethanonedegreeofdangerispresent,thewarningnoticerepresentingthehighestdegreeof
dangerwillbeused.Anoticewarningofinjurytopersonswithasafetyalertsymbolmayalsoincludea
warningrelatingtopropertydamage.
QualifiedPersonnel
4
Thedevice/systemmayonlybesetupandusedinconjunctionwiththisdocumentation.Commissioning
andoperationofadevice/systemmayonlybeperformedbyqualifiedpersonnel.Withinthecontextof
thesafetynoticesinthisdocumentationqualifiedpersonsaredefinedaspersonswhoareauthorizedto
commission,groundandlabeldevices,systemsandcircuitsinaccordancewithestablishedsafety
practicesandstandards.Pleasereadthecompleteoperatinginstructionsbeforeinstallationand
commissioning.
EASYdoesnotacceptanyliabilityforpossibledamagetopersons,buildingsormachines,whichoccur
duetoincorrectuseorfromnotfollowingthedetails.
PrescribedUsage
Notethefollowing:
Warning
Thisdeviceanditscomponentsmayonlybeusedfortheapplicationsdescribedinthecatalogorthe
technicaldescription,andonlyinconnectionwithdevicesorcomponentsfromothermanufacturers
whichhavebeenapprovedorrecommendedbyEASY.Correct,reliableoperationoftheproductrequires
propertransport,storage,positioningandassemblyaswellascarefuloperationandmaintenance.
Trademarks
AllnamesidentifiedbyxLogicareregisteredtrademarksoftheEASY.Theremainingtrademarksinthis
publicationmaybetrademarkswhoseusebythirdpartiesfortheirownpurposescouldviolatetherights
oftheowner.
CopyrightEasy2007allrightsreserved
Thedistributionandduplicationofthisdocumentortheutilizationandtransmissionofitscontentsare
notpermittedwithoutexpresswrittenpermission.Offenderswillbeliablefordamages.Allrights,
includingrightscreatedbypatentgrantorregistrationofautilitymodelordesign,arereserved.
DisclaimofLiability
Wehavereviewedthecontentsofthispublicationtoensureconsistencywiththehardwareandsoftware
described.Sincevariancecannotbeprecludedentirely,wecannotguaranteefullconsistency.However,
theinformationinthispublicationisreviewedregularlyandanynecessarycorrectionsareincludedin
subsequenteditions.
5
Additionalsupport
Wetakeprideinansweringyourquestionassoonaswecan:
Pleaseconsultourwebsiteat www.xLogic-plc.com foryourclosestpointofcontactoremailusat
sales@xlogic-relay.com
6
Contents
Contents
Chapter1GeneralIntroductiontoxLogic
1.1Overview
1.2Highlightfeature
Chapter2Hardwaremodelsandresources
2.1NamingRulesofELCSeries
2.2Hardwaremodelselection
2.3Structure&dimension
Chapter3Installing/removingxLogic
3.1DINrailmounting
3.2Wall-mounting
3.3MountingELC-HMI-FP
3.4wiringxLogic
Chapter4 ParametersmodificationHMIoperation
4.1OverviewofxLogicmenu
4.2LCDpanelinstruction
4.3Selectfunctionpage
Chapter5Programmingviapanelkey
5.1Connectors
5.2Blocksandblocknumbers
5.3FromcircuitdiagramtoxLogicprogram
5.4ThefourgoldenrulesforoperatingxLogic
5.5Writingandstartingthecircuitprogram
...................................................................................................................................................................................................
.............................................................................................................................
.......................................................................................................................................................................................
.......................................................................................................................................................................
.........................................................................................................................
................................................................................................................................................
....................................................................................................................................................
...........................................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................................................
............................................................................................................................................................................
.............................................................................................................................................................
...............................................................................................................................................................................
3.4.1Connectingthepowersupply
3.4.2ConnectingxLogicinputs
3.4.3ConnectingxLogicOutputs
3.4.4Communicationportinstructions:
.....................................................................................................................................................
.............................................................................................................................................................
...............................................................................................................................................................
4.3.1HowtoswitchRun/Stop
4.3.2Setparameter
4.3.3Setpassword
4.3.4HowtosetaddressofCPUandexpansionmodule
4.3.5SetLCD(backlightandContrast)
4.3.6Setcommunicationparameters
4.3.7ModificationofSystemTime
...................................................................................................................................................................................
5.5.1Selectingprogrammingmode
5.5.2Thefirstcircuitprogram
5.5.3Circuitprograminput
5.5.4Assigningacircuitprogramname
5.5.5Assigningsystemcover
................................................................................................................................................................
..................................................................................................................................................................
....................................................................................................................................................
.................................................................................................................................................
.................................................................................................................................
.........................................................................................................................................
......................................................................................................................................
.......................................................................................................................
...........................................................................................................................................
........................................................................................................................
............................................................................................................................
..................................................................................................................................
...................................................................................................................................
.......................................................................................................................
..................................................................................................................
.......................................................................................................................
................................................................................................................................
...........................................................................................................................................
.......................................................................................................................
............................................................................................................................................
......................................................................................................
.....................................................................................
7
11
11
11
16
16
18
26
29
30
31
34
36
37
37
40
44
46
47
47
50
52
53
56
59
62
63
65
67
67
69
71
73
74
74
75
77
80
81
7
5.5.6Secondcircuitprogram
5.5.7Deletingablock
5.6Memoryspaceandcircuitprogramsize
Chapter6Configuring&Programmingsoftware
6.1xLogicFunctions
6.2GeneralInput&Outputfunctions
6.2.1Inputs
6.2.2Cursorkeys
6.2.3Outputs
6.2.4PermanentlogicallevelsHIandLO
6.2.5PanelKey
6.2.6Shiftregisterbits
6.2.7Analoginputs
6.2.8F(digitalflag)
6.2.9AF(Analogflag)
6.3Basicfunctionslist – GF
6.3.1AND
6.3.2ANDwithedgeevaluation
6.3.3NAND
6.3.4NANDwithedgeevaluation
6.3.5OR
6.3.6NOR
6.3.7XOR
6.3.8NOT
6.3.9BooleanFunction
6.4Basicsonspecialfunctions
6.4.1Designationoftheinputs
6.4.2Timeresponse
6.4.3Backupofthereal-timeclock
6.4.4Retentivity
6.4.5Parameterprotection
6.4.6Calculatingthegainandoffsetofanalogvalues
6.5Specialfunctionslist – SF
6.5.1On-delay
6.5.2Off-delay
6.5.3On-/Off-delay
6.5.4Retentiveon-delay
6.5.5Wipingrelay(pulseoutput)
6.5.6Edgetriggeredwipingrelay
6.5.7Asynchronouspulsegenerator
6.5.8Randomgenerator
6.5.9Stairwaylightingswitch
6.5.10Multiplefunctionswitch
6.5.11Weeklytimer
........................................................................................................................................................................................
........................................................................................................................................................................
................................................................................................................................................................................
.....................................................................................................................................................................
.............................................................................................................................................................................
.........................................................................................................................................................................
.................................................................................................................................................................
................................................................................................................................................................
.....................................................................................................................................................................................
.................................................................................................................................................................................
..................................................................................................................................................................................
..................................................................................................................................................................................
..................................................................................................................................................................................
.............................................................................................................................................................
.....................................................................................................................................................................
........................................................................................................................................................................
........................................................................................................................................................................
..............................................................................................................................................................
.............................................................................................................................................................
.............................................................................................................................................
............................................................................................................................................................
........................................................................................................................
....................................................................................................................................
....................................................................................................................
.........................................................................................................................................................
............................................................................................................................................................
........................................................................................................................................................
.......................................................................................................................................
....................................................................................................................................
.......................................................................................................................................................
................................................................................................................................................
......................................................................................................................................
..............................................................................................................................
...............................................................................................................................................
..................................................................................................................................................
...................................................................................................................................................
..................................................................................................................................
.................................................................................................................................
...........................................................................................................................
....................................................................................................................................................
.........................................................................................................................................
.......................................................................................................................................
...............................................................................................................
.......................................................................................
82
87
88
89
90
90
90
91
91
92
92
93
93
93
94
95
96
97
97
98
99
100
101
101
102
103
103
104
105
105
105
105
107
110
113
115
116
117
119
121
122
124
126
128
8
6.5.12Yearlytimer
6.5.13Up/Downcounter
6.5.14Hourscounter
6.5.15Thresholdtrigger
6.5.16Latchingrelay
6.5.17Pulserelay
6.5.18Messagetext
6.5.19Softkey
6.5.20Shiftregister
6.5.21Analogcomparator
6.5.22Analogthresholdtrigger
6.5.23Analogamplifier
6.5.25Analogdifferentialtrigger
6.5.26Analogmultiplexer
6.5.27Systemcover
6.5.28PulseWidthModulator(PWM)
6.5.29AnalogRamp
6.5.30AnalogMath
6.5.31Analogmatherrordetection
6.5.32ModbusRead
6.5.33ModbusWrite
6.5.34Datalatchingrelay
6.5.35PIcontroller
6.5.36Memorywrite
6.5.37MemoryRead
6.5.38WordtoBit
6.6xLogicsoft
6.7MainFunctions
6.8OperationInstructions
6.8.1MenuBar
6.8.2Toolbar
6.8.3ProgrammingToolbar
6.8.4SimulationToolandstatuswindow
6.9BasicOperation
6.9.1OpenFile
6.9.2EditFunctionDiagramProgram
...................................................................................................................................................................................
6.8.1.1File
6.8.1.2Edit
6.8.1.3Tools
6.8.1.4SMS
6.8.1.5View
6.8.1.6Help
6.9.1.1OpenNewFile
6.9.1.2OpenExistedDocument
...............................................................................................................................................................
....................................................................................................................................................
...........................................................................................................................................................
....................................................................................................................................................
...........................................................................................................................................................
..................................................................................................................................................................
.............................................................................................................................................................
.........................................................................................................................................................................
.............................................................................................................................................................
.................................................................................................................................................
......................................................................................................................................................
.................................................................................................................................................
............................................................................................................................................................
.............................................................................................................................................................
..............................................................................................................................................................
.............................................................................................................................................................
............................................................................................................................................................
.................................................................................................................................................
...............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
.................................................................................................................................................................
........................................................................................................................................................................
.........................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
....................................................................................................................................................................
.....................................................................................................................................................................
.....................................................................................................................................................................
.....................................................................................................................................................................
............................................................................................................................................................................
..............................................................................................................................................
.......................................................................................................................................................................
.......................................................................................................................................................................
................................................................................................................................................
......................................................................................................................................
...................................................................................................................................
..........................................................................................................................
.............................................................................................................................
..................................................................................................................
............................................................................................................................
.........................................................................................................................
131
137
139
142
144
145
146
154
156
159
163
166
169
172
174
176
179
182
184
186
192
197
199
209
215
219
220
226
226
227
227
228
228
229
231
231
232
232
234
236
236
236
238
239
9
6.9.2.1PlaceFunctionBlock
6.9.2.2EditPropertyofFunctionBlock
6.9.2.3Setuplink
6.9.2.4DeleteFunctionBlockorDeleteLink
6.10SimulationRunning
6.11SaveandPrint
6.12ModifyPasswordandtransfertheProgram
6.13On-linemonitoring/testcircuitprogram
Chapter7Applications
7.1Dual-functionswitch
7.2Automaticgate
7.2.1Standardsolution
7.2.2TheschemeofxLogic
7.3Ventilationsystem
7.3.1Standardsolution
7.3.2TheschemeofxLogic
7.4Factorydoor
7.4.1Standardsolution
7.4.2TheschemeofxLogic
7.5Daylightlampsystem
7.5.1Standardsolution
7.5.2TheschemeofxLogic
7.6Rainwaterpump
7.6.1Standardsolution
7.6.2TheschemeofxLogic
Chapter8ModbusfunctioncodeandRegisteraddresses
8.2RegisteraddressesofxLogic
Appendix
ATechnicaldata
A.3Switchingcapacityandservicelifeoftherelayoutputs
.............................................................................................................................................................................
.............................................................................................................................................................................................
..............................................................................................................................................................................
..........................................................................................................................................................
............................................................................................................................................................
......................................................................................................................................................................
.................................................................................................................................................................
.............................................................................................................................................................
........................................................................................................................................................................
......................................................................................................................................................
.................................................................................................................................................................
......................................................................................................................................................
......................................................................................................................................................
..........................................................................................................................................................
......................................................................................................................................................
.....................................................................................................................................................................
......................................................................................................................................................
....................................................................................................................................
..............................................................................................................
...................................................................................................
............................................................................................................
..................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..........................................................................................
............................................................................................................................................
.....................................................................................
239
239
240
242
242
244
245
247
252
252
255
256
257
258
259
260
262
262
263
267
271
271
275
276
277
279
281
290
290
311
10
Chapter1GeneralIntroductiontoxLogic
1.1Overview
xLogicisauniversallogicmodulemadebyEasy.
xLogic,acompact,expandableCPUthatcanreplaceminiPLC,multipletimers,relaysandcounters,
Splittingthedifferencebetweenatimingrelayandalow-endPLC,EachCPUhousesareal-timeclock
andcalendar,andsupportsoptionalexpansionI/Omodulestoenhanceyourcontrolandmonitoring
applications.Dataadjustmentscanbedoneviatheon-boardkeypadandLCDdisplay,orwithxLogicsoft.
ItcanbeeitherDIN-railorpanelmounted,dependingupontheneedsofyourapplication,anditis
availablein120V/240Vacaswellas12Vand24Vdcversions,anditistheidealsolutionforrelay
replacementapplications,simplecontrolapplicationssuchasbuildingandparkinglotlighting,managing
automaticlighting,accesscontrol,wateringsystems,pumpcontrol,orventilationsystemsinfactory,and
homeautomationandapplicationsinwhichcostisaprimarydesignissue.
1.2Highlightfeature
l 4-lines,10-charactersperline,backlightdisplay(16-charactersperlineforELC-22/26CPU).
l MultiplevaluedisplayandinputviakeypadandLCDdisplay.
l Key-panelprogrammingfeature(optional)
l FunctionBlockDiagram
l StandardModbusRTU/ASCII/TCPcommunicationprotocolsupported.
l It’ soptionalforxLogictoactasslaveormasterincertainModbusRTUcommunicationnetwork.
l CANBUSprotocolbasedexpansionmodules(ELC-18/22/26seriesCPU)
l Expandableupto9linkedIOexpansionmodulesreaching162I/Opointsinmaximum
l 1RS232portand2RS485portsbuilt-in(merelyappliedtostandardELC-12Series);1RS232port
and1RS485portbuilt-in(merelyappliedtoELC-18Series)
l OptionalEthernetconnectivity
l SMS/GSMmoduleforremotecontrol,monitoringandalarm
l MultiplechannelsanaloginputsavailablewithDC0-10Vsignal,PT100signal&0/4… .20mA.
l DefaultRealTimeClock(RTC)andsummer/wintertimerisavailable
11
BackupatRealTimeClock(RTC)at25 ° C:100hours(10hoursforStandard/EconomicELC-18CPU)
l
Twochannelshigh-speedcounting(ELC-18SeriesCPU:14KHz; UpgradedELC-18&ELC-12/22/26
l
SeriesCPU:60KHz)
Pre-configuredstandardfunctions,e.g.on/off-delays,pulserelayandsoftkey
l
2PWMchannels(333Hz)
l
Retentivememorycapability(NotappliedtoELC-6&economicELC-12)
l
RS232communicationdownloadcablewithphoto-electricityisolation
l
USBcommunicationdownloadcablewithphoto-electricityisolation
l
Programmablecapabilityupto256functionblocks(ELC-18),512functionblocks(ELC-12)
l
Mountingviamodular35mmDINrailorscrewfixedmountingplate
l
On-linemonitorcapability
l
Compactdesign
l
HMI(LCD)separateinstallationavailable,e.g.xLogiccanbeinstalledinsidecabinetandHMI
l
mountedinit’ sfrontpanel
Datalogging
l
Kindsofanalogsignalsprocesscapacity(DC0..10V,0/4...20mAandPT100probeinputsandDC
l
0..10Vand0/4...20mAoutputs)
Lowcost
l
SomeofthethingsxLogiccandoforyou?
ThexLogicMicroPLCprovidessolutionsforcommercial,industrial,buildingand
domesticapplicationssuchaslighting,pumping,ventilation,shutteroperationsor
inswitchingcabinets.Theapplicationfieldiswidespreadandthesearejustafew
tomention.
UsingtheRS485busandEthernetconnectivityallowstheusertorealizevariousextensive(real-time)
monitoringandcontrolapplications.UtilizingtheoptionalSMSmodulethesystemscanfurthermorebe
remotelycontrolledvia(GSM)cellphone.SMSAlarms,statusupdatesandanyotherdesirablemessages
canbeprovidedatsettriggers.
Specialversionswithoutoperatorpanelanddisplayunitareavailableforseriesproductionapplications
insmallmachine,installationandcabinetbuildingenvironmentstofurtherslashcost.
xLogicdevices:
xLogicBasicisavailableintwovoltageclasses:
*Classes1:DC12-24V:i.e.:ELC-6DCSeries,ELC-12DCseries,ELC-18series,ELC-22seriesand
ELC-26DCSeries.
*Classes2:AC110-240V:i.e.:ELC-6ACSeries,ELC-12ACseries,ELC-18ACseries,ELC-22ACseriesand
12
ELC-26ACseries
Intheversions:
*WithDisplay:ELC-18Series(12inputsand6outputs)
*Optional(With/without)Display:ELC-12Series(8inputsand4outputs),ELC-22Series(14inputsand
8outputs),ELC-26Series(16inputsand10outputs)
ELC-18Seriesisequippedwithanexpansionbus(CanBus)
EachVersionisprovides44pre-configuredstandardandspecialfunctionblocksforthecreationofyour
circuitprogram.
Expansionmodules:
ELC-E(appliedtoELC-18/22/26CPU)
*xLogicdigitalmodulesareavailableforoperationwith12… 24VDC,and110...240VAC,andare
equippedwitheightinputsandeightoutputs.
*xLogicanalogmodulesareavailableforoperationwith12… 24VDCandareequippedwithsixdigital
andtwoanaloginputs.
ELC12-E(appliedtoELC-12CPU)
*xLogicdigitalmodulesareavailableforopera tionwith12… 24VDC,and110...240VAC,andare
equippedwithfourinputsandfouroutputs.
*xLogicanalogmodulesareavailableforoperationwith12… 24VDCandareequippedwithfour
digital/analoginputs.
Communicationmodules:
xLogic:RS232communicationcable(Model:ELC-RS232)
l
Itiskindofuniversalcablewithphotoelectricityisolationwhichcanbedirectlyconnectedtostandard
9-pinportofPC,alsokindofinterfacemodulewhichcanenableuser’ sprogramtobedownloadedinto
xLogicCPUthroughxLogicsoftforrunning.ItalsoistheconnectioncablebetweenCPUandthirdparty
devicewiththeRS232port(justlikeHMI)inmodbuscommunicationsystem.
l xLogic:USBcommunicationcable(Model:ELC-USB).
ItiskindofcommunicationcablewithphotoelectricityisolationthroughwhichPCwithUSBportonlycan
beconnectedtoxLogicmainmodule,moreover,ithassamefeaturesasELC-RS232module, soitis
quiteconvenientforuserwhosecomputerhasnostandardserialport.
l xLogic:Ethernetmodule( Model: ELC-Ethernet)
13
ItiscalledEthernetmodule,usedtoconnectxLogicmainmodulesindifferentplacestoenormous
Ethernettobuildupahugemonitoringandcontrolsystem.ItcontainsDCandACtwotypes.
l xLogic:SMSmodule( Model : ELC-SMS-D-R )
ELC-SMS-D-R iskindofSMSmodule,throughwhichSMScanberegardedasexpansioninputbyuser
torealizewirelessremotecontrolanditcansendalarmmessagestousercellphones.
Communication/Network
xLogicoffersdifferentwaystocommunicatewithinthesystem.
RS485port(RS485 communicationmoduleneeded)
TheRS485portisusedforcommunicationbetweentheCPUandvariousdevicesorequipmentswhich
havethestandardRS485port.CommunicateusingModbusRTU/ASCIIprotocol.
RS232orUSBport(ELC-ES232/ELC-USBneeded)
Ifthereisnonetworkrequiredandonlyonemainmodulewithsomeexpansionmodulesisneededforthe
application,thedown-anduploadoftheprojecttoandfromthemainmodulehappensoverthestandard
RS232orUSBport.Itallowssystemmaintenancelikemonitoringtoo.
Ethernetnetwork
Iftheapplicationrequiresasystemwheremorethanonemainmoduleisneededandthesemain
14
moduleshavetocommunicate,eachmainmodulewillbeconnectedoveranEthernetModuleboxtothe
Ethernet.Theprojectdown-anduploadtoandfromthemainmodulesandthecommunicationbetween
themainmoduleshappensovertheEthernetnetwork.Furthermorethevisualizationofthewholesystem
ispossibleandeasytorealizeapersonalcomputer.
Note
xLogicCPUmaybeequippedwithexpansionmodulesofthedifferentvoltageclass,butexpansion
modulemustbesuppliedthecorrectpowercorrespondingtoitstype.
EachxLogicCPUprovidesthefollowingconnectionsforthecreationofthecircuitprogram,regardlessof
thenumberofconnectedblocks:
l DigitalinputsI1toI4(ELC-6),I1toI8(ELC-12),I1toIC(ELC-18), I1toID(ELC-22),I1toIF(ELC-26)
AnaloginputsAI1toAI8
l
l DigitaloutputsQ1toQ6( ELC-18), Q1toQ4(ELC-12)
DigitalflagblocksF1-F64(appliedtostandardELC-12&UpgradedELC-18CPU);
l
F1-F64
l
-F8:Startupflag
l
-F64:Backlightcontrolbit
l
AnalogflagblocksAF1toAF64(appliedtostandardELC-12&UpgradedELC-18CPU);
l
AF1-AF32(appliedtootherELCseriesCPU)
ShiftregisterbitsS1toS8
l
4cursorkeysand8Panelkeys(ELC-22/26)
l
15
Chapter2Hardwaremodelsandresources
2.1NamingRulesofELCSeries
1.Seriesname
2.Pointsofinputandoutput
3.Supplypower ACorDC
4.Digital/Analog D:digitalDA:digital/analogL:withphotoelectricityisolation
5.Outputtype R:relay T:transistorTN=“PNP” transistor;TP= “ NPN” transistor
6.E:economicmode
Modelname(expansionmodule,pluswithELC-18/22/26CPUtogethertouse):
1.Seriesname
2.E:expansionmodule
3.Pointsofinputandoutput
4.Supplypower ACorDC
5.Digital/Analog D:digitalDA:digital/analog
6.Outputtype R:relayTP: “ NPN” transistor; TN:“PNP” transistor
Modelname(expansionmodule,pluswithELC-12CPUtogethertouse):
16
1.Seriesname
2.E:expansionmodule
3.Pointsofinputandoutput
4.Supplypower ACorDC
5.Digital/AnalogDA:digital/analog
6.Outputtype R:relayTP: “ NPN” transistor; TN:“PNP” transistor
2.2Hardwaremodelselection
xLogic(MicroPLC)ModelSelectionchart(excludingaccessories)
StandardELC-12SeriesCPUUnits
Model Expansion BriefDescription Supplyvoltage Inputs Outputs High-speedcount PWM HMI RTC
ELC-12AC-R-CAP YES
ELC-12DC-DA-R-CAP YES
ELC-12DC-DA-TN-CAP YES
ELC-12DC-DA-TP-CAP YES
ELC-12AC-R-HMI YES
CPUwith
13-LED-indicators
COVER
CPUwith
13-LED-indicators
COVER
CPUwith
13-LED-indicators
COVER
CPUwith
13-LED-indicators
COVER
CPUwithkeypad
panel/LCD
AC110~ 240V
DC12V-DC24V
DC12V-DC24V
DC12V-DC24V
AC110~ 240V
8digital
4digital/analog(I1-I4)+4
digital(I5-I8)
4digital/analog(I1-I4)+4
digital(I5-I8)
4digital/analog(I1-I4)+4
digital(I5-I8)
8digital
4relays
(10A)
4relays
(10A)
4
transistors(
PNP)
4
transistors(
NPN)
4
relays(10A)
NO NO
I5,I6(Max.14kHz)I7
,I8(Max.60kHz)
I5,I6(Max.14kHz)I7
,I8(Max.60kHz)
I5,I6(Max.14kHz)I7
,I8(Max.60kHz)
NO NO
NO
2ch(Q
3,Q4)
2ch(Q
3,Q4)
optio
nal
optio
nal
optio
nal
optio
nal
optio
nal
yes
yes
yes
yes
yes
ELC-12DC-DA-R-HMI YES
ELC-12DC-DA-TN-HMI YES
ELC-12DC-DA-TP-HMI YES
17
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
DC12V-DC24V
DC12V-DC24V
DC12V-DC24V
EconomicELC-12SeriesCPUUnits
4digital/analog(I1-I4)+4
digital(I5-I8)
4digital/analog(I1-I4)+4
digital(I5-I8)
4digital/analog(I1-I4)+4
digital(I5-I8)
4relays
(10A)
4
transistors
(PNP)
4
transistors
(NPN)
I5,I6(Max.14kHz)I7
,I8(Max.60kHz)
I5,I6(Max.14kHz)I7
,I8(Max.60kHz)
I5,I6(Max.14kHz)I7
,I8(Max.60kHz)
NO
2ch(Q
3,Q4)
2ch(Q
3,Q4)
optio
nal
optio
nal
optio
nal
yes
yes
yes
CPUwith
ELC-12AC-R-E-CAP NO
ELC-12DC-D-R-E-CAP NO
ELC-12DC-D-TN-E-CAP NO
ELC-12DC-D-TP-CAP NO
Model Supplyvoltage Inputs
ELC12-E-8AC-R AC110~240V 4Digital 2Relays(3A,Q1-Q2)+2Relays(10A,Q3-Q4)
ELC12-E-8DC-DA-R DC12V – DC24V 4Digital/analog 2Relays(3A,Q1-Q2)+2Relays(10A,Q3-Q4)
ELC12-E-8DC-DA-TN DC12V – DC24V 4Digital/analog 4Transistors( PNP)
ELC12-E-8DC-DA-TP DC12V – DC24V 4Digital/analog 4Transistors( NPN)
ELC12-E-PT100 DC12V – DC24V
ELC12-E-AQ-V DC15V – DC24V None 2Channels(DC0…10V),VoltageSignal
ELC12-E-AQ-I DC12V – DC24V None 2Channels(0…20mA),CurrentSignal
ELC12-E-AI(I) DC12V – DC24V 4Channels(0/4… ..20mA),CurrentSignal none
ELC12-E-RS485 DC12V – DC24V isolated485converter,usedtobringouttheterminalsofRS485portbuilt-inELC-12seriesCPUforconnectionwiththirdpartydevices.
ELC12-E-ETHERNET-AC AC110-240V Ethernetmodule
ELC12-E-ETHERNET-DC DC12V – DC24V Ethernetmodule
13-LED-indicators
COVER
CPUwith
13-LED-indicators
COVER
CPUwith
13-LED-indicators
COVER
CPUwith
13-LED-indicators
COVER
2ChannelsPT100,resolution:0.1° (12bits),
temperaturerange:-50℃ -200℃
AC110~ 240V
DC12V-DC24V
DC12V-DC24V
DC12V-DC24V
StandardELC-12SeriesExpansionModules
8digital
4digital/analog(I1-I4)+4
digital(I5-I8)
4digital/analog(I1-I4)+4
digital(I5-I8)
4digital/analog(I1-I4)+4
digital(I5-I8)
4relays
(10A)
4relays
(10A)
4
transistors
(PNP)
4
transistors
(NPN)
NO NO
NO NO
NO NO
NO NO
Outputs
none
optio
nal
optio
nal
optio
nal
optio
nal
yes
yes
yes
yes
Accessories
ELC-HMI Displayingandprogram-makingkeypadpanelforELC-12seriesCPU,optional,
ELC-COVER-CABLE ConnectioncablebetweenELC-12CPUandELC-HMI-FP(Faceplate)forlong-distanceapplicationpurpose,oneandhalfmetersstandardlength.
ELC-HMI-FP
ELC12-CB-A AtypeconnectionbridgebetweenELC-12CPU&Extensionmodule.Freeofcharge!
ELC12-CB-B connectioncablebetweenELC-12CPU&Extensionmodule,itcanbeusedtoremotelyconnectELC-12CPUtoitsextensionunits,3-meterstandardlength
ELC-COVER CPU’ Scoverwith13LEDindicatorsindicatingIOstatus,ifLCDnotrequired,Optional
ELC-MEMORY
Faceplate(ELC-HMI’ sinstallationunit),makingitpossibleforELC-HMItobeexternallyinstalledinthefrontdoorofcabinetforeasyobservationandoperationwhile
ELC-12CPUisrequiredtobeinstalledinside.
Realtimedataloggingdevicewithamini-SDcardslotforELC-12CPUs.Thehistorydata(IOstatus,analogvalue,currentvalueofregisters)ofELC-12CPUcanbe
recorded,retrievedandviewedviait
18
StandardELC-6SeriesCPUUnits
Model Expansion Supplyvoltage Inputs Outputs High-speedcount PWM HMI RTC
ELC-6AC-R no
ELC-6DC-D-R no DC12-24V 4digital 2relays(10A) no no no yes
ELC-6DC-D-TN no DC12-24V 4digital 2transistors(PNP) no no no yes
AC110~
AC240V
4digital 2relays(10A) no no no yes
MODEL DESCRIPTION
StandardELC-18CPUUNITS
Expansion Supplyvoltage Inputs Outputs PWM HMI RTC High-speedcount
ELC-18AC-R available AC110~
AC240V
ELC-18DC-D-R available DC12-24V 12
ELC-18DC-D-TP(NPN) available DC12-24V 12
ELC-18DC-D-TN(PNP) available DC12-24V 12
ELC-18DC-DA-R available DC12-24V 8analog/
ELC-18DC-DA-TP(NPN) available DC12-24V 8analog/
ELC-18DC-DA-TN(PNP) available DC12-24V 8analog/
Expansion Supplyvoltage Inputs Outputs PWM HMI RTC High-speedcount
ELC-18AC-R-E No AC110~
AC240V
ELC-18DC-D-R-E No DC12-24V 12
12digital
digital
digital
digital
digital+
4digital
digital+
4digital
digital+
4digital
12digital 6relays
digital
6relays( 10A)
6relays( 10A)
6transistor
(0.3A) 2ch(Q5,Q6)
6transistor
(0.3A)
6relays( 10A)
6transistor
(0.3A) 2ch(Q5,Q6)
6transistor
(0.3A)
EconomicELC-18CPUUNITS
( 10A)
6relays
( 10A)
no yes yes No
no yes yes 2Routes(14KHZ)
2ch(Q5,Q6) yes yes 2Routes(14KHZ)
no yes yes 2Routes(14KHZ)
2ch(Q5,Q6) yes yes 2Routes(14KHZ)
no yes yes No
no yes yes 2Routes(14KHZ)
yes yes 2Routes(14KHZ)
yes yes 2Routes(14KHZ)
19
ELC-18DC-D-TP-E(NPN) No DC12-24V 12digital 6
transistor
(0.3A)
ELC-18DC-D-TN-E(PNP) No DC12-24V 12digital 6
transistor
(0.3A)
ELC-18DC-DA-R-E No DC12-24V 8analog/
digital+
4digital
ELC-18DC-DA-TP-E(NPN) No DC12-24V 8analog/
digital+
4digital
ELC-18DC-DA-TN-E(PNP) No DC12-24V 8analog/
digital+
4digital
Expansion Supplyvoltage Inputs Outputs PWM HMI RTC High-speedcount
ELC-18AC-R-U Yes AC110~
AC240V
ELC-18DC-D-R-U Yes DC12-24V 12digital 6relays
ELC-18DC-D-TP-U(NPN) Yes DC12-24V 12digital 6
ELC-18DC-D-TN-U(PNP) Yes DC12-24V 12digital 6
ELC-18DC-DA-R-U Yes DC12-24V 12digital 6relays
ELC-18DC-DA-TP-U(NPN) Yes DC12-24V 12digital 6
ELC-18DC-DA-TN-U(PNP) Yes DC12-24V 12digital 6
Supplyvoltage Inputs Outputs
ELC-E-16AC-R AC110~
AC240V
ELC-E-16DC-D-R DC12-24V 8digital
8digital
12digital 6relays
StandardELC-18SeriesExpansionModules
6relays
( 10A)
6
transistor
(0.3A)
6
transistor
(0.3A)
UpgradedELC-18CPUUNITS
(10A )
(10A )
transistor
(0.3A)
transistor
(0.3A)
( 10A)
transistor
(0.3A)
transistor
(0.3A)
no yes yes 2Routes(14KHZ)
no yes yes 2Routes(14KHZ)
no yes yes 2Routes(14KHZ)
no yes yes 2Routes(14KHZ)
no yes yes 2Routes(14KHZ)
no yes yes No
no yes yes 2Routes(60KHZ)
2ch(Q5,Q6) yes yes 2Routes(60KHZ)
2ch(Q5,Q6) yes yes 2Routes(60KHZ)
no yes yes 2Routes(60KHZ)
2ch(Q5,Q6) yes yes 2Routes(60KHZ)
2ch(Q5,Q6) yes yes 2Routes(60KHZ)
4relays( 10A) +4relays(3A)
4relays( 10A) +4relays(3A)
ELC-E-16DC-DA-R DC12-24V 6digital+2analog/digital
ELC-E-16DC-D-TN DC12-24V 8digital 8transistors(PNP)(0.3A)
ELC-E-16DC-DA-TN DC12-24V 6digital+2analog/digital 8transistors(PNP)(0.3A)
4relays( 10A) +4relays(3A)
20
ELC-E-PT100 DC12-24V
ELC-E-AQ-V DC15V – DC24V none 2Channels(DC0…10V),VoltageSignal
ELC-E-AQ-I DC12-24V none 2Channels(0/4…..20mA),CurrentSignal
ELC-E-AI(I) DC12-24V 4Channels(0/4…..20mA),CurrentSignal none
ELC-RS485 DC12-24V isolated485converter,usedtobringouttheterminalsofRS485portbuilt-inELC-12seriesCPUforconnectionwiththirdpartydevices.
3ChannelsPT100,resolution:0.1° (12bits),temperaturerange:-50℃ -
200℃
none
Accessories
ELC-RS232 RS232communicationmodule/downloadcablebetweenPCandxLogicCPUunits
ELC-USB USBcommunicationmodule/downloadcablebetweenPCandxLogicCPUunits
ELC-Ethernet-DC/AC EthernetmoduleconnectingtoELC-18CPUunits
ELC-SMS-D-R SMSmodulecanbeconnectedtoELC-18CPUunits.(DC24Vpowersupply,6digitalinputs,4relayoutputs)
ELC-COPIER ELC-COPIERcanbeusedtosaveuserprogramanddownloadprogramintoxLogics.
StandardELC-22SeriesCPUUnits
Model Expansion BriefDescription Supplyvoltage Inputs Outputs High-speedcount PWM HMI RTC
CPUwith
ELC-22AC-R-CAP YES
ELC-22DC-D-R-CAP YES
ELC-22DC-DA-R-CAP YES
ELC-22DC-DA-TN-CAP YES
ELC-22DC-DA-TP-CAP YES
ELC-22AC-R-HMI YES
ELC-22DC-D-R-HMI YES
ELC-22DC-DA-R-HMI YES
ELC-22DC-DA-TN-HMI YES
ELC-22DC-DA-TP-HMI YES CPUwithkeypad DC12V-DC24V 8digital/analog(I1-I8)+6 8 I9,IA 2ch(Q yes yes
23-LED-indicators
COVER
CPUwith
23-LED-indicators
COVER
CPUwith
23-LED-indicators
COVER
CPUwith
23-LED-indicators
COVER
CPUwith
23-LED-indicators
COVER
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
AC110~ 240V 14digital
DC12V-DC24V 14digital
DC12V-DC24V
DC12V-DC24V
DC12V-DC24V
AC110~ 240V 14digital
DC12V-DC24V 14digital
DC12V-DC24V
DC12V-DC24V
8digital/analog(I1-I8)+6
digital(I9-ID)
8digital/analog(I1-I8)+6
digital(I9-ID)
8digital/analog(I1-I8)+6
digital(I9-ID)
8digital/analog(I1-I8)+6
digital(I9-ID)
8digital/analog(I1-I8)+6
digital(I9-ID)
8relays
(10A)
8relays
(10A)
8relays
(10A)
8
transistors(
PNP)
8
transistors(
NPN)
8
relays(10A)
8
relays(10A)
8relays
(10A)
8
transistors
(PNP)
NO NO NO yes
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
NO NO yes yes
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
NO NO yes
NO NO yes
2ch(Q
NO yes
5,Q6)
2ch(Q
NO yes
5,Q6)
NO yes yes
NO yes yes
2ch(Q
yes yes
5,Q6)
21
ELC-26AC-R-CAP YES
ELC-26DC-D-R-CAP YES
ELC-26DC-DA-R-CAP YES
ELC-26DC-DA-TN-CAP YES
ELC-26DC-DA-TP-CAP YES
ELC-26AC-R-HMI YES
ELC-26DC-D-R-HMI YES
ELC-26DC-DA-R-HMI YES
ELC-26DC-DA-TN-HMI YES
ELC-26DC-DA-TP-HMI YES
panel/LCD digital(I9-ID) transistors
StandardELC-26SeriesCPUUnits
CPUwith
27-LED-indicators
COVER
CPUwith
27-LED-indicators
COVER
CPUwith
27-LED-indicators
COVER
CPUwith
27-LED-indicators
COVER
CPUwith
27-LED-indicators
COVER
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
CPUwithkeypad
panel/LCD
AC110~ 240V
DC12V-DC24V 16digital
DC12V-DC24V
DC12V-DC24V
DC12V-DC24V
AC110~ 240V
DC12V-DC24V 16digital
DC12V-DC24V
DC12V-DC24V
DC12V-DC24V
16digital
8digital/analog(I1-I8)+8
digital(I9-IF)
8digital/analog(I1-I8)+8
digital(I9-IF)
8digital/analog(I1-I8)+8
digital(I9-IF)
16digital
8digital/analog(I1-I8)+8
digital(I9-IF)
8digital/analog(I1-I8)+8
digital(I9-IF)
8digital/analog(I1-I8)+8
digital(I9-IF)
(NPN)
10relays
(10A)
10relays
(10A)
10relays
(10A)
10
transistors
(PNP)
10
transistors
(NPN)
10relays
(10A)
10relays
(10A)
10relays
(10A)
10
transistors
(PNP)
10
transistors
(PNP)
(Max.14kHz)IB,IC(
Max.60kHz)
NO NO NO yes
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
NO NO YES yes
VI9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
I9,IA
(Max.14kHz)IB,IC(
Max.60kHz)
5,Q6)
NO NO yes
NO NO yes
2ch(Q
NO yes
5,Q6)
2ch(Q
NO yes
5,Q6)
NO YES YES
NO YES yes
2ch(Q
YES yes
5,Q6)
2ch(Q
YES yes
5,Q6)
22
2.3Structure&dimension
1.ELC-18SeriesCPU
1.Powersupply2.Input3.Program/RS232port4.HMI/LCDpanel5.keypad
6.Expansion+RS485port7.Output
2.ELC-12SeriesCPU
23
1.Powersupply 2.Input3.Program/RS232port4.Extension/RS485port
5.HMI/LCDpanel6.keypad7.Output
Notes:
1.Programport/RS232port(ELC-RS232,ELC-USB,ELC-Copier,ELC-MEMORYshouldbeinsertedinthis
port)
2.Extensionport(itcanbeusedas2RS485ports,ELC12-CB-A,ELC12-CB-Bshouldbeinsertedinthis
port)
3.ELC-ESeriesExpansionModule(onlyusewithELC-18CPUs)
1.Powersupply2.Input3.Connectioncable4.Extensionport5.Output
4.ELC12-ESeriesExpansionModule(alsoapplytoELC-6SeriesCPU)
1.Powersupply 2.Input3.extensionport(left)4.expansionport(Right)(Programportforapplied
toELC-6CPU)
24
5.ELC-22andELC-26seriesCPU
1.Powersupply 2.Input 3.Program/RS232port 4.HMI/LCDpanel5.keypad 6.Extension/RS485
port7.Output
Chapter3Installing/removingxLogic
Dimensions
ThexLogicinstallationdimensionsarecompliantwithDIN43880.
xLogiccanbesnap-mountedto35mmDINrailstoEN50022oronthewall.
xLogicwidth:
l ELC-12SeriesCPUhasawidthof72mm.
l ELC12-EexpansionmoduleandELC-6seriesCPUhaveawidthof48mm
l ELC-18SeriesCPUhasawidthof95mm.
l ELC-Eexpansionmoduleshaveawidthof72mm.
l ELC-22andELC-26SeriesCPUhasawidthof133mm.
Note
ThefigurebelowshowsyouanexampleoftheinstallationandremovalofanELC-12CPUandone
expansionmoduleELC-12CPU.
Warning
25
Alwaysswitchoffpowerbeforeyou “ remove” and “ insert” anexpansionmodule.
3.1DINrailmounting
Mounting
HowtomountaxLogicmoduleandaexpansionmoduleontoaDINrail:
1.HookthexLogicBasicmoduleontotherail.
2.Pushdownthelowerendtosnapiton.Themountinginterlockattherearmustengage.
3.HookthexLogicexpansionmoduleontotherail
4.SlidethemoduletowardstheleftuntilittouchesthexLogicCPU.
5.Pushdownthelowerendtosnapiton.Themountinginterlockattherearmustengage.
6.RemovetheplasticcoverintheexpansionportofCPUandexpansionmodule.
7.Plustheconnectionbridge
Repeattheexpansionmodulestepstomountfurtherexpansionmodules.
Notes: 1.ELC12-EextensionsconnectwithELC-12CPUbyELC12-CB-AbridgeorELC12-CB-B
connectioncable(3meters)
2.ELC-EextensionsconnectwithELC-18,ELC-22orELC-26CPUdirectlybythe
connectorwithflatcableoftheexpansionmodule
26
Removal
ToremovexLogic:
.......ifyouhaveinstalledonlyonexLogicrBasic:
1.Insertascrewdriverintotheeyeletatthebottomoftheslideinterlockandmovethe
latchdownward.
2.SwingthexLogicBasicofftheDINrail.
.......ifyouhaveconnectedatleastoneexpansionmoduletoxLogicBasic:
1.Removetheconnector
2.Slidetheexpansionmoduleofftowardstheright.
3.Insertascrewdriverintotheeyeletatthebottomoftheslideinterlockandleverit
downward.
4.Swingtheexpansionmoduleofftheprofilerail.
Repeatsteps1to4forallotherexpansionmodules.
3.2Wall-mounting
Forwall-mounting,firstslidethemountingslidesontherearsideofthedevicestowardstheoutside.You
cannowwall-mountxLogicbymeansoftwomountingslidesandtwo Ø M4screws(tighteningtorque0.8
to1.2Nm).
27
Drillingtemplateforwall-mounting
Beforeyoucanwall-mountxLogic,youneedtodrillholesusingthetemplateshownbelow.
ELC-12series:
Alldimensionsinmm
Boreholefor Ø M4screw,tighteningtorque0.8to1.2Nm
1.ELC-12CPU
2.ELC12-Eseriesextensions
ELC-18series:
28
Alldimensionsinmm
Boreholefor Ø M4screw,tighteningtorque0.8to1.2Nm
1.xLogicCPU
2.xLogicextensions
ELC-6series:
ELC-22/26series
29
3.3MountingELC-HMI-FP
ELC-HMI-FP ,Faceplate(ELC-HMI’ sinstallationunit),makingitpossibleforELC-HMItobeexternally
installedinthefrontdoorofcabinetforeasyobservationandoperationwhileELC-12CPUisrequiredto
beinstalledinside.
TopreparethemountingsurfacefortheoptionalELC-HMI-FPandmountit,followthesesteps:
1.Cuta91mmx91mm(tolerance:+0.5mm)holeinthemountingsurface.
2.PuttheELC-HMIintoELC-HMI-FPmodule.
30
3.Fitthe ELC-HMI-FP (astheabovefigure,notincludethelockpart)intothecutoutyoumadeinthe
mountingsurface.
4.Attachthemountingbrackets(included)tothe ELC-HMI-FP.
1.Mountingbrackets
2.Mountinglock
3.Cabinetdoororcontrolpanel(Thickness:1.5to8.5mm)
5.Youcanthenusethe ELC-COVER-CABLE toconnectthe ELC-HMI-FP totheELC-12Basicmoduleup
toadistanceof1.5meters.ThisdistancecanbeextendedtouptotenmetersbyusingastandardSub-D
cabletogetherwiththe ELC-COVER-CABLE .
31
3.4wiringxLogic
WirethexLogicusingascrewdriverwitha3-mmblade.
Youdonotneedwireferrulesfortheterminals.Youcanuseconductorswith
cross-sectionsofuptothefollowingthicknesses:
1x2.5mm
l
l 2x1.5mm 2foreachsecondterminalchamber
l Tighteningtorque:0.4...0.5N/mor3...4lbs/in
Note
Alwayscovertheterminalsafteryouhavecompletedtheinstallation.Toprotect
xLogicadequatelyfromimpermissiblecontacttoliveparts,localstandardsmust
becompliedwith.
2
3.4.1Connectingthepowersupply
TheELC-6AC,ELC-12AC,ELC-18AC,ELC-22ACandELC-26ACversionsofxLogic
aresuitableforoperationwithratedvoltagesof110VACand240VAC.TheELC-6DC,
ELC-12DC,ELC-18DC,ELC-22DCandELC-26DCversionscanbeoperatedwitha
12or24VDCpowersupply.
Note
Apowerfailuremaycauseanadditionaledgetriggeringsignal.
DataofthelastuninterruptedcyclearestoredinxLogic
ToconnectxLogictothepowersupply:
32
3.4.2ConnectingxLogicinputs
1.Requirements
theinputsyouconnectsensorelementssuchas:momentaryswitches,switches,lightbarriers,
daylightcontrolswitchesetc.
ACType
Signal status 0
Signal status 1
Analogueinput NO AI1-AI4(0-10VDC)
<40VAC
<0.24mA
>85VAC
Typical
DCType
<3VDC
>8VDC
Typical3mA
33
Note:
1.ForELC-18DC-DA,ELC-22DC-DA,ELC-26DC-DASeriesand
ELC-12DC-DASeriesversions.Thatcanreceiveanaloginput.Theycanbe
settoanaloginputordigitalinputaseithermaybeusedintheprogram.
Theywillberecognizedasanaloginputswhentheinputterminalis
connectedwithananalogfunctionblock,andtheywillberecognizedas
switchinginputswhentheinputterminalisnotconnectedwithananalog
functionblock.
2.TheanaloginputsrequireDC0V~+10Vvoltagesignals.Theseare
dividedequallyin0.02Vincrements.Inprogramming,alltheblock
parametersrelatedtotheanaloginputsarebasedontheminimum
incrementof0.02V.
3.Theycanberecognizedasswitchinginputwhentheinputvoltageismore
than10.0Vandcannotberecognizedasananaloginput.
4.Fortheswitchinginputoff,whentheswitchstatuschangesfrom0to1,
thetimeofStatus1mustbegreaterthan50ms,andwhentheswitchstatus
changesfrom1to0,thetimeofStatus0alsomustbegreaterthan50ms.
At
2.
ConnectingxLogicisshownasinthefollowingfigures:
*DCtype inputs
* ACtypeinputs
34
*AnalogInputs(DC0…10V)
*AnaloginputscurrentInputs(0… 20mA)
Theabovefigureshowshowtomakeafour-wirecurrentmeasurement.
Connecttwo-wiresensortoELC-E-AI(I).
Two-wiresensorwiringisasfollows:
1.Connecttheoutputofthesensortothe “ I” terminal(0… 20mAcurrentmeasurement)ofELC-E-AI(I)
module.
2.Connecttheattachedconnectorofthesensortothe+24V(L+)ofpowersupply.
3.ConnectthecurrentoutputterminalMtothecorrespondingMterminals(M1,M2,M3)ofELC-E-AI(I).
ELC-E-PT100
Itcanbeconnectedwithonetwo-wireorthree-wireresistance-typethermocouple.
Whentwo-wiretechnologyapplied,theterminals “ M1+andIC1” (thisrulealsoshallbeappliedto” M2+
andIC2”, “ M3+andIC3” )wouldbeshortconnected.Suchconnectioncannotcompensate
error/tolerancecausedbytheresistanceinmeasurementloop.Themeasurementerrorof1Ω impedance
35
ofpowercordisproportionalto+2.5 ° C
Thethree-wiretechnologycaninhibittheinfluenceofmeasurementresultscausedbycablelength
(ohmicresistance).
3.4.3ConnectingxLogicOutputs
1.Requirementfortherelayoutput
Variousloadssuchaslamp,fluorescenttube,motor,contact,etc.,canbeconnectedtotheoutputsof
xLogic.ThemaximumONoutputcurrentthatcanbesuppliedbyxLogicis10Afortheresistanceloadand
2Afortheinductiveload.Theconnectionisinaccordancewiththefollowingfigure:
36
2.Requirementfortheelectronictransistoroutput:
TheloadconnectedtoxLogicmusthavethefollowingcharacteristics:
* Themaximumswitchcurrentcannotexceed0.3A.
* WhentheswitchisON(Q=1),themaximumcurrentis0.3A.
Notes(PNP):
37
*Theloadconnectingvoltagemustbe ≤ 60VDCanditmustbeDC.
*The “ +” terminaloftheoutputwiringmustbeconnectedwiththeDCpositive
voltage,anditmustbeconnectedwiththe “ L+” terminalofthexLogicpower ,a
loadmustbeconnectedwiththe “ -” terminaloftheDCnegativevoltage.
Notes(NPN):
*Theloadconnectingvoltagemustbe ≤ 80VDCanditmustbeDC.
*The “ -” terminaloftheoutputwiringmustbeconnectedwiththeDC
negativevoltage,anditmustbeconnectedwiththe “ M” terminalofthe
xLogicpower , aloadmustbeconnectedwiththe “ +” terminaloftheDC
positivevoltage.
ELC-E-AQ-V
38
ELC12-E-AQ-I/ELC-E-AQ-I
ELC-RS485
Actually,ELC-RS485isjustaconvertorwithphotoisolationbringingout3wiringterminals(short
circuitedinnerofsuch3terminals,soonlyonechannelRS485busavailable)fromRS485port(2x8pin)
ofCPUforyoureasyconnectionwithotherdevices.
39
If “ RT1” ,RT2” terminalareshortconnected,one120RresistorwillbeconnectedbetweenA/+andB/-
3.4.4Communicationportinstructions:
ELC-18,ELC-22andELC-26CPUs
40
1.Programmingport/RS232port(ELC-RS232,ELC-USB,ELC-Copiershouldbeinsertedinthisport)
WhentheprogrammingportshouldbeusedasthestandardRS232port(D-shape9pinheader),the
ELC-RS232cableneeded.Blowisshowyouthepindefinitionoftheheader:
PIN function
2 RXD
3 TXD
5 GND
others NULL
2.Expansionport/RS485(pindefinition)
3------RS485A
5------RS485B
4------GND
6------GND
7------CANL
9------CANH
15------+5V
16------+5V
CommunicationbetweenCPUandexpansionmodulewilluse4.7,9,15pin.
ELC-RS485moduleneedwhenELC-18CPUcommunicatewiththethirdpartydevicesviaRS485bus
ELC-12CPUs
1.Programmingport/RS232port(ELC-RS232,ELC-USB,ELC-Copiershouldbeinsertedinthisport)
41
NamedCOM1.
WhentheprogrammingportshouldbeusedasthestandardRS232port(D-shape9pinheader),the
ELC-RS232cableneeded.
2.Expansionport/RS485(pindefinition(2X3pinfemalefigure)
1------RS485A1
6------RS485B1
2------RS485A2
3------RS485B2
4------GND
5------Battery
CommunicationbetweenCPUandexpansionmodulewilluse1,6pin.ThisnamedCOM2.
ELC12-E-RS485moduleneedwhenELC-12CPUcommunicatewiththethirdpartydevicesviaRS485bus
andthepin2,3shouldbeusedbyELC12-E-RS485module.ThisnamedCOM3.
Note:1.ThebaudratesofCOM,COM2,COM3canbemodifiedviathepanelkey.
2.TheCOM2portalsocanworkasthecommonRS485port,whenthereisnoexpansionmodule
intheapplication.ThestandardRS485modulecannotbringouttheterminalsofCOM2built-inELC-12
seriesCPU,soonecustomizeRS485moduleshouldbeusedforthiscase.
Chapter4 ParametersmodificationHMIoperation
42
4.1OverviewofxLogicmenu
Programmingmode
Parameterassignmentmode
Parameterassignmentmenu:
4.2LCDpanelinstruction
1 .Displayarea: 4x16characterscanbedisplayed(4x10charactersforELC-12andELC-18series
CPU)
2 .4XFunctionkey: operatetheprogrambypressingdownthesekey(OnlyforELC-22andELC-26
seriesCPU,invalidforELC-12andELC-18seriesCPU)
3 .6xPanelkey: youcanmodifytheparameters,programming,viewalarmingmessage.
Whatthisoperatepanelcandoforyou?
1.DisplaytheRUN/STOPstatusoftheCPU
2.DisplayormodifytheClock.
3.DisplaytheIOstatusofCPU&extensions
43
4.Displayallkindsregistersvalue(AI/AO,Parametersofblocksetc)
5.Displaymultiplealarmingmessages
6.Modifytheparametersofblocks
7.Manualprogramming
8.Backlightcanbecontrolledviaprogramming(LightonAlarm)
9.Systemcovermessagecanbecustomized
10.Upto64differentalarmingmessagesisallowed.
11.TheCPUaddresscanbemodified
12.Setaddressofextension(ForELC-18,ELC-22,ELC-26series)orswitchon/offtheextensionport(For
ELC-12series)
13 .Setpasswordprotection
…… ..
Menushows:
44
Manualprogrammingmenu:
Afterbeingpoweredon,xLogicshallself-checkprogramstoredintheCPU.
Iftheprogramisaccurate,thentheCPUwillberunning,meanwhilethesystemcoverwillshowas
45
follows:
InxLogicsoft,thisinterfaceisdefaultedasitsinitializationscreen.
Ifthereareseveralparameterpages,userscanpress or keytogotothepageyouwouldlike.
Thelastpageisthecursormode:
CursorkeyscanbecontrolledinthispagebypressarrowkeysandESCkeyatthesametime.
IfxLogichasseveralalarminterfacesinthesameperiodanditonlydisplaysthemessagewithhighest
priorityinthefunctionblock,alsoyoumaygothroughallalarmmessagesbypressing or key.
Note:
Themessagetextblockwouldbetreatedasparameterpageonlywhenithasnoinput,otherwise,itmay
beregardedasalarmpage.Wheninputhashighpulse,LCDshalldisplayalarmmessage.
4.3Selectfunctionpage
PressESCkeytochangefromrunningmodetofunctionpage.
46
AfterpressingESCkey,xLogicwouldbeswitchedtofunctionpageandmeanwhileopenfunctionmenuas
figurebelowshows.
Briefintroductionon5optionsoffunctionpage:
Run/stop
l
SelectthismenutoswitchoverxLogicstatusbetweenRUNandStop.Referto
chapter4.3.1fordetails.
SetParam
l
Tosetfunctionblockparameter.Refertochapter4.3.2fordetails.
Set…
l
Usedtoset/modifypassword,setaddressofCPU&extension,LCDsettingsand
communicationparameterssettingsrefertochapter4.3.3and4.3.4fordetails
please.
47
1. ” Press or keytomovethecursorto “Set….
2. Thenpress OK key,xLogicwilldisplayasfollows:
Clock
l
Tosetandmodifydateandtime.Refertochapter4.3.5fordetails.
MenuLanguage
l
TochangethelanguageoftheMenu.Refertochapter4.3.6fordetail
4.3.1HowtoswitchRun/Stop
YoushouldfirstselectFUNCTIONPAGE.(Read4.3)
1.Movethecursorto “ Run/stop” :Press or key.
2.Movethecursorto"Yes":PressOKkey.
AfterpressingESCkey,you’ llfindoutyourcircuitprogramhaschangedto “ stop” statusasfigurebelow
shows:
48
4.3.2Setparameter
Ifyouwanttoselectaparameter,youneeddoasthefollowingprocedures:
1. UndertheFUNCTIONPAGE,select
“ Setparameter” :Press or key
2.Confirmbypressing OK key.
ThenxLogicdisplaysthefirstparameter,soyoucanmodifyasyoulike.Ifthereisnoparameterto
set/modify,youcanpressESCkeytoreturn.
3.Selectparameteryouintendtomodify.
4.Selectcertainspecificvalueofthatparameterwhichyouwanttoedit,thenpressOKkey.
Howtomodifyparameter?
A.Firstselectcertainparameterwhichyouneedtoeditbyfollowingthebelowprocedures:
1.UndertheFUNCTIONPAGE,select
“ Setparameter” :Press or key
49
2.Confirmbypressing OK key.
B.thenyoucanperformthebelowactionstomodifyparameter:
1. Movethecursortotheparametertobemodified:press or key.
2. Modifyvalue:press or key.
3. Confirmthevalueaftermodification:pressOKkey.
Note:
WhenxLogicisrunning,notonlytimevaluebutalsotimeunit(S,M,H)canbe
altered,butBesidesaltertimeparameteratRUNtime,youcanaltertime
base(s=second,m=minute,h=hour).
CurrentvalueoftimeT
ViewtimeTinparametermode:
Youareallowedtomodifyconfigurationtime.Switchon/offtimeforatimesegment.
Inparametermode,timesegmentfigureofatimer:
50
Youcanalterthetimeanddateofswitchon/off.
Currentvalueofcounter
Inparametermode,theparameterviewofacounter:
Currentvalueofhourcounter
Inparametermode,theviewofhourcounters:
51
Youcaneditconfiguredtimeinterval(MI).
Currentvalueofthresholdtrigger
Inparametermode,theviewofthresholdtrigger:
Youcanalterthethresholdvalueofswitchingon/off.
4.3.3Setpassword
xLogicsupplypasswordprotectionfunctionforyourprogram.Youcanchooseaccordingtoyourneed.
Seethefollowinginstruction;you’ llunderstandthemethodofsettingpassword.
Setonepassword
Apasswordcontainslessthanorequalto4charactersandeachcharacterisArabiannumberfrom0to
9.Itiseasytospecify,editorremovethepassworddirectlyonthexLogicinthe “ Password” menuofthe
functionpage:
YoushouldfirstselecttheFUNCTIONPAGE.(Read5.2)
1.Movethecursorto “ Password” :Press or key.
2.Confirm “ Password” :PressOKkey.
Example:letusset “ 1234” aspasswordforaprogram.NowtheLCDdisplaysthefollowinginterface:
Select “ New” option,andtheneditit.
3.Select “ 1” :press keyonce.
4.Movethecursortothenextcharacter:press key.
5.Select “ 2” :press keytwice.
6.Movethecursortothenextcharacter:press key.
7.Select” 3” :press keythreetimes.
8.Movethecursortothenextcharacter:press key.
9.Select “ 4” :press keyfourtimes.
Nowdisplay:
52
10.Confirmpassword:pressOKkey.
Now,theprogramisprotectedbythepasswordof “ 1234”,andthenyoucanreturntothemainmenu.
Note:
Youcancancelapasswordnewly-setviaESCkey.Inthisinstance,xLogicwillreturntomainmenuand
notreservethatpassword.YoualsocanusexLogicsofttosetyourpassword.Youarenotallowedtoedit
theprogramprotectedbypasswordortransferittoxLogicsoftunlessyouinputatruepassword
previously.
Modifypassword:
Inordertomodifypassword,youarerequiredtopresentcurrentpassword.
InthemenuoftheFUNCTIONPAGE.:
1.Movethecursorto “ Password” :Press or key.
2.Confirm “ Password” :PressOKkey.
Select “ Old” andinputprimarypassword(inourinstanceis “ 1234” ),theprocessisthesameasthestep
3tostep10mentionedabove.
LCDdisplays:
Thus,youcouldselect “ New” toinputnewpasswordsuchas “ 8888” :
3.Select “ 8” :press key.
4.Movethecursortonextcharacter:press key.
Repeatthestep3and4torealizethethirdandfourthcharacter.
53
LCDdisplays:
4.Confirmnewpassword:pressOKkey.
Soyouhavesetthenewpasswordandthenreturntomainmenu.
Howtoremovethepassword:
Incaseyouneedtoremovepassword.e.g.allowtheotheruserstoedityourprogram,thenyoumust
knowthecurrentpassword.Theprocessofremovingpasswordisthesameasthatofmodifying
password.
InthemenuoftheFUNCTIONPAGE . :
1.Movethecursorto “ Password” :Press or key.
2.Confirm “ Password” :PressOKkey.
Select “ Old” andinputprimarypassword(inourinstanceis “ 1234” ),theprocessisthesameasthestep
3tostep10mentionedabove.
LCDdisplaysasfollows:
Inputnothingunderthe “ New”,andletitkeepblanktoclearpassword.
4.Confirm “ blank” password:pressOKkey.Nowyouhaveclearedpasswordandreturntomainmenu.If
54
youwanttosetpasswordnexttime,theLCDwilldisplay:
4.3.4HowtosetaddressofCPUandexpansionmodule
A.SetCPUaddress
IftherearemorethanoneCPUinacertaincommunicationnetwork,wellthentheaddressofCPUmust
besetdifferentlyeachother.YoucanchangetheaddressofCPUviaxLogicsoft,orviathepanelkeyifthe
CPUwithLCDpanel.Theaddressrangeisfrom1to247forELCseriesCPU
Confirmwith"OK"
Changetheaddresswitharrowkeys,andconfirmwith"Ok".
B.Howtosetaddressofextensions
Part1:SetaddressofELC-18/22/26CPU’ Sextensions.(ELC-E-16DC-D-Retc..)
Notes:1.OnlyoneexpansionmoduleshallconnecttoCPUwhenyousetexpansionmoduleaddressvia
panelkeyofCPU.
2.Upto9expansionmodules(9digital/analogextensions)canbelinkedtogether.
3.IfmorethanoneexpansionmoduleconnecttoCPUatthesametime,theaddressofexpansionmodule
55
mustbedifferenteachother,otherwisethesystem(CPU+expansions)wouldrunabnormal.
YoushallfirstselecttheFUNCTIONPAGE.(Read5.2)
1.Press or keytomovethecursorto “ Setaddress” :
2.PressOKkeytoconfirm “ Setadr” :
3.Press or keytomovethecursorto “ SetEadr:.
4.PressOKkeytoconfirm “ SetEadr” :
3.Movethecursortotheplaceofparametertobemodifiedbypressing or key.
4.Modifyvaluebypressing or key.
5.ConfirmthevalueaftermodificationbypressingOKkey.
Part2:SetaddressofELC-12CPU ’ Sextensions.(ELC12-8DC-DA-Retc..)
1.Plasticslice
Step1:Usingascrewdriver,taketheplasticslicedownandwe’ llfindadialswith.
2:Dialtheswitchasthebelowinstructionstosettheaddresswhatyouneed.
Upto8extensions(includesIO,AQ,AI,PT100modules)canbeconnectwiththeCPU.
ThedefaultaddressofELC12extensionsis1andthedialswitchasbelow:
Address1:
56
Address2:
Address3:
Address4:
Address5:
meanstheswithposition
Address6:
Address7:
Address8:
TheexpansionportofCPUmustbeopenwhentheusingextensions.Followingistell
youhowtoopentheexpansionport:
YoushallfirstselecttheFUNCTIONPAGE.(Read5.2)
57
1.Press or keytomovethecursorto “ Setaddress” :
2.PressOKkeytoconfirm “ Setadr” :
3.Press or keytomovethecursorto “ SetEadr:.
4.PressOKkeytoconfirm “ SetEadr” :
5.Press or keytoselect “ on”
Notes:
1.Theaddresssetupoftheextensionmodulemustbebeforepoweringon.Modificationwhenpowering
onwillbeineffective.
2.Freelyconnection,neednotcarethepowertypebetweenCPUandextensions,thatmeanstheACtype
modulealsocanbeconnectedwiththeDCtypemodule.
3.PowerontheCPUandtheextensionsonthesametime,intheotherwordsthepowerontimeof
extensionmoduledonotlaterthantheCPU’ s,otherwise,thecommunicationbetweenCPUandextension
maynotbeestablished.
4.IfthecommunicationisestablishedbetweenCPUandextensions,theindicatoronthetopofthe
extensions’ housewillturntoRUN(greencolor).
3.IfmorethanoneexpansionmoduleconnecttoCPUatthesametime,theaddressofexpansionmodule
mustbedifferenteachother,otherwisethesystem(CPU+expansions)wouldrunabnormal.
4.3.5SetLCD(backlightandContrast)
ThebacklightofCPUcanbeset “ ON” timeas10secor “ ON” allthetime.Thesettingwayasfollows:
1.Select “ Set...” menuandclickOK.
2.Select “ SetLCD” menuandclick “ OK”
58
3.Select"Backlight"menuandclick"OK"
4.Defaultis10seconds,andanotheroptionis"AlwaysOn".Confirmwith"OK"
Modifythecontrast
Confirmwith"OK"
Modifythecontrastwith or key,andconfirmwith"Ok".
4.3.6Setcommunicationparameters
Select"SetCom"menufromthemenu"Set..".
59
Confirmwith"Ok"
COM0: RS232portorprogrammingport.
COM1: RS485port(FortheELC-RS485andELC-Ethernetmodulewhichshallbe
connectedtoELC-18,ELC-22,ELC-26CPU)
(CustomizedRS485orEthernetmoduleforELC-12CPUwillalsousesuchport)
COM2: RS485portforELC12-E-RS485orELC12-Ethernetmodulewhichshallbe
connectedtoELC-12CPU
(CustomizedRS485orEthernetmoduleforELC-18,ELC-22,ELC-26CPUwillalsouse
suchport)
SetBaudrates
Confirmwith"OK"
60
ChangeitwithpressingUpandDownkey
Andconfirmwith"OK"
SetModbusprotocol
Confirmwith"OK"
ChangewithUpandDownkey.Andconfirmwith"OK"
Thereare4optionsavailable:RTU,ASCII,TCPRTU,TCPASCII.
Note: IfyouwanttousetheModbusTCPprotocol,generally,youcanselectthe"TCP
RTU".
4.3.7ModificationofSystemTime
YoushouldfirstselecttheFUNCTIONPAGE.(read4.2)
1.Movethecursorto “ Clock” :Press or key.
2.Confirm “ Clock” :PressOKkey.
61
PressOKkeytosetandmodifydate.
Press or keytorealizethedatewhichyouwanttoset.Afteryoufinished
yoursetting,pressOKkeytoreturnto:
Ifyouwanttosetthetimefurther,pleasemovethecursorto” SetTime” menu,thenpressOKkey:
Hereyoucansetweekday(FromMondaytoSunday)andtheclock.Themethodissimilartoabove.After
completionofyoursetup,pressOKkey:
62
PressESCkeyandreturntoFUNCTIONPAGE.
Chapter5Programmingviapanelkey
Note:
OnlythestandardELC-12series,upgradedELC-18CPU,ELC-22andELC-26CPUsupportsthe
programmingviaHMIpanelkey,standardELC-18&economicELC-18withoutsuchfeature.
GettingstartedwithxLogic
ProgrammingreferstocreatingacircuitprogramfromthexLogicBasicmodule.
InthischapteryouwilllearnhowtousexLogictocreatethexLogiccircuitprogramsforyourapplication.
xLogicSoftisthexLogicprogrammingsoftwarethatyoucanuseonyourPCto
quicklyandeasilycreate,test,modify,saveandprintthecircuitprograms.Thetopicsinthismanual,
however,relateonlytothecreationofcircuitprogramsontheactualxLogicBasicmodule.The
programmingsoftwarexLogicSoftcontainsextensiveonlinehelp.
AsmallexampleinthefirstpartofthischapterintroducestheoperatingprinciplesofxLogic:
● Youwilllearnthemeaningoftwobasicterms,namelytheconnectorandtheblock.
● Asthenextstep,youwillcreateacircuitprogrambasedonasimpleconventionalcircuit.
● Lastly,youwillenterthisprogramdirectlyinxLogic.
Itwilltakeyouonlyafewpagesofthismanualtostoreyourfirstexecutablecircuitprogram
inthexLogicunit.Withsuitablehardware(switchesetc.),youwillthenbeabletocarryout
initialtests.
5.1Connectors
xLogicisequippedwithinputsandoutputs
Exampleofaconfigurationwithseveralmodules:
63
EachinputisidentifiedbytheletterIplusanumber.WhenyoulookatxLogicfromthefront,youcansee
theinputterminalsatthetop.Onlyanalogmodules(PT100and0…20mAinput)havetheinputsatthe
bottom.
EachoutputisidentifiedbytheletterQplusanumber(ELC-E-AQ:AQplusnumber).Inthefigure,you
canseetheoutputterminalsatthebottom.
Note
xLogiccanrecognize,readandswitchtheI/Oofallexpansionmodulesregardlessoftheirtype.TheI/Os
arenotpresentedintheinstallationorderofthemodules,itrestswiththeaddressoftheexpansion
modules.Forexamplethefirstinputoftheexpansionmodulewiththe
address2,thesymbolwillbeI21.Thesecondoutputoftheexpansionmodulewiththeaddress4,the
symbolwillbeQ42.Refertochapter5.2.4, forhowtosettheexpansionmoduleaddress.
ThefollowingI/Osandflagblocksareavailableforcreatingyourcircuitprogram:I1toI8(CPU),I11to
I14(EXT1),I21toI24(EXT2),I31toI34(EXT3)…… .I81toI84(EXT8).
AI1toAI4(CPU),AI11toAI14(EXT1),AI21toAI24(EXT2),AI31toAI34(EXT3)…… .AI81toAI84(EXT8).
Q1toQ4(CPU),Q11toQ14(EXT1),Q21toQ24(EXT2),Q31toQ34(EXT3)…… .Q81toQ84(EXT8).AQ1to
AQ2(CPU),AQ11toAQ12(EXT1),AQ21toAQ22(EXT2),AQ31toAQ32(EXT3)…… .AQ81toAQ82(EXT8).
F1toF64,andAF1toAF64.Alsoavailablearethe
shiftregisterbitsS1toS8,4cursorkeys:C ,C ,C andC .Seethe"Constantsand
connectors"topicformoredetails.
ThefollowingappliestoinputsAI1,AI2,AI3andAI4ofELC-12DC-DA-R(TN/TP)and
versions:IfyouuseI1,I2,I3orI4inthecircuitprogram,thisinputsignalisdigital.IfyouuseAI1,AI2,
AI3,AI4theinputsignalisanalog.Theexpansionmodulesalsoadapttothisrules.
64
TheillustrationabovewithnumberedAIinputsshowstheconceptualusageoftheinputs,nottheactual
physicalmarkingsonthemodule.
xLogic'sconnectors
ThetermconnectorreferstoallconnectionsandstatesinxLogic.
ThedigitalI/Ostatuscanbe'0'or'1'.Status'0'meansthattheinputdoesnotcarryaspecificvoltage.
Status'1'meansthattheinputdoescarryaspecificvoltage.
The'hi','lo'connectorshavebeenintroducedtomakeiteasierforyoutocreatethe
circuitprogram:
'hi'(high)isassignedthestatus'1',
'lo'(low)isassignedthestatus'0'.
Youdonothavetousealloftheconnectorsofablock.Thecircuitprogramautomaticallyassignsthe
unusedconnectorsastatusthatensuresproperfunctioningoftherelevantblock.Forinformationonthe
meaningoftheterm"block",refertothetopicon"Blocksandblocknumbers".
5.2Blocksandblocknumbers
ThischaptershowsyouhowtousexLogicelementstocreatecomplexcircuitsandhowblocksandI/O
areinterconnected.
Inthetopic"FromcircuitdiagramtoxLogicProgram"youwilllearnhowtotransformaconventional
circuitintoaxLogiccircuitprogram.
Blocks
AblockinxLogicrepresentsafunctionthatisusedtoconvertinputinformationintooutputinformation.
Previouslyyouhadtowiretheindividualelementsinacontrolcabinetorterminalbox.
Whenyoucreatethecircuitprogram,youinterconnecttheblocks.Todoso,simplyselecttheconnection
yourequirefromthe Co menu.Themenuname Co isanabbreviationoftheterm"Connector".
Logicoperations
Themostelementaryblocksarethelogicoperations:
● AND
● OR
●…
65
Thesespecialfunctionsofferyousignificantlygreaterperformance:
● Pulserelay
● Up/downcounter
● On-delay
● Softkey
● ....
Thechapterentitled"xLogicfunctions"givesafulllistofthexLogicfunctions.
BlockrepresentationonthexLogicDisplay
ThefigurebelowshowsatypicalviewofthexLogicDisplay.Asyoucansee,itcanshowonlyoneblock
atatime.Wehavethereforeintroducedblocknumberstohelpyoucheckthecircuitstructure.
Assigningablocknumber
xLogicassignseachnewblockinacircuitprogramablocknumber.
xLogicusestheseblocknumberstoindicatetheblockinterconnections.Thismeansthatthesenumbers
aremainlyanaidtoyourorientationinthecircuitprogram.
66
ThefigureaboveshowsyouthreeviewsofthexLogicDisplay,whichrepresentthecircuitprogram.As
youcansee,xLogicinterconnectstheblocksusingtheirnumbers.
Advantagesofblocknumbers
Youcanconnectalmostanyblocktoaninputofthecurrentblockbymeansofitsblocknumber.Inthis
way,youcanreusetheinterimresultsoflogicalorotheroperations,reduceprogrammingeffort,save
memoryspaceandcleanupyourcircuitlayout.Todoso,however,youneedtoknowhowxLogichas
namedtheblocks.
Note
Weadviseyoutocreateanorganizationalprogramchart.Youwillfindthisavaluableaidwhenyou
createthecircuitprogrambecauseyoucanenterinthischartalltheblocknumbersthatxLogicassigns.
ByusingthexLogicsofttoprogramxLogic,youcandirectlycreateafunctionchartofyourcircuit
program.xLogicsoftalsoallowsyoutoassigneightcharacternamestoupto512blocks,andtoview
theseonthexLogicDisplayinparameterassignmentmode.
5.3FromcircuitdiagramtoxLogicprogram
Viewofacircuitdiagram
Youknow,ofcourse,howacircuitlogicisrepresentedinacircuitdiagram.Nevertheless,hereisan
example:
CreatingthiscircuitwithxLogic
InxLogicyoucreateacircuitlogicbyinterconnectingblocksandconnectors:
TocreateacircuitlogicinxLogic,startatthecircuitoutput.
Theoutputistheloadorrelaythatistobeswitched.
Convertthecircuitlogicintoblocksbyworkingthroughthecircuit,startingattheoutputandendingat
67
theinput:
Step1:ThemakecontactS3isinterconnectedinseriestooutputQ1andtoafurthercircuitelement.A
seriesconnectioncorrespondswiththeANDblock:
Step2:S1andS2areconnectedinparallel.AparallelcircuitcorrespondswiththeORblock:
Unusedinputs
KeepNULLconnectionfortheunusedconnectors.
InourexampleweshalluseonlytwoinputsoftheORblockandtwoinputsoftheANDblock;therelevant
unusedfirstandfourthinputshavenoconnection.
Wiring
ConnecttheswitchesS1toS3tothescrewterminalsofyourxLogic:
● S1toconnectorI1ofxLogic
● S2toconnectorI2ofxLogic
● S3toconnectorI3ofxLogic
TheoutputoftheANDblockcontrolstherelayatoutputQ1.TheloadE1isconnectedtooutputQ1.
Wiringexample
Thefollowingfigureshowsyouthewiring,basedona220VACversionofxLogic.
68
5.4ThefourgoldenrulesforoperatingxLogic
Rule1:Changingtheoperatingmode
● Youcreatethecircuitprograminprogrammingmode.Afterpowerison,andwhenthedisplayshows
"NoProgram",presstheESCkeytoselectprogramming
mode.
● Timerandparametervaluesofanexistingcircuitprogramcanbeeditedbothin
parameterassignmentmodeandinprogrammingmode.DuringparameterassignmentxLogicisinRUN
mode;thatis,itcontinuesexecutingthecircuitprogram(seethetopic"ConfiguringxLogic").Toworkin
programmingmode,youneedtoterminatethecircuitprogrambycallingthe"Stop"command.
● Selectthe'Start'commandonthemainmenutosetRUNmode.
● WhenthesystemisinRUN,youcanreturntoparameterassignmentmodebypressingtheESCkey.
● Whenparameterassignmentmodeisopenandyouwanttoreturntoprogrammingmode,selectthe
"Stop"commandfromtheparameterassignmentmenu,andconfirm"StopPrg"promptwith"Yes".Todo
so,movethecursorto"Yes"andconfirmwithOK.
Rule2:Outputsandinputs
● Alwayscreateyourcircuitprogrambyworkingfromtheoutputtotheinput.
● Youcanconnectanoutputtoseveralinputs,butnotthesameinputtoseveraloutputs.
● Withinthesameprogrampathyoumaynotconnectanoutputtoanupstreaminput.Forsuchinternal
recursionsyoushouldinterconnectflagsoroutputs.
Rule3:Cursorandcursormovement
Thefollowingapplieswhenyoueditacircuitprogram:
● Youcanmovethecursorwhenitappearsintheformofanunderscore:
69
– Press,,ortomovethecursorinthecircuitprogram.
– PressOKtochangeto"Selectconnector/block".
– PressESCtoexitprogrammingmode.
● Youselectaconnector/block-whenthecursorappearsasasolidsquare:
– Pressortoselectaconnectororablock.
– ConfirmwithOK.
– PressESCtoreturntothepreviousstep.
Rule4:Planning
● Beforeyoustarttocreateacircuitprogram,youshouldeitherfirstcreateadesignonpaperorprogram
xLogicdirectlyusingxLogicsoft.
● xLogiccanonlysavecompleteandfaultlesscircuitprograms.
5.5Writingandstartingthecircuitprogram
Afteryouhavedesignedacircuit,youwanttowriteittoyourxLogic.Thesmallexamplebelowshows
howtodothis.
5.5.1Selectingprogrammingmode
YouhaveconnectedxLogictothepowersupplyandswitchediton.Thedisplaynowshowsyouthe
message:
SwitchxLogictoprogrammingmodebypressingESC.ThiswilltakeyoutothemainmenuofxLogic:
Thefirstcharacterinthefirstlineisthe">"cursor.Press and tomovethe">"cursorupanddown.
Moveitto"Program.."andconfirmwithOK.xLogicopenstheprogrammingmenu.
70
xLogic’ sprogrammingmenu
Hereyoucanalsomovethe">"cursorbypressing and .Movethe">"cursorto"Edit.."andconfirm
withOK.
TheEditmenuofxLogic
Movethe">"cursorto"EditPrg"(foreditingthecircuitprogram)andconfirmwithOK.xLogicnowshows
youthefirstoutput:
ThefirstoutputofxLogic
Youarenowinprogrammingmode.Press and toselecttheotheroutputs.Nowstarttoedityour
circuitprogram.
Note
BecausewehavenotyetsavedapasswordforthecircuitprograminxLogic,youcandirectlyenter
editingmode.Whenyouselect"Edit"afteryouhavesavedapasswordprotectedcircuitprogram,youare
promptedtoenterapasswordandtoconfirmitwithOK.
Youcanonlyedittheprogramafteryouhaveenteredthecorrectpassword.
5.5.2Thefirstcircuitprogram
Letusnowtakealookatthefollowingparallelcircuitconsistingoftwoswitches.
Circuitdiagram
Thecorrespondingcircuitdiagram
71
TranslatedintoaxLogiccircuitprogramthismeans:RelayK1is(atoutputQ1)iscontrolledbymeansof
anORblock.
Circuitprogram
S1isconnectedtotheI1andS2totheI2inputconnectoroftheORblock.
ThecorrespondinglayoutofthecircuitprograminxLogic:
Wiring
Thecorrespondingwiring:
S1switchesinputI1,whileS2switchesinputI2.TheloadisconnectedtotherelayQ1.
72
5.5.3Circuitprograminput
Letusnowwritethecircuitprogram,startingattheoutputandworkingtowardstheinput.
xLogicinitiallyshowstheoutput:
YouwillseeanunderscorebelowtheQinQ001,whichisthecursor.Thecursorindicatesyour
currentpositioninthecircuitprogram.Youcanmovethecursorbypressingthe , , and keys.
Nowpressthe key.Thecursormovestotheleft.
Atthispointyouenteronlythefirst(OR)block.PressOKtoselecteditingmode.
Thecursornolongerappearsintheformofanunderscore;butinsteadasaflashingsolidsquare.xLogic
offersyouvariousoptionshere.
SelectGF(basicfunctions)bypressingthekeyuntilGFappears,andconfirmwithOK.
xLogicnowshowsthefirstblockfromthelistofbasicfunctions:
TheANDisthefirstblockofthebasicfunctionlist.
Thesolidsquarecursorpromptsyoutoselectablock.
73
Nowpress or untiltheORblockappearsonthedisplay:
PressOKtoconfirmyourentriesandexitthedialog.
Thedisplaynowshows: Yourcompletecircuitprogramlayout:
Youhavenowenteredthefirstblock.Eachnewblockisautomaticallyassignedablocknumber.Theonly
thinglefttodoisinterconnecttheblockinputs.Thisishowitisdone:
PressOK.
Thedisplaynowshows:
SelecttheColist:PressOK
Thedisplaynowshows:
ThefirstelementoftheColististhe"Input1"character,namely"I001".
PressOK.I1isnowconnectedtotheinputoftheORblock.ThecursorjumpstothenextinputoftheOR
74
block.
Thedisplaynowshows: YourcompletecircuitprograminxLogicuptonow:
NowyouconnectinputI2totheinputoftheORblock:
1.Switchtoeditingmode:PressOK
2.SelecttheColist:Pressor
3.ConfirmtheColistwith:PressOK
4.SelectI2:Pressor
5.ApplyI2:PressOK
I2isnowconnectedtotheinputoftheORblock
Thedisplaynowshows: YourcompletecircuitprograminxLogicuptonow:
WedonotneedthelasttwoinputsoftheORblockforthiscircuitprogram.
Weshallnowexitcircuitprogrammingmode.Toreturntotheprogrammingmenu:PressESC
Note
xLogichasnowsavedyourcircuitprogramtononvolatilememory.Thecircuitprogramremainsinthe
xLogicmemoryuntilyouexplicitlydeleteit.
Youcansavetheactualvaluesofspecialfunctionsinthecaseofapoweroutageassumingthatthese
functionssupportthe"Retentive"parameterandthatthenecessaryprogrammemoryisavailable.The
Retentiveparameterisdeactivatedwhenyouinsertafunction;touseit,youmustenablethisoption.
75
5.5.4Assigningacircuitprogramname
Youcanassignyourcircuitprogramanamethatconsistsofupto16uppercase/lowercaseletters,
numbersandspecialcharacters.
Intheprogrammingmenu:
1.Movethe">"cursorto 'Edit..':Press or
2.Accept'Edit':PressOK
3.Movethe">"cursorto'EditName':Press or .
4.Accept'EditName':PressOK
Press and tolistthealphabet,numbersandspecialcharacters,eitherinascendingor
descendingorder.Youcanselectanyletter,numberorcharacter.
Toenteraspacecharacter,simplymovethecursorwith tothenextposition.Thischaracteristhe
firstoneinthelist.
Examples:
Pressoncetoselectan"A"
fourtimestoselect"}",etc.
Thefollowingcharactersetisavailable:
Letusassumeyouwanttonameyourcircuitprogram"ABC":
1.Select"A":Press
2.Movetothenextletter:Press
3.Select"B":Press
4.Movetothenextletter:Press
5.Select"C":Press
6.Confirmthecompletename:PressOK
Yourcircuitprogramisnownamed"ABC",andyouarereturnedtotheprogrammingmenu.
Tochangethenameofyourcircuitprogram,proceedinthesameway.
76
5.5.5Assigningsystemcover
Defaultdisplay:
Themessageinfirstandthesecondlinecanbemodified/editintheprogrammingmode(alsocanbe
modifiedinxLogic),eachlinecontains10characters(eachlinecontains16charactersforELC-22/26
seriesCPU).
Intheprogrammingmenu:
1.Movethe">"cursorto 'Edit..':Press or
2.Accept'Edit':PressOK
3.Movethe">"cursorto'EditCHMI':Press or .
4.Accept'EditCHMI':PressOK
Press and tolistthealphabet,numbersandspecialcharacters,eitherinascendingor
descendingorder.Youcanselectanyletter,numberorcharacter.
Toenteraspacecharacter,simplymovethecursorwith tothenextposition.Thischaracteristhe
firstoneinthelist.
Letusassumeyouwanttoeditthesystemcover"ABC":
1.Select"A":Press
2.Movetothenextletter:Press
3.Select"B":Press
4.Movetothenextletter:Press
5.Select"C":Press
6.Confirm:PressOK
77
Press “ ESC”…
5.5.6Secondcircuitprogram
Uptothispoint,youhavesuccessfullycreatedyourfirstcircuitandassigneditanameand,ifdesired,a
password.Inthissectionwewillshowyouhowtomodifyexistingcircuitprogramsandhowtousethe
specialfunctions.
Usingthissecondcircuitprogram,wewillshowyouhowto:
● Addablocktoanexistingcircuitprogram.
● Selectablockforaspecialfunction.
● Assignparameters.
Modifyingcircuits
Weshallusethefirstcircuitprogramasabasisforthesecond,withsomeslight
modifications.
Firstofalltakealookatthecircuitdiagramforthesecondcircuitprogram:
ThisisthecircuitprogramlayoutinxLogic:
78
YoucanseetheORblockandtheoutputrelayQ1wehavealreadyusedinthefirstcircuitprogram.The
onlydifferenceisthenewoff-delayblock.
Editingthecircuitprogram
SwitchxLogictoprogrammingmode.
Asareminder:
1.SwitchxLogictoprogrammingmode
(inRUN:PressESCtoentertheparameterassignmentmode.Selectthe'Stop'command,confirmwith
OK,thenmovethe'>'cursorto'Yes',andonceagainconfirmwithOK).Foradditionaldetails,seethe
topic"ThefourgoldenrulesforoperatingxLogic ".
2.Onthemainmenu,select"Program"
3.OntheProgrammingmenu,select"Edit",confirmwithOK.Next,select"EditPrg"andconfirmwithOK.
Ifrequired,enteryourpasswordatthepromptandconfirmwithOK.Youcannowmodifythecurrent
circuitprogram.
Addingablocktoacircuitprogram
MovethecursortotheBinB1(B1isthenumberoftheORblock):
Wenowinsertthenewblockatthisposition.
ConfirmwithOK.
Press toselecttheSFlist:
PressOK.
Theblockofthefirstspecialfunctionisshown:
79
Selectyourblock(off-delay,seethenextfigure),andthenpressOK:
Press or toselectBNoption.
Press “ OK”.
TheB1blockpreviouslyconnectedtoQ1isautomaticallyconnectedtotheuppermostinputofthenew
block.Notethatyoucanonlyinterconnectdigitalinputswithdigitaloutputsoranaloginputswithanalog
outputs.The'old'blockwillotherwisebelost.
Theoff-delayblockhasthreeinputs.Atthetopisthetriggerinput(Trg)youusetostarttheoff-delay
time.Inourexample,theORblockB1triggerstheoff-delay.Youresetthetimeandtheoutputwitha
signalattheresetinput.Settheoff-delaytimeatparameterToftheinputPar.
80
Inourexamplewedonotusetheresetinputoftheoff-delayfunction.
Thisiswhatthedisplayshouldnowshow.
Assigningblockparameters
Nowyousettheoff-delaytimeT:
1.MovethecursortoPar,ifitnotalreadyatthisposition:Press or
2.Switchtoeditingmode:PressOK
xLogicshowstheparametersintheparameterassignmentwindow:
Tochangethetimevalue:
● Press and topositionthecursor.
● Press and tomodifythevalueattherelevantposition.
● ConfirmyourentrieswithOK.
Settingthetime
SetthetimeT=12:00minutes:
1.Movethecursortothefirstdigit:Press or
2.Selectthedigit'1':Press or
3.Shiftthecursortotheseconddigit:Press or
4.Selectdigit'2':Press or
5.Movethecursortotheunit:Press or
6.Selectthetimebase'm'(forminutes):Press or
81
Showing/hidingparameters-theparameterprotectionmode
Ifyouwanttoshow/hidetheparameterandallow/preventitsmodificationinparameter
assignmentmode:
1.Movethecursortotheprotectionmode:Press or
2.Selecttheprotectionmode:Press or
Thedisplayshouldnowshow:
3.Confirmyourentrieswith:OK
Enabling/disablingretentivity
Todecidewhetheryouwanttoretainyourcurrentdataafterapowerfailureornot:
1.Movethecursortotheretentivitysetting:Press or
2.Selecttheretentivitysetting:Press or
Thedisplaynowshows:
3.ConfirmyourentrieswithOK
Note
Forfurtherinformationontheprotectionmode,refertothetopic"Parameterprotection".
Forfurtherinformationonretentivity,refertothetopic"Retentivity".
Youcanmodifytheprotectionmodeandretentivitysettingonlyinprogrammingmode.
82
Thisisnotpossibleinparameterassignmentmode.
Inthismanual,theprotectionmode("+"or"-")andretentivity("R"or"/")settingsareonlyshowninthe
displayswherethesecanactuallybechanged.
Verificationofthecircuitprogram
ThisprogrambranchforQ1isnowcompleted.xLogicshowsyoutheoutputQ1.Youcanonceagainview
thecircuitprogramonthedisplay.Usethekeystobrowsethecircuitprogram;thatis,pressortomove
fromblocktoblock,andtomovebetweentheinputsatablock.
Closingtheprogrammingmode
Althoughyouwereshownhowtoexittheprogrammingmodewhenyoucreatedyourfirstcircuitprogram,
hereisareminder:
1.Returntotheprogrammingmenu:PressESC
2.Returntothemainmenu:PressESC
3.Movethe'>'cursorto'Start':Press or
4.Confirm'Start':PressOK
xLogicisbackinRUNmode:
5.5.7Deletingablock
LetusassumeyouwanttodeletetheconnectionofblockB2fromyourcircuitprogramandconnectB1
directlytoQ1.
Proceedasfollows:
1.SwitchxLogictoprogrammingmode
(asareminder,refertothetopic"ThefourgoldenrulesforoperatingxLogic").
2.Select'Edit':Press or
83
3.Confirm'Edit':PressOK
(Ifrequired,enteryourpasswordandconfirmwithOK.)
4.Select'EditPrg':Press or
5.Confirm'EditPrg':PressOK
6.MovethecursortoB2,theinputofQ1:Press
7.ConfirmwithOK.
8.NowreplaceblockB2withblockB1atoutputQ1.Theprocedure:
– SelecttheBNlist:Press or
– AccepttheBNlist:PressOK
– Select'B1':Press or
– Apply'B1':PressOK
Result:BlockB2isdeleted,becauseitisnolongerusedinthecircuit.BlockB1hasreplaced
5.6Memoryspaceandcircuitprogramsize
ThesizeofacircuitprograminxLogicislimitedbythememoryspace(memoryusedbytheblocks).
Upto512blockscanbeusedinxLogic.
Indicationofavailablememoryspace
xLogicshowsyoutheamountoffreememoryspace.
Proceedasfollows:
1.SwitchxLogictoprogrammingmode
(asareminder,refertothetopic"ThefourgoldenrulesforoperatingxLogic".
2.Select'Edit':Press or
3.Accept'Edit':PressOK
4.Select'Memory?':Press or
84
5.Accept'Memory?':PressOK
Thedisplaynowshows:
Chapter6Configuring&Programmingsoftware
UserswhoarefamiliarwiththelogicboxesofBooleanalgebracanusethexLogicsoft.InfactxLogicsoft
adaptsthefunctionblockprogrammingway.xLogicsoftisavailableasaprogrammingpackageforthe
PC.Thismodeprovidesmanyfeatures,forexample:
l Agraphicinterfaceforofflinecreationofyourcircuitprogrambymeansof
FunctionBlockDiagram(functionchart)
l SimulationofyourcircuitprogramonthePC
l Generatingandprintingofanoverviewchartforthecircuitprogram
l Savingabackupofthecircuitprogramontheharddriveorothermedia
l Easyconfigurationofblocks
Transferringthecircuitprogram
l
– fromthexLogictothePCand
– fromthePCtoxLogic
Onlinetest:DisplayofstatuschangesandprocessvariablesofxLogicinRUNmode:
– StatusofadigitalI/O,shiftregisterbitsandcursorkeys
ThevaluesofallanalogI/Os
–
– Theresultsofallblocks
– Thecurrentvalues(includingthetimes)ofselectedblocks
– Changetheoutput(theinputpinoftheoutputcannotbeconnected)status
viaxLogicsoft
l StartingandstoppingcircuitprogramexecutionviathePC(RUN,STOP).
ThexLogicalternative
Asyoucansee,xLogicsoftrepresentsanalternativetoconventionalengineering
methods:
85
1. Youstartbydevelopingthecircuitprogramonyourdesktop.
2. Yousimulatethecircuitprogramonyourcomputerandverifyitsfunctions,before
youactuallyimplementitinyoursystem.
Youcanaddcommentstothecircuitprogramandcreatehard-copies.
3.
4. YousaveacopyofyourcircuitprogramtothefilesystemonyourPC,tomakeit
directlyavailableforanymodifications.
5. IttakesonlyafewkeyactionstodownloadthecircuitprogramtoxLogic.
6. UnderSimulatemodeinxLogicsoft,youcanstudyhowtoprogramviathepanel
key.
6.1xLogicFunctions
ELCseriesadaptsprogrammingmethodsbymeansoffunctionblocks.Atotalof9generalfunctionblocks,
37specialfunctionblocks,and11input&outputfunctionblocksareconfigured.Andeachblockcan
achieveaspecificcontrolfunctionindependently,e.g.TOND,TOFD,SBPL,TBPL,SCHD,etc.Asseveral
blocksarelinkedupinaspecificway,relativelycomplicatedcontrolfunctionscanbeperformed.
ProgrammingwithfunctionblocksissimplerandbetterappreciatedthantheconventionalPLC
instructionprogramming.
ThefollowingtypesofoperatorforxLogicfunctionblocksareavailableforoptions:
6.2GeneralInput&Outputfunctions
6.2.1Inputs
InputblocksrepresenttheinputterminalsofxLogic.Upto8digitalinputsareavailabletoyou.
Inyourblockconfiguration,youcanassignaninputblockanewinputterminal,ifthisterminal
isnotalreadyusedinthecircuitprogram.
86
6.2.2Cursorkeys
Uptofourcursorkeysareavailabletoyou.Cursorkeysareprogrammedforthecircuitprograminthe
samewaysasotherinputs.Cursorkeyscansaveswitchesandinputs,andallowoperatorcontrolofthe
circuitprogram.
Switchthescreentocurrentpage(aboveshows)bypressingtheLeftorRightkey,andpress
ESCkeyandarrowkeysatthesametime,thenthecorrespondingcursorkeyswillturnonand
giveoffahightrigger!
6.2.3Outputs
OutputblocksrepresenttheoutputterminalsofxLogic.Youcanuseupto4outputs.Inyourblock
configuration,youcanassignanoutputblockanewterminal,providedthisterminalisnotalreadyused
inyourcircuitprogram.
Theoutputalwayscarriesthesignalofthepreviousprogramcycle.Thisvaluedoesnotchangewithinthe
currentprogramcycle.
87
6.2.4PermanentlogicallevelsHIandLO
Settheblockinputtological hi (hi=high)tosetitpermanentlytological'1'or'H'state.
Settheblockinputtological lo (lo=low)tosetitpermanentlytological'0'or'L'state.
6.2.5PanelKey
ItisthesymboloftheFunctionkeyonthepanel(F1— F4).Ifoneofthefunctionkeysispresseddown,
thestatusofthecorrespondingsymbolintheprogramshallturnfrom0to1.Anditshallgiveoffonehigh
trigger.
Notes:1.Onlyonefunctionkeyisallowedtobepresseddown atanyonetime ,ifyoupressdowntwoor
moreatthesametime,xLogicdoesnotprocess.
2.Ifthearrowkeys(UP,DOWN,LEFTandRIGHT),EscandOKhadbeenappliedtotheprogram,
thentheywouldbeinvalidformenuoperation(e.g.manualprogramming,parametersmodificationand
viewalarmingmessageetc).
88
6.2.6Shiftregisterbits
xLogicprovidestheshiftregisterbitsS1toS8,whichareassignedtheread-onlyattributeinthecircuit
program.ThecontentofshiftregisterbitscanonlybemodifiedbymeansoftheShiftregisterspecial
function
6.2.7Analoginputs
Youcanuseupto36analoginputs.Inyourblockconfiguration,youcanassignanewinputterminalto
aninputblock,providedthisterminalisnotalreadyusedinthecircuitprogram.
Forhelponanalogblockparameter,refertoInformationonanalogvalueprocessing.
6.2.8F(digitalflag)
FlagsareusedwhenxLogicworksinacommunicationsystem.Fisdigitalflagwhichisusedtosave
/transfersignal1or0(dataformatisBit)andAFisanalogflagwhichisusedtosave/transferanalog
89
values(dataformatisSignedshort)betweenthemasterandslavedevices.Bothoftheflags
(digital/analog)areupto64canbeusedwhenprogramming.Inyourblockconfiguration,youcanassign
anewnumbertotheflag,providedthisflagnumberdoesnotalreadyexistinyourcircuitprogram.
Theoutputalwayscarriesthesignalofthepreviousprogramcycle.Thisvaluedoesnotchangeifthe
communicationhasfailed.
Startupflag:F8
TheF8flagissetinthefirstcycleoftheuserprogramandcanthusbeusedinyourcircuitprogramas
a startupflag .Itisresetafterthefirstprogramexecutioncycle.
Inthesubsequentcycles,theF8flagreactsinthesamewayastheF1toF64flags.
Backlightflags:F64
TheF64flagcontrolsthebacklightofthexLogiconboarddisplay.
Youcanusetheoutputsoftimers,messagetexts,orotherfunctionblockstoactivatethebacklightflags.
Toenablemultipleconditionstocontrolthebacklightofthedevices,youcanusemultiplefunctionblocks
inparallelorinsequence.
Notes: 1.Theaddressof “ F “ canbefoundinthemodbuscommunicationprotocolfile.theFblockfigure
musthavetheinputpininthexLogicshowing.
1. KeeptheinputpinofFNULL(donotconnectwithotherblocks),ifyouwanttousethewriteproperty.
6.2.9AF(Analogflag)
FlagsareusedwhenxLogicworksinacommunicationsystem.Fisdigitalflagwhichisusedtosave
/transfersignal1or0(dataformatisBit)andAFisanalogflagwhichisusedtosave/transferanalog
values(dataformatisSignedshort)betweenthemasterandslavedevices.Bothofflags(digital/analog)
areupto64forxLogicCPUcanbeusedwhenprogramming.Inyourblockconfiguration,youcanassign
anewnumbertotheanalogflag,providedthisflagnumberdoesnotalreadyexistinyourcircuit
program.
Theoutputalwayscarriesthesignalofthepreviousprogramcycle.Thisvaluedoesnotchangeifthe
communicationwerefailed.
Notes:1.Theaddressof “ AF“ canbefoundinthemodbuscommunicationprotocolfile.
2.KeeptheinputpinofAFNULL(donotconnectwithotherblocks),ifyouwanttousethewrite
property.
90
6.3Basicfunctionslist – GF
BasicfunctionsrepresentsimplelogicalelementsofBooleanalgebra.
Youcaninverttheinputsofindividualbasicfunctions,i.e.thecircuitprograminvertsalogical “ 1” ata
relevantinputtoalogical “ 0” ;if “ 0” issetattheinput,theprogramsetsalogical “ 1”.
TheGFlistcontainsthebasicfunctionblocksyoucanuseforyourcircuitprogram.Thefollowingbasic
functionsareavailable:
Viewinthecircuitdiagram ViewinxLogicsoft Nameofthebasicfunction
AND
ANDwithedgeevaluation
NAND
( NotAND)
91
NANDwithedgeevaluation
OR
NOR
(NotOR)
XOR
(exclusiveOR)
NOT
(negation,inverter)
BOOLEANFUNCTION BOOLEANFUNCTION
6.3.1AND
(SymbolinxLogic)
TheoutputofanANDfunctionisonly1if all inputsare1,i.e.whentheyareclosed.
Ablockinputthatisnotused(x)isassigned:x=1.
LogictableoftheANDblock:
Input1 Input2 Input3 Input4 Output
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
92
6.3.2ANDwithedgeevaluation
(SymbolinxLogic)
TheoutputofanANDwithedgeevaluationisonly1if all inputsare1and atleastone inputwas0
duringthelastcycle.
Theoutputissetto1forthedurationofonecycleandmustberesetto0forthedurationofthenextcycle
beforeitcanbesetto1again.
Ablockinputthatisnotused(x)isassigned:x=1.
TimingdiagramofanANDwithedgeevaluation
6.3.3NAND
(SymbolinxLogic)
TheoutputofanNANDfunctionisonly0if all inputsare1,i.e.whentheyareclosed.
Ablockinputthatisnotused(x)isassigned:x=1.
93
LogictableoftheNANDblock:
Input1 Input2 Input3 Input4 Output
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 0
6.3.4NANDwithedgeevaluation
TheoutputofaNANDwithedgeevaluationisonly1atleastone inputis0and all inputswere1during
thelastcycle.
Theoutputissetto1forthedurationofonecycleandmustberesetto0atleastforthedurationofthe
nextcyclebeforeitcanbesetto1again.
Ablockinputthatisnotused(x)isassigned:x=1.
TimingdiagramofaNANDwithedgeevaluation
94
6.3.5OR
TheoutputofanORis1if atleastone inputis1(closed).
Ablockinputthatisnotused(x)isassigned:x=0.
LogictableoftheORfunction:
Input1 Input2 Input3 Input4 Output
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
(SymbolinxLogic)
95
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
6.3.6NOR
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
(SymbolinxLogic)
TheoutputofaNOR(NOTOR)isonly1if all inputsare0,i.e.whentheyareopen.Whenoneofthe
inputsisswitchedon(logical1state),theoutputisswitchedoff.
Ablockinputthatisnotused(x)isassigned:x=0.
LogictableoftheNORfunction:
Input1 Input2 Input3 Input4 Output
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
96
6.3.7XOR
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
(SymbolinxLogic)
TheXOR(exclusiveOR)outputis1ifthesignalstatusoftheinputsis different.
Ablockinputthatisnotused(x)isassigned:x=0.
LogictableoftheXORfunction:
Input1 Input2 Output
0 0 0
0 1 1
1 0 1
1 1 0
6.3.8NOT
(SymbolinxLogic)
Theoutputis1iftheinputis0.TheNOTblockinvertstheinputstatus.
AdvantageoftheNOT,forexample:xLogicnolongerrequiresbreakcontacts.Yousimplyuseamake
97
contactandconvertitintoabreakcontactwiththehelpoftheNOTfunction.
LogictableoftheNOTfunction:
Input1 Output
0 1
1 0
6.3.9BooleanFunction
The BOOLEAN f unctiongivesthevalueoftheoutputaccordingtothecombinationofinputs.
Thefunctionhasfourinputs,andtherefore16combinations.Thesecombinationscanbefoundinatruth
table;foreachofthese,theoutputvaluecanbeadjusted.Thenumberofconfigurablecombinations
dependsonthenumberofinputsconnectedtothefunction.
Non-connectedinputsaresetto0.
ThefollowingdiagramshowsanexampleofpartoftheBooleanfunctiontruthtable:
Parameters
Havingconnectedatleastoneinput,youcanconfigurethevalueoftheoutputinthetruthtable,inthe
Parameterswindow.
Theoutputvaluescanbe0fortheInactivestate,and1fortheActivestate(Doubleclicktochangethe
0or1).
ByselectingtheOutputONifresultisTRUEoption,theoutputtakesthevalueconfiguredinthetruth
98
table.
ByselectingtheOutputOFFifresultisTRUEoption,theoutputtakestheinversevalueofthevalue
configuredinthetruthtable.
6.4Basicsonspecialfunctions
Becauseoftheirdifferentinputdesignation,youcanseerightawaythatthereisadifferencebetweenthe
specialfunctionsandbasicfunctions.SFscontaintimerfunctions,retentivefunctionsandvarious
parameterassignmentoptions,whichallowyoutoadaptthecircuitprogramtosuityourown
requirements.
Thissectionprovidesyouwithabriefoverviewofinputdesignationsandwithsomeparticular
backgroundinformationonSFs.TheSFsinparticulararedescribedinChapter7.5
6.4.1Designationoftheinputs
Logicalinputs
Here,youwillfindthedescriptionoftheconnectorsyoucanusetocreatealogicallinktootherblocks
ortotheinputsofthexLogicunit.
S(Set):
AsignalatinputSsetstheoutputtological “ 1” .
R(Reset):
TheresetinputRtakespriorityoverallotherinputsandresetstheoutputs.
Trg(Trigger):
Thisinputisusedtotriggerthestartofafunction.
Cnt(Count):
Thisinputisusedforcountingpulses.
Fre(Frequency):
Frequencysignalstobeevaluatedareappliedtothisinput.
Dir(Direction):
Thisinputdeterminesthedirectionofcount.
En(Enable):
Thisinputenablesablockfunction.Whenthisinputis “ 0”,othersignalstotheblockwillbeignored.
Inv(Invert):
99
Asignalatthisinputinvertstheoutputsignaloftheblock.
Ral(Resetall):
Allinternalvaluesarereset.
Parameterinputs
Atsomeoftheinputsyoudonotapplyanysignals.Youconfiguretherelevantblockvaluesinstead.
Examples:
Par(Parameter):
Thisinputwillnotbeconnected.Here,yousettherelevantblockparameters(times,on/offthresholds
etc.).
No(Cam):
Thisinputwillnotbeconnected.Here,youconfigurethetimepatterns.
P(Priority):
Thisisanopeninput.Here,youdefineprioritiesandspecifywhetheramessageistobeacknowledged
inRUN.
6.4.2Timeresponse
ParameterT
InsomeoftheSFsitispossibletoconfigureatimevalueT.Whenyoupresetthistime,notethatyour
inputvaluesarebasedonthetimebaseset:
Timebase
s(seconds) seconds :1/100seconds
m(minutes) minutes : seconds
h(hours) hours : minutes
__: __
AccuracyofT
100