Panasonic AFPX-C30R User Manual

Panasonic AFPX-C30R User Manual

Fp-x series
Hide thumbs Also See for AFPX-C30R:
Table of Contents

Advertisement

PROGRAMMABLE CONTROLLER
FP-X
User' s Manual
ARCT1F409E-9
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic AFPX-C30R

  • Page 1 PROGRAMMABLE CONTROLLER FP-X User' s Manual ARCT1F409E-9 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 2 -This manual and its contents are copyrighted. -You may not copy this manual, in whole or part, without written consent of Panasonic Electric Works SUNX Co., Ltd. -Windows is a registered trademark of Microsoft Corporation in the United States and other countries.
  • Page 3: Table Of Contents

    Table of Contents Before You Start Differences in Functions Between Versions of Controller Restriction on using the Add-on cassette Programming Tool Restrictions 1. Features, Functions and Restrictions ........... 1-1 1.1 Features and Functions of the Unit ................1-2 1.2 Unit Types ........................1-6 1.3 Restrictions on Unit Combinations ................
  • Page 4 6. Tool Port and USB Port ................6-1 6.1 Tool Port and USB Port ....................6-2 6.2 Functions of Tool Port ....................6-3 6.3 USB Port ........................6-6 7. Communication Cassette ............... 7-1 7.1 Functions and Types ....................7-2 7.2 Communication Specifications ................7-16 7.3 Communication Function 1: Computer Link ............
  • Page 5 13. Self-Diagnostic and Troubleshooting ..........13-1 13.1 Self-Diagnostic function ..................13-2 13.2 Troubleshooting ...................... 13-4 14. Precautions During Programming ............. 14-1 14.1 Use of Duplicated Output ..................14-2 14.2 Handling BCD Data ....................14-4 14.3 Handling Index Registers ..................14-5 14.4 Operation Errors .....................
  • Page 6 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 7: Before You Start

    Before You Start Operating environment (Use the unit within the range of the general specifications when installing) *Ambient temperatures:0 ~ +55 ℃ *Ambient humidity: 10% to 95% RH (at 25°C, non-condensing) *Keep the height below 2000m. *For use in pollution Degree 2 environment. *Do not use it in the following environments.
  • Page 8 Before entering a program Be sure to perform a program clear operation before entering a program. Operation procedure when using FPWIN GR Ver.2 Select “Online Edit Mode” on the FPWIN GR “On line” menu. Select “Clear Program” on the “Edit” menu. When the confirmation dialog box is displayed, click on “Yes”...
  • Page 9: Differences In Functions Between Versions Of Controller

    Differences in Functions Between Versions of Controller Version Usable model Usable functions UP/DOWN switching of high-speed counter by SYS instruction Real number basic compare instructions 18 types STF=S1, S2 ANF=S1, S2 ORF=S1, S2 STF<>S1, S2 ANF<>S1, S2 ORF<>S1, S2 V1.10 Ry type STF>S1, S2 ANF>S1, S2 ORF>S1, S2 STF>=S1, S2 ANF>=S1, S2 ORF>=S1, S2...
  • Page 10: Restriction On Using The Add-On Cassette

    Restriction on using the Add-on cassette Application cassettes that the version of the FP-X control unit is specified FP-X Application cassette Version of control unit FP-X Analog output cassette AFPX-DA2 FP-X Analog I/O cassette AFPX-A21 Ver. 2.40 or later FP-X Thermocouple cassette AFPX-TC2 FP-X RTD cassette AFPX-RTD2...
  • Page 11: Programming Tool Restrictions

    Programming Tool Restrictions Restrictions on usable programming tools depending on the units (as of Feb. 2009) Type of unit AFPX-C14R AFPX-C14T, C14TD, C14P, C14PD Type of programming tool AFPX-C30R AFPX-C30T, C30TD, C30P, C30PD AFPX-C60R AFPX-C60T, C60TD, C60P, C60PD Used Used FPWIN GR Ver.2...
  • Page 12 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 13: Features, Functions And Restrictions

    Chapter 1 Features, Functions and Restrictions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 14: Features And Functions Of The Unit

    1.1 Features and Functions of the Unit Features • Compact size general-purpose PLC that is suitable for the small-scale facility control. • Can be directly connected to a personal computer using USB communication port. • High dimensional security functions to deal with copying programs. •...
  • Page 15 High dimensional security functions to deal with copying programs. The uploading disabling function prohibits uploading (reading) programs in the PLC main unit and prevent illegal copying. (It also enables to transfer the programs to the FP-X master memory cassette, when the uploading disabling function is specified).
  • Page 16 Supports Modbus RTU It can be used as a master unit/slave units (F145 and F146 instructions). It can be easily communicated with a temperature control device, inverter, FP-e or overseas PLCs. It is possible to communicate with up to 99 units MEWTOCOL communication It can be used as a master unit/slave units (F145 and F146 instructions).
  • Page 17 Positioning control supported through high-speed counter and pulse output With the FP-X Tr type, a high-speed counter function can be used by using the CPU I/O. With the FP-X Ry type, a high-speed counter and pulse output functions can be used by using the pulse I/O cassette.
  • Page 18: Unit Types

    1.2.1 FP-X Control Units No. of I/O Specifications Product No. points Power supply Input Output Connection Relay type (Ry type) AFPX-C14R AFPX-C30R 16/14 100 to 240 V AC 24 V DC AFPX-C60R 32/28 (Common Relay Terminal block polarities AFPX-C14RD + & - common)
  • Page 19 1.2.2 FP-X Expansion Unit E14/E16 No. of I/O Specifications Product No. points Power supply Input Output Connection Relay type (Ry type) AFPX-E16R 24 V DC Terminal AFPX-E30R 16/14 100 to 240 V AC (Common polarities Relay block + & - common) AFPX-E30RD 16/14 24 V DC...
  • Page 20 1.2.4 Add-on Cassettes (Communication cassettes/Application cassettes) Name Specifications Product No. FP-X Communication cassette 5-wire 1-channel RS232C AFPX-COM1 Communication FP-X Communication cassette 3-wire 2-channel RS232C AFPX-COM2 cassette 1-channel RS485/RS422 FP-X Communication cassette AFPX-COM3 (insulated) 1-channel RS485 (insulated) FP-X Communication cassette AFPX-COM4 3-wire 1-channel RS232C 2-channel RS485 (insulated) FP-X Communication cassette...
  • Page 21 1.2.5 Related Parts Name Description Product No. Necessary for the backup of FP-X Backup battery data registers, etc. or for using AFPX-BATT the realtime clock function. For C30/C60 control unit FP-X terminal block for E30 expansion I/O unit AFPX-TAN1 (C30/C60) with 21-pin cover (no printing) 4 pcs/pack 8 cm...
  • Page 22: Restrictions On Unit Combinations

    1.3 Restrictions on Unit Combinations 1.3.1 Restrictions on FP-X Expansion Unit Controllable I/O points Number of I/O points when Number of I/O points when Type of control unit using 8 units of E30 using control unit expansion I/O unit FP-X C14 Control unit 14 points Max.
  • Page 23 1.3.2 Restrictions on FP0 Expansion Unit Up to three dedicated FP0 expansion units can be added using the FP-X and the expansion FP0 adapter. The relay output type and the transistor output type can be used in combination. Controllable I/O points Number of I/O points when Number of I/O points when Type of control unit...
  • Page 24 1.3.3 Restrictions on FP-X Add-on Cassette The add-on cassette is installed in the cassette mounting part 1 and 2 (only the cassette mounting part 1 is available for C14) of the control unit. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 25 A: Available, N/A: Not available FP-X C14 FP-X C30 Restrictions on control unit FP-X C30 FP-X C60 FP-X C60 FP-X C60 Cassette Cassette Expansion Type of add-on cassette mounting mounting connector part 1 part 2 part FP-X Communication cassette AFPX-COM1 FP-X Communication cassette AFPX-COM2 Commu-...
  • Page 26: Programming Tools

    Note1) Ver.1.1 must be installed to install the upgrade version. Note2) Ver.2.0 can be upgraded to the latest version after Ver. 2.1 free of charge at our web site (http://panasonic-denko.co.jp/ac/e/dl/software-list/patch/plc.jsp). Use the latest version. Conforms to IEC61131-3 programming tool software FPWIN-Pro Ver.6...
  • Page 27 Type of computer and suitable cable For the connection between a personal computer (RS232C) and the control unit (RS232C) PC side connector PLC side connector Specifications Product No. female-Mini DIN round 5-pin L type (3 m) AFC8503 D-sub 9-pin female-Mini DIN round 5-pin Straight type (3 m) AFC8503S Note) Note) A USB/RS232C conversion cable is necessary to connect the unit to the USB port of a...
  • Page 28 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 29: Specifications And Functions Of Control Unit

    Chapter 2 Specifications and Functions of Control Unit Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 30: Parts And Functions

    2.1 Parts and Functions 2.1.1 Parts and Functions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 31 ○ Status indicator LEDs These LEDs display the current mode of operation or the occurrence of an error. LED and operation status Lights when in the RUN mode and indicates that the program is being executed. Green It flashes during forced input/output. (The RUN and PROG. LEDs flash alternately.) Lights when in the PROG.
  • Page 32 ○ Tool port (RS232C) This port is used to connect a programming tool. A commercial mini-DIN 5-pin connector is used for the Tool port on the control unit. Pin No. Signal name Abbreviation Signal direction Signal Ground − Send Data Unit →...
  • Page 33: Power Supply Specifications

    2.2 Power Supply Specifications 2.2.1 AC Power Supply Specifications Item C30R/C60 Rated voltage 100 to 240 V AC Voltage regulation range 85 to 264 V AC Inrush current 40 A or less (at 240 V AC, 25 °C) 45 A or less (at 240 V AC, 25 °C) Momentary power off time 10 ms (when using 100 V AC) Frequency...
  • Page 34: Input Specifications

    2.3 Input Specifications 2.3.1 Relay (Ry) Type Input Specifications (For C14R/C30R/C60R control units) Item Description Insulation method Optical coupler Rated input voltage 24V DC Operating voltage range 21.6 to 26.4V DC Approx. 4.7 mA (for control units X0 to X7) Rated input current Approx.
  • Page 35 2.3.2 Transistor (Tr) Type (Common to NPN and PNP) Transistor type (common to NPN and PNP) Description Item C30/C60 Insulation method Optical coupler Rated input voltage 24V DC Operating voltage range 21.6 to 26.4V DC Approx. 8 mA (for control units X0 to X3) Rated input current Approx.
  • Page 36: Output Specifications

    2.4 Output Specifications 2.4.1 Relay (Ry) Type Relay output specifications (For C14R/C30R/C60R control units) Description Item C30/C60 Insulation method Relay insulation Output type 1a output (Relay cannot be replaced) 2 A 250 V AC, 2 A 30 V DC Note) Rated control capacity (6 A or less/common) (8 A or less/common)
  • Page 37 2.4.2 Transistor (Tr) Type (NPN) Output specifications Description Item C30/C60 Insulation method Optical coupler Output type Open collector Rated load voltage 5 to 24 V DC Allowable load voltage 4.75 to 26.4 V DC range Max. load current 0.5 A Max.
  • Page 38 2.4.3 Transistor (Tr) Type (PNP) Output specifications Description Item C30/C60 Insulation method Optical coupler Output type Open collector Rated load voltage 24 V DC Allowable load voltage 21.6 to 26.4 V DC range Max. load current 0.5 A Max. inrush current 1.5 A Input points per common 6 points/Common...
  • Page 39: Limitations On Number Of Simultaneous Input/Output On Points

    Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14R - Configuration Stand-alone ○ COM5 ○ AFPX-C30R AFPX-C60R AFPX-C14RD AFPX-C30RD AFPX-C60RD Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 40 AFPX-C14R - Configuration ○ ○ A21+A21 ○ DA2+DA2 (*) DA2+A21 (*) AFPX-C30R * Up to 2 channels can be used for the current output. AFPX-C60R AFPX-C14RD AFPX-C30RD AFPX-C60RD Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 41 Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14R - Configuration ○ ○ A21+A21 ○ DA2+DA2 DA2+A21 AFPX-C30R AFPX-C60R AFPX-C14RD AFPX-C30RD AFPX-C60RD Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 42 2.5.4 Transistor (Tr) Type (NPN) (Stand-alone and With AFPX-COM5) Keep the number of points which are simultaneously on within the following range as determined by the ambient temperature. Limitations on number of Limitations on number of Product number simultaneous output on simultaneous input on points points - Configuration...
  • Page 43 2.5.5 Transistor (Tr) Type (NPN) (With AFPX-DA2 and A21 (Current Output)) Keep the number of points which are simultaneously on within the following range as determined by the ambient temperature. Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14T...
  • Page 44 2.5.6 Transistor (Tr) Type (NPN) (With AFPX-DA2 and A21 (Voltage Output) Keep the number of points which are simultaneously on within the following range as determined by the ambient temperature. Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14T...
  • Page 45 2.5.7 Transistor (Tr) Type (PNP) (Stand-alone and With AFPX-COM5) Keep the number of points which are simultaneously on within the following range as determined by the ambient temperature. Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14P - Configuration...
  • Page 46 2.5.8 Transistor (Tr) Type (PNP) (With AFPX-DA2 and A21 (Current Output)) Keep the number of points which are simultaneously on within the following range as determined by the ambient temperature. Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14P...
  • Page 47 2.5.9 Transistor (Tr) Type (PNP) (With AFPX-DA2 and A21 Voltage Output) Keep the number of points which are simultaneously on within the following range as determined by the ambient temperature. Limitations on number of Limitations on number of Product number simultaneous input on points simultaneous output on points AFPX-C14P...
  • Page 48: Terminal Layout

    2.6 Terminal Layout 2.6.1 Relay Type AFPX-C14R AFPX-C14RD AFPX-C30R AFPX-C30RD Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 49 AFPX-C60R AFPX-C60RD Key Point: Input terminal: Each COM terminal in the same terminal block is connected within the unit. However, the COM terminals of the input terminals 1 and 2 for C60 are isolated. (They are not connected internally.) Output terminal: Each COM port (CO, C1 …) is separate.
  • Page 50 2.6.2 Transistor type AFPX-C14T AFPX-C14P AFPX-C14TD Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 51 AFPX-C14PD AFPX-C30T AFPX-C30P Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 52 AFPX-C30TD AFPX-C30PD AFPX-C60T Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 53 AFPX-C60P AFPX-C60TD AFPX-C60PD Key Point: Input terminal: Each COM terminal in the same terminal block is connected within the unit. However, the COM terminals of the input terminals 1 and 2 for C60 are isolated. (They are not connected internally.) Output terminal: Each power supply terminal is separate.
  • Page 54 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 55: Expansion Cassette And Expansion Fp0 Adapter Specifications

    Chapter 3 Expansion Cassette and Expansion FP0 Adapter Specifications Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 56: Expansion Method

    3.1 Expansion Method Two types of expansion method are available for the FP-X. 1. Installs the FP-X expansion unit or FP0 expansion unit (expansion FP0 adapter) using the expansion cable. 2. Installs the add-on cassette to the cassette mounting part of the FP-X control unit. 3.1.1 Expansion Using the Expansion Cable For the FP-X, the FP-X expansion unit and the FP0 expansion unit (expansion FP0 adapter AFPX-EFP0 is necessary) can be used by using the exclusive expansion cable.
  • Page 57: Fp-X Expansion Unit

    3.2 FP-X Expansion Unit 3.2.1 Parts and Functions FP-X E16 exapansion I/O unit FP-X E30 exapansion I/O unit ○ Input and Output indicator LEDs Indicates the on/off status of the input and output. ○ Input terminal block This is the input terminal. A solderless terminal for M3 can be used. ○...
  • Page 58 3.2.2 Power Supply Specifications AC Power Supply Specifications Item Rated voltage 100 to 240 V AC Voltage regulation range 85 to 264 V AC Inrush current 40 A or less (at 240 V AC, 25 °C) Momentary power off time 10 ms (when using 100 V AC) Frequency 50/60 Hz (47 to 63 Hz)
  • Page 59 3.2.3 Input and output specifications Input specifications Description Item Insulation method Optical coupler Rated input voltage 24 V DC Operating voltage range 21.6 to 26.4 V DC Rated input current Approx. 4.3 mA 8 points/common 16 points/common Input points per common (Either the positive or negative of input power supply can be connected to common terminal.) Min.
  • Page 60 Transistor type (NPN) Description Item Insulation method Optical coupler Output type Open collector Rated load voltage 5 to 24 V DC Allowable load voltage range 4.75 to 26.4 V DC Max. load current 0.5 A Max. inrush current 1.5 A 8 points/Common, Input points per common 8 points/Common...
  • Page 61 Transistor type (PNP) Description Item Insulation method Optical coupler Output type Open collector Rated load voltage 24 V DC Allowable load voltage range 21.6 to 26.4 V DC Max. load current 0.5 A Max. inrush current 1.5 A 8 points/Common, Input points per common 8 points/Common 6 points/Common...
  • Page 62 3.2.4 Terminal layout AFPX-E16R AFPX-E16T AFPX-E16P AFPX-E16X AFPX-E14YR Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 63 AFPX-E30R AFPX-E30RD AFPX-E30T Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 64 AFPX-E30P AFPX-E30TD AFPX-E30PD Input terminal: Each COM terminal in the same terminal block is connected within the unit. Output terminal: Each COM terminal(CO, C1 …) of Ry type is separate. Each power supply terminal of Tr type is separate. Use them in the range surrounded by the bold black lines.
  • Page 65: Fp-X Expansion Fp0 Adapter

    3.3 FP-X Expansion FP0 Adapter 3.3.1 Overview For the FP-X, a maximum of 3 units of the FP0 expansion units (expansion I/O unit, intelligent unit) can be used using the expansion FP0 adapter. All FP0 expansion unit can be used. - DC input unit - Transistor output unit - Relay output unit...
  • Page 66 3.3.2 Parts and Functions FP-X expansion FP0 adapter (AFPX-EFP0) ○ Status indicator LEDs When the power of 24 V DC is supplied and the communication starts with the POWER Green control unit, the LED lights. When the communication cannot be carried out, it goes out.
  • Page 67: I/O Allocation

    Chapter 4 I/O Allocation Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 68: I/O Allocation

    4.1 I/O Allocation Input Output X0 to X9F (WX0 to WX9) Y0 to Y9F (WY0 to WY9) Control unit Cassette mounting part 1 X100 to X19F (WX10 to WX19) Y100 to Y19F (WY10 to WY19) (Slot 0) Cassette mounting part 2 X200 to X29F (WX20 to WX29) Y200 to Y29F (WY20 to WY29) (Slot 1)
  • Page 69: Allocation Of Fp-X Control Unit

    4.2 Allocation of FP-X Control Unit The I/O allocation of FP-X control unit is fixed. I/O numbers Type of control unit Number of allocation I/O number Input (8 points) X0 to X7 FP-X C14 control unit Output (6 points) Y0 to Y5 Input (16 points) X0 to XF FP-X C30 control unit...
  • Page 70: Allocation Of Fp0 Expansion Unit

    4.4 Allocation of FP0 Expansion Unit 4.4.1 I/O Allocation The FP0 expansion unit is installed on the right side of the FP0 expansion adapter. The I/O numbers are allocated from the unit nearest to the expansion FP0 adapter in ascending order. 4.4.2 Number of Expansion Units and I/O Allocation Only one expansion FP0 adapter can be connected at the last position of the FP-X expansion bus.
  • Page 71 4.4.3 I/O Allocation of FP0 Expansion Unit I/O do not need to be set as I/O allocation is performed automatically when an expansion unit is added. The I/O allocation of expansion unit is determined by the installation location. I/O numbers (when installed as the first expansion unit) Carry the digit of hundreds place one by one since the second expansion unit.
  • Page 72: I/O Allocation Of Fp-X Add-On Cassette

    4.5 I/O Allocation of FP-X Add-on Cassette The FP-X add-on cassette is mounted on the FP-X control unit. I/O numbers I/O No. Cassette Cassette Type of control unit mounting part 1 mounting part 2 Slot 0 Slot 1 FP-X communication AFPX-COM1 −...
  • Page 73: Installation And Wiring

    Chapter 5 Installation and Wiring Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 74: Installation

    5.1 Installation Be thoroughly familiar with the following contents before using the units to eliminate the causes which occur the failure or malfunction of each unit. 5.1.1 Installation Environment and Space Operating environment (Use the unit within the range of the general specifications when installing) *Ambient temperatures:0 ~ +55 ℃...
  • Page 75 Installation space • Leave at least 50mm of space between the wiring ducts of the unit and other devices to allow heat radiation and unit replacement. • Maintain at least 100mm of space between devices to avoid adverse affects from noise and heat when installing a device or panel door to the front of the PLC unit.
  • Page 76 Installation with screws Use M4 size screws for the installation Reference: For the information on the installation dimensions, <13.1.4 Dimension Diagram for Installation Installation and removal of the expansion FP0 adapter/FP0 expansion unit Attachment to DIN rail and removal from DIN rail Can be simply attached to DIN rail.
  • Page 77: Installation Using Expansion Cable

    5.2 Installation Using Expansion Cable The FP-X expansion unit and the FP-X expansion FP0 adapter are connected to the control unit using the exclusive expansion cable. -The expansion cable (AFPX-EC08) is packaged with the expansion unit and expansion FP0 adapter. (It can be purchased separately.) The expansion cables (AFPX-EC30 and AFPX-EC80) are sold separately.
  • Page 78 5.2.1 Expansion Method of FP-X Expansion Unit 1. Remove the expansion cover. 2. Fit the expansion connector cable into the expansion connector part of the control unit and the one (left side) of the expansion I/O unit. 3. Push the expansion connector cable inside to touch the units each other. 4.
  • Page 79 5.2.2 How to Connect with FP-X Expansion FP0 Adapter 1. Remove the expansion cover. There is no expansion cover for the expansion FP0 adapter. 2. Fit the expansion connector cable into the expansion connector part. 3. Push the expansion connector cable inside. 4.
  • Page 80: Expansion Method Of Fp0 Expansion Unit

    5.3 Expansion Method of FP0 Expansion Unit The FP0 expansion unit (expansion unit, intelligent unit) is expected by connecting to the right side of the FP-X expansion FP0 adapter. Unit expansion is done using the right-side connector for FP0 expansion and expansion hook on the side of the unit.
  • Page 81: How To Install Add-On Cassette

    5.4 How to Install Add-on Cassette The add-on cassette is fitted with the control unit using the provided screws. Note: The add-on cassette must be secured with the control unit using the screws in the actual use for preventing the affect of vibrations. The backup battery (option) should be before installing the add-on cassette.
  • Page 82 5.4.2 Installing Application Cassette Note: The application cassette can be installed only in the cassette mounting part 1 and 2 of the control unit. Installation on the control unit Connect the connector on the back of the application cassette and the connector of the cassette mounting part of the control unit, and secure the two positions, bottom left and top right, with the screws.
  • Page 83: Power Supply

    5.5 Power Supply 5.5.1 AC Power Supply Wiring of power supply Confirm that the power supply voltage is within the allowable range of the power supply. Allowable voltage Allowable frequency Rated input voltage Rated frequency amplitude range range 100 to 240 V AC 85 to 264 V AC 50/60 Hz 47 to 63 Hz...
  • Page 84 Note: Power supply of the FP-X expansion units Be sure to supply power to the FP-X expansion units and the control unit from the same power supply, and turn the power on and off simultaneously for both. To avoid the influence of noises Use the power supply causing less noise.
  • Page 85 5.5.2 DC Power Supply Wiring of power supply Confirm that the power supply voltage is within the allowable range of the power supply. Allowable voltage Rated input voltage amplitude range 24 VDC 20.4 to 28.8 VDC Note: Using the power supply of the outlying voltage, or using inappropriate wires may cause the fault of the power supply of the PLC.
  • Page 86 Note: Power supply of the FP-X expansion units Be sure to supply power to the FP-X expansion units and the control unit from the same power supply, and turn the power on and off simultaneously for both. To avoid the influence of noises Use the power supply causing less noise.
  • Page 87 5.5.3 Power Supply for Expansion FP0 Adapter Power supply wiring for the unit Use the power supply cable (Part No.:AFP0581) that comes with the unit to connect the power supply. Brown: 24V DC Blue: Green: Function earth (FE) Power supply wire To minimize adverse effects from noise, twist the brown and blue wires of the power supply cable.
  • Page 88 Measures regarding power supply sequence (start up sequence) • To ensure and ease the power supply sequence of the expansion FP0 adapter, supply the power for the expansion FP0 adapter from the servicing power supply for the input of the FP-X control unit. •...
  • Page 89: Wiring Of Input And Output

    5.6 Wiring of Input and Output Do not apply the voltage that exceeds the rated input voltage to the input terminal. 5.6.1 Input Wiring Connection of photoelectric sensor and proximity sensor Relay output type NPN open collector output type Voltage output type Two-wire output type Precaution when using LED-equipped lead switch When a LED is connected in series to an input...
  • Page 90 Precaution when using LED-equipped limit switch If the input of PLC does not turn off because of the leakage current from the LED-equipped limit switch, the use of a bleeder resistor is recommended, as shown below. Servicing power supply for input Use it for input and the expansion FP0 adapter.
  • Page 91 When using a DC inductive load Precautions when using capacitive loads When connecting loads with large in-rush currents, to minimize their effect, connect a protection circuit as shown below. 5.6.3 Precautions Regarding Input and Output Wirings Isolate input/output/power lines • Be sure to select the thickness (dia.) of the input and output wires while taking into consideration the required current capacity.
  • Page 92: Wiring Of Terminal Block

    5.7 Wiring of Terminal Block Supplied terminal block/Suitable wires M3 terminal screws are used for the terminal. The following suitable solderless terminals are recommended for the wiring to the terminals Suitable solderless terminals Manufacturer Shape Part No. Suitable wires (mm Round type 1.25-MS3 0.25 to 1.65...
  • Page 93 How to remove the terminal block The terminal blocks used for C30/C60/E30 can be removed for fitting the screws. (The terminal block for C14/E16 cannot be removed.) The tightening torque should be 0.25 to 0.35 N• m. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 94: Wiring Of Add-On Cassette Terminal Block

    5.8 Wiring of Add-on Cassette Terminal Block A screw-down connection type for terminal block is used for the add-on cassette. The suitable wires are given below. Suitable wires (twisted) Size Nominal cross-sectional area AWG #28 to 16 0.08 to 1.00 mm Pole terminal with a compatible insulation sleeve If a pole terminal is being used, the following models manufactured by Phoenix Contact Co.
  • Page 95 Wiring method (1) Remove a portion of the wire’s insulation. (2) Insert the wire into the terminal block until it contacts the back of the block socket, and then tighten the screw clockwise to fix the wire in place. (Tightening torque: 0.22 to 0.25 Name) Precautions on wiring •...
  • Page 96 5.8.1 Transmission Cables Please use the following cables for systems using the communication cassette. Appropriate electrical cables (twisted cables) Conductor Insulator Sample Cross-sectional Resist- Cable Type appropriate Thick- view diam. Size ance Material ness cable (at 20°C) Belden 9207 Max. Hitachi Cable, Shielded 0.5 mm...
  • Page 97: Handling Of Backup Battery

    5.9 Handling of Backup Battery 5.9.1 What Backup Battery Does Install an optional backup battery when the hold area is insufficient in the initial state or for using the clock/calender function. Areas backed up with the battery Hold area when Hold area when Classification battery is not installed...
  • Page 98 5.9.2 Settings of Battery Error Alarm and Hold Area Setting of the battery error alarm Setting the battery error alarm enables you to monitor the remaining backup battery level. By default, the battery error alarm is set to off in the system register settings. For using the battery, check the box of the system register No.4 "Alarm Battery Error"...
  • Page 99 5.9.3 Replacement of Backup Battery The procedure for replacing the backup battery is as follows. Procedure 1. Supply power to the control unit for more than five minutes. Charge the built-in capacitor to retain the contents of the memory during the replacement of the battery.
  • Page 100 5.9.4 Lifetime and Time for Replacement of Backup Battery Battery lifetime: when the master memory cassette (AFPX-MRTC) is installed Number of Suggested Type of control unit Battery lifetime installed batteries replacement interval 1 pc 2.1 years or more 3 years 1 pc 1.8 years or more 3 years...
  • Page 101: Safety Measures

    5.10 Safety Measures 5.10.1 Safety Measures Precautions regarding system design In certain applications, malfunction may occur for the following reasons: • Power on timing differences between the PLC system and input/output or mechanical power apparatus. • Response time lag when a momentary power drop occurs. •...
  • Page 102 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 103: Tool Port And Usb Port

    Chapter 6 Tool Port and USB Port Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 104 6.1 Tool Port and USB Port Tool port (RS232C) This port is used to connect a programming tool. A commercial mini-DIN 5-pin connector is used for the Tool port on the control unit. Pin No. Signal name Abbreviation Signal direction Signal Ground −...
  • Page 105: Functions Of Tool Port

    6.2 Functions of Tool Port 6.2.1 Tool Port With the tool port, the FP-X offers two different communication modes as below. Computer link • Computer link is used for communication with a computer connected to the PLC. Instructions (command messages) are transmitted to the PLC, and the PLC responds (sends response messages) based on the instructions received.
  • Page 106 6.2.2 Tool Port Setting Setting communication parameters in the computer link mode Setting for Baud rate and communication format The settings for baud rate and communication format of the tool port are entered using the FPWIN GR. Select “Options” in the menu bar, and then select “PLC Configuration”. Double-click “Tool Port”. Dialog box of PLC system register setting No.
  • Page 107 Setting communication parameters in the general-purpose serial communication mode By default, the tool port is set to “Computer link”. System register settings should be entered for the following items. The settings for baud rate and communication format are made using the FPWIN GR programming tool. Select “Options”...
  • Page 108: Usb Port

    6.3 USB Port 6.3.1 Functions of USB Port With the USB port, the FP-X offers one communication mode as below. Computer link • Computer link is used for communication with a computer connected to the PLC. Instructions (command messages) are transmitted to the PLC, and the PLC responds (sends response messages) based on the instructions received.
  • Page 109 6.3.2 USB Port Setting Setting communication parameters in the computer link mode Setting for Baud rate and communication format The settings for baud rate and communication format of the tool port are entered using the FPWIN GR. Select “Options” in the menu bar, and then select “PLC Configuration”. Click “COM2 Port”. Key Point: The default setting is “Internal USB”...
  • Page 110 6.3.3 USB Connection The FP-X C30 control unit and C60 control unit is equipped with the USB connector. Connecting the units with a personal computer using the USB cable enables the communication with our software such as FPWIN GR. (The FP-X C14 control unit is not equipped with the USB connector.) It is a communication method that uses the USB as a virtual serial port, so that the FP-X connected with the USB is treated from the PC as that it is connected via the COM port.
  • Page 111 6.3.4 USB Connection Procedure This procedure should be performed only once for the first connection. It is not necessary to do it from the next time. However, the communication setting must be changed when switching between the USB connection and the tool port connection.
  • Page 112 6.3.6 Installation of USB Driver Following 2 USB drivers must be installed to recognize the USB. • USB driver • USB-COM conversion driver The installation procedures differ depending on the OS in the PC to be used. Note: For the PC with more than one connectors, it may be requested to reinstall these 2 drivers if the positions of the USB connecters are changed.
  • Page 113 3. The next message is shown. Select “Install the software automatically”, and click “Next”. 4. The installation of the USB driver starts. Although an alert for the Windows logo testing is indicated during the installation, click “Continue Anyway” to continue the installation. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 114 5. The next message is shown and the installation of the USB driver completes. Click “Finish”. 6. After that, the PC recognizes the USB-COM conversion driver automatically. As the next message is shown, select “No, not this time”, and click “Next”. Note) This display is not be shown with WindowsXP SP1.
  • Page 115 7. The next message is shown. Select “Install the software automatically”, and click “Next”. 8. The installation of the USB driver starts. Although an alert for the Windows logo testing is indicated during the installation, click “Continue Anyway” to continue the installation. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 116 9. The next message is shown and the installation of the USB-COM conversion driver completes. Click “Finish”. The installation of the USB driver has been completed. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 117 With Windows2000/WindowsMe After a PC recognized the USB driver, the installation is started automatically. You do not need to carry out operation for the installation particularly. Note that the messages during the installation are not indicated. With Windows98 Second Edition 1.
  • Page 118 3. Check only “Specify a location”, and input the following folder name in “Specify a location”. “c:/Program Files/Panasonic MEW Control/FP-X USB” Uncheck the other boxes, and then click “Next”. 4. As the next message is shown, click “Next”. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 119 5. The next message is shown and the installation of the USB driver completes. Click “Finish”. The installation of the USB driver has been completed. (It is not necessary to install the USB-COM conversion driver with Windows 98Second Edition.) Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 120 6.3.7 Confirming COM Ports The USB connected to the FP-X is recognized by the PC as a COM port. It depends on your PC environment to which COM port the USB is allocated. Therefore, it is necessary to confirm the COM port number allocated.
  • Page 121 Procedure for confirming COM ports 1. Display “Device Manager”. Reference: <6.3.7 Confirming COM Ports> 2. Double-click “Ports (COM & LPT)”. As the table of allocation of COM ports, confirm the COM port No. “CP210x USB to UART Bridge Controller (COM n )”...
  • Page 122 6.3.8 Communication with FPWIN GR 1. Boot up the FPWIN GR. 2. When the FPWIN GR activates, the download select window will open. Select “Cancel” here. 3. Select “Communication setting” in “Option” menu. 4. Specify the communication setting as the table below. Once the setting has been completed, the communication with the USB becomes available.
  • Page 123 6.3.9 Reinstallation of USB Driver The USB driver must be installed again if the installation was carried out in wrong procedures or cancelled in the process. Also, reinstall the driver when the USB connection does not work well. Confirming the status of the USB driver 1.
  • Page 124 6.3.10 Restrictions on USB Communication There are restrictions on the USB communication. • A personal computer having the USB and with the OS supporting the USB (Windows98 Second Edition/ WindowsMe/ Windows2000/ WindowsXP) to connect the FP- X using the USB. •...
  • Page 125: Communication Cassette

    Chapter 7 Communication Cassette Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 126: Functions And Types

    7.1 Functions and Types 7.1.1 Overview of Communication Cassette Note: There are restrictions on the combination of the USB port and communication cassette (for C30/C60 only). Reference: <7.1.6 About USB Port (For C30/C60 Only)> Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 127 7.1.2 Functions of Communication Cassette With the communication cassette, the FP-X offers four different communication modes as below. Computer link • The computer link function is to communicate between a computer and PLCs or between PLC and external devices connected. A proprietary MEWNET protocol called MEWTOCOL-COM is used for communicating with the computer link.
  • Page 128 MEWTOCOL slave function • This function is to receive commands from the computer link, execute the process and send back the results. Any special ladder program is not necessary to use this function. (Set the communication conditions in the system registers.) It enables the 1:1 or 1:N communication with a master computer or PLC.
  • Page 129 PC(PLC) link The FP-X supports the link system that connects the PC(PLC) link corresponding to the MEWNET-W0 (max. 16 units) with the twisted pair cables. • In a PC(PLC) link, data is shared with all PLCs connected via MEWNET using dedicated internal relays called link relays (L) and data registers called link registers (LD).
  • Page 130 MODBUS RTU Function overview • The MODBUS RTU protocol enables the communication between the FP-X and other devices (including our FP-e, Programmable display GT series and KT temperature control unit). • Enables to have conversations if the master unit sends instructions (command messages) to slave units and the slave units respond (response messages) according to the instructions.
  • Page 131 7.1.3 Communication Cassettes Name Specifications I/O No. Product No. FP-X 5-wire type communication − AFPX-COM1 1-channel RS232C cassette FP-X 3-wire type communication − AFPX-COM2 2-channel RS232C cassette FP-X 1-channel communication − AFPX-COM3 RS485/RS422 (isolated) cassette • 1-channel FP-X RS485 (isolated) communication −...
  • Page 132 1-channel RS232C Type (Product No.: AFPX-COM1) This communication cassette is a 1-channel unit with a non-isolated RS232C port. RS/CS control is possible. LED indication / Terminal layout Name Signal direction Port name Send Data FP-X → External device Receive Data FP-X ←...
  • Page 133 1-channel RS485/RS422 Type (Product No.: AFPX-COM3) This communication cassette is a 1-channel unit with an isolated two-wire RS485/four-wire RS422 port. LED indication / Terminal layout Name Signal Port name direction RS485 RS422 Transmission Send − line (+) Data (+) Transmission Send −...
  • Page 134 1-channel RS485 and 1-channel RS232C Combination Type (Product No.: AFPX-COM4) This communication cassette is a 1-channel unit with an isolated two-wire RS485 port and 1-channel unit with an isolated three-wire RS232C port. LED indication / Terminal layout Name Signal direction Port name Transmission...
  • Page 135 Ethernet and 1-channel RS232C Combination Type (Product No.: AFPX-COM5) This communication cassette is a 1-channel unit with an Ethernet interface and an isolated three-wire RS232C port. Ethernet performs communication at 100 Mbps or 10 Mpbs, but communication between AFPX-COM5 and FP-X is performed at up to 115200 bps according to the system register setting of FP- LED indication / Terminal layout LEDs for Ethernet On: Connection establishment...
  • Page 136 2-channel RS485 Type (Product No.: AFPX-COM6) This communication cassette is a 2-channel unit with an isolated two-wire RS485 port. LED indication / Terminal layout Signal Name Port name direction Transmission +(COM1) - line (+) RS485 Transmission (COM1 port) -(COM1) - line (-) Transmission +(COM2)
  • Page 137 7.1.4 Examples of Connection AFPX-COM1: 1-channel 5-wire RS232C Note) When the device to connect is a three-wire type, the RS of the COM 1 port should be connected to the CS. AFPX-COM2: 2-channel 3-wire RS232C AFPX-COM3: 1-channel RS485/RS422 Using RS485 Using RS422 Note) There are several names for the signal names of RS422.
  • Page 138 AFPX-COM4: 1-channel RS485 and 1-channel 3-wire RS232C AFPX-COM5: 1-channel Ethernet and 1-channel 3-wire RS232C AFPX-COM6: 2-channel RS485 Note) Non-insulated between the COM1 and COM2. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 139 7.1.5 Names and Principle Applications of the Ports Port type Port name Communication function USB is used USB is not used Fitted with the main unit as a standard Computer link Tool port equipment General-purpose serial communication (Mini-DIN 5-pin connector) Computer link Communication cassette General-purpose serial communication...
  • Page 140: Communication Specifications

    7.2 Communication Specifications General-purpose serial Note1) Note1) Computer link MODBUS RTU Note1) communication PC(PLC) link commu- commu- commu- communication communication communication nication nication nication RS232C Inter- RS232C RS422 RS485 RS232C RS422 RS485 RS422 RS232C RS422 RS485 face RS485 -TOOL -TOOL AFPX port port...
  • Page 141 Communication specifications 1 Interface: RS232C, RS422, RS485 Item Specifications RS232C RS422 (isolated) Note1) 2) Interface RS485 (isolated) Note1) (non-isolated) Communication mode 1:1 communication 1:N communication Two-wire half-duplex Communication method Half-duplex communication communication Synchronous method Start stop synchronous system Shielded twisted-pair cable Transmission line Multicore shielded line or VCTF...
  • Page 142 Note8) The baud rates of 300, 600 and 1200 bps can be specified by the SYS instruction only (Ver 2.0 or later). Communication specifications 2 Interface: Ethernet Item Specifications Interface IEEE802. 3u, 10BASE-T/100BASE-TX Connector shape: RJ45 Transmission Baud rate 100 Mpbs/10 Mbps specifications Transmission method Baseband...
  • Page 143 7.2.1 Precaution When Using RS485 Port AFPX-COM3, AFPX-COM4 SYS1 instruction is available for FP-X, which enables to change the time after receiving a command until a response is returned. With the converter SI-35 manufactured by Lineeye Co., Ltd in the RS485 communication, adjust the response time by this instruction if necessary.
  • Page 144: Communication Function 1: Computer Link

    7.3 Communication Function 1: Computer Link 7.3.1 Computer Link Overview Computer link • The computer link function is to communicate between a computer and PLCs or between PLC and external devices connected. A proprietary MEWNET protocol called MEWTOCOL-COM is used for communicating with the computer link.
  • Page 145 MEWTOCOL master function (Transistor type, relay type Ver 1.21 or later version) • This function is to carry out the communication on the master side (side 0that issues commands) of the computer link. It is executed with the PLC’s instruction F145(SEND) or F146(RECV). It is not necessary to write the response process as a ladder, so the program is easier than the general-purpose communication function.
  • Page 146 Outline of operation when using computer link (MEWTOCOL slave) Command and response • Instructions issued by the computer to the PLC are called commands. Messages sent back to the computer from the PLC are called responses. When the PLC receives a command, it processes the command regardless of the sequence program, and sends a response back to the computer.
  • Page 147 Format of command and response Command message All command-related items should be noted in the text segment. The unit number must be specified before sending the command. 1. Header (start code) Commands must always have a “%” (ASCII code: H25) or a “<” (ASCII code: H3C) at the beginning of a message.
  • Page 148 Note: When writing • The method for writing text segments in the message varies depending on the type of command. • If there is a large number of characters to be written, they may be divided and sent as several commands.
  • Page 149 4. Check code BCC (block check code) for error detection using horizontal parity. The BCC starts from the header and checks each character in sequence, using the exclusive OR operation, and replaces the final result with character text. 5. Terminator (end code) There is always a “...
  • Page 150 Commands to be used Command name Code Description Reads the on and off status of contacts. (RCS) - Specifies only one point. Read contact area (RCP) - Specifies multiple contacts. (RCC) - Specifies a range in word units. Turns contacts on and off. (WCS) - Specifies only one point.
  • Page 151 Setting communication parameters Setting for Baud rate and communication format The settings for baud rate and communication format of the COM port are entered using the FPWIN GR. Select “Options” in the menu bar, and then select “PLC Configuration”. Click “COM Port”. There are separate tabs for setting the COM1 and COM2 .
  • Page 152 7.3.2 1:1 Communication (Computer link) System register settings Settings for COM1 port (AFP-COM1, AFPX-COM2, AFPX-COM3, AFPX-COM5) Name Set Value No. 410 Unit number COM1 port Note) No. 412 Communication mode COM1 port Computer link No. 413 Communication format for COM1 port Data length: ……...
  • Page 153 Connection to the computer <1:1 communication> Overview For a 1:1 computer link between the FP-X and a computer, an RS232C cable is needed. Communication is performed via commands from the computer and responses from the PLC. <Using AFPX-COM1> 1-channel RS232C type <Using AFPX-COM2>...
  • Page 154 1:1 communication with programmable display GT series Overview A 1:1 computer link with a programmable display connects the FP-X and the programmable display using an RS232C cable. Communication is performed via commands from the programmable display and responses from the PLC. No program is required for communication.
  • Page 155 7.3.3 1:N Communication (Computer Link) Overview For a 1:N computer link, the computer and the FP-X are connected through a commercially available RS232C-RS485 converter, and the respective PLCs are wired using an RS485 cable. The computer and the PLC communicate via commands and responses: The computer sends a command specifying the unit number, and the PLC with that unit number sends a response back to the computer.
  • Page 156 Setting of unit numbers By default, the unit number for each communication port is set to 1 in the system register settings. There is no need to change this for 1:1 communication, but if 1:N communication is used to connect multiple PLCs to the transmission line (e.g.
  • Page 157 Connection with external devices AFPX-COM3 (when setting RS485) Connection diagram With 1:N communication, the various RS485 devices are connected using twisted pair cables. Use only one (+) and (-) terminals. AFPX-COM4 Connection diagram In case of using the AFPX-COM4, connect two cables each to the (+) terminal and (-) terminal. Use the wires of the same cross-sectional area which should be 0.5 mm AFPX-COM6 Connection diagram...
  • Page 158 7.3.4 MEWTOCOL Master (Sample Program) Use the F145 (SEND) “Data send” or F146 (RECV) “Data receive” instruction to use the MEWTOCOL master function. Sample program Note: Available for the transistor type and relay type Ver 1.21 or later version only. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 159 Flow chart The above program executes the operation 1 to 3 repeatedly. 1. Updates the write data if the write data (DT50 and DT51) and the read data (DT60 and DT61) are matched. 2. Writes the DT50 and DT51 of the local unit into the data DT0 and DT1 in the unit number 1 from the COM1 port.
  • Page 160: Communication Function 2: General-Purpose Serial Communication

    7.4 Communication Function 2: General-purpose Serial Communication 7.4.1 General-purpose Serial Communication Overview • In general-purpose serial communication, data is sent and received over the COM ports to and from an external device such as an image processing device or a bar code reader. •...
  • Page 161 Setting communication parameters in the general-purpose serial communication mode By default, the COM port is set to “Computer link”. System register settings should be entered for the following items. The settings for baud rate and communication format are made using the FPWIN GR programming tool. Select “Options”...
  • Page 162 7.4.2 Communication with External Devices Programming example of general-purpose serial communication The F159 (MTRN) instruction is used to send and receive data via the specified COM port. F159 (MTRN) F144 (TRNS) instruction is not available with the FP-X. F159 (MTRN) instruction Data is sent and received via the specified COM port .
  • Page 163 Sending data to external devices Communication with external devices is handled through the data registers. Data to be output is stored in the data register used as the send buffer (DT), and when the F159 (MTRN) instruction is executed, the data is output from the COM port. Data table for transmission (send buffer) Sample program for sending data The following program transmits the characters “ABCDEFGH (Hex)”...
  • Page 164 Explanation of data table The data table for transmission starts at the data register specified in S. • Use an F0 (MV) or F95 (ASC) instruction to write the data to be transmitted to the transmission data storage area specified in S. Transmission process When the execution condition of the F159 (MTRN) instruction turns on and the “transmission done”...
  • Page 165 Receiving data from external devices Data input from the COM port is stored in the receive buffer specified by the system register, and the “reception done” flag goes on. If the “reception done” flag is off, data can be received at any time.
  • Page 166 Explanation of data table Data sent from an external device connected to the COM port is stored in the data registers that have been set as the receive buffer. • Specify the data registers in system register 416 to 419. •...
  • Page 167 Data to be sent/received with FP-X Remember the following when accessing data in the FP-X send and receive buffers: • If a header has been chosen in the communication format settings, the code STX (H02) will automatically be added at the beginning of the data begin sent. •...
  • Page 168 Flag operation in serial communication Header: No-STX, Terminator: CR Receiving data: The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are related as follows: • For general-purpose serial communication, half-duplex transmission must be used. • Reception is disabled when the “reception done” flag R9038 or R9048 is on. •...
  • Page 169 Header: STX, Terminator: ETX Receiving data: The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are related as follows: • The data is stored in the receive buffer in sequential order. When the header is received, the number of bytes received is cleared, and the address (write pointer) in the receive buffer is reset to the initial address.
  • Page 170 Sending data: The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are related as follows: • Header (STX) and terminator (ETX) are automatically added to the data being transmitted. The data is transmitted to an external device. •...
  • Page 171 Changing communication mode of COM port An F159 (MTRN) instruction can be executed to change between general-purpose serial communication mode and computer link mode. To do so, specify H8000 for n (the number of transmission bytes) and execute the instruction. Changing from “general-purpose”...
  • Page 172 7.4.3 Connection with 1:1 Communication (General-purpose serial communication) System register settings Settings for COM1 port (AFPX-COM1, AFPX-COM2, AFPX-COM3, AFPX-COM5) Name Set Value No. 412 Selection of communication mode for General-purpose serial communication COM1 port No. 413 Communication format for COM1 port Data length: ……...
  • Page 173 1:1 communication with FP Series PLC Overview Connect the FP-X and another FP series PLC using the RS232C interface and the MEWTOCOL-COM communication protocol. Note: The MEWTOCOL master function of computer link is recommended as it is easy to communicate. •...
  • Page 174 Connection to FP series PLCs (FP0) <Using AFPX-COM1> 1-channel RS232C type - Connection with FP0 COM port <Using AFPX-COM2> 2channel RS232C type - Connection with FP0 COM port <Using AFPX-COM4> Combination of 1-channel RS485 and 1-channel RS232C type - Connection with FP0 COM port <Using AFPX-COM5>...
  • Page 175 Procedure of communication In this example, an FP series PLC is connected to COM1 port. K100 and K200 are respectively being stored in DT0 and DT1 of the PLC on the other end. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 176 Sample program In the following example, the FP series PLC is connected to COM1 port. Buffer statuses The tables below show the statuses of the send and receive buffers when the sample program is run. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 177 Key Point: Contents of the response: If K100 is stored in DT0 and K200 is stored in DT1 of the FP series PLC on the other end, “%01$RD6400C8006F ” is returned from the FP series PLC on the other end as the response when the program is executed.
  • Page 178 The values of DT50 and DT51 are written in DT0 and 1 of PLC. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 179 7.4.4 1:N Communication (General-purpose Serial Communication) Overview The FP-X and the external units are connected using an RS485 cable. Using the protocol that matches the external units, the F159 (MTRN) instruction is used to send and receive data. Reference: <7.2.1 Precaution When Using RS485 Port> System register settings •...
  • Page 180: Communication Function 3: Pc(Plc) Link

    7.5 Communication Function 3: PC(PLC) Link 7.5.1 PC(PLC) Link Overview • The PLC link is an economic way of linking PLCs of the FP-X, FPΣ and FP2-MCU, using a twisted-pair cable. • Data is shared between the PLCs using link relays (L) and link registers (LD). •...
  • Page 181 Operation of PLC link • Turning on a link relay contact in one PLC turns on the same link relay in all other PLCs on the same network. • Likewise, if the contents of a link register in one PLC are changed, the values of the same link register are changed in all PLCs on the same network.
  • Page 182 7.5.2 Setting Communication Parameters Setting of communication mode In the default settings, the COM1 port is set to computer link mode. Set the communication mode using the FPWIN GR programming tool. Select “PLC Configuration” under “Options”, and then click “COM1 port” tab. (The PC(PLC) link is available for COM1 port only.) Dialog box of PLC system register setting No.
  • Page 183 Setting of unit numbers By default, the unit number for the communication port is set to 1 in the system registers. In a PC(PLC) link that connects multiple PLCs on the same transmission line, the unit number must be set in order to identify the different PLCs. The unit number is specified either by using the SYS1 instruction or the system register.
  • Page 184 Setting with the system register Set the unit numbers using the FPWIN GR programming tool. Select “PLC Configuration” under “Options”, and then select “COM1 port” tab. Dialog box of PLC system register setting No. 410 (for COM1 port) Unit number setting Select the COM port operation mode: Click on , and select unit number between 1 and 16.
  • Page 185 Link area allocation • The link relays and link registers to be used in the PC(PLC) link are allocated in the link area of the CPU unit. Link area allocations are specified by setting the system registers of the CPU unit. System registers Default Name...
  • Page 186 Example of allocation The areas for PC(PLC) link are divided into send areas and receive areas. The link relays and link registers are sent from the send area to the receive area of a different PLC. Link relays and link registers with the same numbers as those on the transmission side must exist in the receive area on the receiving side.
  • Page 187 For PC(PLC) link 1 Link relay allocation System registers Setting for various units Name No. 1 No. 2 No. 3 No. 4 Range of link relays used Starting No. of word for link relay transmission Link relay transmission size Note) No. 50 (range of link relays used) must be set to the same range for all the units. Link register allocation System registers Setting for various units...
  • Page 188 Partial use of link areas In the link areas available for PC(PLC) link, link relays with a total of 1024 points (64 words) and link registers with a total of 128 words can be used. This does not mean, however, that it is necessary to reserve the entire area.
  • Page 189 Note: Precautions When Allocating Link Areas If a mistake is made when allocating a link area, be aware that an error will result, and communication will be disabled. Avoid overlapping send areas When sending data from a send area to the receive area of another PLC, there must be a link relay and link register with the same number in the receive area on the receiving side.
  • Page 190 Setting the largest unit number for a PC(PLC) link The largest unit number can be set using system register no. 47 (using system register no. 57 for PC(PLC) link 1). [Sample setting] No. of units linked Setting contents 1st unit: Unit no. 1 is set 2nd unit: Unit no.
  • Page 191 7.5.3 Monitoring When using a PC(PLC) link, the operation status of the links can be monitored using the following relays. Transmission assurance relays For PC(PLC) link 0: R9060 to R906F (correspond to unit no. 1 to 16) For PC(PLC) link 1: R9080 to R908F (correspond to unit no. 1 to 16) If the transmission data from a different unit is being used with the various PLCs, check to make sure the transmission assurance relay for the target unit is on before using the data.
  • Page 192 7.5.4 Connection Example of PC(PLC) Link When using three PLCs In the example shown here, link relays are use. When X1 of PLC with unit no. 1 turns on, Y0 of PLC with unit no. 2 turns on. When X2 of PLC with unit no. 1 turns on, Y0 of PLC with unit no. 3 turns on. System register settings When using a PC(PLC) link, the communication format and baud rate are fixed.
  • Page 193 Link area allocation - Link relay allocation System registers Set value of various control units Name No. 1 No. 2 No. 3 No. 40 Range of link relays used No. 42 Starting No. of word for link relay transmission No. 43 Link relay transmission size - Link register allocation System registers...
  • Page 194 Sample program - Unit no. 1 When X1 is input, L0 of the link relay goes on, and when X2 is input, L1 of the link relay goes on. - Unit no. 2 When L0 of the link relay goes on, Y0 is output. - Unit no.
  • Page 195 7.5.5 PC(PLC) Link Response Time The maximum value for the transmission time (T) of one cycle can be calculated using the following formula. The various items in the formula are calculated as described below. ← Ts (transmission time per station) Ts = scan time + Tpc (PC(PLC) link sending time) Tpc = Ttx (sending time per byte) x Pcm (PLC link sending size) Ttx = 1/(baud rate x 1000) x 11 ms ….
  • Page 196 Calculation example 3 When all but one station have been added to a 16-unit link, the largest station number is 16, relays and registers have been allocated evenly, and the scan time for each PLC is 5 ms. Ttx = 0.096 Each Ts = 5 + 6.82 = 11.82 ms Tlt = 0.096 x (13 + 2 x 15) ≒...
  • Page 197 Reducing the transmission cycle time when there are stations that have not been added If there are stations that have not been added to the link, the Tlk time (link addition processing time) and with this the transmission cycle time will be longer. With the SYS1 instruction, the link addition waiting time Twt in the above formula can be reduced.
  • Page 198 Error detection time for transmission assurance relays The power supply of any given PLC fails or is turned off, it takes (as a default value) 6.4 seconds for the transmission assurance relay of the PLC to be turned off at the other stations. This time period can be shortened using the SYS1 instruction.
  • Page 199: Communication Function 4: Modbus Rtu Communication

    7.6 Communication Function 4: MODBUS RTU Communication 7.6.1 MODBUS RTU Communication Function overview • The MODBUS RTU protocol enables the communication between the FP-X and other devices (including our FP-e, Programmable display GT series and KT temperature control unit). • Enables to have conversations if the master unit sends instructions (command messages) to slave units and the slave units respond (response messages) according to the instructions.
  • Page 200 MODBUS RTU command message frame START ADDRESS FUNCTION DATA CRC CHECK 3.5-character time 8 bits 8 bits n*8 bits 16 bits 3.5-character time 8 bits, 0 to 99 (decimal) ADDRESS (Unit No.) Note1) 0= Broadcast address Note2) Slave unit No. is 1 to 99 (decimal) Note3) For MODBUS, 0 to 247 (decimal) 8 bits FUNCTION...
  • Page 201 Supported commands Executable Code Name (MODBUS Remarks instructions for Name for FP-X (decimal) original) (Reference No.) master F146 (RECV) Read Coil Status Read Y and R Coils F146 (RECV) Read Input Status Read X Input F146 (RECV) Read Holding Registers Read DT F146 (RECV) Read Input Registers...
  • Page 202 Dialog box of MODBUS RTU setting Reference: <MODBUS RTU Specifications> It can be downloaded from our website. http://panasonic-denko.co.jp/ac/e/dl/manual-list/plc.jsp Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 203 7.6.2 MEWTOCOL Master (Sample Program) Use the F145 (SEND) “Data send” or F146 (RECV) “Data receive” instruction to use the MEWTOCOL master function. Note: Available for the transistor type and relay type Ver 1.21 or later version only. Sample program Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 204 Flow chart The above program executes the operation 1 to 3 repeatedly. 4. Updates the write data if the write data (DT50 and DT51) and the read data (DT60 and DT61) are matched. 5. Writes the DT50 and DT51 of the local unit into the data DT0 and DT1 in the unit number 1 from the COM1 port.
  • Page 205: Ethernet Communication (Afpx-Com5)

    The information such as own IP address can be confirmed on the FP-X using the network information notification and confirmation functions. Note) When the firmware version of AFPX-COM5 is older than Ver1.10, it can be upgraded by downloading the later version from our website. http://panasonic-denko.co.jp/ac/e/dl/software-list/tool/plc.jsp Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 206 Differences between Ver1.00 and Ver1.10 TCP communication setting Communication mode select Operation mode select Ver1.00 Ver1.10 Client connection Not available Available Computer link Server connection Available Available General-purpose Client connection Available Available communication Server connection Available Available UDP communication setting Communication Operation mode Transmission...
  • Page 207 The communication tool software “Configurator WD” is required to set Ethernet communication for the AFPX-COM5. Install the Configurator WD before setting the AFPX-COM5. The Configurator WD can be downloaded from our website free of charge. http://panasonic-denko.co.jp/ac/e/fasys/plc/plc/fp-x/software/index.jsp (Member registration is required. Free of charge) The setting is saved in the AFPX-COM5.
  • Page 208 Communication setting Item Description Default Communica- Communication protocol of AFPX-COM5 tion protocol Select TCP or UDP. select Communicati Communication mode of AFPX-COM5 Computer link on mode Select Computer link or General communication. Connection mode of AFPX-COM5 Select Client mode or Server mode. Action mode Server mode Common...
  • Page 209 Option setting Item Description Default Response timeout (When selecting the Set the wait time for the response. 5000 ms computer link only) This is the code for the AFPX-COM5 to confirm the end of the message (data) to be received from the FP-X. CR, CR+LF or NONE can be selected.
  • Page 210 7.7.5 Communication Mode 1: Computer Link (Ethernet) The supplement is described below to perform Ethernet communication by the computer link. Overview • Communication is conducted between a computer and a PLC using Ethernet by the computer link. • Remote programming and monitoring is possible via LAN line by using a programming tool such as FPWIN GR.
  • Page 211 Setting of communication environment for Computer link (Ethernet) The following two settings for the FP-X and communication cassette AFPX-COM5 should be set. - Communication environment of FP-X - Communication environment of Communication cassette AFPX-COM5 Setting communication environment of FP-X The programming tool FPWIN GR is used to set the baud rate or communication format of the COM1 port.
  • Page 212 Setting Ethernet communication environment of Communication cassette AFPX-COM5 The Configurator WD is used to set Ethernet communication environment of the AFPX-COM5. Start the Configurator WD. Search the AFPX-COM5. Select the AFPX-COM5 from the search result, and set an IP address to connect with a computer. After that, search again.
  • Page 213 7.7.6 Communication (Computer Link (Ethernet)) Overview A 1:1 computer link connects the FP-X and a computer using a UTP cable (CAT5). Communication is conducted via commands from the computer and responses from the PLC. 1:1 Communication setting (Computer link (Ethernet)) This setting enables the 1:1 communication between the FP-X and a computer using the computer link (Ethernet).
  • Page 214 Setting of Communication cassette AFPX-COM5 (specified using Configurator WD) IP address setting Item Default Get IP address Manual Unit name FPX_ET IP address 192.168.1.5 Subnet mask 255.255.255.0 Default gateway 192.168.1.1 Communication setting Item Default Communication protocol Action mode Server mode Baud rate (COM1) 115200 bps/9600 bps Communication mode...
  • Page 215 7.7.7 1:N Communication (Computer Link (Ethernet)) Overview A computer is connected respective PLCs through Ethernet. The computer and the PLC communicate via commands and responses: The computer sends a command specifying the destination IP address, and the PLC with that IP address sends a response back to the computer. It is no problem if the unit number of the PLC overlaps with other PLCs.
  • Page 216 7.7.8 MEWTOCOL Master Communication Setting (Ver 1.10) For using as the MEWTOCOL master, set the AFPX-COM5 to the computer link and client. Also, specifying the simultaneous transmission by broadcast or the target IP address for unit number in the option setting enables the communication with various PLCs. MEWTOCOL master setting in TCP Item Default...
  • Page 217 MEWTOCOL master setting in UDP Item Default Communication protocol Action mode Client connection Baud rate (COM1) 15200 bps/9600 bps Note1) Communication mode Computer link Send type UNICAST/BROADCAST Note2) Destination IP address IP address of destination Destination port No. 1025 to 32767 Source port No.
  • Page 218 7.7.9 MEWTOCOL Master (Ethernet) (Sample Program) (Ver 1.10 or Later) Overview MEWTOCOL communication can be performed with the FP-X using the F145 and F146 instructions. The following sample program executes 4 MEWTOCOL commands in sequence for 2 slave units using the F145 and F146 instructions.
  • Page 219 1. When using the MEWTOCOL master function in TCP Set as follows for each unit using Configurator WD. IP address setting Communication setting Option setting Master unit IP address: 192.168.1.5 Communication protocol: TCP Destination unit No. Netmask: 255.255.255.0 Action mode: Client connection and IP address is Gateway: 192.168.1.1 Baud rate: 115200 bps...
  • Page 220 3. When using the MEWTOCOL master function in UDP, BROADCAST communication Set as follows for each unit using Configurator WD. IP address setting Communication setting Option setting Master unit IP address: 192.168.1.5 Communication protocol: UDP Not necessary. Netmask: 255.255.255.0 Action mode: Client connection Gateway: 192.168.1.1 Baud rate: 115200 bps Communication mode:...
  • Page 221 Master unit sample program Reference: For information on the F145(SEND) and F146(RECV) instructions, <7.7.3 Communication Tool Software Configurator WD> Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 222 7.7.10 Communication Function 2: General-purpose Serial Communication (Ethernet) The supplement is described below to conduct Ethernet communication by the general-purpose serial communication. Reference: <7.4 Communication Function 2: General-purpose Serial Communication> Overview • Data can be sent and received between the FP-X and an external device using Ethernet. •...
  • Page 223 Setting for using the general-purpose serial communication (Ethernet) The following two settings for the FP-X and communication cassette AFPX-COM5 should be set. - Communication environment of FP-X - Communication environment of Communication cassette AFPX-COM5 Setting communication environment of FP-X The programming tool FPWIN GR is used to set the baud rate or communication format of the COM1 port.
  • Page 224 [When Communication cassette AFPX-COM5 is in the TCP client mode] Dialog box of communication setting: Setting of AFPX-COM5 Item Setting value Communication protocol TCP Action mode Client mode Note) Baud rate (COM1) 115200 bps/9600 bps Communication mode General communication Destination IP No. Destination IP address Destination port No.
  • Page 225 [When Communication cassette AFPX-COM5 is in the UDP mode] Dialog box of communication setting: Setting of AFPX-COM5 Item Setting value Communication protocol UDP Note1) Baud rate (COM1) 115200 bps/9600 bps Communication mode General communication Note2) Send type UNICAST/BROADCAST Destination IP No. Destination IP address Destination port No.
  • Page 226 7.7.11 PC(PLC) Link Communication (Ethernet) (Ver 1.10 or Later) Overview Data sharing is available using the PC (PLC) link function of the FP-X via Ethernet. How to use and set is the same as the PC(PLC) link via RS485. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 227 PC(PLC) link communication setting When the PC(PLC) link function has been selected on the FP-X, the baud rate is automatically 115200 bps. Set the baud rate in the COM1 port communication setting for the AFPX-COM5 to 115200 bps as well. Setting Ethernet communication environment of Communication cassette AFPX-COM5 The Configurator WD is used to set Ethernet communication environment of the AFPX-COM5.
  • Page 228 7.7.12 Applied Usage (Ethernet) (Ver 1.10 or Later) - How to confirm the network information on the FP-X. The network information (own IP address, destination IP address, destination port No., version) that has been set for the AFPX-COM5 can be confirmed from the FP-X by the option setting. The connection information (destination IP address, own IP address, version) of the AFPX-COM5 can be confirmed from the LAN side.
  • Page 229 - Network information notification area Set the area to be used for the network information notification, network information confirmation and connection information confirmation. When DT1000 (default) is set for the network information notification area, the following areas will be used. Network information notification and network information confirmation areas Register Description...
  • Page 230 - Network information notification If the network information notification setting is enabled, the AFPX-COM5 notifies the network information to the FP-X on completion of the initialization of Ethernet. (Ethernet is initialized after the power turns on, and when the unit is restarted after the change in settings.) The information is notified by the data area write command (“WD”) of 10 words from the information area first number with MEWTOCOL.
  • Page 231 [Sample program] (Set DT10000 in the network information notification area.) - Connection information confirmation When selecting the computer link and server setting, the connection information can be confirmed from the LAN side by enabling the connection information confirmation setting. It can be confirmed by reading the confirmation area by the MEWTOCOL data area read command (“RD”) from the LAN.
  • Page 232 - How to transmit a command message to each unit - Target IP address for unit number If “Destination unit number and IP address is specified” is checked, a command can be sent to the IP address corresponding to each unit number. Settable conditions - When selecting the client and computer link - When selecting the UDP and general-purpose communication...
  • Page 233 7.7.13 Example of Connections (Ethernet) (Ver 1.10 or Later) - Connection with FP2 ET-LAN unit Overview Connection can be established with a maximum of 8 FP-X simultaneously using a FP2 ET-LAN unit, and transmission is performed by the computer link. Example of connection - Setting of FP2 ET-LAN unit Item...
  • Page 234 - Setting of FP-X 1) FP-X System register setting No. 412: Computer link mode 2) Setting of AFPX-COM5 Item Setting value Communication protocol Action mode Server mode Communication mode Computer link Source port No. 9094 Time out UDP/IP can be used for the communication method. In that case, change the communication method of the FP2 ET-LAN unit to UDP/IP.
  • Page 235 - Connection with GV series via Ethernet Overview Connect the FP-X to the GV series via Ethernet. Transmission is performed by sending a response from the FP-X to the command issued by the GV. The operation with a programmable display can be performed only by specifying communication settings for each unit without any program for communication.
  • Page 236 Select [Comm. Parameter] under [System Setting] in the menu bar, and select [FP series (Ethernet TCP/IP)]. Then, click the [Detail] tab, and select 1:n for the connection to set the local number. Select [Comm. Parameter] under [System Setting] in the menu bar, and select [Network Table Setting] →...
  • Page 237 - Setting of FP-X 1) FP-X System register setting No. 412: Computer link mode 2) Setting of AFPX-COM5 Item Setting value Communication protocol Action mode Server mode Communication mode Computer link Source port No. 9094 Time out UDP/IP can be used for the communication method. In that case, change the setting for [PLC Type Setting] of the GV to [FP series (Ethernet UDP/IP)].
  • Page 238 7.7.14 Initialization Procedure Overview • The Ethernet communication environment setting of the AFPX-COM5 can be initialized. Initialization procedure 1. Turn on the switch at the back of the AFPX-COM5. 2. Install the AFPX-COM on the FP-X and turn on the power supply. 3.
  • Page 239: Application Cassette

    Chapter 8 Application Cassette Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 240: Expansion Of Application Cassette

    8.1 Expansion of Application Cassette Following two methods of expansion are available for the FP-X. 1. Add on the FP-X expansion unit or FP0 expansion unit (expansion FP0 adapter) with the expansion cable. 2. Add on the add-on cassette in the cassette mounting part of the FP-X control unit. For the FP-X, the add-on cassette (application cassette and communication cassette) can be installed on the FP-X control unit.
  • Page 241: Application Cassettes

    8.2 Application Cassettes Name Specifications I/O No. Product No. WX10 2-channel FP-X analog WX20 analog input AFPX-AD2 input cassette WX11 (non-isolated) WX21 2-channel WY10 FP-X analog analog output (isolated) WY20 output AFPX-DA2 (isolated between WY11 cassette channels) WY21 2-channel WX10 analog input (isolated) WX20 (non-isolated between...
  • Page 242 Name Specifications I/O No. Product No. FP-X output 8-point From Y100 AFPX-TR8 cassette transistor output (NPN) From Y200 FP-X output 6-point From Y100 AFPX-TR6P cassette transistor output (PNP) From Y200 From X100 4-point DC input FP-X I/O From Y100 3-point transistor output AFPX-IN4T3 cassette From X200...
  • Page 243: Specifications

    8.3 Specifications 8.3.1 FP-X Analog Input Cassette Product No.: AFPX-AD2 Item Specifications No. of input points 2 channels/cassette Voltage 0 to 10 V Input range Current 0 to 20 mA Note) Digital conversion value K0 to K4000 Resolution 1/4000 (12 bits) Conversion speed 1 ms/channel Total accuracy...
  • Page 244 Connection method DC input: 0 mA to 20 mA Conversion characteristics graph Table of A/D converted values Input current (mA) A/D converted value 1000 1500 10.0 2000 12.5 2500 15.0 3000 17.5 3500 20.0 4000 When exceeding the rated range Input voltage (V) Converted value 0 mA or less (Negative value)
  • Page 245 DC input: 0 V to 10 V Conversion characteristics graph Table of A/D converted values Input voltage (V) A/D converted value 1200 1600 2000 2400 2800 3200 3600 10.0 4000 When exceeding the rated range Input voltage (V) Converted value 0 V or less (Negative value) 10 V or more 4000...
  • Page 246 8.3.2 FP-X Analog Output Cassette Product No.: AFPX-DA2 Item Specifications No. of output points 2 channels/cassette Voltage 0 to 10 V Output range Current 0 to 20 mA Note1) Digital value K0 to K4000 Resolution 1/4000 (12 bits) Conversion speed 1 ms/1 channel Total accuracy ±1% F.S.
  • Page 247 0 mA to 20 mA output Conversion characteristics graph Table of D/A converted values Digital input value Output current (mA) 1000 1500 2000 10.0 2500 12.5 3000 15.0 3500 17.5 4000 20.0 When exceeding the rated range Digital input value Analog output value Unchanged Negative value...
  • Page 248 Table of D/A converted values Digital input value Output voltage (V) 1200 1600 2000 2400 2800 3200 3600 4000 10.0 When exceeding the rated range Digital input value Analog output value Unchanged Negative value (Value preceding the input of a negative value) Unchanged 4001 or more (Value preceding the input of 4001)
  • Page 249 8.3.3 FP-X Analog I/O Cassette Product No.: AFPX-A21 Item Specifications No. of input points 2 channels/cassette Voltage 0 to 10 V, 0 to 5 V Input range Current 0 to 20 mA Digital conversion value K0 to K4000 Resolution 1/4000 (12 bits) Conversion speed 1 ms/channel Total accuracy...
  • Page 250 Terminal layout Voltage input Current input Voltage input Current input Input Common (for input) Input range selection Note) 0 to 10 V or 0 to 5 V, 0 to 20 mA Voltage output Current output Output Common (for output) Note) The CH0 and CH1 will be the same range according to switching of the SEL terminal.
  • Page 251 DC input: 0 mA to 20 mA Conversion characteristics graph Table of A/D converted values Input current (mA) A/D converted value 1000 1500 10.0 2000 12.5 2500 15.0 3000 17.5 3500 20.0 4000 When exceeding the rated range Input voltage (V) Converted value 0 mA or less (Negative value) 20 mA or more...
  • Page 252 DC input: 0 V to 10 V Conversion characteristics graph Table of A/D converted values Input voltage (V) A/D converted value 1200 1600 2000 2400 2800 3200 3600 10.0 4000 When exceeding the rated range Input voltage (V) Converted value 0 V or less (Negative value) 10 V or more 4000...
  • Page 253 DC input: 0 V to 5 V Conversion characteristics graph Table of A/D converted values Input voltage (V) A/D converted value 1200 1600 2000 2400 2800 3200 3600 4000 When exceeding the rated range Input voltage (V) Converted value 0 V or less (Negative value) 5 V or more 4000 Each channel data is allocated as I/O data as shown below.
  • Page 254 0 mA to 20 mA output Conversion characteristics graph Table of D/A converted values Digital input value Output current (mA) 1000 1500 2000 10.0 2500 12.5 3000 15.0 3500 17.5 4000 20.0 When exceeding the rated range Digital input value Analog output value Unchanged Negative value...
  • Page 255 0 V to 10 V output Conversion characteristics graph Table of D/A converted values Digital input value Output voltage (V) 1200 1600 2000 2400 2800 3200 3600 4000 10.0 When exceeding the rated range Digital input value Analog output value Unchanged Negative value (Value preceding the input of a negative value)
  • Page 256 8.3.4 FP-X Thermocouple Cassette Product No.: AFPX-TC2 Item Specifications No. of input points 2 channels/cassette Thermocouple type K (-50.0 to 500.0 °C) Input range Thermocouple type J (-50.0 to 500.0 °C) In normal condition: K-500 to K5000 When exceeding rated range: K-501, K5001 or K8000 Digital value When wire is broken: K8000 When data is getting ready: K8001...
  • Page 257 Range setting switch Select the thermocouple type K or J with the switch at the back. (The CH0 and CH1 will be the same range.) Switch (backside) Thermocouple type K Thermocouple type J K and J range Conversion characteristics graph When exceeding the rated range Input value Converted value...
  • Page 258 8.3.5 FP-X RTD (Resistance Temperature Detector) Cassette Product No.: AFPX-RTD2 Item Specifications No. of input points 2 channels/cassette Note1) Input range RTD Pt100 (-200.0 to +850.0 °C) In normal condition : K-2000 to K8500 Note2) When exceeding rated range : K-2150 to K-2001, K8501 to K8650 Digital conversion value When wire is broken : K20000...
  • Page 259 Connection method Connect each channel as mentioned below. After the connection, confirm that the polarity and terminal positions are correctly connected. Note1) When extending the lead wire of RTD, use 3 wires in the same resistance and the same length. Note2) Do not place the input signal line close to an AC power line or high-voltage line.
  • Page 260 8.3.6 FP-X Input Cassette Product No.: AFPX-IN8 Item Description Insulation method Optical coupler Rated input voltage 24 V DC Operating voltage range 21.6 to 26.4 V DC Rated input current Approx. 3.5 mA 8 points/common Input points per common (Either the positive or negative of input power supply can be connected to common terminal.) Min.
  • Page 261 8.3.7 FP-X Output Cassette Product No.: AFPX-TR8 Item Description Insulation method Optical coupler Output type Open collector (NPN) Rated load voltage 24 V DC Operating load voltage range 21.6 to 26.4 V DC Max. load current 0.3 A Max. inrush current 1.5 A Output points per common 8 points/common...
  • Page 262 Product No.: AFPX-TR6P Item Description Insulation method Optical coupler Output type Open collector (PNP) Rated load voltage 24 V DC Operating load voltage range 21.6 to 26.4 V DC Max. load current 0.5 A Max. surge current 1.5 A Output points per common 6 points/common Off state leakage current 1µ...
  • Page 263 8.3.8 FP-X I/O Cassette Product No.: AFPX-IN4T3 Input specifications Item Description Rated input voltage 24 V DC Operating voltage range 21.6 to 26.4 V DC Rated input current Approx. 3.5 mA Input points per common 4 points/common Min. on voltage/Min. on current 19.2 V DC/3 mA Max.
  • Page 264 8.3.9 FP-X Pulse I/O Cassette Product No.: AFPX-PLS Note: The pulse I/O cassette cannot be used with the FP-X Control Unit Tr type. High-speed counter part Item Specifications Insulation method Optical coupler For high-speed counter Single-phase 2 channels, 2-phase 1 channel No.
  • Page 265 LED indication/Terminal layout Circuit diagram High-speed counter part Pulse output part Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 266 8.3.10 FP-X Master Memory Cassette Product No.: AFPX-MRTC Item Specifications Year, month, day hour (24-hour display), minute, second and Setting items day of week Clock/Calendar At 0 °C: less than 104 seconds per month Accuracy At 25 °C: less than 51 seconds per month At 55 °C: less than 155 seconds per month Memory capacity Flash ROM (512 kB)
  • Page 267: High-Speed Counter, Pulse Output And Pwm Output Functions (For Tr Type)

    Chapter 9 High-speed Counter, Pulse Output and PWM Output Functions (For Tr Type) Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 268: Overview Of Each Functions

    9.1 Overview of Each Functions 9.1.1 Usable Units and Cassettes 1. The pulse input can be counted using the inputs X0 to X7 of the main unit (Single-phase 8 channels, 2-phase 4 channels) 2. The pulse output can be carried out using the output of the main unit. C14 Tr type: 3 ch C30, C60 Tr type: 4 ch (0 ch, 1ch: High-speed pulse...
  • Page 269 PWM output function (Control unit) By using the exclusive instruction, the PWM output function enables a pulse output of the desired duty ratio. Note) The pulse I/O cassette (AFPX-PLS) cannot be used with the FP-X Tr type control unit. 9.1.3 Performance of Pulse I/O Function Number of Channel I/O to be used High-speed counter...
  • Page 270 9.2 Function Specifications and Restricted Items 9.2.1 Specifications High-speed counter function High-speed counter by the input of the main unit Performance Memory area being used specifications Input Reset Min. Max. Channel No. Elapsed Target input Control input counting contact value value flag pulse...
  • Page 271 Pulse output function Pulse output when using CPU output Input/output contact number used Memory area used Devi- Max. ation output Near Con- Elapsed Target Channel No. coun- Home frequency pulse Sign home trol value value input Note2) out- out- input flag area area...
  • Page 272 9.2.2 Functions Used and Restrictions Simplified chart - Maximum counting speed of High-speed counter The maximum counting speed of the high-speed counter varies according to No. of channels to be used or the simultaneous use of the pulse output function. Use the chart below as a guide. Max.
  • Page 273 Max. counting speed (Frequency kHz) Combination with pulse output function Pulse output 2 CH Pulse output 4 CH Pulse output 1 CH Pulse output 3 CH (1-axis interpolation) (2-axis interpolation) Single- Single- Single- Single- Single- Single- Single- Single- 2-phase 2-phase 2-phase 2-phase phase...
  • Page 274 Pulse input/output performance Independent control High-speed Medium-speed Maximum output frequency kHz High-speed CH Medium-speed CH Available Available Available Available Available Available Available Available Available Available Note) Even if all channels are used, they can be used within the ranges above. Interpolation control Maximum output frequency kHz High-speed...
  • Page 275 Restrictions on I/O allocations • Various functions listed in the table of specifications cannot be allocated to one I/O at the same time. Allocations of input X and restrictions when using the high-speed counter function When using the high-speed counter, it is necessary to set how to use the input by system registers. C14/C30/C60 Tr type Pulse High-speed...
  • Page 276 9.2.3 Booting Time The booting time is the time span from the execution of the instruction to the actual pulse output. Type of instruction Booting time CW/CCW is set : Approx. 200 µs (with 30 steps) Pulse output instruction F171 Approx.
  • Page 277: High-Speed Counter Function

    9.3 High-speed Counter Function 9.3.1 Overview of High-speed Counter Function • The high-speed counter function counts the input signals, and when the count reaches the target value, turns on and off the desired output. • To turn on an output when the target value is matched, use the target value match ON instruction F166 (HC1S).
  • Page 278 Count for reset input (Incremental input mode) The reset input is executed by the interruption at (1) on (edge) and (2) off (edge). (1) on (edge) … Count disable, Elapsed value clear (2) off (edge) … Count enable DT90052 (bit2): “able/disable” setting of the input can be set by the reset input.
  • Page 279 9.3.4 I/O Allocation • As shown in the table of specifications, the inputs and outputs used will differ depending on the channel number being used. • The output turned on and off can be specified with instructions F166 (HC1S) and F167 (HC1R) for desired output (Yn:n<300).
  • Page 280 High-speed counter/pulse output control flag area of FP-X Tr type • The area DT90052 for writing channels and control codes is allocated as shown in the left figure. • Control codes written with an F0 (MV) instruction are stored by channel in special data registers DT90370 to DT90377.
  • Page 281 Target value match ON instruction (F166) Example 1: If the elapsed value (DT90300 and DT90301) for channel 0 matches K10000, output Y7 turns Example 2: If the elapsed value (DT90308 and DT90309) for channel 2 matches K20000, output Y6 turns Target value match OFF instruction (F167) Example 1: If the elapsed value (DT90304 and DT90305)
  • Page 282 9.3.6 Sample program (Control Unit and Main Unit I/O) Positioning operations with a single speed inverter Wiring example Operation chart I/O allocation I/O No. Description Encoder input Main Operation start signal unit Inverter operation signal Positioning operation running R100 Positioning operation start R101 Positioning done pulse R102...
  • Page 283 Positioning operations with a double speed inverter Wiring example Operation chart I/O allocation I/O No. Description Encoder input Main Operation start signal unit Inverter operation signal Inverter high-speed signal Positioning operation running R100 Positioning operation start R101 Arrival at deceleration point R102 Positioning done pulse R103...
  • Page 284 Program When X5 is turned on, Y0 and Y1 turn on and the conveyor begins moving. When the elapsed value (DT90300 and DT90301) reaches K4500, Y1 turns off and the conveyor begins decelerating. When the elapsed value reaches K5000, Y0 turns off and the conveyor stops. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 285: Pulse Output Function

    9.4 Pulse Output Function 9.4.1 Overview of Pulse Output Function Instructions used and controls Together with a commercially available pulse-string input type motor driver, the pulse output function can be used for positioning control. Exclusive Type of control Description instruction Provides trapezoidal (table-shaped) control for automatically Trapezoidal obtaining pulse outputs by specifying the initial speed, maximum...
  • Page 286 9.4.2 Types of Pulse Output Method and Operation Modes Clockwise/counter-clockwise output method Control is carried out using two pulses: a forward rotation pulse and a reverse rotation pulse. Pulse/direction output method (forward: OFF/reverse: ON) Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with on/off signals.
  • Page 287 Operation mode Incremental <Relative value control> Outputs the pulses set with the target value. Selected Pulse and direction Pulse and direction Mode HSC counting CW/CCW forward OFF/ forward ON/ Target Method reverse ON reverse OFF value Pulse output when Pulse output when Pulse output Positive direction output is...
  • Page 288 Precautions on programming Address Flag conditions The uses of the flag in the program Use this to prohibit the simultaneous Turns on during execution of pulse output execution of other high-speed counter R911C instructions and then maintains that state instructions and pulse output Control flag during pulse output from CH0.
  • Page 289 9.4.3 I/O Allocation Double pulse input driver (CW pulse input and CCW pulse input method) • Two output contacts are used as a pulse output for “CW, CCW”. • The I/O allocation of pulse output terminal and home input is determined by the channel used. •...
  • Page 290 Single pulse input driver (pulse input and directional switching input method) • One output point is used as a pulse output and the other output is used as a direction output. • The I/O allocation of pulse output terminal, direction output terminal, and home input is determined by the channel used.
  • Page 291 9.4.4 Pulse output control instructions (F0) (F1) Pulse output control instruction (F0) • This instruction is used for resetting the built-in high-speed counter, stopping the pulse output, and setting and resetting the near home input. • Specify this F0 (MV) instruction together with special data register DT90052. •...
  • Page 292 Key Point: High-speed counter/pulse output control flag area of FP-X Tr type • The area DT90052 for writing channels and control codes is allocated as shown in the left figure. • Control codes written with an F0 (MV) instruction are stored by channel in special data register DT90380 to DT90383.
  • Page 293 9.4.5 Wiring for Pulse Output Sample Program (F171 to F174) Wiring example Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2. Table of I/O allocation I/O No.
  • Page 294 9.4.6 Positioning Control Instruction F171 - Trapezoidal • This instruction automatically performs trapezoidal control according to the specified data table. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 295 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 296 Sample program Incremental Position Control Operation: Plus Direction When X0 turns on, the pulse is output from CW output Y0 of the specified channel CH0. Note) In that case, the memory Y0 does not turn on/off according to the pulse output, and also the monitoring is not possible.
  • Page 297 Incremental Position Control Operation: Minus Direction When X1 turns on, the pulse is output from CCW output Y1 of the specified channel CH0. Note) In that case, the memory Y1 does not turn on/off according to the pulse output. Program Pulse output diagram Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 298 Absolute position control operation When X1 is turned on, pulses are output from CW output Y0 or CCW output Y1 of the specified channel CH0. If the current value at that point is larger than 22000, the pulses are output from Y1, and if the value is smaller than 22000, the pulses are output from Y0.
  • Page 299 9.4.7 Positioning Control Instruction F171 – Home Return (Common to Transistor type) • This function performs home return according to the specified data table. The elapsed value area CH0 (DT90348, DT90349) and CH1 (DT90352, DT90353) is cleared to zero after the completion of home return.
  • Page 300 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 301 Home return operation modes There are two operation modes for a home return with the FP-X: Type I and Type II. Type I home return The home input is effective regardless of whether or not here is a near home input, whether deceleration is taking place, or whether deceleration has been completed.
  • Page 302 Sample program Home return operation using CH0: Minus direction When X2 turns on, a pulse is output from CCW output Y1 of the specified channel CH0 and the return to home begins. When X5 turns on, deceleration begins, and when X4 turns on, home return is completed. After the return to home is completed, the elapsed value areas DT90348 and DT90349 are cleared to 0.
  • Page 303 Sample program Home return operation using CH1: Plus direction When X3 turns on, a pulse is output from CW output Y2 of the specified channel CH1 and the return to home begins. When X6 turns on, deceleration begins, and when X5 turns on, home return is completed. After the return to home is completed, the elapsed value areas DT90352 and DT90353 are cleared to 0.
  • Page 304 9.4.8 Pulse Output Instruction F172 – JOG operation • This instruction is used for JOG operation by obtaining a pulse from the desired output when the execution condition (trigger) turns on. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 305 Key Point: The FP-X supports two operation modes for JOG operation, one in which no target value is specified, and one in which feed stops when the target value is reached. Normal jogging operation feed (no target value specified) Pulses are output in accordance with the conditions set in the data table, as long as execution condition is on.
  • Page 306 Sample program JOG operation : Plus direction While X6 is in the ON state, a pulse is output from the CW output Y0 of the specified channel CH0. Program Pulse output diagram Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 307 JOG operation : Minus direction While X7 is in the ON state, a pulse is output from the CCW output Y1 of the specified channel CH0. Program Pulse output diagram Reference: The pulse output control instruction (F0) is used for the pulse output stop. <9.4.4 Pulse output control instruction (F0) (F1)>...
  • Page 308 9.4.9 Positioning Control Instruction F174 – Data Table Control • Positioning is performed according to the specified data table. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 309 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 310 9.4.10 Pulse Output Instruction F175 – Linear Interpolation • The linear interpolation controls positioning with two axes according to the specified data table. Note: The linear interpolation function can be used in the combination of (ch0 and ch1) or (ch2 and ch3). Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 311 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 312 Sample program of interpolation control Wiring example Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2. Table of I/O allocation I/O No.
  • Page 313 Restrictions on positioning data setting • Designate settings for the target position and moving amount so they are within the following range. Allowable range: -8,388,608 to +8,388,608 • When using in combination with other positioning instructions like F171, designate so the target value is within the above range, even in those instructions.
  • Page 314 Program Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 315 Home return operation (Minus direction) When X0 turns on, the pulse is output from CCW output Y1 of the specified channel CH0 and CCW output Y3 of the specified channel CH1, and the return to home begins. In CH0, when X6 turns on, deceleration begins, and when X4 turns on, home return is completed. After the return to home is completed, the elapsed value areas DT90348 and DT90349 are cleared to 0.
  • Page 316 Program Key Point: As there is not interpolation function for the home return, the home return should be executed for each channel. After the home return for both channels is completed, the positioning operation running program (R40) turns off. Pulse output diagram Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 317: Pwm Output Function (Pulse I/O Cassette)

    9.5 PWM Output Function (Pulse I/O Cassette) 9.5.1 Overview of PWM Output Function PWM output function With the F173 (PWMH) instruction, the pulse width modulation output of the specified duty ratio is obtained. System register setting When using the PWM output function, set the channel corresponding to the system register 402 to “PWM output”.
  • Page 318 *2: specification of duty (specify using K constant) If the control code is K0 to K19, the duty is K0 to K999 (0.0% to 99.9%). If the control code is K20 to K24, the duty is K0 to K990 (0% to 99%). Values are specified in units of 1% (K10) (digits behind the decimal point are rounded off).
  • Page 319: High-Speed Counter, Pulse Output And Pwm Output Functions (For Ry Type)

    Chapter 10 High-speed counter, Pulse Output and PWM Output functions (For Ry Type) Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 320: Overview Of Each Functions

    10.1 Overview of Each Functions Describes the functions of the relay type (Ry type) FP-X control unit. 10.1.1 Usable Units and Cassettes 1. The pulse input can be counted using the inputs X0 to X7 of the main unit (Single-phase 8 channels, 2-phase 4 channels) 2.
  • Page 321 PWM output function (Pulse I/O cassette) By using the exclusive instruction, the PWM output function enables a pulse output of the desired duty ratio. 10.1.3 Performance of Pulse I/O Function Number of Channel High-speed counter Pulse output Single-phase 8 channels or None Built in Control unit 2-phase 4 channels...
  • Page 322 10.2 Function Specifications and Restricted Items 10.2.1 Specifications High-speed counter function High-speed counter by the input of the main unit Memory area being used Performance specifications Maximum Channel No. Input contact Control Elapsed Target Minimum input counting Note1) flag value area value area pulse width Note2)
  • Page 323 High-speed counter when using pulse I/O cassette (AFPX-PLS) Memory area being used Performance specifications Input Elapsed Target Minimum Channel No. Control Maximum contact value value input pulse flag counting speed Note1) Note2) area area width X100 DT90332 DT90334 R9118 (X102) DT90333 DT90335 X101...
  • Page 324 Pulse output function Pulse output when using pulse I/O cassette (AFPX-PLS) Input/output contact number used Memory area used Devi- High-speed Near ation Elapsed Target counter channel Home home Control dire- counter value value pulse input input flag ction clear area area Note3) output...
  • Page 325 10.2.2 Functions Used and Restrictions High-speed counter built in the control unit 2-phase Single-phase No. of channels Max. frequency No. of channels Max. frequency − 10 kHz − 10 kHz − 10 kHz − 10 kHz − 10 kHz − 10 kHz −...
  • Page 326 Restrictions on I/O allocations • Various functions listed in the table of specifications cannot be allocated to one I/O at the same time. • Except for the examples noted below, inputs and outputs that have been allocated to the various functions cannot be allocated as normal inputs and outputs.
  • Page 327: High-Speed Counter Function

    10.3 High-speed Counter Function 10.3.1 Overview of High-speed Counter Function • The high-speed counter function counts the input signals, and when the count reaches the target value, turns on and off the desired output. • To turn on an output when the target value is matched, use the target value match ON instruction F166 (HC1S).
  • Page 328 Count for reset input: only for pulse I/O cassette (Incremental input mode) The reset input is executed by the interruption at (1) on (edge) and (2) off (edge). (1) on (edge) … Count disable, Elapsed value clear (2) off (edge) … Count enable DT90052 (bit2): “able/disable”...
  • Page 329 10.3.4 I/O Allocation • As shown in the table of specifications, the inputs and outputs used will differ depending on the channel number being used. • The output turned on and off can be specified with instructions F166 (HC1S) and F167 (HC1R) for desired output relays (Yn:n<300).
  • Page 330 High-speed counter/pulse output control flag area of FP-X Ry type • The area DT90052 for writing channels and control codes is allocated as shown in the left figure. • Control codes written with an F0 (MV) instruction are stored by channel in special data registers DT90360 to DT90373.
  • Page 331 Target value match ON instruction (F166) Example 1: If the elapsed value (DT90300 and DT90301) for channel 0 matches K10000, output Y7 turns Example 2: If the elapsed value (DT90308 and DT90309) for channel 2 matches K20000, output Y6 turns Target value match OFF instruction (F167) Example 1: If the elapsed value (DT90304 and DT90305)
  • Page 332 10.3.6 Sample program (Control Unit and Main Unit I/O) Positioning operations with a single speed inverter Wiring example Operation chart I/O allocation I/O No. Description Encoder input Main Operation start signal unit Inverter operation signal Positioning operation running R100 Positioning operation start R101 Positioning done pulse R102...
  • Page 333 Positioning operations with a double speed inverter Wiring example Operation chart I/O allocation I/O No. Description Encoder input Main Operation start signal unit Inverter operation signal Inverter high-speed signal Positioning operation running R100 Positioning operation start R101 Arrival at deceleration point R102 Positioning done pulse R103...
  • Page 334 Program When X5 is turned on, Y0 and Y1 turn on and the conveyor begins moving. When the elapsed value (DT90300 and DT90301) reaches K4500, Y1 turns off and the conveyor begins decelerating. When the elapsed value reaches K5000, Y0 turns off and the conveyor stops. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 335 10.3.7 Sample program (Pulse I/O Cassette) Positioning operations with a single speed inverter Wiring example Operation chart I/O allocation I/O No. Description Encoder input X100 Main Operation start signal unit X102 Inverter operation signal Y100 Positioning operation running R100 Positioning operation start R101 Positioning done pulse R102...
  • Page 336 Positioning operations with a double speed inverter Wiring example Operation chart I/O allocation I/O No. Description Encoder input X100 Main Operation start signal X102 unit Inverter operation signal Y100 Inverter high-speed signal Y101 Positioning operation running R100 Positioning operation start R101 Arrival at deceleration point R102...
  • Page 337 Program When X102 is turned on, Y100 and Y101 turn on and the conveyor begins moving. When the elapsed value (DT90332 and DT90333) reaches K4500, Y101 turns off and the conveyor begins decelerating. When the elapsed value reaches K5000, Y100 turns off and the conveyor stops. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 338: Pulse Output Function (Pulse I/O Cassette)

    10.4 Pulse Output Function (Pulse I/O Cassette) 10.4.1 Overview of Pulse Output Function Instructions used and controls Together with a commercially available pulse-string input type motor driver, the pulse output function can be used for positioning control. Exclusive Type of control instru- Description Usable cassette...
  • Page 339 10.4.2 Types of Pulse Output Method and Operation Modes Clockwise/counter-clockwise output method Control is carried out using two pulses: a forward rotation pulse and a reverse rotation pulse. Pulse/direction output method (forward: OFF/reverse: ON) Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with on/off signals.
  • Page 340 Operation mode Incremental <Relative value control> Outputs the pulses set with the target value. Selected Pulse and direction Pulse and direction Mode HSC counting CW/CCW forward OFF/ forward ON/ Target Method reverse ON reverse OFF value Pulse output when Pulse output when Pulse output Positive direction output is...
  • Page 341 Precautions on programming Address Flag conditions The uses of the flag in the program Use this to prohibit the simultaneous Turns on during execution of pulse output execution of other high-speed counter R911C instructions and then maintains that state instructions and pulse output Control flag during pulse output from CH0.
  • Page 342 10.4.3 I/O Allocation Double pulse input driver (CW pulse input and CCW pulse input method) • Two output contacts are used as a pulse output for “CW, CCW”. • The I/O allocation of pulse output terminal and home input is determined by the channel used. •...
  • Page 343 10.4.4 Pulse output control instructions (F0) (F1) Pulse output control instruction (F0) • This instruction is used for resetting the built-in high-speed counter, stopping the pulse output, and setting and resetting the near home input. • Specify this F0 (MV) instruction together with special data register DT90052. •...
  • Page 344 Key Point: High-speed counter/pulse output control flag area of FP-X Ry type • The area DT90052 for writing channels and control codes is allocated as shown in the left figure. • Control codes written with an F0 (MV) instruction are stored by channel in special data register DT90372 and DT90373.
  • Page 345 10.4.5 Wiring for Pulse Output Sample Program (F171 to F174) Wiring example Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2. Table of I/O allocation I/O No.
  • Page 346 10.4.6 Positioning Control Instruction F171 - Trapezoidal • This instruction automatically performs trapezoidal control according to the specified data table. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 347 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 348 Sample program Incremental Position Control Operation: Plus Direction When X0 turns on, the pulse is output from CW output Y100 of the specified channel CH0. Note) In that case, the memory Y100 does not turn on/off according to the pulse output, and also the monitoring is not possible.
  • Page 349 Incremental Position Control Operation: Minus Direction When X1 turns on, the pulse is output from CCW output Y101 of the specified channel CH0. Note) In that case, the memory Y101 does not turn on/off according to the pulse output. Program Pulse output diagram Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 350 Absolute position control operation When X1 is turned on, pulses are output from CW output Y100 or CCW output Y101 of the specified channel CH0. If the current value at that point is larger than 22000, the pulses are output from Y101, and if the value is smaller than 22000, the pulses are output from Y100.
  • Page 351 10.4.7 Positioning Control Instruction F171 – Home Return (Common to Transistor type) • This function performs home return according to the specified data table. The elapsed value area CH0 (DT90348, DT90349) and CH1 (DT90352, DT90353) is cleared to zero after the completion of home return.
  • Page 352 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 353 Home return operation modes There are two operation modes for a home return with the FP-X: Type I and Type II. Type I home return The home input is effective regardless of whether or not here is a near home input, whether deceleration is taking place, or whether deceleration has been completed.
  • Page 354 Sample program Home return operation using CH0: Minus direction When X2 turns on, a pulse is output from CCW output Y101 of the specified channel CH0 and the return to home begins. When X100 turns on, deceleration begins, and when X102 turns on, home return is completed.
  • Page 355 Sample program Home return operation using CH1: Plus direction When X3 turns on, a pulse is output from CW output Y200 of the specified channel CH1 and the return to home begins. When X200 turns on, deceleration begins, and when X202 turns on, home return is completed.
  • Page 356 10.4.8 Pulse Output Instruction F172 – JOG operation • This instruction is used for JOG operation by obtaining a pulse from the desired output when the execution condition (trigger) turns on. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 357 Key Point: The FP-X supports two operation modes for JOG operation, one in which no target value is specified, and one in which feed stops when the target value is reached. Normal jogging operation feed (no target value specified) Pulses are output in accordance with the conditions set in the data table, as long as execution condition is on.
  • Page 358 Sample program JOG operation : Plus direction While X3 is in the ON state, a pulse is output from the CW output Y100 of the specified channel CH0. Program Pulse output diagram Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 359 JOG operation : Minus direction While X4 is in the ON state, a pulse is output from the CCW output Y101 of the specified channel CH0. Program Pulse output diagram Reference: The pulse output control instruction (F0) is used for the pulse output stop. <10.4.4 Pulse output control instruction (F0) (F1)>...
  • Page 360 10.4.9 Positioning Control Instruction F174 – Data Table Control • Positioning is performed according to the specified data table. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 361 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 362 10.4.10 Pulse Output Instruction F175 – Linear Interpolation • The linear interpolation controls positioning with two axes according to the specified data table. Note: The linear interpolation function can be used only when 2 units of the AFPX-PLS are being used. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 363 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 364 Sample program of interpolation control Wiring example Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2. Table of I/O allocation I/O No.
  • Page 365 Restrictions on positioning data setting • Designate settings for the target position and moving amount so they are within the following range. Allowable range: -8,388,608 to +8,388,608 • When using in combination with other positioning instructions like F171, designate so the target value is within the above range, even in those instructions.
  • Page 366 Program Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 367 Home return operation (Minus direction) When X0 turns on, the pulse is output from CCW output Y101 of the specified channel CH0 and CCW output Y201 of the specified channel CH1, and the return to home begins. In CH0, when X100 turns on, deceleration begins, and when X102 turns on, home return is completed. After the return to home is completed, the elapsed value areas DT90348 and DT90349 are cleared to 0.
  • Page 368 Program Key Point: As there is not interpolation function for the home return, the home return should be executed for each channel. After the home return for both channels is completed, the positioning operation running program (R40) turns off. Pulse output diagram Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 369: Pwm Output Function (Pulse I/O Cassette)

    10.5 PWM Output Function (Pulse I/O Cassette) 10.5.1 Overview of PWM Output Function PWM output function With the F173 (PWMH) instruction, the pulse width modulation output of the specified duty ratio is obtained. System register setting When using the PWM output function, set the channel CH0 and CH1 with system registers 400 and 401 to “Use output Y0 (Y3) as PWM output”.
  • Page 370 *2: specification of duty (specify using K constant) If the control code is K0 to K19, the duty is K0 to K999 (0.0% to 99.9%). If the control code is K20 to K24, the duty is K0 to K990 (0% to 99%). Values are specified in units of 1% (K10) (digits behind the decimal point are rounded off).
  • Page 371: Security Functions

    Chapter 11 Security Functions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 372: Type Of Security Functions

    11.1 Type of Security Functions There are mainly three functions as the security function of the FP-X. It is possible to rewrite data during any of these functions is being used. 1: Password protect function It is used to restrict the access to the programs in the FP-X from the programming tool by setting a password.
  • Page 373: Password Protect Function

    11.2 Password Protect Function This function is used to prohibit reading and writing programs and system registers by setting a password on the FP-X. There are two ways to set a password as below. 1. Sets using the programming tool. 2.
  • Page 374 Available retry counts This is the number of times that you can input the password in succession. Every time incorrect password is input, the number will decrease (up to 3 times). If you fail to input the correct password for 3 times in succession, you cannot access the program.
  • Page 375 Setting to allow the access to the program by inputting a password As the dialog box is shown, select as below. Digit number: Select “4 digits” or “8 digits”. Operation Mode: Select “Access”. 4 digits (or 8 digits) password: Input a password to be set. Click “Settings”.
  • Page 376 Executing the force cancel (Programs and security information are all deleted.) Click [Force cancel]. Click [Yes]. If the current status is “Password is not set”, this procedure has completed. All programs and security information were deleted. About the password data of the master memory cassette (AFPX-MRTC) The data on the password setting can be transferred to the master memory cassette together with the programs from the FP-X.
  • Page 377: Upload Protection

    11.3 Upload Protection This function is to prohibit reading programs and system registers by setting to disable program uploading on the FP-X. If the FP-X is set to prohibit program uploading, note that the ladder programs and system registers will be disabled to be uploaded after that.
  • Page 378 Specifying the information on upload protection in the master memory cassette Programs cannot be transferred from the FP-X prohibited uploading to the master memory cassette. The upload protection can be set to the master memory cassette from the FP-X that is not prohibited uploading using the “Internal memory to Master memory”...
  • Page 379: Setting Function For Fp Memory Loader

    11.4 Setting Function for FP Memory Loader The following three functions of the FP memory loader (AFP8670/AFP8671) can be set through the FP-X. The setting will be effective when it is transferred to another FP-X after the upload to the FP memory loader from the set FP-X.
  • Page 380 11.4.3 Upload Protection Setting Function (Set that PLC cannot be uploaded) If this function is valid, the PLC will be in the upload protection state by downloading a program to the PLC from the FP memory loader. Note: This function cannot be used when the setting to disable the download to the FP-X older than V2.5 has not been made.
  • Page 381 11.4.4 Version Check List Version check list State of target PLC to be written Password 4 digits 8 digits 8 digits version to Protected Not set Protected Protected be written Program in FP memory loader Note4) V2.40 - No password Note1) or older FP-X...
  • Page 382 11.4.5 Setting using FPWIN GR 1. Select [Online Edit Mode] under the [Online] on the menu bar, or press the [CTRL] and [F2] keys at the same time, to switch to the [Online] screen. 2. Select or “Set PLC Password” under “Tool” on the menu bar. The following display will be shown. 1.
  • Page 383: Table Of Security Settings/Cancel

    11.5 Table of Security Settings/Cancel When setting the security on FP-X control unit When the master memory cassette is not installed on the FP-X control unit Status of security Security not Upload 4-digit 8-digit protection password password Upload protection Sets/ 4-digit password Cancels 8-digit password...
  • Page 384 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 385: Other Functions

    Chapter 12 Other Functions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 386: Transfer Function Between Memories

    12.1 Transfer Function between Memories Flow of program information RAM to ROM transfer function All points of the contents of the DT in the internal RAM are transferred to the internal F-ROM data area. This function is used to transfer large volumes of the default data to be used on the DT. The necessary data is read from the internal F-ROM area to be used for ladder programs.
  • Page 387: Function Of Master Memory Cassette

    12.2 Function of Master Memory Cassette The clock/calendar to set year, month, day, day of week and time, and the master memory is equipped in the master memory cassette. The following 2 methods can be selected with the switch at the back. 1.
  • Page 388 Setting of clock/calendar There are two ways to set the clock/calendar, as described below. Setting using FPWIN GR 1. Select [Online Edit Mode] under the [Online] on the menu bar, or press the [CTRL] and [F2] keys at the same time, to switch to the [Online] screen. 2.
  • Page 389 12.2.2 Master Memory Function Overview This function enables to transfer the data in the control unit (internal memory) such as programs to the master memory cassette, and to copy them into another control unit (internal memory) by installing the master memory cassette on it. •...
  • Page 390 Select the data to be simultaneously transferred with programs and registers Following three data can be transferred at the same time. (Internal memory: Memory in the control unit) Internal memory to Master memory Master memory to Internal memory Sets a master memory cassette to the upload protection setting.
  • Page 391 12.2.4 Handling of Master Memories Created with Different Models PLC that created master memory Ry type Tr type Ry type Installed Tr type A: Can be installed and operated. : Can be installed depending on the program capacity. E25: Master memory model unmatch error Note1) If the E25 occurs, the mode will not be the RUN.
  • Page 392: P13 (Icwt) Instruction

    12.3 P13 (ICWT) Instruction Data registers of 32765 words can be stored and used in the built-in ROM (F-ROM data area) of the FP-X control unit using the P13 (ICWT) instruction. However, note the followings for the use: 1. Restrictions on the number of writing Writing can be performed within 10000 times.
  • Page 393: Analog Potentiometer

    12.4 Analog Potentiometer 12.4.1 Overview of Analog Potentiometer The FP-X is equipped with two analog potentiometers (four for C60 only) as a standard feature. Turning the potentiometers changes the values of the special data registers DT90040 to DT90044 within a range of K0 to K1000.
  • Page 394: Sampling Trace Function

    12.5 Sampling Trace Function 12.5.1 Overview The FP-X control unit Ver2.0 and later versions support the sampling trace function. Using this function enables to take samplings and record (accumulate) the state of arbitrary data of 16 bits + 3 data registered in the PLC at an arbitrary timing, and to examine the changes in the bit and data in details after stopping sampling at an arbitrary timing.
  • Page 395 Operation image of sampling trace 12.5.3 How to Use Sampling Trace 1. Sampling at regular time intervals (1) Register the bit/word device to be monitored by the time chart monitor function of FPWIN-GR. (2) Specify the sampling configurations. Set the mode of the sampling configurations to “Trace”. Set the sampling rate (time).
  • Page 396 (3) Start monitoring. Start with the button. 2. Sampling by instruction (1) Register the bit/word device to be monitored by the time chart monitor function of FPWIN-GR. (2) Specify the sampling configurations. Set the mode of the sampling configurations to “Trace”. Set the sampling rate (time) to 0.
  • Page 397: Time Constant Processing

    12.6 Time Constant Processing The input time constants for 32 points of the CPU input X0 to X1F can be set by the system registers 430 to 437. If this setting is specified, an operation like the equivalent circuit below will be performed. By the setting, the noises or chattering of input will be removed.
  • Page 398 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 399: Self-Diagnostic And Troubleshooting

    Chapter 13 Self-Diagnostic and Troubleshooting Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 400: Self-Diagnostic Function

    13.1 Self-Diagnostic function 13.1.1 LED Display for Status Condition Status indicator LEDs on control unit • The control unit has a self-diagnostic function which identifies errors and stops operation if necessary. • When an error occurs, the status of the status indicator LEDs on the control unit vary, as shown in the table above.
  • Page 401 13.1.2 Operation Mode When an Error Occurs • Normally, when an error occurs, the operation stops. • For some errors, the user may select whether operation is to be continued or stopped by setting the system registers. You can set the error which operation is to be continued or stopped using the programming tool software as shown below.
  • Page 402: Troubleshooting

    13.2 Troubleshooting 13.2.1 If ERROR LED is Flashing Condition: The self-diagnostic error occurs Procedure 1 Check the error contents (error code) using the programming tool. Using FPWIN GR With the FPWIN GR, if a PLC error occurs during programming or debugging and the RUN mode is changed to the PROG.
  • Page 403 <For error code is 42 (1)> - Condition The expansion unit or add-on cassette that had been connected when the power supply of the control unit was turned on has come off, or the expansion unit has powered off. - Operation 1 Turn off the power supply of the control unit, and connect the expansion unit and add-on cassette.
  • Page 404 13.2.3 ALL LEDs are OFF Procedure 1 Check wiring of power supply. Procedure 2 Check if the power supplied to the FP-X control unit is in the range of the rating. • Be sure to check the fluctuation in the voltage. Procedure 3 Disconnect the power supply wiring to the other devices if the power supplied to the FP-X control unit is shared with them.
  • Page 405 13.2.4 Diagnosing Output Malfunction Proceed from the check of the output side to the check of the input side. Check of output condition 1: Output indicator LEDs are on Procedure 1 Check the wiring of the loads. Procedure 2 Check if the power is properly supplied to the loads. •...
  • Page 406 13.2.5 A Protect Error Message Appears When a password function is used Procedure Enter a password in the “Set PLC Password” menu in FPWIN GR and turn on the “Access” radio button. Using FPWIN GR (1)Select “Set PLC Password” under “Tool” on the menu bar. (2)The PLC password setting dialog box shown below is displayed.
  • Page 407 13.2.7 A Communication Error has Occurred through RS485 Procedure 1 Check to make sure the transmission cables have been securely connected between the two (+) terminals and two (−) terminals of the units, and that the final unit has been correctly connected. Procedure 2 Check if the transmission cables are within the specifications range.
  • Page 408 13.2.9 A Communication Error has Occurred through RS422 Condition: No communication with 1-channel type RS232C/RS422 cassette (AFPX-COM3) Procedure 1 Check to make sure the transmission cables have been securely connected between the two (+) terminals and two (−) terminals of the units, and that the final unit has been correctly connected. Procedure 2 Check if the transmission cables are within the specifications range.
  • Page 409 13.2.11 A Communication Error has Occurred through Ethernet Condition: No communication with Ethernet port of Ethernet + 1-channel type RS232C (AFPX-COM5) Procedure 1 Check if the LAN cable is securely connected to each unit or a PC. When using a HUB for the connection, check if the power supply of the HUB is on. Procedure 2 Check if the LINK/ACT LED lights up.
  • Page 410 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 411: Precautions During Programming

    Chapter 14 Precautions During Programming Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 412: Use Of Duplicated Output

    14.1 Use of Duplicated Output 14.1.1 Duplicated Output What is duplicated output? • Duplicated output refers to repeatedly specifying the same output in a sequence program. • If the same output is specified for the “OT” and “KP” instructions, it is considered to be duplicated output.
  • Page 413 The output is determined by the final operation results • If the same output is used by several instructions such as the OT, KP, SET, RST or data transfer functions, the output obtained at the I/O update is determined by the final results of the operation. <Example>...
  • Page 414: Handling Bcd Data

    14.2 Handling BCD Data 14.2.1 BCD Data BCD is an acronym for binary-coded decimal, and means that each digit of a decimal number is expressed as a binary number. <Example> Expressing a decimal number in BCD: 14.2.2 Handling BCD Data in the PLC •...
  • Page 415: Handling Index Registers

    14.3 Handling Index Registers 14.3.1 Index Registers • Like other registers, index registers have 14 points, I0 to ID, for reading and writing 16-bit data. • Use an index register to indirectly specify a memory area number. (This is also called index modification.) <Example>...
  • Page 416 14.3.3 Example of Using an Index Register Repeatedly reading in external data <Example> Writing the contents of input WX3 to a sequence of data registers beginning from DT0. When R0 turns on, 0 is written to index register I0. ○ When the R1 turns on, the contents of input WX3 is transferred to the data register specified by I0DT0.
  • Page 417: Operation Errors

    14.4 Operation Errors 14.4.1 Outline of Operation Errors • An operation error is a condition in which operation is impossible when a high-level instruction is executed. • When an operation error occurs, the ERROR/ALARM LED on the control unit will blink and the operation error flags (R9007 and R9008) will turn on.
  • Page 418 14.4.4 Points to Check in Program 1. Check if an extraordinarily large value or negative value was stored in the index register. <Example> When a data register is modified using an index register In this case, index register modifies the address of data register DT0. If data in I0 is too large, it will exceed the addressable range of the data register.
  • Page 419: Instruction Of Leading Edge Detection Method

    14.5 Instruction of Leading Edge Detection Method 14.5.1 Instructions of Leading Edge Detection Method Instructions using the leading edge detection operation 1. DF (leading edge differential) instructions 2. Count input for CT (counter) instructions 3. Count input for F118 (UDC up-down counter) instructions 4.
  • Page 420 14.5.2 Operation and Precautions When RUN Starts Operation of first scan after RUN begins • The leading edge detection instruction is not executed when the mode has been switched to the RUN mode, or when the power supply is booted in the RUN mode, if the trigger (execution condition) is already on.
  • Page 421 14.5.3 Precautions When Using a Control Instruction • If a leading edge detection instruction is in a control instruction, it will be executed only under the following condition: The leading edge detection instruction was off when the execution condition of the previous control instruction was reset, and the leading edge detection instruction is on when the execution condition of the current control instruction becomes on.
  • Page 422 <Example 2> Using the CT instruction between JP and LBL instructions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 423: Precautions For Programming

    14.6 Precautions for Programming Programs which are not executed correctly Do not write the following programs as they will not be executed correctly. <Example 1> • When X1 was on prior to X0, Y0 will not be on even if X0 becomes on. <Example 2>...
  • Page 424: Rewrite Function During Run

    14.7 Rewrite Function During RUN 14.7.1 Operation of Rewrite During RUN How operation of rewrite during RUN Rewriting programs can be executed even in RUN mode. When a rewrite is attempted during RUN, the tool service time is temporarily extended, program rewriting is performed, and operation is resumed without the need to change the mode.
  • Page 425 14.7.2 Cases Where Rewriting During Run is not Possible When the timeout error message is indicated: Even if the timeout error message is indicated, it is highly possible that the program in PLC has been already rewritten. Carry out the following operations. 1.
  • Page 426 Cases where rewriting is not possible during RUN 1. When the result of rewriting is a syntax error. <Example> When executing the rewriting which does not form the following pair of instructions. 1. Step ladder instructions (SSTP/STPE) 2. Subroutine instructions (SUB/RET) 3.
  • Page 427 14.7.3 Procedures and Operation of Rewrite During RUN FPWIN GR FPWIN GR Item Ladder symbol mode Boolean mode Maximum of 128 steps. Rewriting performed by step. Changes are performed by block. Caution is required as rewriting When PG conversion is executed takes place simultaneously with online, the program will be the change.
  • Page 428 FPWIN GR FPWIN GR Item Ladder symbol mode Boolean mode A distance with the same number Writing and deletion of a single cannot be defined twice. instruction is not possible for a An SSTP instruction cannot be program with no step ladder area. written in a subprogram.
  • Page 429: Processing During Forced Input And Output

    14.8 Processing During Forced Input and Output 14.8.1 Processing when forced input/output is initiated during RUN 1. Processing of external input (X) • Regardless of the state of the input from the input device, forced on/off operation will take precedence at a contact specified for forced input/output in the above procedure B.
  • Page 430 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 431: Specifications

    Chapter 15 Specifications Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 432: Table Of Specifications

    15.1 Table of Specifications 15.1.1 General Specifications Item Description Ambient temperature 0 to +55 °C Storage temperature −40 to +70°C Ambient humidity 10 to 95%RH (at25°C non-condensing) Storage humidity 10 to 95%RH (at25°C non-condensing) AC power supply DC power supply Between input terminal and output 2300 V AC for 1 Note4)
  • Page 433 Item Description 5 to 9 Hz, single amplitude of 3.5 mm, 1 cycle/min Vibration resistance 9 to 150 Hz, constant acceleration of 9.8 m/s , 1 cycle/min, 10 min on 3 axes Shock resistance Shock of 147 m/s , 4 times on 3 axes 1500 Vp-p with pulse widths 50 ns and 1µs (based on in-house Noise measurements) (AC power supply terminal)
  • Page 434 Communi- COM4 AFPX-COM4 cation AFPX-C14P Approx. 270 g Approx. COM5 AFPX-COM5 cassette AFPX-C14PD Approx. 250 g 25 g AFPX-C30R Approx. 490 g Approx. COM6 AFPX-COM6 AFPX-C30RD Approx. 470 g 20 g AFPX-C30T Approx. 460 g Analog input cassette AFPX-AD2 Control...
  • Page 435 24 V DC AFPX-C14R 185 mA or less 130 mA or less ― AFPX-C14RD 235 mA or less ― ― AFPX-C30R 410 mA or less 260 mA or less ― AFPX-C30RD 360 mA or less ― ― AFPX-C60R 540 mA or less 320 mA or less ―...
  • Page 436 Note1) These current consumption indicate the increased amount of the current consumption of the Control unit (refer to the example of the calculation below). Note2) The current consumption of E30 is the current consumption at the supply terminal of E30. The current consumption of the control unit does not increase.
  • Page 437 15.1.2 Performance Specifications Descriptions Item Relay type Transistor type 14 points 30 points 60 points 14 points 30 points 60 points DC input: DC input: DC input: DC input: DC input: DC input: Control unit Ry output: Ry output: Ry output: Tr output: Tr output: Tr output:...
  • Page 438 Descriptions Item Relay type Transistor type Input 14 programs, periodical interrupt 1 Input 8 pr ograms, periodical interrupt 1 No. of interrupt programs program program Available Sampling by commands/Sampling at regular time intervals For one sampling: 16 bits + 3 words Sampling trace C14=300 samples C30/C60=1000 samples...
  • Page 439 Descriptions Item Relay type Transistor type C14: 3 chs (High-speed 2 chs, medium- speed 1 ch) C30/C60: 4 chs (High-speed 2 chs, medium-speed 2 chs) Pulse: With high-speed 2 chs (100 kHz each) For linear interpolation, composite speed: 100 kHz Input of main None With medium-speed 2 chs (20 kHz...
  • Page 440 Note1) The number of points actually available for use is determined by the hardware configuration. Note2) The number of points can be increased by using an auxiliary timer. Note3) This is the specifications when the rated input voltage is 24 V DC at 25 °C. The frequency will decrease depending on voltage, temperature or usage condition.
  • Page 441 Communication specifications 1 Interface: : RS232C, RS422, RS485 Item Specifications RS232C RS422 (isolated) Note1) 2) Interface RS485 (isolated) Note1) (non-isolated) Communication mode 1:1 communication 1:N communication Two-wire half-duplex Communication method Half-duplex communication communication Synchronous method Start stop synchronous system Shielded twisted-pair cable Transmission line Multicore shielded line or VCTF...
  • Page 442 Communication specifications 2 Interface: Ethernet Item Specifications IEEE802. 3u, 10BASE-T/100BASE-TX Interface Connector shape: RJ45 Baud rate 100 Mpbs/10 Mbps Transmission Transmission method Baseband specifications Note1) Max. segment length 100 m Communication cable UTP (Category 5) Protocol TCP/IP, UDP/IP, ICMP, ARP, DHCP Auto-negotiation function Function MDI/MDI-X Auto-crossover function...
  • Page 443: Table Of I/O Number Allocation

    15.2 Table of I/O Number Allocation 15.2.1 I/O Allocation of FP-X Control Unit The I/O allocation of the FP-X control unit is fixed. I/O numbers Type of control unit Number of allocation I/O number Input (8 points) X0 to X7 FP-X C14 control unit Output (6 points) Y0 to Y5...
  • Page 444 I/O numbers (when installed as the first expansion unit) I/O do not need to be set as I/O allocation is performed automatically when an expansion unit is added. The I/O allocation of expansion unit is determined by the installation location. Hundred’s digit Carry the digit of hundreds place one by one since the second expansion unit.
  • Page 445 15.2.4 I/O Allocation of FP-X Add-on Cassette The FP-X add-on cassette is mounted on the FP-X control unit. I/O numbers I/O No. Cassette Cassette Type of control unit mounting part 1 mounting part 2 Slot 0 Slot 1 FP-X communication AFPX-COM1 −...
  • Page 446: Relays, Memory Areas And Constants

    15.3 Relays, Memory Areas and Constants Number of points and range of memory area available for use Item Function External input 1760 points (X0 to X109F) Turns on or off based on external input. Note1) External 1760 points (Y0 to Y109F) Externally outputs on or off state Note1) output...
  • Page 447 Number of points and range of memory area available for use Item Function Master control 256 points relay points (MCR) (MC) No. of labels 256 points (JP+LOOP) (LBL) No. of step 1000 stages ladders (SSTP) No. of 500 subroutines subroutines (SUB) No.
  • Page 448 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 449: Dimensions

    Chapter 16 Dimensions Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 450: Dimensions

    16.1 Dimensions 16.1.1 Control Unit Note) AFPX-COM5 is 5 mm taller than other communication cassettes. Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 451 16.1.2 Expansion Unit 16.1.3 Expansion FP0 Adapter 16.1.4 Dimension Diagram for Installation Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 452: Cable/Adapter Specifications

    16.2 Cable/Adapter Specifications 16.2.1 AFC8503/AFC8503S (PC) (Unit: mm) 16.2.2 AFC85305/AFC8531/AFC8532 (For extending for the tool port) Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 453: Appendix

    Chapter 17 Appendix Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 454: System Registers / Special Internal Relays / Special Data Registers

    17.1 System Registers / Special Internal Relays / Special Data Registers Precaution for System Registers What is the system register area • System registers are used to set values (parameters) which determine operation ranges and functions used. Set values based on the use and specifications of your program. •...
  • Page 455 Checking and changing the set value of system register If you are going to use a value which is already set(the value which appears when read), there is no need write it again. Using programming tool software Produce: 1. Set the control unit in the PROG mode. 2.Option ->PLC Configuration 3.When the function for which setting are to be entered is selected in the PLC Configuration dialog box, the value and setting status for the selected system register are displayed.
  • Page 456 17.1.1 Table of System Registers for FP-X Default Add- Item Name Description value ress Starting number setting for • These settings 1008 0 to 1024 counter are effective if the Hold type area starting number 0 to 1024 optional backup 1008 setting for timer and counter battery is...
  • Page 457 FP-X Default Add- Item Name Description value ress Range of link relays used for 0 to 64 words PC(PLC) link Range of link data registers used for 0 to 128 words PC(PLC) link Starting number for link relay 0 to 63 (PLC) transmission link...
  • Page 458 FP-X Tr type Add- Item Name Default value Description ress Do not set input X0 as high-speed counter. Incremental input (X0) CH0: Decremental input (X0) Two-phase input (X0, X1) Do not set input X0 as Individual input (X0, X1) high-speed counter Incremental/decremental control input (X0, CH1: Do not set input X1 as high-speed counter.
  • Page 459 FP-X Tr type Add- Item Name Default value Description ress Normal output (Y0, Y1) CH0: Pulse output (Y0, Y1) Normal output PWM output (Y0), Normal output (Y1) Normal output (Y2, Y3) Cont- CH1: Pulse output (Y2, Y3) Pulse/ roller Normal output PWM output (Y2), Normal output (Y3) output PWM output...
  • Page 460 FP-X Ry type Add- Item Name Default value Description ress Do not set input X100 as high-speed counter. Two-phase input (X100, X101) Two-phase input (X100, X101), Reset input (X102) Incremental input (X100) CH8: Incremental input (X100), Reset input (X102) Do not set Decremental input (X100) Decremental input (X100), Reset input (X102) input X100 as...
  • Page 461 Note1) If the operation mode is set to Two-phase, incremental/decremental, or incremental/decremental control, the setting for CH9 is invalid in system register 400 and the setting for CHB is invalid in system register 401. Note2) If reset input settings overlap, the CH9 setting takes precedence in system register 400 and the CHB setting takes precedence in system register 401.
  • Page 462 FP-X Ry type Add- Item Name Default value Description ress Do not set input X0 as high-speed counter. CH0: Incremental input (X0) Do not set input X0 as Decremental input (X0) high-speed counter Two-phase input (X0, X1) Do not set input X1 as high-speed counter. CH1: Incremental input (X1) Do not set input X1 as...
  • Page 463 FP-X Ry type Add- Item Name Default value Description ress Interrupt edge setting Leading edge controller The pressed contact is up and set to trailing Inter- input edge. rupt edge settings Interrupt edge setting Leading edge for pulse I/O The pressed contact is up and set to trailing cassette edge.
  • Page 464 FP-X Add- Default Item Name Description value ress 1 to 99 Unit No. setting Computer link Communication Computer link General-purpose communications mode setting Selection of modem Disabled Enabled/Disabled connection Enter the settings for the various items. Data length bit: 7 bits/8 bits Parity check: none/with odd/with even Data length Stop bit: 1 bit/2 bits...
  • Page 465 FP-X Default Add- Item Name Description value ress 1 to 99 Unit No. setting Computer link General-purpose serial communication Communication Computer link PC(PLC) link mode setting MODBUS RTU Selection of modem Disabled Enabled/Disabled connection Enter the settings for the various items. Data length bit: 7 bits/8 bits Parity check: none/with odd/with even Data length...
  • Page 466 FP-X Default Add- Item Name Description value ress 1 to 99 Unit No. setting Computer link Computer Communication mode General-purpose serial communication link setting MODBUS RTU Selection of modem Disabled Enabled/Disabled connection Built-in USB Built-in USB Selection of port Communication cassette Enter the settings for the various items.
  • Page 467 FP-X Default Add- Item Name Description value ress Controller input time constant setting 1 X0 to X3 Controller input time constant setting 1 X4 to X7 Controller input time None constant setting 2 1 ms Cont- X8 to XB 2 ms roller Controller input time input...
  • Page 468 17.1.2 Table of Special Internal Relays for FP-X The special internal relays turn on and off under special conditions. The on and off states are not output externally. Writing is not possible with a programming tool or an instruction. WR900 FP-X Address Name Description...
  • Page 469 WR901 FP-X Address Name Description Always on. R9010 Always on relay Always off. R9011 Always off relay Turns on and off alternately at each scan. R9012 Scan pulse relay Goes on for only the first scan after operation (RUN) has Initial (on type) pulse been started, and goes off for the second and subsequent R9013...
  • Page 470 WR902 FP-X Address Name Description Turns off while the mode selector is set to PROG. R9020 RUN mode flag Turns on while the mode selector is set to RUN. R9021 Not used R9022 Not used R9023 Not used R9024 Not used R9025 Not used Turns on while the F149 (MSG) instruction is executed.
  • Page 471 WR903 FP-X Address Name Description R9030 Not used R9031 Not used Turns on when the general-purpose communication function is being used R9032 COM1 port mode flag Goes off when any function other than the general- purpose communication function is being used. Off: Printing is not executed.
  • Page 472 WR904 FP-X Address Name Description Goes on when the general-purpose serial communication is used. R9040 TOOL port mode flag Goes off when the MEWTOCOL is used. Turn on while the PC(PLC) link function is used. R9041 COM1 port PC(PLC) link flag Goes on when the general-purpose serial communication is used.
  • Page 473 WR905 FP-X Address Name Description When using MEWNET-W0 Turns on when a transmission error occurs at MEWNET-W0 PC(PLC) link. R9050 PC(PLC) link Turns on when there is an error in the PC(PLC) link area transmission error flag settings. R9051 to Not used R905F Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 474 WR906 FP-X Address Name Description Turns on when Unit No. 1 is communicating properly in Unit PC(PLC) link mode. Turns off when operation is stopped, R9060 No.1 when an error occurs, or when not in the PC(PLC) link mode. Turns on when Unit No. 2 is communicating properly in Unit PC(PLC) link mode.
  • Page 475 WR907 FP-X Address Name Description Turns on when Unit No. 1 is in the RUN mode. Unit R9070 Turns off when Unit No. 1 is in the PROG. mode. No.1 Turns on when Unit No. 2 is in the RUN mode. Unit R9071 Turns off when Unit No.
  • Page 476 WR908 FP-X Address Name Description Turns on when Unit No. 1 is communicating properly in Unit PC(PLC) link mode. Turns off when operation is stopped, R9080 No.1 when an error occurs, or when not in the PC(PLC) link mode. Turns on when Unit No. 2 is communicating properly in Unit PC(PLC) link mode.
  • Page 477 WR909 FP-X Address Name Description Turns on when Unit No. 1 is in the RUN mode. Unit R9090 Turns off when Unit No. 1 is in the PROG. mode. No.1 Turns on when Unit No. 2 is in the RUN mode. Unit R9091 Turns off when Unit No.
  • Page 478 WR910 FP-X Address Name Description R9100 to Not used R910F R9110 HSC-CH0 R9111 HSC-CH1 R9112 HSC-CH2 R9113 HSC-CH3 - Turns on while the F166 (HC1S) and F167 (HC1R) R9114 HSC-CH4 instructions are executed. R9115 HSC-CH5 - Turns off when the F166 (HC1S) and F167 (HC1R) R9116 HSC-CH6 instructions are completed.
  • Page 479 17.1.3 Table of Special Data Registers for FP-X FP-X (A: Available, N/A: Not available) Read Writ- Address Name Description -ing The self-diagnostic error code is stored here Self-diagnostic error DT90000 when a self-diagnostic error occurs. code DT90001 Not used When an error occurs at the I/O board for the application cassette, the bit corresponding to Position of abnormal the board will be set on.
  • Page 480 FP-X (A: Available, N/A: Not available) Read Writ- Address Name Description -ing When the state of installation of an FP-X add- on cassette has changed since the power was turned on, the bit corresponding to the unit No. Add-on cassette will turn on.
  • Page 481 FP-X (A: Available, N/A: Not available) Read Writ- Address Name Description -ing The current scan time is stored here. Scan time is calculated using the formula: Scan time (current Scan time (ms) = stored data (decimal) x 0.1 DT90022 Note) value) Example: K50 indicates 5 ms.
  • Page 482 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description The number of data that match the searched Work1 for SRC data is stored here when F96 (SRC) DT90037 instructions instruction is executed. The position of the first matching data is Work2 for SRC stored here when an F96 (SRC) instruction is DT90038...
  • Page 483 FP-X (A: Available, N/A: Not available) Read Writ- Address Name Description -ing A value can be written with F0 (MV) instruction to reset the high-speed counter, disable counting, continue or clear high-speed counter instruction. Control code setting High-speed counter DT90052 control flag Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 484 FP-X (A: Available, N/A: Not available) Read Writ- Address Name Description -ing A value can be written with F0 (MV) instruction to reset the high-speed counter, disable counting, continue or clear high-speed counter instruction. Control code setting Pulse output control DT90052 flag Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 485 FP-X (A: Available, N/A: Not available) Read Writ- Address Name Description -ing Hour and minute data of the Real-Time Clock are stored here. This data is read-only data. It cannot be overwritten. Real-Time Clock DT90053 monitor (hour/minute) The year, month, day, hour, minute, second Real-Time Clock and day-of-the-week data for the Real-Time DT90054...
  • Page 486 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description The Real-Time Clock is adjusted as follows. When setting the Real-Time Clock by program By setting the highest bit of DT90058 to 1, the time becomes that written to DT90054 to DT90057 by F0 (MV) instruction.
  • Page 487 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Step ladder process DT90060 (0 to 15) Step ladder process DT90061 (16 to 31) Step ladder process DT90062 (32 to 47) Step ladder process DT90063 (48 to 63) Step ladder process DT90064 (64 to 79) Step ladder process...
  • Page 488 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Step ladder process DT90082 (352 to 367) Step ladder process DT90083 (368 to 383) Step ladder process DT90084 (384 to 399) Step ladder process DT90085 (400 to 415) Step ladder process DT90086 (416 to 431) Indicates the startup condition of the step...
  • Page 489 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Step ladder process DT90098 (608 to 623) Step ladder process DT90099 (624 to 639) Step ladder process DT90100 (640 to 655) Step ladder process DT90101 (656 to 671) Step ladder process DT90102 (672 to 687) Step ladder process...
  • Page 490 FP-X (A: Available, N/A: Not available) Read Writ Address Name Description -ing -ing DT90123 Not used For details, refer to Programming Manual COM1 SEND/RECV DT90124 (F145 and F146). instruction end code For details, refer to Programming Manual COM2 SEND/RECV DT90125 (F145 and F146).
  • Page 491 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Area used for measurement of receiving DT90158 interval. MEWNET-W0 Area used for measurement of sending PC(PLC) link 1 status DT90159 interval. MEWNET-W0 Stores the unit No. of PC(PLC) link 0. DT90160 PC(PLC) link 0 unit No.
  • Page 492 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Unit No. (Station No.) 0: Unit No. (Station No.) 1 to 8, DT90219 selection for DT90220 to 1: Unit No. (Station No.) 9 to 16 DT90251 System regis- DT90220 ter 40 and 41 PC(PLC) System regis-...
  • Page 493 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description System regis- The contents of the system register DT90240 ter 40 and 41 settings pertaining to the PLC inter-link function for the various unit numbers are PC(PLC) System regis- DT90241 stored as shown below.
  • Page 494 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Counting area for input (X0) or Note) DT90300 Elapsed Lower words (X0, X1) of the main unit. value Note) DT90301 area Higher words HSC-CH0 The target value is set when Note) DT90302 Target...
  • Page 495 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Counting area for input (X5) of DT90320 Elapsed Lower words Note1) the main unit. value DT90321 area Higher words Note1) HSC-CH5 The target value is set when DT90322 Lower words Target Note1) instructions F166 (HC1S) and...
  • Page 496 FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Counting area for input (X1) of DT90336 Elapsed Lower words Note1) the pulse I/O cassette. value DT90337 area Higher words Note1) HSC-CH9 The target value is set when Note2) DT90338 Lower words Target...
  • Page 497 FP-X Tr type FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Counting area for the pulse I/O Note) DT90348 Elapsed Lower words CH0 (Y0, Y1). value Note) DT90349 Higher words area The target value is set when PLS-CH0 Note) DT90350...
  • Page 498 FP-X Tr type FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description When HSC control is executed DT90370 HSC-CH0 by F0 (MV)S, DT90052 DT90371 HSC-CH1 instruction, the setting value for DT90372 HSC-CH2 the target CH is stored in each DT90373 HSC-CH3 DT90374...
  • Page 499 FP-X Ry type FP-X (A: Available, N/A: Not available) Read- Writ- Address Name Description Counting area for output Note) DT90348 Elapsed Lower words (Y100, Y101) of the pulse I/O value cassette. Note) DT90349 area Higher words The target value is set when PLS-CH0 Note) DT90350...
  • Page 500: Table Of Basic Instructions

    17.2 Table of Basic Instructions Name Boolean Symbol Description Sequence basic instructions Begins a logic operation with a Form A Start (normally open) contact. Begins a logic operation with a Form B Start Not (normally closed) contact. Outputs the operated result to the specified output.
  • Page 501 Name Boolean Symbol Description Stores the operated result up to this Push stack PSHS instruction. *2 Reads the operated result stored by Read stack the PSHS instruction. *2 Reads and clears the operated result Pop stack POPS stored by the PSHS instruction Turns on the contact for only one Leading edge scan when the leading edge of the...
  • Page 502 Name Boolean Symbol Description Increments or decrements from the UP/DOWN F118 preset value “S” based on up/down counter (UDC) input. Shifts one bit of 16-bit [word internal Shift relay (WR)] data to the left. register Shifts one bit of 16-bit data range Left/right F119 specified by “D1”...
  • Page 503 Name Boolean Symbol Description The operation of program is ended. Indicates the end of a main program. The operation of program is ended when Conditional CNDE the trigger turns on. Adds page break for use when printing. Eject EJECT Step ladder instructions The start of program “n”...
  • Page 504 Name Boolean Symbol Description Special setting instructions Change the communication conditions Communica- SYS1 for the COM port or tool port based on tion condi- the contents specified by the character tions setting constant. Change the password specified by the Password PLC based on the contents specified by setting the character constant.
  • Page 505 Name Boolean Symbol Description Data compare instructions Begins a logic operation by comparing two 16- 16-bit bit data in the comparative condition “S1=S2”. data Begins a logic operation by comparing two 16- ST<> compare bit data in the comparative condition “S1<S2” or “S1>S2”.
  • Page 506 Name Boolean Symbol Description Begins a logic operation by comparing two 32- 32-bit STD= bit data in the comparative condition “(S1+1, data S1)=(S2+1, S2)”. Begins a logic operation by comparing two 32- compare STD<> bit data in the comparative condition “(S1+1, (Start) S1)<(S2+1, S2)”...
  • Page 507 Name Boolean Symbol Description Begins a logic operation by comparing two 32- Floating STF= bit data in the comparative condition “(S1+1, S1)=(S2+1, S2)”. point Begins a logic operation by comparing two 32- type real STF<> bit data in the comparative condition “(S1+1, number S1)<(S2+1, S2)”...
  • Page 508: Table Of High-Level Instructions

    17.3 Table of High-level Instructions The high-level instructions are expressed by the prefixes “F” or “P” with numbers. For most of the high-level instructions, “F” and “P” types are available. The differences between the two types are explained as follows: - Instructions with the prefix “F”...
  • Page 509 Num- Ope- Name Boo-lean Description rand D1, D2 (D1)→(D2), (D2)→(D1) 16-bit data exchange PXCH D1, D2 (D1+1, D1)→(D2+1, D2) 32-bit data DXCH (D2+1, D2)→(D1+1, D1) exchange PDXCH The higher byte and lower byte of “D” Higher/lower SWAP are exchanged. byte in 16-bit PSWAP data exchange Exchange the data between “D1”...
  • Page 510 Num- Boo- Name Description Operand lean BCD arithmetic instructions S, D (D)+(S)→(D) 4-digit BCD data addition S, D (D+1, D)+(S+1, S)→(D+1, D) 8-digit BCD data addition PDB+ S1, S2, D (S1)+(S2)→(D) 4-digit BCD data addition S1, S2, D (S1+1, S1)+(S2+1, S2)→(D+1, D) 8-digit BCD data addition PDB+...
  • Page 511 Num- Boo- Ope- Name Description lean rand S1, S2, (S1+1, S1)>(S3+1, S3)→R900A: on 32-bit data DWIN (S2+1, S2)< or=(S1+1, S1)< or=(S3+1, band PDWIN S3)→R900B: on compare (S1+1, S1)<(S2+1, S2)→R900C: on S1, S2, Compares the two blocks beginning with Block data BCMP “S2”...
  • Page 512 Num- Ope- Name Boolean Description rand ASCII code → S1, S2, Converts the ASCII code specified by ABIN “S1” and “S2” to 16 bits of binary data 16-bit binary PABIN and stores it in “D”. data Example: H 30 30 31 2D 20 20 →...
  • Page 513 Num- Boo- Ope- Name Description lean rand S, n, Each of the digits of the d ata of “S” 16-bit data distribute DIST are stored in (distributed to) the least PDIST significant digits of the areas beginning at “D”. S, D Twelve characters of the character Character→...
  • Page 514 Ope- Name Boolean Description -ber rand FIFO instructions n, D The “n” words beginning from “D” are F115 FIFO buffer define FIFT defined in the buffer. P115 PFIFT S, D The oldest data beginning from “S” F116 Data read from FIFR that was written to the buffer is read P116...
  • Page 515 Boo- Ope- Name Description -ber lean rand Basic function instruction S, D Turns on the specified output and F137 Auxiliary STMR R900D after 0.01 s × set value. timer (16-bit) Special instructions S, D Converts the hour, minute and second F138 Hours, min- HMSS...
  • Page 516 Num- Ope- Name Boolean Description rand S1, S2, Reads the data from the F150 Data read from READ n, D intelligent unit. P150 intelligent unit PREAD S1, S2, Writes the data into the intelligent F151 Data write into n, D unit.
  • Page 517 Num- Boo- Name Description Operand lean n, S, Yn Turns output Yn off when the F167 High-speed HC1R elapsed v alue of the built-in high- counter output speed counter reaches the target reset (with value of (S+1, S). channel specification) S, n Outputs a positioning pulse from F168...
  • Page 518 Num- Name Boolean Description Operand S, n Outputs the pulses from the F174 Pulse output SP0H specified channel according to (Selectable data table control data table specified by S. operation ) S, n Pulses are output from channel, F175 Pulse output SPSH in accordance with the (Linear...
  • Page 519 Num- Boo- Name Description Operand lean High speed counter/Pulse output instruction for FPΣ/FP-X S, DT90052 Performs high-speed counter High-speed and Pulse output controls counter and according to Pulse output the control code specified by controls “S”. The control code is stored in DT90052.
  • Page 520 Ope- Name Boolean Description -ber rand Screen display instructions S1, S2, Register the screen displayed on F180 FP-e screen S3, S4 the FP-e. display registration Specify the screen to be displayed F181 FP-e screen on the FP-e. display switching Basic function instruction S1, S2, Executes the filter processing for F182...
  • Page 521 Num- Ope- Name Boolean Description rand S, D Converts the 16-bit binary data of F235 16-bit binary data → Gray “S” to gray codes, and the P235 PGRY converted result is stored in the “D”. code conversion S, D Converts the 32-bit binary data of F236 32-bit binary DGRY...
  • Page 522 Num- Ope- Name Boolean Description rand Integer type data processing instructions Searches the maximum value in the F270 Maximum S2, D word data table between the “S1” and P270 value (word PMAX “S2”, an d stores it in the “D”. The data (16-bit)) address relative to “S1”...
  • Page 523 Num- Ope- Name Boolean Description rand S1, S2, When (S1+1, S1)>(S3+1, S3), (S1+1, F286 Upper and DLIMT S3, D S1)→(D+1, D) P286 lower limit PDLIMT When (S2+1, S2)<(S3+1, S3), (S2+1, control S2)→(D+1, D) (32-bit data) When (S1+1, S1)<or = (S3+1, S3)<or = (S2+1, S2), (S3+1, S3)→(D+1, D) S1, S2, When S1>S3, S3−S1→D...
  • Page 524 Num- Boo- Ope- Name Description lean rand S, D SIN(S+1, S)→(D+1, D) F314 Floating-point type P314 data sine operation PSIN S, D COS(S+1, S)→(D+1, D) F315 Floating-point type P315 data cosine PCOS operation S, D TAN(S+1, S)→(D+1, D) F316 Floating-point type P316 data tangent PTAN...
  • Page 525 Num- Ope- Name Boolean Description rand S, D Converts real number data specified F329 Floating-point by (S+1, S) to the 16-bit integer data P329 type data to 16-bit PFIX with sign (rounding the first decimal integer con- point down), and the converted data version (rounding is stored the first decimal...
  • Page 526 Num- Ope- Name Boolean Description rand S1, S2, When (S1+1, S1)>(S3+1, S3), F347 Floating-point FLIMT S3, D (S1+1, S1) →(D+1, D) P347 type data PFLIMT When (S2+1, S2)<(S3+1, S3), upper and (S2+1, S2) → (D+1, D) lower limit When (S1+1, S1)<or = (S3+1, control S3)<or =(S2+1, S2), (S3+1, S3)→(D+1, D)
  • Page 527 Num- Ope- Name Boolean Description rand Time series processing instruction PID processing is performed F355 PID processing depending on the control value (mode and parameter) specified by (S to S+2) and (S+4 to S+10), and the result is stored in the (S+3).
  • Page 528: Table Of Error Codes

    17.4 Table of Error codes Difference in ERROR display There are differences in the way errors are displayed depending on the model. Model Display Display method FP1,FP-M,FP2,FP3,FP10SH ERROR. Continually lit FPΣ,FP0, FP0R, FP-X ERROR/ALARM Flashes/continually lit FP-e Screen display ERR. Continually lit Error Confirmation When ERROR Turns ON When the “ERROR”...
  • Page 529 -Self-diagnostic Error This error occurs when the control unit (CPU unit) self-diagnostic function detects the occurrence of an abnormality in the system. The self-diagnostic function monitors the memory abnormal detection, I/O abnormal detection, and other devices. When a self-diagnostic error occurs - The ERROR turns on or flashes.
  • Page 530 17.4.1 Table of Syntax Check Error Opera- Error Name tion Description and steps to take code status A program with a syntax error has been written. Syntax Stops ⇒ Change to PROG. mode and correct the error error. Two or more OT(Out) instructions and KP(Keep) instructions are programmed using the same relay.
  • Page 531 Opera- Error Name tion Description and steps to take code status The program is too large to compile in the program memory. ⇒ Change to PROG. mode and reduce the Compile total number of steps for the program. Stops memory -FP10SH full error If memory expansion is possible, compilation...
  • Page 532 17.4.2 Table of Self-Diagnostic Error Opera- Error Name tion Description and steps to take code status Probably a hardware abnormality Stops CPU error ⇒Please contact your dealer. error1 error2 Probably an abnormality in the internal RAM. Stops ⇒Please contact your dealer. error3 error4 error5...
  • Page 533 Opera- Error Name tion Description and steps to take code status Configu- A parameter error was detected in the ration Stops MEWNET-W2 configuration area. Set a parameter correct parameter. error Probably a hardware abnormality. Interrupt Stops ⇒ Please contact your dealer. error 0 An interrupt occurred without an interrupt request .
  • Page 534 Opera Error Name -tion Description and steps to take code status I/O mapping for remote I/O terminal MEWNET-F boards, remote I/O terminal units and I/O link slave I/O is not correct. Stops terminal ⇒Re-configure the I/O map for slave stations mapping according to the I/O points of the slave error...
  • Page 535 Opera- Error Name tion Description and steps to take code status An abnormality in an intelligent unit. FPΣ, FP-X: Check the contents of special data register “DT90006” and locate the abnormal FP intelligent unit (application cassette for FP-X). FP2,FP2SH,and FP10SH: Check the contents of special data registers DT90006,DT90007 and locate the abnormal intelligent unit.
  • Page 536 Opera- Error Name tion Description and steps to take code status Scan time required for program execution exceeds the setting of the system watching dog timer. System ⇒ Check the program and modify it so that Selec- the program can execute a scan within the watching specified time.
  • Page 537 Opera- Error Name tion Description and steps to take code status S-LINK error Occurs only in FP0-SL1 When one of the S-LINK errors (ERR1, 3 or 4) has been detected, error code E46 (remote Selec- I/O (S-LINK) communication error) is stored. Selection of operation status using system table register27:...
  • Page 538 Opera- Error Name tion Description and steps to take code status Terminal station setting was not properly MEWNET-F performed. Conti- terminal Check stations at both ends of the nues station communication path, and set them in the error terminal station using the dip switches. Set the INITIALIZE/TEST MEWNET-F selecto1inmjvbgycfrde892 r to the...
  • Page 539 17.4.3 Table of MEWTOCOL-COM Communication Error Error Name Description code Link system error NACK error Link system error WACK error Link system error Unit No. overlap Transmission format Link system error error Link unit hardware Link system error error Link system error Unit No.
  • Page 540 Error Name Description code An abnormality occurred when loading RAM to ROM/IC memory card. There may be a problem with the ROM or IC memory card. -When loading, the specified contents exceeded the capacity. External memory -Write error occurs. error -ROM or IC memory card is not installed.
  • Page 541: Mewtocol-Com Communication Commands

    17.5 MEWTOCOL-COM Communication Commands Table of MEWTOCOL-COM commands Command name Code Description Reads the on and off status of contact. (RCS) - Specifies only one point. Read contact area - Specifies multiple contacts. (RCP) - Specifies a range in word units. (RCC) Turns contacts on and off.
  • Page 542: Hexadecimal/Binary/Bcd

    17.6 Hexadecimal/Binary/BCD BCD data Decimal Hexadecimal Binary data (Binary Coded Decimal) 0000 00000000 00000000 0000 0000 0000 0000 0001 00000000 00000001 0000 0000 0000 0001 0002 00000000 00000010 0000 0000 0000 0010 0003 00000000 00000011 0000 0000 0000 0011 0004 00000000 00000100 0000 0000 0000 0100 0005...
  • Page 543: Ascii Codes

    17.7 ASCII Codes Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 544 Record of changes Manual No. Date Desceiption of changes ARCT1F409E May.2005 First Edition ARCT1F409E-1 Oct.2005 Edition(PDF only) New product addition: AFPX-E30R,AFPX-TR6P,AFPX-EC30,AFPX-EC80 ARCT1F409E-2 SEPT.2006 Edition New product addition: FP-X Control Unit Transistor Type FP-X Expansion Unit Transistor Type ARCT1F409E-3 Apr.2007 Edition New product addition FP-X communication cassette AFPX-COM5 FP-X communication cassette AFPX-COM6...

Table of Contents