Your SlideShare is downloading. ×
  • Like
Fp programming manual
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Fp programming manual

  • 1,979 views
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,979
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
17
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 6_0408.ai GLOBAL NETWORK Europe http://www.mew-europe.com/ í Germany Matsushita Electric Works (Europe) AG Rudolf-Diesel-Ring 2, D-83607 Holzkirchen, Germany Tel: 49-8024-648-0 Germany Matsushita Electric Works Deutschland G.m.b.H. United Kingdom Matsushita Electric Works UK Ltd. • Ireland Matsushita Electric Works UK Ltd. Irish Branch Office Austria Matsushita Electric Works Austria G.m.b.H. Switzerland Matsushita Electric Works Schweiz AG France Matsushita Electric Works France S.A.R.L. Italy Matsushita Electric Works Italia s.r.l. FP Series Programming Manual Benelux Matsushita Electric Works Benelux B.V.uth America http://www.aromat.com/ Aromat Corporation Spain • Portugal Matsushita Electric Works España S.A. Matsushita Electric Works España S.A. Portuguese Branch Office PROGRAMMABLE CONTROLLER 629 Central Ave., New Providence, N.J. 07974 U.S.A. Czech Matsushita Electric Works (CZ) s.r.o. Tel: 1-908-464-3550 (Headquarters) Scandinavia Matsushita Electric Works Scandinavia ABetts FP Serieses Programming Manual Aromat Canada, Inc. [Applicable PLC] FP0/FP-e FPΣ Asia FP1 í Singapore Matsushita Electric Works (Asia Pacific) Pte. Ltd. FP-M 101 Thomson Road, #25-03/05, United Square, Singapore 307591 Representative Office Tel: 65-255-5473 FP2 • Indonesia Malaysia Matsushita Electric Works (Malaysia) Sdn. Bhd. FP2SH Thailand Matsushita Electric Works Sales (Thailand) Co., Ltd. • Vietnam U.A.E. Matsushita Electric Works (Middle East) FZE. FP3 • Philippines í China • India Matsushita Electric Works (China) Co., Ltd. FP10SH Suite 201 Level 2 Tower W3, The Toners, Oriental Plaza, No. 1, • Turkey East Chang An Ave., Dong Cheng District, Beijing, 100005 China • Brazil Tel: 86-10-8518-1302, 1303 Beijing Matsushita Electric Works (China) Co., Ltd. Shanghai Matsushita Electric Works (China) Co., Ltd. Shanghai Branch Office ARCT1F313E-4/ACG-M313E-4 Guangzhou Matsushita Electric Works (China) Co., Ltd. Guangzhou Branch Office Dalian Matsushita Electric Works (China) Co., Ltd. Dalian Branch Office Shenzhen Matsushita Electric Works (China) Co., Ltd. Shenzhen Branch Office Chengdu Matsushita Electric Works (China) Co., Ltd. Chengdu Branch Office í Hong Kong Matsushita Electric Works (Hong Kong), Ltd. Rm1601, 16/F, Tower 2, The Gateway, 25 Canton Road, Tsimshatsui, Kowloon, Hong Kong Tel: 852-2529-3956 í Japan Matsushita Electric Works, Ltd. Automation Controls Company 1048, Kadoma, Kadoma-shi, Osaka 571-8686, Japan Tel: 81-06-6908-1050 .......... Matsushita Electric Works, Ltd. Matsushita Electric Works, Ltd. This manual was created using Adobe Acrobat. Automation Controls Company Adobe, the Adobe logo, and Acrobat are trademarks íHead Office: 1048, Kadoma, Kadoma-shi, Osaka 571-8686, Japan of Adobe Systems Incorporated. íTelephone: Japan (81) Osaka (06) 6908-1050 íFacsimile: Japan (81) Osaka (06) 6908-5781 http://www.nais-e.com/ COPYRIGHT © 2003 All Rights Reserved FP Series Programming Manual 200307-5ZT Specifications are subject to change without notice. Printed in Japan. ARCT1F313E-7 ’04.10 http://www.nais-e.com/plc
  • 2. Table of ContentsChapter 1 Relays, Memory Areas and Constants1.1 Table of Relays, Memory Areas and Constants . . . . . . . . . . . . . . . . . . . . . . . . 1 - 2 1.1.1 FP0/FP - e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 2 1.1.2 FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 4 1.1.3 FP1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 6 1.1.4 FP - M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 8 1.1.5 FP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 10 1.1.6 FP2SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 12 1.1.7 FP10SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 14 1.1.8 FP3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 16 1.1.9 Relay Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 181.2 Explanation of Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 21 1.2.1 External Input Relays (X) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 21 1.2.2 External Output Relays (Y) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 22 1.2.3 Internal Relays (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 23 1.2.4 Special Internal Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 25 1.2.5 Link Relays (L) for FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 26 1.2.6 Link Relays (L) for FP2/FP2SH/FP10SH/FP3 . . . . . . . . . . . . . . . . . 1 - 28 1.2.7 Timer (T) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 32 1.2.8 Counter (C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 33 1.2.9 Items Shared by the Timer and Counter . . . . . . . . . . . . . . . . . . . . . 1 - 34 1.2.10 Pulse Relays (P) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 37 1.2.11 Error Alarm Relays (E) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 391.3 Explanation of Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 42 1.3.1 Data Register (DT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 42 1.3.2 Special Data Registers (DT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 44 1.3.3 File Registers (FL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 46 1.3.4 WX, WY, WR and WL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 47 1.3.5 Link Data Registers (LD) for FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 48 1.3.6 Link Data Registers (LD) for FP2/FP2SH/FP10SH/FP3 . . . . . . . . 1 - 50 1.3.7 Set Value Area for Timer/Counter (SV) . . . . . . . . . . . . . . . . . . . . . . 1 - 54 1.3.8 Elapsed Value Area for Timer/Counter (EV) . . . . . . . . . . . . . . . . . . 1 - 55 1.3.9 Index Registers (IX, IY) (for FP0, FP - e, FP1, FP - M and FP3) . . 1 - 56 1.3.10 Index Registers (I0 to ID) (for FPΣ) . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 59 1.3.11 Index Registers (I0 to ID) (for FP2, FP2SH and FP10SH) . . . . . . 1 - 601.4 Explanation of Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 70 1.4.1 Integer Type Decimal Constants (K) . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 70 1.4.2 Hexadecimal Constants (H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 71 i
  • 3. Table of Contents 1.4.3 Floating Point Type Real Numbers (f) . . . . . . . . . . . . . . . . . . . . . . . 1 - 72 1.4.4 BCD Type Real Numbers (H) (for FP2, FP2SH and FP10SH) . . . 1 - 77 1.4.5 Character Constants (M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 781.5 Data Ranges Which can be Handled in the PLC . . . . . . . . . . . . . . . . . . . . . . 1 - 79 1.5.1 Data Ranges Which can be Handled in the PLC . . . . . . . . . . . . . . 1 - 79 1.5.2 Overflow and Underflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 82Chapter 2 Basic Instructions2.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-52.2 Number of Steps in the FP2, FP2SH and FP10SH . . . . . . . . . . . . . . . . . . . . . 2 - 6Chapter 3 High - level Instructions3.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-6Chapter 4 Precautions Concerning Programs4.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 - 54.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 - 94.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 - 134.4 Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 15 4.4.1 Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 15ii
  • 4. Table of Contents 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 - 184.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 - 214.6 Handling BCD Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 25 4.6.1 BCD Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 25 4.6.2 Handling BCD Data in the Programmable Controller . . . . . . . . . . . 4 - 254.7 Precautions for Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 27Chapter 5 Special Functions of FP05.1 High - speed Counter, Pulse Output and PWM Output . . . . . . . . . . . . . . . . . . 5 - 3 5.1.1 Outline of Functions that Use Built - in High - speed Counter . . . . . . 5 - 3 5.1.2 Specifications and Restricted Items . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 5 5.1.2.1 High - speed Counter Function Specifications . . . . . . . . 5 - 5 5.1.2.2 Pulse Output Function Specifications . . . . . . . . . . . . . . 5 - 6 5.1.2.3 PWM Output Specifications . . . . . . . . . . . . . . . . . . . . . . . 5 - 6 5.1.2.4 Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 7 5.1.3 High - speed Counter Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 9 5.1.3.1 Outline of High - speed Counter Function . . . . . . . . . . . 5 - 9 5.1.3.2 Types of Input Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 9 5.1.3.3 I/O Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 11 5.1.3.4 Instructions Used with High - speed Counter Function 5 - 12 5.1.3.5 Sample Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 14 5.1.4 Pulse Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 18 5.1.4.1 Outline of Pulse Output Function . . . . . . . . . . . . . . . . . 5 - 18 5.1.4.2 Control Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 19 5.1.4.3 I/O Allocation and Wiring . . . . . . . . . . . . . . . . . . . . . . . . 5 - 20 5.1.4.4 Instructions Used with Pulse Output Function . . . . . . 5 - 22 5.1.4.5 Sample Program for Positioning Control . . . . . . . . . . . 5 - 25 5.1.5 PWM Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 33 5.1.5.1 Outline of PWM Output Function . . . . . . . . . . . . . . . . . 5 - 33 5.1.5.2 Instruction Used with PWM Output Function . . . . . . . 5 - 335.2 General - purpose Serial Communications Function . . . . . . . . . . . . . . . . . . . 5 - 34 5.2.1 General - purpose Serial Communications . . . . . . . . . . . . . . . . . . . . 5 - 34 5.2.1.1 Data Transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 34 5.2.1.2 Data Reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 35 5.2.2 System Register Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 36 iii
  • 5. Table of Contents 5.2.3 Explanation of Operations When Using General - use Serial Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 39 5.2.3.1 Start Code “None”, Terminal Code: CR . . . . . . . . . . . . 5 - 39 5.2.3.2 Start Code “STX”, Terminal Code “ETX” . . . . . . . . . . . 5 - 405.3 Rewrite Function During RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 42 5.3.1 Operation of Rewrite During RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 42 5.3.2 Cases where Rewriting During Run is not Possible . . . . . . . . . . . . 5 - 43 5.3.3 Procedures and Operation of Rewrite During RUN . . . . . . . . . . . . 5 - 44 5.3.4 Changing Modes in FP Programmer II . . . . . . . . . . . . . . . . . . . . . . . 5 - 465.4 Processing During Forced Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 47Chapter 6 Special Functions of FP - M/FP16.1 High - speed Counter Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 6.1.1 Specifications of High - speed Counter . . . . . . . . . . . . . . . . . . . . . . . . 6-3 6.1.2 Input Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5 6.1.3 Connection and Input Mode Setting with Pulse Output Control . . . 6-6 6.1.4 Instructions Used with High - speed Counter Function . . . . . . . . . . . 6-86.2 Frequency Value for Pulse Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 - 146.3 ON Pulse Wide for Pulse Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 - 21Chapter 7 Hints for FP2/FP2SH/FP3/FP10SH7.1 Specifying Slot Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 - 3 7.1.1 With the FP2 and FP2SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 - 3 7.1.2 With the FP3 and FP10SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 - 4Appendix A SpecificationsA.1 Performance Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 3 A.1.1 FP0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 3 A.1.2 FP - e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 7 A.1.3 FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 11 A.1.4 FP1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 13 A.1.5 FP - M C16T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 15 A.1.6 FP - M C20/C32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 17 A.1.7 FP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 19 A.1.8 FP2SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 21 A.1.9 FP10SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 23iv
  • 6. Table of Contents A.1.10 FP3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A - 25Appendix B Programming InformationB.1 Table of System Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 2 B.1.1 Precartion for System Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 2 B.1.2 Content of System Register Settings . . . . . . . . . . . . . . . . . . . . . . . . . B - 4 B.1.3 Table of System Registers for FP0 . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 8 B.1.4 Table of System Registers for FP - e . . . . . . . . . . . . . . . . . . . . . . . . . B - 18 B.1.5 Table of System Registers for FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . B - 22 B.1.6 Table of System Registers for FP - M/FP1 . . . . . . . . . . . . . . . . . . . . B - 27 B.1.7 Table of System Registers for FP2/FP2SH/FP10SH . . . . . . . . . . . B - 37 B.1.8 Table of System Registers for FP3 . . . . . . . . . . . . . . . . . . . . . . . . . . B - 46B.2 Table of Special Internal Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 52 B.2.1 Table of Special Internal Relays for FP0/FP - e . . . . . . . . . . . . . . . . B - 52 B.2.2 Table of Special Internal Relays for FPΣ . . . . . . . . . . . . . . . . . . . . . B - 55 B.2.3 Table of Special Internal Relays for FP1/FP - M/FP2/FP2SH/FP10SH/FP3 . . . . . . . . . . . . . . . . . . . . . . . B - 62B.3 Table of Special Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 73 B.3.1 Special Data Registers for FP0/FP - e . . . . . . . . . . . . . . . . . . . . . . . B - 73 B.3.2 Special Data Registers for FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 81 B.3.3 Special Data Registers for FP - M/FP1 . . . . . . . . . . . . . . . . . . . . . . . B - 95 B.3.4 Special Data Registers for FP2/FP2SH/FP3/FP10SH . . . . . . . . . B - 109B.4 Binary/Hexadecimal/BCD/Gray Code Expressions . . . . . . . . . . . . . . . . . . . B - 132B.5 ASCII Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B - 133Appendix 1 Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E1 - 1 Error Confirmation When the Error LED Turns ON Table of Syntax Check Error Table of Self-Diagnostic Error Table of Communication Check ErrorAppendix 2 Table of Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P2 - 1 Table of Basic Instructions Table of High-level InstructionsIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I - 1Record of changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R - 1 v
  • 7. Table of ContentsBasic InstructionsSequence basic instructions TMX On - delay timer TMX . . . . 2 - 42ST Start . . . . . . . . . . . . . . . . . . . 2 - 8 TMY On - delay timer TMY . . . . 2 - 42ST/ Start Not . . . . . . . . . . . . . . . 2 - 8 CT Counter . . . . . . . . . . . . . . . 2 - 48OT Out . . . . . . . . . . . . . . . . . . . . 2 - 8 SR Shift register . . . . . . . . . . . 2 - 54/ Not . . . . . . . . . . . . . . . . . . . 2 - 10AN AND . . . . . . . . . . . . . . . . . . 2 - 11 Control instructionsAN/ AND Not . . . . . . . . . . . . . . 2 - 11 MC Master control relay . . . . . 2 - 57OR OR . . . . . . . . . . . . . . . . . . . 2 - 12 MCE Master control relay end . 2 - 57 JP Jump . . . . . . . . . . . . . . . . . 2 - 61OR/ OR Not . . . . . . . . . . . . . . . . 2 - 12 LBL Label . . . . . . . . . . 2 - 61, 2 - 64ST↑ Leading edge start . . . . . . 2 - 14 LOOP Loop . . . . . . . . . . . . . . . . . . 2 - 64ST↓ Trailing edge start . . . . . . 2 - 14 BRK Break . . . . . . . . . . . . . . . . . 2 - 68AN↑ Leading edge AND . . . . . 2 - 14 ED End . . . . . . . . . . . . . . . . . . . 2 - 70AN↓ Trailing edge AND . . . . . . 2 - 14 CNDE Conditional end . . . . . . . . 2 - 71OR↑ Leading edge OR . . . . . . . 2 - 14 EJECT Eject . . . . . . . . . . . . . . . . . . . 2 - 73OR↓ Trailing edge OR . . . . . . . 2 - 14OT↑ Leading edge out . . . . . . . 2 - 16 Step ladder instructionsOT↓ Trailing edge out . . . . . . . 2 - 16 SSTP Start step . . . . . . . . . . . . . . 2 - 75ALT Alternative out . . . . . . . . . 2 - 18 NSTL Next step . . . . . . . . . . . . . . 2 - 75ANS AND stack . . . . . . . . . . . . . 2 - 19 NSTP Next step . . . . . . . . . . . . . . 2 - 75ORS OR stack . . . . . . . . . . . . . . 2 - 21 CSTP Clear step . . . . . . . . . . . . . 2 - 75PSHS Push stack . . . . . . . . . . . . 2 - 23 STPE Step end . . . . . . . . . . . . . . 2 - 75RDS Read stack . . . . . . . . . . . . 2 - 23 SCLR Clear multiple steps . . . . . 2 - 85POPS Pop stack . . . . . . . . . . . . . 2 - 23DF Leading edge differential 2 - 26 Subroutine instructionsDF/ Trailing edge differential . 2 - 26 CALL Subroutine call . . . . . . . . . 2 - 86DFI Leading edge differential FCAL Output off type (initial execution type) . . . 2 - 30 subroutine call . . . . . . . . . 2 - 89SET Set . . . . . . . . . . . . . . . . . . . 2 - 32 SUB Subroutine entry . . . . . . . . 2 - 86RST Reset . . . . . . . . . . . . . . . . . 2 - 32 RET Subroutine return . . . . . . . 2 - 86KP Keep . . . . . . . . . . . . . . . . . 2 - 34NOP No operation . . . . . . . . . . . 2 - 35 Interrupt instructions INT Interrupt . . . . . . . . . . . . . . . 2 - 97Basic function instructions IRET Interrupt return . . . . . . . . . 2 - 97TML On - delay timer TML . . . . 2 - 36 ICTL Interrupt control 2 - 102, 2 - 109TMR On - delay timer TMR . . . . 2 - 42vi
  • 8. Table of ContentsSpecial setting instructions AN< 16 - bit data compare (AND) . . . . . . . . . . . . . . . . 2 - 136SYS1 Communication conditions setting . . . . . . . . . . . . . . . 2 - 116 AN<= 16 - bit data compare Password setting . . . . . . 2 - 120 (AND) . . . . . . . . . . . . . . . . 2 - 136 Interrupt setting . . . . . . . 2 - 122 AND= 32 - bit data compare (AND) . . . . . . . . . . . . . . . . 2 - 138 PLC link time setting . . . 2 - 124 RS485 response time AND<> 32 - bit data compare control . . . . . . . . . . . . . . . 2 - 126 (AND) . . . . . . . . . . . . . . . . 2 - 138SYS2 Change system registers AND> 32 - bit data compare (No.40 to No.47) . . . . . . 2 - 128 (AND) . . . . . . . . . . . . . . . . 2 - 138 AND>= 32 - bit data compareData compare instructions (AND) . . . . . . . . . . . . . . . . 2 - 138ST= 16 - bit data compare AND< 32 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 132 (AND) . . . . . . . . . . . . . . . . 2 - 138ST<> 16 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 132 AND<= 32 - bit data compare (AND) . . . . . . . . . . . . . . . . 2 - 138ST> 16 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 132 OR= 16 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 140ST>= 16 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 132 OR<> 16 - bit data compareST< 16 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 140 (Start) . . . . . . . . . . . . . . . . 2 - 132 OR> 16 - bit data compareST<= 16 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 140 (Start) . . . . . . . . . . . . . . . . 2 - 132STD= 32 - bit data compare OR>= 16 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 134 (OR) . . . . . . . . . . . . . . . . . 2 - 140STD<> 32 - bit data compare OR< 16 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 134 (OR) . . . . . . . . . . . . . . . . . 2 - 140STD> 32 - bit data compare OR<= 16 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 134 (OR) . . . . . . . . . . . . . . . . . 2 - 140STD>= 32 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 134 ORD= 32 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 142STD< 32 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 134 ORD<> 32 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 142STD<= 32 - bit data compare (Start) . . . . . . . . . . . . . . . . 2 - 134 ORD> 32 - bit data compareAN= 16 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 142 (AND) . . . . . . . . . . . . . . . . 2 - 136 ORD>= 32 - bit data compareAN<> 16 - bit data compare (OR) . . . . . . . . . . . . . . . . . 2 - 142 (AND) . . . . . . . . . . . . . . . . 2 - 136AN> 16 - bit data compare ORD< 32 - bit data compare (AND) . . . . . . . . . . . . . . . . 2 - 136 (OR) . . . . . . . . . . . . . . . . . 2 - 142AN>= 16 - bit data compare ORD<= 32 - bit data compare (AND) . . . . . . . . . . . . . . . . 2 - 136 (OR) . . . . . . . . . . . . . . . . . 2 - 142 vii
  • 9. Table of ContentsHigh - level InstructionsData transfer instructionsF0 MV 16-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 8P0 PMVF1 DMV 32-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 10P1 PDMVF2 MV/ 16-bit data invert and move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 12P2 PMV/F3 DMV/ 32-bit data invert and move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 14P3 PDMV/F4 GETS Reading of head word No. of the specified slot. . . . . . . . . . . . . . 3 - 16P4 PGETSF5 BTM Bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 17P5 PBTMF6 DGT Hexadecimal digit (4-bit) data move . . . . . . . . . . . . . . . . . . . . . . . 3 - 21P6 PDGTF7 MV2 Two 16-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 25P7 PMV2F8 DMV2 Two 32-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 27P8 PDMV2F10 BKMV Block move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 29P10 PBKMVF11 COPY Block copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 31P11 PCOPYF12 ICRD Data read from EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 32 Data read from F - ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 34F12 ICRD Data read from IC card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 37P12 PICRDP13 PICWT Data write to EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 38 Data write to F - ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 40F13 ICWT Data write to IC card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 43P13 PICWTF14 PGRD Program read from IC card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 45P14 PPGRDF15 XCH 16-bit data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 49P15 PXCHF16 DXCH 32-bit data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 51P16 PDXCHF17 SWAP Higher/ lower byte in 16-bit data exchange . . . . . . . . . . . . . . . . . 3 - 53P17 PSWAPF18 BXCH 16 - bit blocked data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 55P18 PBXCHviii
  • 10. Table of ContentsControl instructionF19 SJP Auxiliary jump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 57Binary arithmetic instructionsF20 + 16-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 59P20 P+F21 D+ 32-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 61P21 PD+F22 + 16-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 63P22 P+F23 D+ 32-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 65P23 PD+F25 - 16-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 67P25 P-F26 D- 32-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 69P26 PD -F27 - 16-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 71P27 P-F28 D- 32-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 73P28 PD -F30 * 16-bit data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 75P30 P*F31 D* 32-bit data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 77P31 PD*F32 % 16-bit data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 79P32 P%F33 D% 32-bit data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 81P33 PD%F34 *W 16-bit data multiplication (result in 16 bits) . . . . . . . . . . . . . . . . . . 3 - 83P34 P*WF35 +1 16-bit data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 85P35 P+1F36 D+1 32-bit data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 87P36 PD+1F37 -1 16-bit data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 89P37 P-1F38 D-1 32-bit data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 91P38 PD - 1F39 D*D 32-bit data multiplication (result in 32 bits) . . . . . . . . . . . . . . . . . . 3 - 93P39 PD*DBCD arithmetic instructionsF40 B+ 4-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 95P40 PB+F41 DB+ 8-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 97P41 PDB+ ix
  • 11. Table of ContentsF42 B+ 4-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 99P42 PB+F43 DB+ 8-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 101P43 PDB+F45 B- 4-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 103P45 PB -F46 DB - 8-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 105P46 PDB -F47 B- 4-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 107P47 PB -F48 DB - 8-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 109P48 PDB -F50 B* 4-digit BCD data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 111P50 PB*F51 DB* 8-digit BCD data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 113P51 PDB*F52 B% 4-digit BCD data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 115P52 PB%F53 DB% 8-digit BCD data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 117P53 PDB%F55 B+1 4-digit BCD data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 119P55 PB+1F56 DB+1 8-digit BCD data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 121P56 PDB+1F57 B-1 4-digit BCD data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 123P57 PB - 1F58 DB - 1 8-digit BCD data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 125P58 PDB - 1Data compare instructionsF60 CMP 16-bit data comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 127P60 PCMPF61 DCMP 32-bit data comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 131P61 PDCMPF62 WIN 16-bit data band comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 135P62 PWINF63 DWIN 32-bit data band comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 137P63 PDWINF64 BCMP Block data comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 139P64 PBCMPLogic operation instructionsF65 WAN 16-bit data AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 143P65 PWANF66 WOR 16-bit data OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 145P66 PWORx
  • 12. Table of ContentsF67 XOR 16-bit data exclusive OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 147P67 PXORF68 XNR 16-bit data exclusive NOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 149P68 PXNRF69 WUNI 16-bit data unite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 151P69 PWUNIData conversion instructionsF70 BCC Block check code calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 153P70 PBCCF71 HEXA Hexadecimal data → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . 3 - 156P71 PHEXAF72 AHEX ASCII code → Hexadecimal data . . . . . . . . . . . . . . . . . . . . . . . . 3 - 159P72 PAHEXF73 BCDA BCD date →ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 163P73 PBCDAF74 ABCD ASCII code → BCD data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 167P74 PABCDF75 BINA 16-bit binary data → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 171P75 PBINAF76 ABIN ASCII code → 16-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 175P76 PABINF77 DBIA 32-bit binary data → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 178P77 PDBIAF78 DABI ASCII code → 32-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 181P78 PDABIF80 BCD 16-bit binary data → 4-digit BCD data . . . . . . . . . . . . . . . . . . . . 3 - 185P80 PBCDF81 BIN 4-digit BCD data → 16-bit binary data . . . . . . . . . . . . . . . . . . . . 3 - 187P81 PBINF82 DBCD 32-bit binary data → 8-digit BCD data . . . . . . . . . . . . . . . . . . . . 3 - 189P82 PDBCDF83 DBIN 8-digit BCD data → 32-bit binary data . . . . . . . . . . . . . . . . . . . . 3 - 191P83 PDBINF84 INV 16-bit data invert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 192P84 PINVF85 NEG 16-bit data complement of 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 193P85 PNEGF86 DNEG 32-bit data complement of 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 195P86 PDNEGF87 ABS 16-bit data absolute value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 197P87 PABSF88 DABS 32-bit data absolute value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 198P88 PDABSF89 EXT 16-bit data sign extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 199P89 PEXT xi
  • 13. Table of ContentsF90 DECO Decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 201P90 PDECOF91 SEGT 7-segment decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 205P91 PSEGTF92 ENCO Encode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 207P92 PENCOF93 UNIT 16-bit data combine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 211P93 PUNITF94 DIST 16-bit data distribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 213P94 PDISTF95 ASC Character → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 215P95 PASCF96 SRC 16-bit data search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 219P96 PSRCF97 DSRC 32-bit data search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 221P97 PDSRCData shift instructionsF98 CMPR Data table shift-out and compress . . . . . . . . . . . . . . . . . . . . . . . . 3 - 223P98 PCMPRF99 CMPW Data table shift-in and compress . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 226P99 PCMPWF100 SHR Right shift of multiple bits (n bits) in a 16-bit data . . . . . . . . . . . 3 - 229P100 PSHRF101 SHL Left shift of multiple bits (n bits) in a 16-bit data . . . . . . . . . . . . 3 - 231P101 PSHLF102 DSHR Right shift of n bits in a 32-bit data . . . . . . . . . . . . . . . . . . . . . . . 3 - 233P102 PDSHRF103 DSHL Left shift of n bits in a 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 235P103 PDSHLF105 BSR Right shift of one hexadecimal digit (4 bits) . . . . . . . . . . . . . . . . 3 - 237P105 PBSRF106 BSL Left shift of one hexadecimal digit (4 bits) . . . . . . . . . . . . . . . . . 3 - 239P106 PBSLF108 BITR Right shift of multiple bits of 16 - bit data range . . . . . . . . . . . . . 3 - 241P108 PBITRF109 BITL Left shift of multiple bits of 16 - bit data range . . . . . . . . . . . . . . 3 - 243P109 PBITLF110 WSHR Right shift of one word (16 bits) of 16 - bit data range . . . . . . . . 3 - 245P110 PWSHRF111 WSHL Left shift of one word (16 bits) of 16 - bit data range . . . . . . . . . 3 - 247P111 PWSHLF112 WBSR Right shift of one hexadecimal digit (4-bit) of 16 - bit data range 3 - 249P112 PWBSRF113 WBSL Left shift of one hexadecimal digit (4-bit) of 16 - bit data range 3 - 251P113 PWBSLxii
  • 14. Table of ContentsFIFO instructionsF115 FIFT FIFO buffer definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 253P115 PFIFTF116 FIFR Data read from FIFO buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 255P116 PFIFRF117 FIFW Data write to FIFO buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 259P117 PFIFWBasic function instructionsF118 UDC UP/DOWN counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 266F119 LRSR Left/right shift register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 269Data rotate instructionsF120 ROR 16-bit data right rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 273P120 PRORF121 ROL 16-bit data left rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 275P121 PROLF122 RCR 16-bit data right rotation with carry flag data . . . . . . . . . . . . . . . 3 - 277P122 PRCRF123 RCL 16-bit data left rotation with carry flag data . . . . . . . . . . . . . . . . 3 - 279P123 PRCLF125 DROR 32-bit data right rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 281P125 PDRORF126 DROL 32-bit data left rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 283P126 PDROLF127 DRCR 32-bit data right rotation with carry flag data . . . . . . . . . . . . . . . 3 - 285P127 PDRCRF128 DRCL 32-bit data left rotation with carry flag data . . . . . . . . . . . . . . . . 3 - 287P128 PDRCLBit manipulation instructionsF130 BTS 16-bit data bit set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 289P130 PBTSF131 BTR 16-bit data bit reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 291P131 PBTRF132 BTI 16-bit data bit invert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 293P132 PBTIF133 BTT 16-bit data bit test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 295P133 PBTTF135 BCU Number of on (1) bits in 16-bit data . . . . . . . . . . . . . . . . . . . . . . . 3 - 297P135 PBCUF136 DBCU Number of on (1) bits in 32-bit data . . . . . . . . . . . . . . . . . . . . . . . 3 - 299P136 PDBCUBasic function instructionF137 STMR Auxiliary timer (16 - bit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 301 xiii
  • 15. Table of ContentsSpecial instructionsF138 HMSS Hours, minutes, and seconds data to seconds data . . . . . . . . . 3 - 304P138 PHMSSF139 SHMS Seconds data to hours, minutes, and seconds data . . . . . . . . . 3 - 306P139 PSHMSF140 STC Carry flag (R9009) set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 309P140 PSTCF141 CLC Carry flag (R9009) reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 310P141 PCLCF142 WDT Watching dog timer update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 311P142 PWDTF143 IORF Partial I/O update for FP0/FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 313 Partial I/O update for FP1/FP - M . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 313F143 IORF Partial I/O update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 315P143 PIORFF144 TRNS Serial data communication for FP0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 318 for FP1/FP - M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 324 for FP2/FP2SH/FP3/FP10SH . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 333F145 SEND Data send (MEWNET link) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 344P145 PSENDF146 RECV Data receive (MEWNET link) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 354P146 PRECVF147 PR Printout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 364F148 ERR Self-diagnostic error set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 368P148 PERRF149 MSG Message display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 370P149 PMSGF150 READ Data read from intelligent unit . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 373P150 PREADF151 WRT Data write into intelligent unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 376P151 PWRTF152 RMRD Data read from MEWNET-F slave station . . . . . . . . . . . . . . . . . 3 - 379P152 PRMRDF153 RMWT Data write into MEWNET-F slave station . . . . . . . . . . . . . . . . . . 3 - 383P153 PRMWTF155 SMPL Sampling start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 387P155 PSMPLF156 STRG Sampling stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 389P156 PSTRGF157 CADD Time addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 391P157 PCADDF158 CSUB Time substruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 394P158 PCSUBF159 MTRN Serial data communicationP159 PMTRN for FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 398 for FP2/FP2SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 406xiv
  • 16. Table of ContentsF161 MRCV Serial data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 410P161 PMRCVBIN arithmetic instructionsF160 DSQR 32-bit data square root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 413P160 PDSQRSpecial instructions (High - speed counter instructions)F0 MV High - speed counter control for FP1/FP - M . . . . . . . . . . . . . . . . 3 - 415 High - speed counter control for FP0/FPΣ . . . . . . . . . . . . . . . . . 3 - 436 Pulse output control for FP0/FPΣ . . . . . . . . . . . . . . . . . . . . . . . . 3 - 440F1 DMV Set and read of the elapsed value of high - speed counter for FP1/FP - M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 420 Writing and reading the high - speed counter and pulse output elapsed value for FP0/FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 444F162 HC0S High - speed counter output set . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 423F163 HC0R High - speed counter output reset . . . . . . . . . . . . . . . . . . . . . . . . 3 - 425F164 SPD0 Pulse output control (Transistor output type) . . . . . . . . . . . . . . . 3 - 427 Pattern output control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 431F165 CAM0 Cam control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 436F166 HC1S Target value match on (with channel specification) . . . . . . . . . 3 - 456F167 HC1R Target value match off (with channel specification) . . . . . . . . . 3 - 458F168 SPD1 Positioning control (trapezoidal control) . . . . . . . . . . . . . . . . . . . 3 - 460 Positioning control (home position return) . . . . . . . . . . . . . . . . . 3 - 456F169 PLS Pulse output (with channel specification)(JOG operation) . . . . 3 - 468F170 PWM PWM output (with channel specification) . . . . . . . . . . . . . . . . . . 3 - 470F171 SPDH Pulse output (with channel specification) (trapezoidal control) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 464 (home position return) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 468F172 PLSH Pulse output (with channel specification)(JOG operation) . . . . 3 - 473F173 PWMH PWM output (with channel specification) . . . . . . . . . . . . . . . . . . 3 - 476F174 SP0H Pulse output (with channel specification) (Selectable data table control operation) . . . . . . . . . . . . . . . . . 3 - 479F175 SPSH Pulse output (Linear interpolation) . . . . . . . . . . . . . . . . . . . . . . . 3 - 483F176 SPCH Pulse output (Circular interpolation) . . . . . . . . . . . . . . . . . . . . . . 3 - 488Screen display instructionsF180 SCR FP - e screen display registration . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 492F181 DSP FP - e screen display switching . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 495Basic function instructionF183 DSTM Auxiliary timer (32-bit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 504 xv
  • 17. Table of ContentsData transfer instructionsF190 MV3 Three 16-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 508P190 PMV3F191 DMV3 Three 32-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 510P191 PDMV3Logic operation instructionsF215 DAND 32-bit data AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 512P215 PDANDF216 DOR 32-bit data OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 514P216 PDORF217 DXOR 32-bit data XOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 516P217 PDXORF218 DXNR 32-bit data XNR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 518P218 PDXNRF219 DUNI 32-bit data unites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 520P219 PDUNIF230 TMSEC Time data Second conversion . . . . . . . . . . . . . . . . . . . . . . . . 3 - 522P230 PTMSECF231 SECTM Second Time data conversion . . . . . . . . . . . . . . . . . . . . . . . . 3 - 524P231 PSECTMData conversion instructionsF235 GRY 16 - bit data → Gray code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 526P235 PGRYF236 DGRY 32 - bit data → Gray code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 527P236 PDGRYF237 GBIN 16 - bit Gray code → 16 - bit binary data . . . . . . . . . . . . . . . . . . . 3 - 528P237 PGBINF238 DGBIN 32 - bit Gray code → 32 - bit binary data . . . . . . . . . . . . . . . . . . . . 3 - 529P238 PDGBINF240 COLM Bit line to bit column conversion . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 532P240 PCOLMF241 LINE Bit column to bit line conversion . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 534P241 PLINECharacter string instructionsF257 SCMP Comparing character strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 526P257 PSCMPF258 SADD Character string coupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 528P258 PSADDF259 LEN Number of characters in a character string . . . . . . . . . . . . . . . . 3 - 530P259 PLENF260 SSRC Search for character string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 532P260 PSSRCxvi
  • 18. Table of ContentsF261 RIGHT Retrieving data from character strings (right side) . . . . . . . . . . 3 - 534P261 PRIGHTF262 LEFT Retrieving data from character strings (left side) . . . . . . . . . . . 3 - 536P262 PLEFTF263 MIDR Retrieving a character string from a character string . . . . . . . . 3 - 538P263 PMIDRF264 MIDW Writing a character string to a character string . . . . . . . . . . . . . 3 - 540P264 PMIDWF265 SREP Replacing character strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 542P265 PSREPInteger type data processing instructionsF270 MAX Maximum value search in 16-bit data table . . . . . . . . . . . . . . . . 3 - 556P270 PMAXF271 DMAX Maximum value search in 32-bit data table . . . . . . . . . . . . . . . . 3 - 558P271 PDMAXF272 MIN Minimum value search in 16-bit data table . . . . . . . . . . . . . . . . . 3 - 560P272 PMINF273 DMIN Minimum value search in 32-bit data table . . . . . . . . . . . . . . . . . 3 - 562P273 PDMINF275 MEAN Total and mean numbers calculation in 16-bit data table . . . . . 3 - 564P275 PMEANF276 DMEAN Total and mean numbers calculation in 32-bit data table . . . . . 3 - 566P276 PDMEANF277 SORT Sort data in 16-bit data table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 568P277 PSORTF278 DSORT Sort data in 32-bit data table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 570P278 PDSORTF282 SCAL Scaling of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 560P282 PSCALF283 DSCAL Scaling of 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 562P283 PDSCALInteger type non-linear function instructionsF285 LIMT 16-bit data upper and lower limit control . . . . . . . . . . . . . . . . . . . 3 - 576P285 PLIMTF286 DLIMT 32-bit data upper and lower limit control . . . . . . . . . . . . . . . . . . . 3 - 578P286 PDLIMTF287 BAND 16-bit data deadband control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 580P287 PBANDF288 DBAND 32-bit data deadband control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 582P288 PDBANDF289 ZONE 16-bit data zone control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 584P289 PZONEF290 DZONE 32-bit data zone control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 586P290 PDZONE xvii
  • 19. Table of ContentsBCD type real number operation instructionsF300 BSIN BCD type Sine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 588P300 PBSINF301 BCOS BCD type Cosine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 590P301 PBCOSF302 BTAN BCD type Tangent operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 592P302 PBTANF303 BASIN BCD type Arcsine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 594P303 PBASINF304 BACOS BCD type Arccosine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 596P304 PBACOSF305 BATAN BCD type Arctangent operation . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 598P305 PBATANFloating point type real number operation instructions (for FP2/FP2SH/FP10SH)F309 FMV Floating point data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 600P309 PFMVF310 F+ Floating point data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 602P310 PF+F311 F- Floating point data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 604P311 PF -F312 F* Floating point data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 606P312 PF*F313 F% Floating point data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 608P313 PF%F314 SIN Floating point data Sine operation . . . . . . . . . . . . . . . . . . . . . . . . 3 - 610P314 PSINF315 COS Floating point data Cosine operation . . . . . . . . . . . . . . . . . . . . . 3 - 612P315 PCOSF316 TAN Floating point data Tangent operation . . . . . . . . . . . . . . . . . . . . . 3 - 614P316 PTANF317 ASIN Floating point data Arcsine operation . . . . . . . . . . . . . . . . . . . . . 3 - 616P317 PASINF318 ACOS Floating point data Arccosine operation . . . . . . . . . . . . . . . . . . . 3 - 618P318 PACOSF319 ATAN Floating point data Arctangent operation . . . . . . . . . . . . . . . . . . 3 - 620P319 PATANF320 LN Floating point data natural logarithm . . . . . . . . . . . . . . . . . . . . . . 3 - 622P320 PLNF321 EXP Floating point data exponent . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 624P321 PEXPF322 LOG Floating point data logarithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 626P322 PLOGF323 PWR Floating point data power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 628P323 PPWRxviii
  • 20. Table of ContentsF324 FSQR Floating point data square root . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 630P324 PFSQRF325 FLT 16-bit integer data → Floating point real number data . . . . . . . 3 - 632P325 PFLTF326 DFLT 32-bit integer data → Floating point real number data . . . . . . . 3 - 634P326 PDFLTF327 INT Floating point real number data →16-bit integer data (largestP327 PINT integer not exceeding the floating point real number data) . . . 3 - 636F328 DINT Floating point real number data → 32-bit integer data (largestP328 PDINT integer not exceeding the floating point real number data) . . 3 - 638F329 FIX Floating point real number data →16-bit integer dataP329 PFIX (rounding the first decimal point down to integer) . . . . . . . . . . . 3 - 640F330 DFIX Floating point real number data →32-bit integer dataP330 PDFIX (rounding the first decimal point down to integer) . . . . . . . . . . . 3 - 642F331 ROFF Floating point real number data →16-bit integer dataP331 PROFF (rounding the first decimal point off to integer) . . . . . . . . . . . . . 3 - 644F332 DROFF Floating point real number data →32-bit integer dataP332 PDROFF (rounding the first decimal point off to integer) . . . . . . . . . . . . . 3 - 646F333 FINT Floating point real number data rounding the first decimalP333 PFINT point down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 648F334 FRINT Floating point real number data rounding the first decimalP334 PFRINT point off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 650F335 F+/ - Floating point real number data sign changes . . . . . . . . . . . . . . 3 - 652P335 PF+/ -F336 FABS Floating point real number data absolute . . . . . . . . . . . . . . . . . . 3 - 654P336 PFABSF337 RAD Floating point real number data conversion of angle unitsP337 PRAD (Degrees → Radians) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 656F338 DEG Floating point real number data conversion of angle unitsP338 PDEG (Radians → Degrees) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 658Floating point type real number data processing instructionsF345 FCMP Floating point real number data comparison . . . . . . . . . . . . . . . 3 - 660P345 PFCMPF346 FWIN Floating point real number data band comparison . . . . . . . . . . 3 - 662P346 PFWINF347 FLIMT Floating point data upper and lower limit control for realP347 PFLIMT number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 664F348 FBAND Floating point real number data deadband control . . . . . . . . . . 3 - 666P348 PFBANDF349 FZONE Floating point real number data zone control . . . . . . . . . . . . . . 3 - 668P349 PFZONEF350 FMAX Maximum value search in floating point real number dataP350 PFMAX table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 670 xix
  • 21. Table of ContentsF351 FMIN Minimum value search in floating point real number dataP351 PFMIN table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 672F352 FMEAN Total and mean numbers calculation in floating point realP352 PFMEAN number data table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 674F353 FSORT Sort data in real number floating point data table . . . . . . . . . . . 3 - 676P353 PFSORTF354 FSCAL Scaling of real number data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 678P354 PFSCALTime series processing instructionF355 PID PID processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 680Compare instructionsF373 DTR 16-bit data revision detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 688P373 PDTRF374 DDTR 32-bit data revision detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 690P374 PDDTRIndex register bank processing instructionsF410 SETB Setting the index register bank number . . . . . . . . . . . . . . . . . . . 3 - 692P410 PSETBF411 CHGB Changing the index register bank number . . . . . . . . . . . . . . . . . 3 - 694P411 PCHGBF412 POPB Restoring the index register bank number . . . . . . . . . . . . . . . . . 3 - 696P412 PPOPBFile register bank processing instructionsF414 SBFL Setting the file register bank number . . . . . . . . . . . . . . . . . . . . . 3 - 697P414 PSBFLF415 CBFL Changing the file register bank number . . . . . . . . . . . . . . . . . . . 3 - 698P415 PCBFLF416 PBFL Restoring the file register bank number . . . . . . . . . . . . . . . . . . . 3 - 699P416 PPBFLxx
  • 22. Chapter 1 Relays, Memory Areas and Constants
  • 23. Relays, Memory Areas and Constants1.1 Table of Relays, Memory Areas and Constants1.1.1 FP0/FP - eFP0Item Numbering Function C10/C14 C32/SL1 T32C /C16Relay External input (X) 208 points (X0 to X12F) Turns on/off based on external input. relay External output (Y) 208 points (Y0 to Y12F) Externally outputs on/off state. relay Internal relay (R) 1,008 points (R0 to R62F) Relay which turns on/off only within pro- (* Note 2) gram. Timer (T) 144 points If a TM instruction has timed out, the (* Note 2) ( ) (T0 to T99/C100 to C143) contact with the same number turns on. (* N t 1) Note Counter (C) If a CT instruction has counted up, the (* Note 2) contact with the same number turns on. Special internal (R) 64 points (R9000 to R903F) Relay which turns on/off based on spe- relay cific conditions and is used as a flag.Memory External input (WX) 13 words (WX0 to WX12) Code for specifying 16 external inputa eaarea relay points as one word (16 bits) of data. External output (WY) 13 words (WY0 to WY12) Code for specifying 16 external output relay points as one word (16 bits) of data. Internal relay (WR) 63 words (WR0 to WR62) Code for specifying 16 internal relay (* Note 2) points as one word (16 bits) of data. Data register (DT) 1,660 6,144 16,384 Data memory used in program. Data is (* Note 2) words words words handled in 16- bit units (one word). (DT0 to (DT0 to (DT0 to DT1659) DT6143) DT16383) Timer/Counter (SV) 144 words Data memory for storing a target value set value area (SV0 to SV143) of a timer and an initial value of a count- (* Note 2) er. Stores by timer/counter number. Timer/Counter (EV) 144 words Data memory for storing the elapsed elapsed value area (EV0 to EV143) value during operation of a timer/count- (* Note 2) er. Stores by timer/counter number. Special data (DT) 112 words 112 words Data memory for storing specific data. register (DT9000 to DT9111) (DT90000 Various settings and error codes are to stored. DT90111) Index register (I) 2 words (IX, IY) Register can be used as an address of memory area and constants modifier.Constant Decimal (K) K - 32768 to K32767 (for 16-bit operation) ( ) constants t t K - 2147483648 to K2147483647 (for 32-bit operation) Hexadecimal (H) H0 to HFFFF (for 16-bit operation) ( ) constants t t H0 to HFFFFFFFF (for 32-bit operation)1-2
  • 24. 1.1 Table of Relays, Memory Areas and ConstantsNotes 1) The points for the timer and counter can be changed by the setting of system register 5. The numbers given in the table are the numbers when system register 5 is at its default setting. 2) There are two unit types, the hold type that saves the conditions that exist just before turning the power off or changing form the RUN mode to PROG. mode, and the non - hold type that resets them. For the FP0 T32C, the selection of hold type and non - hold type can be changed by the setting of system register. These areas can be spcified as hold type or non - hold type by setting system register. For the FP0 C10/C14/C16/C32/SL1, that area is fixed and allotted the numbers as shown below. Hold type and Non-hold type areas Item C10/C14/C16 C32/SL1 Timer Non- hold type: All points Counter Non-hold type From the set value to C139 From the set value to C127 Hold type 4 points (elapsed values) 16 points (elapsed values) (C140 to C143) C128 to C143 Internal Non-hold type 976 points 880 points relay (R0 to R60F) (R0 to R54F) 61 words 55 words (WR0 to WR60) (WR0 to WR54) Hold type 32 points (R610 to R62F) 128 points (R550 to R62F) 2 words (WR61 to WR62) 8 words (WR55 to WR62) Data Non-hold type 1652 words 6112 words eg s e register (DT0 to DT1651) (DT0 to DT6111) Hold type 8 words 32 words (DT1652 to DT1659) (DT6112 to DT6143) 1-3
  • 25. Relays, Memory Areas and ConstantsFP - e Item Number Memory area available for use Function of points Matsushita IEC External input relay 208 X0 - X12F %IX0.0 - Turns on or off based on (see note 3) %IX12.15 external input. External output relay 208 Y0 - Y12F %QX0.0 - Outputs on or off state (see note 3) %QX12.15 externally. Internal relay 1008 R0 - R62F %MX0.0 - Turns on or off only within a (see note 2) %MX0.62.15 program. Timer 100 T0 - T99/ %MX1.0 - Turns on when the timer reaches (see notes 1 and 2) C100- C143 %MX1. 99/ the specified time.Relay %MX2.100- Corresponds to the timer %MX2.143 number. Counter 44 C100- C143/ %MX2.100- Turns on when the counter (see notes 1 and 2) T0 - T99 %MX2.143/ increments. %MX1.0 - Corresponds to the counter %MX1.99 number. Special internal relay 64 R9000 - R903F %MX0.900.0 - Turns on or off based on specific %MX0.903.15 conditions. Used as a flag. External input relay 13 words WX0 - WX12 %IW0 - Code for specifying 16 external (see note 3) %IW12 input points as one word (16 bits) of data. External output relay 13 words WY0 - WY12 %QW0 - Code for specifying 16 external (see note 3) %QW12 output points as one word (16 bits) of data. Internal relay 63 words WR0 - WR62 %MW0.0 - Code for specifying 16 internal (see note 2) %MW0.62 relay points as one word (16 bits) of data. Data register 1660 words DT0 - DT1659 %MW5.0 - Data memory used in a (see note 2) %MW5.1659 program. Data is handled in words) 16-bit units (one word).Memor area (wo Timer/counter set 144 words SV0 - SV143 %MW3.0 - Data memory for storing a target value area %MW3.143 value of a timer and an initial value of a counter. Stores by timer/counter number. ory Timer/counter elapsed 144 words EV0 - EV143 %MW4.0 - Data memory for storing the value area (see note 2) %MW4.143 elapsed value during operation of a timer/counter. Stores by timer/counter number. Special data 112 words DT9000 - %MW5.9000- Data memory for storing register DT9111 %MW5.9111 specific data. Various settings and error codes are stored. Index register 2 words IX - IY %MW6.0 - Used as an address of memory %MW6.1 area and constants modifier.1-4
  • 26. 1.1 Table of Relays, Memory Areas and Constants Item Number of Memory area available for use Function points Matsushita IEC External input relay 6 double DWX0 - DWX11 %ID0 - Code for specifying 32 external (see note 3) words %ID11 input points as a double wordMemory are (double word) (see note 4) (32 bits) of data. e External output relay 6 double DWY0 - DWY11 %QD0 - Code for specifying 32 external (see note 3) words %QD11 output points as double word (32 bits) of data. w Internal relay 31 double DWR0 - DWR61 %MD0.0 - Code for specifying 32 internal (see note 2) words %MD0.61 relay points as double word (32 bits) of data. rea Data register 830 double DDT0 - %MD5.0 - Data memory used in a (see note 2) words DDT1658 %MD5.1658 program. Data is handled in 32-bit units (double word).M Timer/counter set 72 double DSV0 - DSV142 %MD3.0 - Data memory for storing a value area words %MD3.142 target value of a timer and an initial value of a counter. Stores by timer/counter number. Timer/counter 72 double DEV0 - DEV142 %MD4.0 - Data memory for storing the elapsed value area (see words %MD4.142 elapsed value during operation note 2) of a timer/counter. Stores by timer/counter number. Special data 56 double DDT9000 - %MD5.9000- Data memory for storing register words DDT9110 %MD5.9110 specific data. Various settings and error codes are stored. Index register 1 double DI0 %MD6.0 Used as an address of words memory area and constants modifier. Item Range available for use g Matsushita IEC Decimal constants K - 32768 to K32767 (for 16-bit operation) - 32768 to 32767 (for 16-bit operation) (integral type) K - 2147483648 to K2147483647 - 2147483648 to 2147483647 (for 32-bit operation) (for 32-bit operation) Hexadecimal H0 to HFFFF (for 16-bit operation) 16#0 to 16#FFFF (for 16-bit operation) ant constantsConsta H0 to HFFFFFFFF (for 32-bit operation) 16#0 to 16#FFFFFFFF (for 32-bit operation)C Decimal constants F - 1.175494×10 - 38 to F - 3.402823×1038 - 1.17549410E - 38 to - 3.402823E38 (monorefined real number) F1.175494×10 - 38 to F3.402823×1038 1.17549410E - 38 to 3.402823E38 1-5
  • 27. Relays, Memory Areas and Constants Notes 1) The points for the timer and counter can be changed by the setting of System register No. 5. The number given in the table above are the numbers when System register No. 5 is at its default setting. 2) There are two unit types; the hold type that saves the conditions that exist just before turning the power off or changing from the RUN mode to PROG. mode, and the non - hold type that resets them. These areas can be specified as hold type or non - hold type by setting system register. For the FP - e, that area is fixed and allotted the numbers as shown in the table below. For the FP - e with clock/calendar function type, the selection of hold type and non - hold type can be changed by the setting of system register. 3) The number of points noted above is the number reserved in the system. For the actual number of points available for use, refer to “I/O Allocation” in Appendix A. 4) Double words cannot be specified with FPWIN GR. Hold type and non - hold type areas*1 Model AFPE224300 AFPE224305 AFPE214325 (Standard type) (Calendar timer (Thermocouple type) input type) Timer Non- hold type: all points Counter Non-hold type From the set value to C139 Hold type yp C140 to C143, EV140 to EV143 (elapsed value) SV: non- hold *2 SV: hold Internal Non-hold type 976 points (R0 to R60F) e ay relay 61 words (WR0 to WR60) Hold type 32 points (R610 to R62F) 2 words (WR61 to WR62) Data Non-hold type 1652 words (DT0 to DT1651) register i t Hold type 8 words (DT1652 to DT1659) *1 When a battery is installed in a calendar timer type FP - e, the areas above can be changed using the system register. If a battery is not installed, the data cannot be stored even when the settings are changed using the system register. *2 Use the following methods for holding the SV data: - Set the transfer instruction for the special data register (DT) to hold the data. Then, perform the setting so that the data can be transferred from DT to SV after the RUN mode starts. - Use the FP - e model with a battery.1-6
  • 28. 1.1 Table of Relays, Memory Areas and Constants1.1.2 FPΣ Item