KBATrainingKBAWelcometotheKBATrainingcenter!PLC/ABB/KT97_98BasiccourseIEC1131[LG#0101]KBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:2KBATrainingLG#0102-PLC/ABB/BasiccourseIEC1131Indroduction•Name,age,placeofrecidence•Qualification,company,fieldofactivity,knowhow•expectations,requestsIntroductionKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:3KBATrainingObjective•TounderstandandoperateCoDeSys.•TolearnaboutthefunctionalityofPLCKT97/98•Tobeabletoperformmaintenancetasks.•ToexchangeexperiencesIntroductionKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:4KBATraining•PLCKT97/98:Hardware,systemconstants,peripherals•CoDeSys:Handling,configuration,watchvariables,forcingI/O´s•PLCprogramming:IntroductiontoPLCprogrammingbasedoneasyexercicesandexamples.•DiscussionaboutthemostimportantKBA-specificroutines(„Start-up“,„pre-warningdevice“,„modulesearch“,etc.)TrainingprogrammeIntroductionKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:5KBATrainingPLC07KT97Potentiometer(ForexerciseswithWORD/DWORDfunctionality)I/OpanelwithMeter(0..10V,connectedtoAW006,03)Powersupply24VDCCS31I/O-module(07DC91)ConnectionforexternalCS31-modulesTerminal(supply,PE,Fuse)KBAPLCTrainerKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:6KBATrainingPLCProgrammableLogicControlInputsSupplyOutputsPLCProgrammKBA07KT98PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:7KBATrainingInputvalues:•Sensors(oillevel,temperature,..•Push-buttons•Feedbackvalues(potentiometer,limitswitches,sensors,..)•Valuesofcontrolconsole(ratedspeed[s/h],configuration,countercorrection,...PLCOutputvalues:•Ratedvaluestomain-andauxiliarydrives•Activationofvalves,signallamps,displays,..PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:8KBATrainingPLC07KT98R0160-OverviewPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:9KBATrainingPLC07KT98-generaldataNOTESINFOINFOINFOINFOPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:10KBATrainingPLC07KT94/97/98-Systemconstants(1)PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:11KBATrainingPLC07KT94/97/98-Systemconstants(2)KW086,..PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:12KBATrainingAPLCprogrammeisgeneratedwithhelpofacommercialEditor[e.g.ULTRAEDIT]Aftercompletion,theprogrammcodecanbetransferedfromthePCintothePLC.[viaARCnetorSerialinterface]TheprogrammecanbetransferedandstoredintotheFLASH-EPROMafterloading.ThePLCinternalbatteryisusedtobufferthestatusofvariables[counters,conditionsofflags,etc.]intheRAM.Howtogetstarted..PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:13KBATraininggenerationofanimagefortheinputsusedintheprogramfirstinstructionoftheprogramfinalinstructionoftheprogram!E1!PE&E2=A1cycletimeofaPLCtransferoftheimagefortheoutputstotheoutputchannelssettheoutputintheimagefortheoutputsThisvalueisdepenceonvariousfacts(Programsize,numberandtypeofusedoperands,CS31busmembers,..CycletimePLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:14KBATrainingOperatorsinIEC1131(extract)NOTESArithmeticoperatorsAdditionofvariablesADDMultiplicationMULSubtractionSUBBitstringoperatorsBitwiseANDANDBitwiseORORBitwiseExclusive-ORXORBitwiseNOTNOTBit-shiftoperatorsBitwiseleft-shiftSHLBitwiseRight-shiftSHRComparativeoperatorsGreaterThanGTLowerThanLTLowerEqualLEAddressoperatorsAddressADRContentoperator^Detailedinformations:seeHelpPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:15KBATrainingOperators(1)NOTES:Example1:AND-functionExample2:IF-Instruction/OR-functionPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:16KBATrainingNOTESOperators(2)Example3:FOR-LoopPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:17KBATrainingOperandsinIEC1131(extract)NOTESPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:18KBATrainingOperandsinIEC1131:VariablesOne-dimensionalfieldofbinaryvariables[TRUE,FALSE,FALSE,..]Binaryvariable[possiblevalues:TRUE/FALSE]BYTEVariable[range:0..255]WORDVariable[range:0..65535]PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:19KBATrainingOperandsinIEC1131(extract)NOTESAddressing(examples):%IX014.03%QX062.12%QW1006.00PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:20KBATrainingOperandsinIEC1131:AdressesDeclarationofin-andoutputsforCS31busmodulesandPLC07KT98Seealso:PLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:21KBATrainingNOTESDataTypesPLCBasicsKBASPS/ABB/KT97_98/GrundkursIEC1131[LG#0101]-V01.02update01/2008Page:22KBATrainingIntroductionControllerDevelopmentSystem3S-SmartSoftwareSolutionsGmbHisoneoftheleadingsoftwaremanufacturersintheEuropeanautomationindustry.CoDeSysistheleadinghardwareindependentIEC61131-3p