




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1ControllerCP-317, 316, 9200SHMaintenance Course2CP-717 Start-upGroup FolderGroup FolderOrder FolderOrder FolderPLC FolderCPU FolderCreate folders.3Log ON OperationRight click “CPU1” icon. If it is on-line operation, click “On-line”.Check mark is added to “On-line”.Input USER-A in “User Name”. After
2、 moving a cursor with TAB key, input USER-A in “Password” again. Then click “OK”.Right click “CPU1” icon again. Then click “Log ON”.“Log ON” window is displayed.Log ON Complete4On-Line Communication Parameter SettingSet 217IF communication port through “CommunicationProcess”.5How to Program Ladder D
3、iagramsDrawings Useful for Program Design and MaintenanceProgram and Drawing ConceptsStart Process Drawing, High-speedLow-speed Process Drawing, Interruption Process DrawingParent Drawing, Child Drawing, Grandchild DrawingRegister6Drawing Process ScheduleStart Process Parent DrawingHigh-speed Proces
4、s Parent DrawingLow-speed Process Parent DrawingInterruption Parent DrawingPower ONInterruption SignalHigh-speed ScanHigh-speed ScanHigh-speed ScanLow-speed Scan7Parent Drawing, Child Drawing, Grandchild DrawingParent Drawing 1 page(One drawing per start, interruption, high-speed and low-speed.)Chil
5、d DWG. 1Grandchild DWG. 1 ProcessGrandchild DWG. 1Function 1. Process ReferenceFunction 1Child Drawing 1 Process ReferenceChild Drawing 2 Process ReferenceChild Drawing 3 Process ReferenceChild DWG. 2Child DWG. 3Grandchild DWG. 2 ProcessGrandchild DWG. 2Max. 99Max. 99Max. 648FunctionStandard program
6、s are called Functions. Anyone can retrieve at anytime.System Standard Functions are programmed in advance. User Functions are programmed know-how by their users.DTRC-RDEXECUTE COMPLETEGROUP-NO ERRORREC-NO STATUSREC-SIZE REC-SIZESELECT REC-LENDAT-ADRSystem Standard Functions (Example)9How to Assign
7、and Call Drawing No.High-speed Process Parent Drawing:DWG.HHigh-speed Process Child Drawing:DWG.H01-99High-speed Process Grandchild Drawing :DWG.H .01-99 (Here : 01 99)Same rule is applied to low-speed, start and interruption process.(Drawing type H changes to L, A and I respectively.)Function:FUNC-
8、001-064Child drawing can be called by SEE H01 in program (when calling child screen H01 from high-speed process parent screen).10What is Register?Register is the memory that stores data.Data is numerical values such as position or speed, and bit such as ON-OFF signal.11RegistersNameNameRangeRangeNot
9、ationNotationUsageUsageSystem RegisterSystem Register SW00000-SW01023SW00000-SW01023 DecimalDecimalPrepared register. Prepared register. Failure contents, scan time, etc. Failure contents, scan time, etc. are storedare storedData RegisterData RegisterMW00000-MW32767MW00000-MW32767 DecimalDecimalRegi
10、ster to store data commonlyRegister to store data commonly used between drawings used between drawingsInput RegisterInput RegisterIW0000-IW7FFFIW0000-IW7FFFHexadecimalHexadecimalRegister to name the inputRegister to name the inputOutput RegisterOutput Register OW0000-OW7FFFOW0000-OW7FFFHexadecimalHe
11、xadecimalRegister to name the outputRegister to name the outputConstant RegisterConstant RegisterCW00000-CW16383CW00000-CW16383 DecimalDecimalRegister that stores read Register that stores read onlyonly data data# Register# Register#W00000-#W16383#W00000-#W16383DecimalDecimalRead only register used
12、only inRead only register used only in drawings drawingsD RegisterD RegisterDW00000-DW16383DW00000-DW16383 DecimalDecimalGeneral-purpose register used only General-purpose register used only in certain drawings in certain drawings12How to Assign NumbersMB001001Bit Number: 0 F(Contact, Coil, etc.)Reg
13、ister Number: Decimal, 5 digits or Hexadecimal, 4 digitsData Type: B, W, L, F, ARegister Types :S, M, I, O, C, D, etc.13How to Assign Numbers (Examples)MB000002: The 2nd bit of data register (M) 00000 address.DW00030: The 00030th integral number data of register (D) peculiar to each drawing.14What i
14、s Data Type?B: Bit. Used in relay circuits.W:16-bit integral number.Range 32768 +32767.L: Double length integral number.Range 2147483648 +2147483647.F: Floating value.A:Address.Range 0 32767.15Basic Commands Sequence Control Command Program Control Command Direct I/O Command Logic Operation Command
15、Numerical Value Calculation Command Numerical Value Conversion Command Numerical Value Comparison Command Data Operation Command Basic Function Command DDC Command16Lets Program a Sequence!Required Commands Contact A, Contact B, Coil, Leading Edge Pulse, Trailing Edge Pulse, Branch, Parallel Connect
16、ion, ON-Delay Timer, OFF-Delay Timer How to Assign Numbers Timer Circuit Counter17Sequence Control Commands Contact A MB000100Contact BMB000110 CoilMB000101 Set Coil OB000000Reset Coil OB000000SR Leading Edge PulseTrailing Edge Pulse Contact A MB000100Contact BMB000110 CoilMB000101 Set Coil OB000000
17、Reset Coil OB000000SR Leading Edge PulseTrailing Edge Pulse18Pulse Circuit Programming IB00001 MB000100 MB000101Previous status of immediate register to be storedContact to be a pulse19Branch Command Commands used for parallel circuit and branch circuit.BranchConfluence Confluence Connection20Timer4
18、 TypesON-Delay Timer (Unit: 10ms) ON-Delay Timer (Unit: 1s) 5.00 DW00011OFF-Delay Timer (Unit: 10ms) OFF-Delay Timer (Unit: 1s)5.00 DW00011 In case of 1 second timer, its subscript is S.MB000101TTMB000101Current Value Store Register21Lets Program the Circuit!Exercise 1If Run button (Input IB00015) i
19、s pressed, lamp (Output OB00010) turns ON. If it is released, the lamp goes OFF immediately.Exercise 2If Run button (Input IB00016) is pressed, lamp (Output OB00011) turns ON 5 seconds later. If it is released, the lamp goes OFF immediately.22Answers -Exercise 1 and 2-Exercise 1IB00015 OB00010Exerci
20、se 2IB00016 005.00 DW00030 OB00011 T23Lets Program the Circuit!(Continued)Exercise 3If Run button (Input IB00018) is pressed, lamp turns ON (Output OB00012). Even if it is released, the lamp stays ON. If Stop button (IB00019) is pressed, the lamp goes OFF. If Run and Stop buttons are pressed at the
21、same time, the lamp turns ON.Exercise 4If Run button (Input IB00018) is pressed, lamp turns ON (Output OB00012). Even if it is released, the lamp stays ON. If Stop button (IB00019) is pressed, the lamp goes OFF. If Run and Stop buttons are pressed at the same time, the lamp goes OFF.24Answers -Exerc
22、ise 3 and 4-Exercise 3IB00018 OB00012OB00012 IB00019Exercise 4IB00018 IB00019 OB00012OB0001225Programming Exercise(Input the following circuit.) IB00000 DB000050 IB00002 IB00003 IB00001 OB01000OB01000 IB00004 OB0100126CounterCounter consists of addition, subtraction, increment and decrement command
23、of calculation commands.27Program Control CommandsSEEFORWHILEIFON/IFOFF - ELSE - IEND(End of IF Statement)DEND (End of Drawing)28Lets Calculate Numerical ValuesMain CommandsLoad MW00100 Load Command used first to execute integral number type numerical value calculation. Sets numerical value in Regis
24、ter A.Load MF00200 Load Command used in case of real number type numerical value calculation.Store MW00100 Command that stores the result of calculation.29Addition, Subtraction, Multiplication, DivisionAddition MW00100 + 12345 MW00101Subtraction MW00100 - 12345 MW00101Multiplication MW00100 3ML00101
25、Division MW00102 MW00103 MW00104Pay attention to the overflow as a result of calculation. In addition, pay attention to the division with 0.Multiply and divide as a pair. ML00100 ML00102 18000 ML0010430Lets Program the Calculation CircuitExercise 5 Output the value set by Digital SW (Input IW0000) t
26、o LED indicator (Output OW0000).Exercise 6Multiply the value set by Digital SW (Input IW0000) by 2 and output to LED indicator (Output OW0000).31Answers -Exercise 5, 6-Exercise 5 IW00000 BIN DW00001 DW00001 BCD OW00000Exercise 6 IW00000 BIN DW00001 DW00001 00002 00001DW00001 DW00001 BCD OW0000032Num
27、erical Comparison FunctionLets compare numerical values. = = Comparison and its Program (Example)If MW00100 value is not 200, execute addition.MB00010AMW00100 00200 00200MB00010AIFONIFONMW00101 + MW00102 MW00104IEND33Logic Control CommandsLogic ANDLogic ORExclusive ORABC000011101111ABC000010100111AB
28、C000011101110A AND B =CA XOR B =CA OR B =C34Numerical Value Conversion CommandINV(Code Inversion)COM (Complement of )ABS(Absolute Value)BIN(From BCD to Binary)BCD (From Binary to BCD)PARITY(Parity)35Data Operation CommandsROTL (Bit Left Rotation)ROTR (Bit Right Rotation)MOVB(Bit Transfer)MOVW(Bit Tr
29、ansfer)XCHG(Exchange Transfer)36Function CommandsThe following commands are available:Square Root (SQRT) Sine (SIN) Cosine (COS)Tangent (TAN) Index (EXP) Natural Logarithms (LN)Common Logarithms (LOG)DDC CommandNext Page37DDC CommandDZA (Dead Zone A)DZB (Dead Zone B)LIMIT(Upper Limit and Lower Limit
30、)PI(PI Control)PD (PD Control)PID (PID Control)LAG (First Order Lag)LLAG (Phase Lead and Lag)FGN(Function Generator)IFGN (Inverse Function Generator)LAU (Linear Accelerator)SLAU (S-Curve Accelerator)38Function Program Example (SIN and COS)DB000300Exercise Start from 0 degree. Obtain SIN and COS valu
31、es every 10 degrees/scan interval. Store these values in Register DF00006 and Register DF00008 respectively.Answer 10.00 DF00002 DF00000 + DF00002 DF00000 DF00000 360 DB000300 IFON -360 DF00000 IEND DF00000 SIN DF00006 DF00000 COS DF00008 DEND 39How to Use DDC Command30000DW00011“ Set Parameters in
32、LAU Function *DB000100MB000100DB000101SB000004DB000102SB000004DB000103SB000004100DW00012100DW0001350DW00014RunQuick StopDV/DT Operation SWDV/DT Operation SW100 % LevelAcceleration TimeDeceleration TimeQuick Stop Time“ LAU Function Execution *MW00100 LAU DA00010MW00101DW00010Bit 0 Bit 3LAU Function P
33、arameter Setting AddressDA00010 = DW00010LAU Function InputLAU Function OutputParameter Setting in LAU40Move CommandsMain Move CommandWord Move Command: MOVWMW00000 MW00100MW00001 MW00101 MW00009 MW00109Others Word Group Exchange (XCHG) Table Initialization (SETW) Bit Move (MOVB) Data Search (BSRCH)
34、 Sorting (SORT) Bit Shift (SHFTR,L)41Programming - INSERT/DELETEInsert program here.Place cursor here. Press F1 : INSERT.F1 : INSERTPress F1 : INSERT once again. Then INSERT Mode is cancelled.Delete this portion.Place cursor here. Press F2 : DELETE.MF00220+MF00222123.4560.01DF00110=0DW00100DB000100D
35、B000100IFON0MW00121IENDMW00120+MW001211000060DW00100F2 : DELETESelect this portion using ENTER Key or cursor.Press F2 : DELETE Key again to delete.42Programming - CUT/COPYCut this portion.Place cursor here. Press F3 : CUT.F3 : CUTSelect using ENTER Key or cursor.Press F3 : CUT Key again. Then cut pr
36、ogram (Store in buffer).Key to paste the program in buffer.Place cursor here. Press F4 : COPY.F4 : COPY (Paste)0MW00121IENDMF00220+MF00222123.4560.01DF00110=0DW00100DB000100DB000100IFONMF00220+MF00222123.4560.01DF00110MW00120+MW001211000060DW0010043Programming - DISABLE/ENABLEDWGSTEPLL0110101L02L034
37、5119DThis DWG is not executed.If parent drawing (H / L / A / I) is disable, all the child drawings become disabled.If this drawing is disabled, it is not executed.If this drawing is enabled, it is executed again.44Register ListUNIT#001 : CPU#1 / DW00010 / DWG H01.01 /D=008 DECDW00010 = -00001 DW0001
38、1 = 32767 DW00012 = -32768 DW00013 = -00001DW00014 = -00001 DW00015 = 00000 DW00016 = -00001 DW00017 = -00001Start AddressDWG #Number of DataUNIT#001 : CPU#1 / MW00100 / DWG /D=008 DECMW00100 = -00010 MW00101 = 32767 MW00102 = -32768 MW00103 = -00010MW00104 = -00010 MW00105 = 00000 MW00106 = -00010
39、MW00107 = -00001UNIT#001 : CPU#1 / MW00100 / DWG /D=008 DECMW00100 = -00010 MW00101 = 32767 MW00102 = -32768 MW00103 = -00010MW00104 = -00010 MW00105 = 00000 MW00106 = -00010 MW00107 = -00001DEC : Decimal HEX : HexadecimalBIN : BinaryFLOAT : Real-numberINT : IntegerLONG : Double-integerB_D Key:Delet
40、es the block.N_L Key:Moves the cursor. N_B Key:Creates a new block.45Cross ReferenceCross Reference of UNIT#001 CPU#1 / MW00260 / DWG * ( DWG : / , ABOX : - , SFC : ; )H/010H/011H/012H10/033 INCL03.01 /096L40.01 /001 Input searching register number.Set searching register contents;*: Search all drawi
41、ngsH* : Search high-speed process drawingsL* : Search low-speed process drawingsSearch ResultDWG No. at the used locationStep No. at the used locationCommand at the used location46Comment InsertionComment Insertion Comment to be inserted in the right space in ladder diagram. Inserted by using “Comme
42、nt List”. Saved in hard disk. Comment Command One of the commands to be inserted in ladder diagram. Saved in CPU.47DATA-1MW00100-00014-00013-00012-00011-00010-00009-00008-00007-00006-00005-00004-00003-00002-00001 00000Trace Back FunctionNO.-00014-00013-00012-00011-00010-00009-00008-00007-00006-00005-00004-00003-00002-00001 00000DATA-1MW00100001040010300104001050010800110001150013000140001460016800197002550029800312DATA-2MW00200059020589005479048080380002810024100232502301023030230502302023040230102303DATA-3IW00300-00010
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年智能电网在电力系统故障检测与诊断中的应用报告
- 2025年细胞治疗产品临床试验审批流程及监管趋势报告
- 2025年废旧塑料回收利用产业技术创新与产业协同创新报告
- 2025广东江门市恩平市引进各类人才(卫生健康系统医共体高层次人才和急需紧缺人才专场)考前自测高频考点模拟试题及答案详解(网校专用)
- 2025年储能产业政策红利与市场拓展分析报告
- 环保产业园2025年循环经济发展模式下的废弃物资源化处理技术报告
- 2025年医药市场未来趋势预测:仿制药一致性评价下的市场机遇与挑战报告
- 2025年生物质能生物质氢与新能源汽车燃料电池性能优化报告
- 2025-2030工业设计服务产业升级需求及附加值创造分析报告
- 2025-2030工业自动化控制系统投资价值与战略规划分析报告
- (2025)辅警笔试题库及参考答案
- 退役军人服务授课课件
- 劳动保障监察投诉书格式及写作范文
- 中班幼儿在角色游戏中同伴模仿行为研究
- 2026年高考语文备考之家庭伦理小说知识点
- 联名合作授权协议书范本
- 营救小羊中班课件
- 跟岗干部管理办法中组部
- 乐理知识入门教学课件
- 法律与道德教学课件
- 归档病案无纸化管理制度
评论
0/150
提交评论