panasonic fp series plc programming manual - · pdf filetable of contents iii 4.4.2 operation...

1334
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: [email protected]

Upload: hanhi

Post on 30-Jan-2018

253 views

Category:

Documents


6 download

TRANSCRIPT

  • Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: [email protected]

    http://www.ctiautomation.net/Aromat-NAIS-PLC.htm

  • Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: [email protected]

  • i

    Table of Contents

    Chapter 1 Relays, Memory Areas and Constants

    1.1 Table of Relays, Memory Areas and Constants 1 - 2. . . . . . . . . . . . . . . . . . . . . . . .1.1.1 FP0/FPe 1 - 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.2 FP0R 1 - 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.3 FP 1 - 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.4 FPX 1 - 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.5 FP2 1 - 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.6 FP2SH 1 - 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.7 FP10SH 1 - 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.1.8 Relay Numbers 1 - 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.2 Explanation of Relays 1 - 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.1 External Input Relays (X) 1 - 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.2 External Output Relays (Y) 1 - 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.3 Internal Relays (R) 1 - 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.4 Special Internal Relays 1 - 28. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.5 Link Relays (L) for FP, FPX, FP0R 1 - 29. . . . . . . . . . . . . . . . . . . . . . .1.2.6 Link Relays (L) for FP2/FP2SH/FP10SH 1 - 31. . . . . . . . . . . . . . . . . . . . .1.2.7 Timer (T) 1 - 35. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.8 Counter (C) 1 - 36. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.9 Items Shared by the Timer and Counter 1 - 37. . . . . . . . . . . . . . . . . . . . .1.2.10 Pulse Relays (P) 1 - 39. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.2.11 Error Alarm Relays (E) 1 - 41. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.3 Explanation of Memory Areas 1 - 44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.3.1 Data Register (DT) 1 - 44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.3.2 Special Data Registers (DT) 1 - 46. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.3.3 File Registers (FL) 1 - 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.3.4 WX, WY, WR and WL 1 - 49. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.3.5 Link Data Registers (LD) for FP/FPX/FP0R 1 - 50. . . . . . . . . . . . . . . .1.3.6 Link Data Registers (LD) for FP2/FP2SH/FP10SH 1 - 52. . . . . . . . . . . .1.3.7 Set Value Area for Timer/Counter (SV) 1 - 56. . . . . . . . . . . . . . . . . . . . . .1.3.8 Elapsed Value Area for Timer/Counter (EV) 1 - 57. . . . . . . . . . . . . . . . . .1.3.9 Index Registers (IX, IY) (for FP0, FPe) 1 - 58. . . . . . . . . . . . . . . . . . . . .1.3.10 Index Registers (I0 to ID) (for FP/FPX/FP0R) 1 - 61. . . . . . . . . . . . . .1.3.11 Index Registers (I0 to ID) (for FP2, FP2SH and FP10SH) 1 - 62. . . . . .

    1.4 Explanation of Constants 1 - 72. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.4.1 Integer Type Decimal Constants (K) 1 - 72. . . . . . . . . . . . . . . . . . . . . . . . .1.4.2 Hexadecimal Constants (H) 1 - 73. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1.4.3 Floating Point Type Real Numbers (f) 1 - 74. . . . . . . . . . . . . . . . . . . . . . .

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: [email protected]

  • Table of Contents

    ii

    1.4.4 BCD Type Real Numbers (H) (for FP2, FP2SH and FP10SH) 1 - 79. . .1.4.5 Character Constants (M) 1 - 80. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    1.5 Data Ranges Which can be Handled in the PLC 1 - 81. . . . . . . . . . . . . . . . . . . . . .1.5.1 Data Ranges Which can be Handled in the PLC 1 - 81. . . . . . . . . . . . . .1.5.2 Overflow and Underflow 1 - 84. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    Chapter 2 Basic Instructions

    2.1 Composition of Basic Instructions 2 - 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.1.1 Sequence Basic Instructions 2 - 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.1.2 Basic Function Instructions 2 - 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.1.3 Control Instructions 2 - 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.1.4 Data Compare Instructions 2 - 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    2.2 Number of Steps in the FP2, FP2SH and FP10SH 2 - 6. . . . . . . . . . . . . . . . . . . . .

    Chapter 3 Highlevel Instructions

    3.1 Composition of High-level Instructions 3 - 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.1.1 Composition 3 - 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.1.2 High-level Instruction Numbers and Program Input 3 - 4. . . . . . . . . . . . .3.1.3 High-level Instruction and Execution Condition (Trigger) 3 - 5. . . . . . . .3.1.4 F and P Type High-level Instructions 3 - 6. . . . . . . . . . . . . . . . . . . . . .

    Chapter 4 Precautions Concerning Programs

    4.1 Changing the Set Value of Timer/Counter During RUN 4 - 3. . . . . . . . . . . . . . . . .4.1.1 Method of Rewriting Constant in the Program 4 - 3. . . . . . . . . . . . . . . . .4.1.2 Method of Rewriting a Value in the Set Value Area 4 - 5. . . . . . . . . . . . .

    4.2 Use of Duplicated Output 4 - 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.2.1 Duplicated Output 4 - 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.2.2 When Output is Repeated with an OT, KP, SET, or RST

    Instruction 4 - 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    4.3 Leading Edge Detection Method 4 - 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.3.1 Instructions of Leading Edge Detection Method 4 - 10. . . . . . . . . . . . . . .4.3.2 Operation and Precautions at Run Start Time 4 - 11. . . . . . . . . . . . . . . .4.3.3 Precautions when Using a Control Instruction 4 - 13. . . . . . . . . . . . . . . .

    4.4 Operation Errors 4 - 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.4.1 Operation Errors 4 - 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: [email protected]

  • Table of Contents

    iii

    4.4.2 Operation Mode when an Operation Error Occurs 4 - 16. . . . . . . . . . . . .4.4.3 Dealing with Operation Errors 4 - 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.4.4 Points to Check in Program 4 - 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    4.5 Handling Index Registers 4 - 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.5.1 Index Registers 4 - 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.5.2 Memory Areas Which can be Modified with Index Registers 4 - 20. . . .4.5.3 Example of Using an Index Register 4 - 21. . . . . . . . . . . . . . . . . . . . . . . .

    4.6 Handling BCD Data 4 - 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.6.1 BCD Data 4 - 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.6.2 Handling BCD Data in the Programmable Controller 4 - 25. . . . . . . . . . .

    4.7 Precautions for Programming 4 - 27. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    4.8 Rewrite Function During RUN 4 - 28. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.8.1 Operation of Rewrite During RUN 4 - 28. . . . . . . . . . . . . . . . . . . . . . . . . . .4.8.2 Cases Where Rewriting During Run is not Possible 4 - 29. . . . . . . . . . .4.8.3 Procedures and Operation of Rewrite During RUN 4 - 31. . . . . . . . . . . .

    4.9 Processing During Forced Input and Output 4 - 32. . . . . . . . . . . . . . . . . . . . . . . . .4.9.1 Processing when forced input/output is initiated during RUN 4 - 32. . . .

    4.10 Second Program Area (FP2SH, FP10SH) 4 - 34. . . . . . . . . . . . . . . . . . . . . . . . . . .

    Chapter 5 Appendix

    5.1 System Registers / Special Internal Relays / Special Data Registers....... 53

    5.1.1 Table of System Registers for FP0 55. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1.2 Table of Special Internal Relays for FP0 515. . . . . . . . . . . . . . . . . . . . . . . . .5.1.3 Table of Special Data Registers for FP0 518. . . . . . . . . . . . . . . . . . . . . . . . .5.1.4 Table of System Registers for FPe 528. . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1.5 Table of Special Internal Relays for FPe 532. . . . . . . . . . . . . . . . . . . .