Table of Contents

Advertisement

Quick Links

PROGRAMMABLE CONTROLLERS
FPS
User's Manual

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic FPS Series

  • Page 1 PROGRAMMABLE CONTROLLERS User’s Manual...
  • Page 2 This manual and everything described in it are copyrighted. You may not copy this manual, in whole or part, without written consent of Panasonic Electric Works Europe AG (PEWEU). PEWEU pursues a policy of continuous improvement of the design and performance of its products.
  • Page 3 Important Symbols One or more of the following symbols may be used in this documentation: DANGER! The warning triangle indicates especially important safety instructions. If they are not adhered to, the results could be fatal or critical injury. CAUTION Indicates that you should proceed with caution. Failure to do so may result in injury or significant damage to instruments or their contents, e.g.
  • Page 4 • system variables (FPWIN Pro only) • programming examples For documentation on a particular unit used with the FPΣ, please refer to the hardware manual for that unit. All manuals can be downloaded from the Panasonic Web site (http://www.panasonic- electric-works.com).
  • Page 5 To illustrate the use of positioning instructions, the chapter on high-speed counters and pulse output contains numerous examples. Some of the sample programs can be opened directly in FPWIN Pro. The FPWIN Pro projects in LD and ST code can be downloaded from the Panasonic Web site (http://www.panasonic-electric- works.com/peweu/en/html/22164.php).
  • Page 6 5. [OK] The "Adapt System Registers and Compile Options" dialog is displayed. 6. Click [Adapt automatically] When the new PLC type is displayed in FPWIN Pro you need to change the value in system register 7 from 90 to 248. Make the same change in the global variables.
  • Page 8: Table Of Contents

    Table of Contents FPΣ User's Manual Table of Contents Safety Measures ..............1 Safety Measures..................2 Overview ................. 5 Features..................... 6 Unit Types....................9 2.2.1 CPU......................9 2.2.2 FPΣ Expansion Units ................. 9 2.2.3 Communication Cassettes ................. 9 2.2.4 Units for FP0 and FPΣ ................10 2.2.5 Accessories ....................
  • Page 9 Table of Contents FPΣ User's Manual 3.3.1 C32 CPU ....................26 3.3.2 C28 CPU ....................27 3.3.3 C24 CPU ....................28 Analog Potentiometer................29 Thermistor Input Functions...............31 3.5.1 Loading Thermistor Temperature Data ............32 Clock/Calendar Function ................35 3.6.1 Memory Area for Clock/Calendar Function ..........35 3.6.2 Settings for Clock/Calendar Function............35 3.6.3 Sample Program for Fixed Schedule and Automatic Start ......37...
  • Page 10 FPΣ User's Manual Table of Contents FPΣ CPU ....................60 FPΣ Expansion Units ................61 FP0 Expansion Units ................62 Installation and Wiring ............65 Installation....................66 6.1.1 Installation Environment and Space ............66 6.1.2 Using DIN Rails ..................68 6.1.3 Using Optional Mounting Plates...............
  • Page 11 Table of Contents FPΣ User's Manual 6.8.3 Specifying Hold Areas ................97 6.8.4 Lifetime of the Backup Battery ..............97 High-Speed Counter and Pulse Output......99 Overview ....................100 Function Specifications and Restrictions..........102 7.2.1 High-Speed Counter Function..............102 7.2.2 Pulse Output Function................103 7.2.3 PWM Output Function ................104 7.2.4 Restrictions.....................105 7.2.5...
  • Page 12 FPΣ User's Manual Table of Contents 7.4.2.5 F172_PulseOutput_Jog, JOG Operation ........131 7.4.2.6 F174_PulseOutput_DataTable, Data Table Control ..... 132 7.4.2.7 F175_PulseOutput_Linear, Linear Interpolation ......133 7.4.2.8 F176_PulseOutput_Center, Circular Interpolation (Center Position) ..................134 7.4.2.9 F176_PulseOutput_Pass, Circular Interpolation (Pass Position) . 135 7.4.3 Sample Programs ..................
  • Page 13 Table of Contents FPΣ User's Manual 8.2.5.2 Difference of dimensions...............162 Communication Specifications ...............163 Communication Parameters..............165 8.4.1 Setting System Registers in PROG Mode ..........165 8.4.2 Setting Station Numbers ................167 8.4.3 Changing Communication Mode in RUN Mode ........169 8.4.4 Adjusting the Response Time ..............169 MEWTOCOL-COM.................171 8.5.1 Operation Outline for MEWTOCOL-COM Slave ........173...
  • Page 14 FPΣ User's Manual Table of Contents 8.7.2 Link Area Allocation ................225 8.7.2.1 Example for PLC link 0..............227 8.7.2.2 Example for PLC link 1..............228 8.7.2.3 Partial Use of Link Areas............... 229 8.7.2.4 Precautions for Allocating Link Areas ........... 231 8.7.3 Setting the Highest Station Number for a PLC Link.......
  • Page 15 Table of Contents FPΣ User's Manual 11. Troubleshooting..............261 11.1 LED Display for Status Condition ............262 11.2 Operation on Error..................263 11.3 ERROR/ALARM LED is Flashing............264 11.4 ERROR/ALARM LED is ON ..............265 11.5 All LEDs are OFF ...................266 11.6 Diagnosing Output Malfunction ..............267 11.7 Password Protection Error Message............268 11.8 PROG Mode does not Change to RUN..........269 11.9 No RS485 Communication..............270...
  • Page 16 FPΣ User's Manual Table of Contents 12.5 Relays and Memory Areas ..............290 12.6 System Registers................... 292 12.6.1 Precautions When Setting System Registers ........292 12.6.2 Types of System Registers ..............292 12.6.3 Checking and Changing System Registers ........... 293 12.6.4 Table of System Registers ..............
  • Page 18: Safety Measures

    Chapter 1 Safety Measures...
  • Page 19: Safety Measures

    Safety Measures FPΣ User's Manual 1.1 Safety Measures Operating environment After installing the unit, make sure to use it within the range of the general specifications: • Ambient temperature: 0°C–+55°C • Ambient humidity: 30%–85% RH (at 25°C non-condensing) • Maximum altitude: 2000m •...
  • Page 20 FPΣ User's Manual 1.1 Safety Measures Power supply sequence • Make sure the power supply of the CPU turns off before the power supply for input and output. If the power supply for input and output is turned off first, the CPU will detect the input fluctuations and may begin an unexpected operation.
  • Page 22: Overview

    Chapter 2 Overview...
  • Page 23: Features

    Overview FPΣ User's Manual 2.1 Features The FPΣ (Sigma) is a small-size PLC (programmable logic controller) with great performance. It can be expanded by up to three expansion or intelligent units. The controller uses the comprehensive FP instruction set and is programmed with FPWIN Pro or FPWIN GR. With FPWIN Pro, programming according to IEC 61131-3 is possible.
  • Page 24 FPΣ User's Manual 2.1 Features • Simultaneous data connections via PLC Link function and standard RS232C (1:N communication with up to 99 stations) FPΣ FPΣ FPΣ FPΣ RS485 RS485 RS485 RS232C RS232C RS232C RS232C Analog control (see page 29) All CPU types are equipped with an analog potentiometer. It can be used in applications such as analog timers and does not require a programming tool.
  • Page 25 Overview FPΣ User's Manual • Positioning control using pulse output (see page 120) Pulse/direction and clockwise/counter-clockwise output are supported. FPΣ Pulse output Motor driver Motor • Heater control using PWM output function (see page 151) A special instruction makes it possible to output pulses with a specified duty ratio. Increasing the pulse width increases heating Decreasing the pulse width decreases heating Enhanced security (see page 249)
  • Page 26: Unit Types

    FPΣ User's Manual 2.2 Unit Types 2.2 Unit Types The following units are available for the FPΣ: 2.2.1 CPU Number of I/O points Name Product no. Input Output FPG-C32T2H-A Transistor FPΣ CPU FPG-C28P2H-A Relay FPG-C24R2H-A FPG-C32T2HTM Transistor FPΣ CPU with FPG-C28P2HTM thermistor input Relay...
  • Page 27: Units For Fp0 And Fpσ

    Overview FPΣ User's Manual Name Description Product no. FPΣ communication cassette – 1-channel unit with a 2-wire RS485 port FPG-COM3 1-channel RS485 type 2-channel unit with a 2-wire RS485 port and a 3-wire FPΣ communication cassette – RS232C port FPG-COM4 1-channel RS485 and 1-channel Simultaneous communication via RS485 and RS232C is RS232C combination type...
  • Page 28: Restrictions On Unit Combinations

    FPΣ User's Manual 2.3 Restrictions on Unit Combinations 2.3 Restrictions on Unit Combinations By adding expansion units, the number of I/O points can be increased. However, the maximum number of expansion units per CPU is limited. 2.3.1 FP0 Expansion Units A maximum of three FP0 I/O expansion units or FP0 intelligent units (or a combination of the two) can be connected on the right side of the FPΣ...
  • Page 29: Fpσ Expansion Units

    Overview FPΣ User's Manual 2.3.2 FPΣ Expansion Units A maximum of four dedicated FPΣ I/O expansion units can be connected on the left side of the FPΣ CPU. The 64-point expansion unit has 32 inputs and 32 transistor outputs. FPΣ CPU Maximum expansion: 4 units Expansion unit 1 Expansion unit 2...
  • Page 30: Programming Tools

    FPΣ User's Manual 2.4 Programming Tools 2.4 Programming Tools Programming software You can use the following programming software to program the FPΣ: • FPWIN Pro Version 4.01 or later Version 4.02 or later is required if used in conjunction with the FPΣ positioning unit. Version 5.2 or later is required if used in conjunction with the FPΣ...
  • Page 31: Fp0 Program Compatibility

    Overview FPΣ User's Manual 2.5 FP0 Program Compatibility If you are using FP0 programs on the FPΣ, please note the following: Pulse output function The following changes have been made to instructions concerning pulse output: Instruction For FP0 For FPΣ Trapezoidal control F168_PulseOutput_Trapezoidal F171_PulseOutput_Trapezoidal...
  • Page 32: Cpu Types

    Chapter 3 CPU Types...
  • Page 33: Parts And Functions

    CPU Types FPΣ User's Manual 3.1 Parts and Functions FPG-C32 FPG-C24 FPG-CxxxxTM FPG-C28 FPΣ EXPANSION CONNECTOR Front view Left side view Right side view Operation status LEDs Display the current operation mode or the occurrence of an error.
  • Page 34 FPΣ User's Manual 3.1 Parts and Functions Description Lights when in RUN mode and indicates that the program is being executed. RUN (green) Flashes during forced input/output (RUN and PROG. LEDs flash alternately). Lights when in PROG mode and indicates that operation has stopped. PROG.
  • Page 35 CPU Types FPΣ User's Manual The factory settings are shown below. They can be changed in the system registers. Communication parameter Factory settings Baud rate 9600bit/s Data length Parity Stop bit 1bit Set the station number for the TOOL port in the TOOL port setting area of the system registers.
  • Page 36 FPΣ User's Manual 3.1 Parts and Functions specified. With a 2-channel cassette, the same station number is specified for both channels (individual station numbers can only be set in the system registers.) Communication cassette (optional) Optional cassette type adapter used for communication. Any one of the following cassette types may be installed: 1-channel RS232C type 2-channel RS232C type...
  • Page 37: Input And Output Specifications

    CPU Types FPΣ User's Manual 3.2 Input and Output Specifications 3.2.1 Input Specifications The input specifications below apply to all FPΣ CPU types. Item Description Insulation method Optical coupler Rated input voltage 24V DC Operating voltage range 21.6–26.4V DC ≈8mA For X0, X1, X3, X4: Rated input current For X2, X5-X7:...
  • Page 38 FPΣ User's Manual 3.2 Input and Output Specifications Limitations on the number of input points that are TRUE simultaneously Keep the number of input points per common which are simultaneously TRUE within the following range as determined by the ambient temperature. [C32] [C28] [C24]...
  • Page 39: Output Specifications

    CPU Types FPΣ User's Manual 3.2.2 Output Specifications Transistor types These output specifications apply to the CPU types C32 and C28. Description Item C32 (NPN) C28 (PNP) Insulation method Optical coupler Output type Open collector Rated load voltage 5-24V DC 24V DC Operating load voltage range 4.75–26.4V DC...
  • Page 40 FPΣ User's Manual 3.2 Input and Output Specifications Internal circuit diagram • C32 - NPN [Y0, Y1, Y3, Y4] 24V DC 5-24V DC [Y2, Y5-YF] 24V DC 5-24V DC Internal circuit Load Output circuit External power supply Output indicator LED Load power supply Output Phase fault protection circuit...
  • Page 41 CPU Types FPΣ User's Manual • C28 - PNP [Y0, Y1, Y3, Y4] 24V DC [Y2, Y5-YB] 24V DC Internal circuit Load Output circuit External power supply Output indicator LED Phase fault protection circuit Output Relay types These output specifications apply to the C24 CPU type. Item Description Output type...
  • Page 42 FPΣ User's Manual 3.2 Input and Output Specifications Limitations on the number of output points which are simultaneously TRUE Keep the number of output points per common which are simultaneously TRUE within the following range as determined by the ambient temperature. [C24] 46 48 55 x Ambient temperature [°C]...
  • Page 43: Terminal Layout

    CPU Types FPΣ User's Manual 3.3 Terminal Layout 3.3.1 C32 CPU Input connector X0 X1 X8 X9 X0-7 X8-F Connector front view The COM terminals of the input circuits are connected internally. Output connector Y0 Y1 Y0-7 Y8-F (–) (–) Connector front view The (+) terminals as well as the (-) terminals of the output circuits are connected internally.
  • Page 44: C28 Cpu

    FPΣ User's Manual 3.3 Terminal Layout 3.3.2 C28 CPU Input connector X0 X1 X0- 7 X8- F Connector front view The COM terminals of the input circuits are connected internally. Output connector Y0 Y1 Y6 B Connector front view The (+) terminals as well as the (-) terminals of the output circuits are connected internally.
  • Page 45: C24 Cpu

    CPU Types FPΣ User's Manual 3.3.3 C24 CPU Input connector Connector front view The COM terminals of the input circuits are not connected internally. Output connector Connector front view Power supply...
  • Page 46: Analog Potentiometer

    FPΣ User's Manual 3.4 Analog Potentiometer 3.4 Analog Potentiometer The FPΣ is equipped with two analog potentiometers. Turning the potentiometers changes the values of the special data registers reserved for the potentiometer input. The values can be set within a range of 0-1000. Using the potentiometers, you can change the internal set values in the PLC (e.g.
  • Page 47 CPU Types FPΣ User's Manual LD Body...
  • Page 48: Thermistor Input Functions

    FPΣ User's Manual 3.5 Thermistor Input Functions 3.5 Thermistor Input Functions CPU types whose part number ends in TM have lead wires that accept thermistor input, in place of analog volume. You can connect a thermistor to these lead wires and load changes in the thermistor’s resistance as analog input.
  • Page 49: Loading Thermistor Temperature Data

    CPU Types FPΣ User's Manual Suitable thermistor types Any thermistor with a resistance in the range of 200Ω to 75kΩ can be used. Manufacturer Thermistor type (B constant) Measurement range guide 3390K -50–100°C 3450K 50–150°C Shibaura Electronics 4300K 100–220°C 5133K 150–300°C NOTE •...
  • Page 50 FPΣ User's Manual 3.5 Thermistor Input Functions Temperature [°C] Converted digital value Resolution [°C] Thermistor resistance [kΩ] 0.4052 0.323 0.3305 0.400 The digital values in the table above do not include the total precision (see page 31). Conversion program using the scaling instruction (F282_SCAL) Appropriate data interpolated from non-linear data can be obtained by creating a data table with digital values and temperature data and then executing the scaling instruction (F282_SCAL).
  • Page 51 CPU Types FPΣ User's Manual POU Header and LD Body...
  • Page 52: Clock/Calendar Function

    FPΣ User's Manual 3.6 Clock/Calendar Function 3.6 Clock/Calendar Function The clock/calendar function can be used if the backup battery (see page 95) is installed in the FPΣ. There are no default clock/calendar settings, so the programming tool or another means must be used to specify these values.
  • Page 53 CPU Types FPΣ User's Manual Confirm each value with [Enter]. Using a program 1. The date/time values are written to special data registers DT90054 to DT90057. 2. A value of 16#8000 is written to DT90058. NOTE • The values can be set using the rising edge signal “P” or by changing 16#8000 to 16#0000.
  • Page 54: Sample Program For Fixed Schedule And Automatic Start

    FPΣ User's Manual 3.6 Clock/Calendar Function 3.6.3 Sample Program for Fixed Schedule and Automatic Start In this example, the clock/calendar function is used to output the Y0 signal for one second at 8:30 a.m. every day. Here, the hour/minute data stored in special data register DT90053 is used to output the signal at the appointed time.
  • Page 55 CPU Types FPΣ User's Manual LD Body...
  • Page 56 FPΣ User's Manual 3.6 Clock/Calendar Function ST Body (DF(bStartCompensation)) then (* Read the current time from the RTC *) dtbcdCurrent.MinSec:=sys_wClockCalendarMinSec; dtbcdCurrent.DayHour:=sys_wClockCalendarDayHour; dtbcdCurrent.YearMonth:=sys_wClockCalendarYearMonth; (* Decide whether to round up (seconds>=30) *) ((dtbcdCurrent.MinSec 16#00FF)>30) then (* To round up 1 minute (16#100) is added to the current time *) F157_ADD_DTBCD_TIMEBCD(s1_DTBCD := dtbcdCurrent,...
  • Page 58: Expansion

    Chapter 4 Expansion...
  • Page 59: Expansion Methods

    Expansion FPΣ User's Manual 4.1 Expansion Methods You can expand the FPΣ in several ways: • By adding dedicated FPΣ expansion units (see page 73) • By adding FP0 expansion units (see page 74) • By installing communication cassettes (see page 75) Expansion units Dedicated expansion units for the FPΣ...
  • Page 60: Fpσ I/O Expansion Units

    FPΣ User's Manual 4.2 FPΣ I/O Expansion Units 4.2 FPΣ I/O Expansion Units 4.2.1 Parts and Functions FPG-XY64D2T/FPG-XY64D2P Σ I/O expansion unit Front view Left side view Right side view Input/output LED selector Switches between the LED display of the 32 input points and the 32 output points. Input connector (40 pins) Output connector (40 pins) Input status LEDs/Output status LEDs...
  • Page 61: Input And Output Specifications

    Expansion FPΣ User's Manual 4.2.2 Input and Output Specifications Input specifications Item Description Insulation method Optical coupler Rated input voltage 24V DC Operating voltage range 21.6–26.4V DC Rated input current ≈3.5mA Input points per common (Either the positive or negative pole of the input power supply can be connected to the common terminal.) Min.
  • Page 62 FPΣ User's Manual 4.2 FPΣ I/O Expansion Units Limitations on the number of input points that are TRUE simultaneously Keep the number of input points per common which are simultaneously TRUE within the following range as determined by the ambient temperature. Input: Output: 52 55...
  • Page 63 Expansion FPΣ User's Manual Output (PNP): 24V DC Internal circuit Load Output circuit External power supply Output indicator LED Short circuit prevention circuit...
  • Page 64: Terminal Layout

    FPΣ User's Manual 4.2 FPΣ I/O Expansion Units 4.2.3 Terminal Layout Y100 X108 Y108 X100 Connector front view Input connector Output connector (NPN) Output connector (PNP) LEFT RIGHT – – – – N.C. N.C. – 19 – – – N.C. N.C.
  • Page 65: Fpσ Memory Expansion Unit

    Expansion FPΣ User's Manual 4.3 FPΣ Memory Expansion Unit Parts and Functions Σ memory expansion unit Front view Left side view Right side view POWER LED (green) BAT LED (red) Off: Battery voltage is normal. On: The voltage of the battery for memory backup is reduced, or the memory backup switch is turned off.
  • Page 66: Data Organization

    FPΣ User's Manual 4.3 FPΣ Memory Expansion Unit General specifications Item Description Ambient temperature 0°C–+55°C Ambient humidity 30–85% RH (at 25°C non-condensing) Storage temperature -20°C–+70°C Storage humidity 30–85% RH (at 25°C non-condensing) Vibration resistance 10–55Hz, 1 cycle/min, double amplitude of 0.75mm, 10min on 3 axes Shock resistance ≥98m/s , 4 times on 3 axes...
  • Page 67: Accessing The Memory Expansion Unit

    Expansion FPΣ User's Manual 16#0 (0) 16#1 (1) 16#3FE (1022) 16#3FF (1023) Σ Data organization in the FP memory expansion unit Configuration of banks in unit ( total memory area: 1024 words x 256 = 256 Kwords) Data organization in each bank Word addresses (numbers in parentheses are decimal addresses) 4.3.2 Accessing the Memory Expansion Unit The following instructions are used to access the memory expansion unit from the CPU.
  • Page 68: F150_Read Instruction

    FPΣ User's Manual 4.3 FPΣ Memory Expansion Unit 4.3.2.1 F150_READ instruction Variable Data type Function s1_BankSlot INT, WORD Upper byte = bank number: 16#00–16#FF Lower byte = slot number: 16#00–16#1F Starting address in specified bank (source address). Range: 0-1023 (16#0– s2_Start INT, WORD 16#3FF).
  • Page 69: F151_Wrt Instruction

    Expansion FPΣ User's Manual 4.3.2.2 F151_WRT Instruction Variable Data type Function s1_BankSlot INT, WORD Upper byte = bank number: 16#00–16#FF Lower byte = slot number: 16#00–16#1F s2_Start INT, WORD Starting address in CPU (source address) n_Number Number of words to be written. Range: 1–1024 (16#1–16#400). Starting address in specified bank (target address).
  • Page 70: Battery Error

    FPΣ User's Manual 4.3 FPΣ Memory Expansion Unit 4.3.3 Battery Error When any error occurs in a backup battery, a specific CPU input will turn to TRUE. EXAMPLE X10F X10E X10D X10C X10B X10A X109 X108 X107 X106 X105 X104 X103 X102 X101...
  • Page 71: Other Fpσ Expansion Units

    Expansion FPΣ User's Manual 4.4 Other FPΣ Expansion Units REFERENCE A list of FPΣ expansion units can be found in this manual (see "FPΣ Expansion Units" on page 9). For more information, please refer to the dedicated manuals.
  • Page 72: Communication Cassettes

    FPΣ User's Manual 4.5 Communication Cassettes 4.5 Communication Cassettes There are several types of communication cassettes, each having a particular field of application (see page 163): Types • FPG-COM1: 1-channel RS232C type (see page 159) • FPG-COM2: 2-channel RS232C type (see page 160) •...
  • Page 74: I/O Allocation

    Chapter 5 I/O Allocation...
  • Page 75: General

    I/O Allocation FPΣ User's Manual 5.1 General I/O allocation is performed automatically when an expansion unit is added and is determined by the installation location. The I/O allocation of the FPΣ CPU is fixed. 3 x FP0 4 x FP∑ FP∑...
  • Page 76 FPΣ User's Manual 5.1 General 3. On the FPΣ and the FP0, the same numbers are used for inputs and outputs, e.g. X20, Y20. 4. The usable I/O numbers depend on the unit type. See "FPΣ Expansion Units" on page 61 and "FP0 Expansion Units" on page 62.
  • Page 77: Fpσ Cpu

    I/O Allocation FPΣ User's Manual 5.2 FPΣ CPU The I/O allocation of the FPΣ CPU is fixed. CPU type Number of I/O points I/O addresses Input X0–XF FPG-C32x (NPN) Output Y0–YF Input X0–XF FPG-C28x (PNP) Output Y0–YB Input X0–XF FPG-C24x (Relay) Output Y0–Y7...
  • Page 78: Fpσ Expansion Units

    FPΣ User's Manual 5.3 FPΣ Expansion Units 5.3 FPΣ Expansion Units I/O allocation is performed automatically when an expansion unit is added and is determined by the installation location. Dedicated expansion units for the FPΣ are connected on the left side of the CPU.
  • Page 79: Fp0 Expansion Units

    I/O Allocation FPΣ User's Manual 5.4 FP0 Expansion Units I/O allocation is performed automatically when an expansion unit is added and is determined by the installation location. Expansion units from the FP0 series are connected on the right side of the CPU. The I/O numbers are allocated from the unit nearest to the CPU in ascending order.
  • Page 80 FPΣ User's Manual 5.4 FP0 Expansion Units NOTE The data for each channel of the A/D and D/A conversion units FP0-A80, FP0- TC4/TC8, FP0-A04V/I, and FP0-RTD6 is converted and loaded with a user program that includes a switching flag to convert the data in 16-bit words (see corresponding manuals).
  • Page 82: Installation And Wiring

    Chapter 6 Installation and Wiring...
  • Page 83: Installation

    Installation and Wiring FPΣ User's Manual 6.1 Installation Please follow the installation instructions carefully to prevent failure or malfunctions. 6.1.1 Installation Environment and Space Operating environment After installing the unit, make sure to use it within the range of the general specifications: •...
  • Page 84 FPΣ User's Manual 6.1 Installation Upside-down Air duct blocked Input and output connectors face down Input and output connectors on top Horizontal installation of the unit • Do not install the unit above devices which generate heat such as heaters, transformers or large scale resistors.
  • Page 85: Using Din Rails

    Installation and Wiring FPΣ User's Manual 6.1.2 Using DIN Rails The CPU can be easily attached to DIN rails. Procedure 1. Fit upper hook of unit onto DIN rail 2. Without moving upper hook, press on lower hook to fit unit into position Removal is very simple, too: Procedure EXPANSION...
  • Page 86: Using Optional Mounting Plates

    FPΣ User's Manual 6.1 Installation 6.1.3 Using Optional Mounting Plates Use M4 size pan-head screws for attaching the mounting plate to the mounting panel. The diagrams below show the dimensions of the mounting plates. 6.1.3.1 Slim Type and FPΣ Mounting Plates Slim type mounting plate Use the slim type mounting plate (AFP0803) for mounting 25mm type FP0 units: 12.5mm...
  • Page 87 Installation and Wiring FPΣ User's Manual Installation and removal Installation and removal of the unit is similar to the procedure using DIN rails: Removal: Installation: EXPANSION CONNECTOR Combining mounting plates When combining several mounting plates, tighten the screws after joining all of the mounting plates to be connected.
  • Page 88: Flat Type Mounting Plate

    FPΣ User's Manual 6.1 Installation 6.1.3.2 Flat Type Mounting Plate The flat type mounting plate (AFP0804) should only be used with a stand-alone CPU. It should not be used if an expansion unit is attached to the CPU. 6.2mm 45mm 60.0mm Installation Procedure...
  • Page 89 Installation and Wiring FPΣ User's Manual Removal Procedure 1. Raise expansion hooks on top and bottom of the unit 2. Remove unit from mounting plate Attachment to DIN rail A unit with an attached flat type mounting plate can also be installed sideways on a DIN rail. DIN rail...
  • Page 90: Connecting Fpσ Expansion Units

    FPΣ User's Manual 6.1 Installation 6.1.4 Connecting FPΣ Expansion Units The dedicated FPΣ expansion units are connected to the left side of the CPU. Use the expansion connector and the expansion hooks on the side of the unit. Procedure 1. Remove cover on left side of unit to expose expansion connector 2.
  • Page 91: Connecting Fp0 Expansion Units

    Installation and Wiring FPΣ User's Manual 6.1.5 Connecting FP0 Expansion Units The expansion units are connected to the right side of the CPU. Use the expansion connector and the expansion hooks on the side of the unit. Procedure 1. Peel seal on right side of the unit to expose expansion connector 2.
  • Page 92: Installing Communication Cassettes

    FPΣ User's Manual 6.1 Installation 6.1.6 Installing Communication Cassettes The communication cassette is easily attached to the FPΣ. NOTE Turn off the power supply to the CPU before installing a cassette. Procedure 1. Remove cover using screwdriver 2. Install communication cassette Communication cassette 3.
  • Page 93: Safety Instructions For Wiring

    Installation and Wiring FPΣ User's Manual 6.2 Safety Instructions for Wiring In certain applications, malfunction may occur for the following reasons: • Power ON timing differences between the PLC system and input/output or motorized devices • A response time lag when a momentary power drop occurs •...
  • Page 94 FPΣ User's Manual 6.2 Safety Instructions for Wiring Protection of power supply • An insulated power supply with an internal protective circuit should be used (FP0- PSA2 or FP-PS24-050). The power supply for the CPU is a non-insulated circuit, so if an incorrect voltage is directly applied, the internal circuit may be damaged or destroyed.
  • Page 95: Wiring The Power Supply

    Installation and Wiring FPΣ User's Manual 6.3 Wiring the Power Supply Use the power supply cable provided. Attach as shown. Power supply cable (AFPG805) Brown: 24V DC Blue: 0V Green: function earth Specifications Rated voltage: 24V DC Operating voltage range: 21.6–26.4V DC NOTE •...
  • Page 96 FPΣ User's Manual 6.3 Wiring the Power Supply Isolation of power supply systems Isolate the wiring systems to the CPU, input/output devices, and mechanical power apparatus. Mechanical power apparatus Input/output devices Circuit breaker Insulated DC power supply Power supply sequence •...
  • Page 97: Grounding

    Installation and Wiring FPΣ User's Manual 6.3.1 Grounding If necessary, ground the instrument to increase the noise resistance. NOTE • For grounding purposes, use wiring with a minimum of 2mm . The grounding connection should have a resistance of less than 100Ω. •...
  • Page 98 FPΣ User's Manual 6.3 Wiring the Power Supply Example 2: Do not ground the function earth terminal of the FPΣ when grounding a plus terminal (+) of the power supply. In some computers, the SG terminal of the RS232C port is connected with the connector shielding.
  • Page 99: Input And Output Wiring

    Installation and Wiring FPΣ User's Manual 6.4 Input and Output Wiring NOTE • Separate the input/output wires from the power and high voltage wires by at least 100mm. • Be sure to select the thickness (diameter) of the input and output wires while taking into consideration the required current capacity.
  • Page 100 FPΣ User's Manual 6.4 Input and Output Wiring Open collector output type NPN output PNP output Sensor Output FPΣ Power supply for input Internal circuit Input terminal Voltage output (universal output) type Sensor Output FPΣ Power supply for input Internal circuit Input terminal Two-wire output type Sensor...
  • Page 101 Installation and Wiring FPΣ User's Manual Precaution when using an LED-equipped Reed switch When an LED is connected in series to an input contact such as an LED-equipped Reed switch, make sure that the ON voltage applied to the PLC input terminal is greater than 21.6V DC.
  • Page 102: Output Wiring

    FPΣ User's Manual 6.4 Input and Output Wiring In the actual selection, use a value that is 3 to 5 times the value of W. Precaution when using an LED-equipped limit switch If the input of the 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.
  • Page 103: Protective Circuit For Inductive Loads

    Installation and Wiring FPΣ User's Manual 6.4.2.1 Protective Circuit for Inductive Loads With an inductive load, a protective circuit should be installed in parallel with the load. When switching DC inductive loads with the relay output type, be sure to connect a diode across the ends of the load.
  • Page 104 FPΣ User's Manual 6.4 Input and Output Wiring FPΣ Output terminal Load Inductor...
  • Page 105: Wiring The Mil Connector

    Installation and Wiring FPΣ User's Manual 6.5 Wiring the MIL Connector The following 10-pin MIL wire-press socket is supplied with the transistor output type FPΣ CPU and with FPΣ I/O expansion units. Use the wires indicated below. Also use a pressure connection tool for connecting the wires.
  • Page 106 FPΣ User's Manual 6.5 Wiring the MIL Connector Wiring method The wire end can be directly crimped without removing the wire's insulation, saving labor. After breaking off a contact from the carrier, proceed as follows: Procedure 1. Insert wire without removing its insulation until it stops 2.
  • Page 107: Wiring The Terminal Block

    Installation and Wiring FPΣ User's Manual 6.6 Wiring the Terminal Block Screw-type terminal blocks are used. The suitable wires are given below. NOTE • When removing the wire's insulation, be careful not to scratch the core wire. • Do not twist the wires to connect them. •...
  • Page 108 FPΣ User's Manual 6.6 Wiring the Terminal Block Pole terminals with compatible insulation sleeve For pole terminals, please consider the following specifications: Cross-sectional area [mm Size 0.25 AWG24 0.50 AWG20 0.75 AWG18 1.00 AWG18 0.5 x 2 AWG20 (for 2 pieces) The tightening torque should be 0.22–0.25Nm or less.
  • Page 109: Wiring The Communication Cassette

    Installation and Wiring FPΣ User's Manual 6.7 Wiring the Communication Cassette The communication cassette is supplied with a communication connector, which has a screw- type terminal block. NOTE • When removing the wire's insulation, be careful not to scratch the core wire. •...
  • Page 110 FPΣ User's Manual 6.7 Wiring the Communication Cassette Suitable wire No. of wires Size Cross-sectional area [mm AWG28–16 0.08–1.25 AWG28–18 0.08–0.75 NOTE • Only use shielded twisted pair cables. • It is recommended to ground the shielded part. Pole terminals with compatible insulation sleeve For pole terminals, please consider the following specifications: Cross-sectional area [mm Size...
  • Page 111: Transmission Cables

    Installation and Wiring FPΣ User's Manual 6.7.1 Transmission Cables Please use the following cables for systems using RS485 type communication cassettes. Conductor Insulator Cable Type diameter Resistance (at Size Thickness Material [mm] [mm] 20°C) [Ω/km] Shielded twisted pair ≥1.25 ≤16.8 ≤0.5 ≈8.5 (AWG16)
  • Page 112: Backup Battery

    FPΣ User's Manual 6.8 Backup Battery 6.8 Backup Battery Installing a backup battery in the FPΣ makes it possible to use: • the clock/calendar function • additional hold areas for data registers or other data (see "Specifying Hold Areas" on page 97) REFERENCE See "Clock/Calendar Function"...
  • Page 113: Installing The Backup Battery

    Installation and Wiring FPΣ User's Manual 6.8.1 Installing the Backup Battery If possible, do not turn off the power supply when replacing the battery. If you must turn off the power supply, turn it off after power has been supplied for more than one minute. Replace the battery within two minutes.
  • Page 114: Specifying Hold Areas

    FPΣ User's Manual 6.8 Backup Battery 4. Choose "Enable" in the list box of item no. 4 "Battery error indication" 6.8.3 Specifying Hold Areas If no battery is installed, only the fixed hold areas (default address ranges of system registers 6 to 14) will be saved when the PLC is turned off.
  • Page 116: High-Speed Counter And Pulse Output

    Chapter 7 High-Speed Counter and Pulse Output...
  • Page 117: Overview

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.1 Overview Three built-in hardware extensions allow the FPΣ to be used for positioning control and measurement: high-speed counting, pulse output, and PWM (pulse-width modulation) output. High-speed counter function The high-speed counter function counts external inputs such as those from sensors or encoders.
  • Page 118 FPΣ User's Manual 7.1 Overview PWM output function A special instruction makes it possible to output pulses with a specified duty ratio. Heater control using the PWM output function Increasing the pulse width increases heating Decreasing the pulse width decreases heating Counting Range The counting range of the built-in high-speed counter is from -2 147 483 648 to 2 147 483 647 (32-bit binary number).
  • Page 119: Function Specifications And Restrictions

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.2 Function Specifications and Restrictions This section contains the specifications and restrictions of the high-speed counter, pulse output, and PWM output function. 7.2.1 High-Speed Counter Function For each count input mode, there are certain high-speed counter channels, inputs, and memory areas.
  • Page 120: Pulse Output Function

    FPΣ User's Manual 7.2 Function Specifications and Restrictions Related instructions F166_HighSpeedCounter_Set: Target value match ON F167_HighSpeedCounter_Reset: Target value match OFF Specify the desired output from Y0 to Y7 using the instructions. 7.2.2 Pulse Output Function For each pulse output mode and position control mode there are certain designated high- speed counter channels, inputs and outputs.
  • Page 121: Pwm Output Function

    High-Speed Counter and Pulse Output FPΣ User's Manual Related instructions F171_PulseOutput_Trapezoidal: Trapezoidal control F171_PulseOutput_Home: Home return F172_PulseOutput_Jog: JOG operation F174_PulseOutput_DataTable: Data table control F175_PulseOutput_Linear: Linear interpolation control F176_PulseOutput_Center: Circular interpolation control, Center position method F176_PulseOutput_Pass: Circular interpolation control, Pass position method 7.2.3 PWM Output Function For the pulse-width modulation output function there are two designated channels and outputs.
  • Page 122: Restrictions

    FPΣ User's Manual 7.2 Function Specifications and Restrictions 7.2.4 Restrictions Restrictions on channels The maximum counting speed of the high-speed counter function and the maximum output frequency of the pulse output function are determined by the number of channels used and the combination of the two functions.
  • Page 123: Booting Time

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.2.5 Booting Time The booting time is the time span from the execution of the instruction to the actual pulse output. Pulse output No. of Booting Instruction method steps time ∼200μs F171_PulseOutput_Trapezoidal, CW/CCW ∼400μs Trapezoidal control...
  • Page 124: High-Speed Counter Function

    FPΣ User's Manual 7.3 High-Speed Counter Function 7.3 High-Speed Counter Function The high-speed counter function counts the input signals and sets the desired output to TRUE or to FALSE when the target value is reached. Setting the system registers In order to use the high-speed counter function, it is necessary to set the inputs in the system registers.
  • Page 125 High-Speed Counter and Pulse Output FPΣ User's Manual Input mode Input signals Inputs: X0+X1 (X3+X4) TRUE Count FALSE TRUE Increasing FALSE Incremental/ Decreasing decremental Inputs: X0+X1 (X3+X4 TRUE or X4+X7) FALSE Count TRUE Incremental/ Increasing FALSE decremental Decreasing control Inputs: X0 or X1 (X3 or TRUE FALSE Reset input: X2 (X5)
  • Page 126: Minimum Input Pulse Width

    FPΣ User's Manual 7.3 High-Speed Counter Function 7.3.2 Minimum Input Pulse Width For the period T (1/frequency), a minimum input pulse width of T/2 (single-phase input) or T/4 (two-phase input) is required. Single-phase input Two-phase input 7.3.3 I/O Allocation The inputs and outputs used will differ depending on the channel number being used. (See "Function Specifications and Restrictions"...
  • Page 127: Instructions And System Variables

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.3.4 Instructions and System Variables Use the instructions F166_HighSpeedCounter_Set or F167_HighSpeedCounter_Reset to turn the desired output to TRUE or to FALSE when the specified target value is reached. To turn the output to TRUE, use F166_HighSpeedCounter_Set. To turn the output to FALSE, use F167_HighSpeedCounter_Reset.
  • Page 128: Writing The High-Speed Counter Control Code

    FPΣ User's Manual 7.3 High-Speed Counter Function 7.3.4.1 Writing the High-Speed Counter Control Code The special data register where the high-speed counter and pulse output control code are stored can be accessed with the system variable sys_wHscOrPulseControlCode. (The system variable sys_wHscOrPulseControlCode corresponds to special data register DT90052.) The control code settings for each channel can be monitored using the system variables sys_wHscChannelxControlCode or sys_wPulseChannelxControlCode (where x=channel number).
  • Page 129 High-Speed Counter and Pulse Output FPΣ User's Manual Enabling/disabling counting operations (bit 1) High-speed counter input Elapsed value Bit 1 of high-speed counter control code (count) When bit 1 of the control code is set to TRUE, counting is prohibited and the elapsed value keeps its current value.
  • Page 130: Writing And Reading The Elapsed Value For The High-Speed Counter

    FPΣ User's Manual 7.3 High-Speed Counter Function Control code settings Bits 0–15 of the control code are allocated in groups of four. The bit setting in each group is represented by a hex number (e.g. 0002 0000 0000 1001 = 16#2009). 12 11 Channel number (channel n: 16#n) Clear high-speed counter instruction (bit 3)
  • Page 131: F166_Highspeedcounter_Set, Target Value Match On

    High-Speed Counter and Pulse Output FPΣ User's Manual System variables for memory areas used: Description System variable Address sys_diHscChannel0ElapsedValue DDT90044 sys_diHscChannel1ElapsedValue DDT90048 High-speed counter: elapsed value of channel sys_diHscChannel2ElapsedValue DDT90200 sys_diHscChannel3ElapsedValue DDT90204 REFERENCE Please refer to the FPWIN Pro online help for programming examples. 7.3.4.3 F166_HighSpeedCounter_Set, Target Value Match ON If the elapsed value of the high-speed counter matches the target value, an interrupt process immediately turns the specified output to TRUE.
  • Page 132: F167_Highspeedcounter_Reset, Target Value Match Off

    The following programming examples demonstrate how to make control code settings and how to use the high-speed counter instructions. The FPWIN Pro projects in LD and ST code can be downloaded from the Panasonic Web site (http://www.panasonic-electric-works.com/peweu/en/html/22164.php). The programming examples for this chapter can be found in pe_63403_0001_sample_high_speed.zip.
  • Page 133: Positioning Operations With A Single-Speed Inverter

    High-Speed Counter and Pulse Output FPΣ User's Manual After you have changed the PLC type, a message appears: "Adapt System Registers and Compile Options?" Select [Adapt automatically], so that you do not lose the system register settings set in the programming example. 7.3.5.1 Positioning Operations with a Single-Speed Inverter Wiring example C OM...
  • Page 134 FPΣ User's Manual 7.3 High-Speed Counter Function Operation chart 5000 Number of pulses Speed System register settings REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area.
  • Page 135: Positioning Operations With A Double-Speed Inverter

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.3.5.2 Positioning Operations with a Double-Speed Inverter Wiring example Input terminal Encoder input Operation start Output terminal Inverter operation Inverter high-speed Operation/stop Inverter Fast/slow Encoder Motor Conveyor When X5 turns to TRUE, Y0 and Y1 turn to TRUE and the conveyor begins to move. When the elapsed value (sys_diHscChannel0ElapsedValue) reaches 4500, Y1 turns to FALSE and the conveyor begins to decelerate.
  • Page 136 FPΣ User's Manual 7.3 High-Speed Counter Function Operation chart 4500 5000 Number of pulses Speed System register settings REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area.
  • Page 137: Pulse Output Function

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.4 Pulse Output Function Together with a commercially available pulse-string input type motor driver, the pulse output function can be used for positioning control. NOTE The pulse output function is only available with the transistor output type. Setting system registers When using the pulse output function, make sure the high-speed counter function is not allocated to the channel selected for pulse output.
  • Page 138 FPΣ User's Manual 7.4 Pulse Output Function Pulse/direction Forward FALSE Pulse output: Y0 Direction output: Y1 Incremental counting Decremental counting FALSE TRUE Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with TRUE/FALSE signals.
  • Page 139 High-Speed Counter and Pulse Output FPΣ User's Manual EXAMPLE With a current position of 5000 and a target value of +1000, 4000 pulses are output from CCW to reach the new position at 1000. The following outputs are TRUE or FALSE depending on the selected pulse output method and position control mode: Target value Pulse...
  • Page 140: I/O Allocation

    FPΣ User's Manual 7.4 Pulse Output Function 7.4.2 I/O Allocation The I/O allocation of pulse output terminals, direction output terminal, and home input is determined by the channel used. For the near home input, the desired contact must be allocated and bit 4 of the special data register storing the pulse output control code (sys_wHscOrPulseControlCode) must be set to TRUE and back to FALSE again.
  • Page 141: Instructions And System Variables

    High-Speed Counter and Pulse Output FPΣ User's Manual Using channel Motor driver Home input Near home input (see note) e.g. X3 e.g. X6 Pulse output Direction output NOTE Any input that is not used for other applications can be used as the near home input.
  • Page 142 FPΣ User's Manual 7.4 Pulse Output Function registers and special internal relays, use the PLC-independent system variables. You can insert system variables directly into the POU body: Use the "Variables" dialog without entering a declaration in the POU header. Please refer to the FPWIN Pro online help for detailed information on using system variables.
  • Page 143: Writing The Pulse Output Control Code

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.4.3.1 Writing the Pulse Output Control Code The special data register where the high-speed counter and pulse output control code are stored can be accessed with the system variable sys_wHscOrPulseControlCode. (The system variable sys_wHscOrPulseControlCode corresponds to special data register DT90052.) The control code settings for each channel can be monitored using the system variables sys_wHscChannelxControlCode or sys_wPulseChannelxControlCode (where x=channel...
  • Page 144 FPΣ User's Manual 7.4 Pulse Output Function Resetting the elapsed value (software reset) of the high-speed counter to 0 Pulse output Elapsed value Bit 0 of pulse output control code (software reset) When bit 0 of the control code is set to TRUE, a software reset is performed and the elapsed value is set to 0.
  • Page 145: Writing And Reading The Elapsed Value Of The Pulse Output

    High-Speed Counter and Pulse Output FPΣ User's Manual Example: 16#2009 Group Value Description Channel number: 2 (fixed) Near home input: FALSE Hex 9 corresponds to binary 1001 Pulse output: stop (bit 3) (bit 2, fixed) Count: permit (bit 1) Reset elapsed value to 0: yes (bit 0) NOTE •...
  • Page 146: F171_Pulseoutput_Trapezoidal, Trapezoidal Control

    FPΣ User's Manual 7.4 Pulse Output Function 7.4.3.3 F171_PulseOutput_Trapezoidal, Trapezoidal Control This instruction automatically performs trapezoidal control according to the parameters in the specified DUT. Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE. Pulse output characteristics Initial and final speed Target value...
  • Page 147 High-Speed Counter and Pulse Output FPΣ User's Manual completed. Without near home input: With near home input: Home input TRUE after deceleration. Home input TRUE during deceleration. Initial and final speed Near home input: TRUE Target speed Home input: TRUE Home input is effective at any time.
  • Page 148: F172_Pulseoutput_Jog, Jog Operation

    FPΣ User's Manual 7.4 Pulse Output Function 7.4.3.5 F172_PulseOutput_Jog, JOG Operation This instruction is used for JOG operation. Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE. Pulse output characteristics Select one of two different operation modes: •...
  • Page 149: F174_Pulseoutput_Datatable, Data Table Control

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.4.3.6 F174_PulseOutput_DataTable, Data Table Control This instruction performs rectangular control according to the parameters in the specified DUT with an arbitrary number of different speeds and target values. Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE.
  • Page 150: F175_Pulseoutput_Linear, Linear Interpolation

    FPΣ User's Manual 7.4 Pulse Output Function 7.4.3.7 F175_PulseOutput_Linear, Linear Interpolation Pulses are output from two channels in accordance with the parameters in the specified DUT, so that the path to the target position forms a straight line. Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE.
  • Page 151: F176_Pulseoutput_Center, Circular Interpolation (Center Position)

    High-Speed Counter and Pulse Output FPΣ User's Manual 7.4.3.8 F176_PulseOutput_Center, Circular Interpolation (Center Position) Pulses are output from two channels in accordance with the parameters in the specified DUT, so that the path to the target position forms an arc. The radius of the circle is calculated by specifying the center position and the end position.
  • Page 152: F176_Pulseoutput_Pass, Circular Interpolation (Pass Position)

    FPΣ User's Manual 7.4 Pulse Output Function 7.4.3.9 F176_PulseOutput_Pass, Circular Interpolation (Pass Position) Pulses are output from two channels in accordance with the parameters in the specified DUT, so that the path to the target position forms an arc. The center position and radius of the arc are calculated by specifying the pass position and the end position.
  • Page 153: Sample Programs

    This section describes and provides examples for the instructions F171_PulseOutput_Trapezoidal, F171_PulseOutput_Home, F172_PulseOutput_Jog, F174_PulseOutput_DataTable, F175_PulseOutput_Linear, F176_PulseOutput_Center, and F176_PulseOutput_Pass. The FPWIN Pro projects in LD and ST code can be downloaded from the Panasonic Web site (http://www.panasonic-electric-works.com/peweu/en/html/22164.php). The name of the zip file is pe_63403_0001_sample_pulse_FPSigma.zip.
  • Page 154 FPΣ User's Manual 7.4 Pulse Output Function Wiring diagram for examples 1–3 The wiring diagram below applies to the following examples: • Example 1: trapezoidal control (see page 139) • Example 2: home return in a backward direction (-) (see page 142) •...
  • Page 155 High-Speed Counter and Pulse Output FPΣ User's Manual Wiring diagram for examples 4, 6, 7 The wiring diagram below applies to the following examples: Example 4: home return in a backward direction (-) with 2 axes (see page 145) Example 6: linear and circular interpolation control (see page 148) Example 7: circular interpolation, continue mode (see page 149) 24V DC Home sensor...
  • Page 156: Example 1: Trapezoidal Control

    FPΣ User's Manual 7.4 Pulse Output Function 7.4.4.1 Example 1: Trapezoidal Control a. Incremental counting, forward direction (+) When X8 (X8_bPositioningStartPlus) turns to TRUE, the pulse is output from the CW pulse output of the specified channel 0. (The output is used implicitly by F171_PulseOutput_Trapezoidal.) 0V (24V DC) ( - )
  • Page 157 High-Speed Counter and Pulse Output FPΣ User's Manual b. Incremental counting, backward direction (-) When X9 (X9_bPositioningStartMinus) turns to TRUE, the pulse is output from the CCW pulse output of the specified channel 0. (The output is used implicitly by F171_PulseOutput_Trapezoidal.) 0V (24V DC) ( - )
  • Page 158 Positioning start (+) CW pulse output CCW pulse output Motor driver Stepping motor + side Moving table - side Pulse output diagram 4000Hz 200Hz 150Hz 150Hz REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area.
  • Page 159: Example 2: Home Return In A Backward Direction

    High-Speed Counter and Pulse Output FPΣ User's Manual Applicable FPWIN Pro Project: • Sample_PulseOutput_01_TrapezoidalControl_LD.pro • Sample_PulseOutput_01_TrapezoidalControl_ST.pro 7.4.4.2 Example 2: Home Return in a Backward Direction (-) When XA (XA_bGoHomeStart_CH0) turns to TRUE, pulses are output from CCW output Y1 of the specified channel 0 and the return to home begins. When X0 (X0_bNearHome_CH0) turns to TRUE, deceleration begins, and when X2 turns to TRUE, home return has been completed.
  • Page 160: Example 3: Home Return In A Forward Direction (+)

    300ms Positioning start Near home input Home input REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area. Applicable FPWIN Pro Project: • Sample_PulseOutput_02_HomeReturn_Channel0_Minus_LD_FPSIGMA.pro • Sample_PulseOutput_02_HomeReturn_Channel0_Minus_ST_FPSIGMA.pro 7.4.4.3 Example 3: Home Return in a Forward Direction (+) When XB (XB_bGoHomeStart_CH2) turns to TRUE, a pulse is output from CW output Y3 of the specified channel 2 and the return to home begins.
  • Page 161 High-Speed Counter and Pulse Output FPΣ User's Manual 0V (24V DC) FPΣ Home return start Home input Near home input CW pulse output CCW pulse output Motor driver Stepping motor + side Moving table - side Near home sensor Home sensor Pulse output diagram 1000Hz 120Hz...
  • Page 162: Example 4: Home Return In A Backward Direction (-) With 2 Axes

    FPΣ User's Manual 7.4 Pulse Output Function REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area. Applicable FPWIN Pro Project: • Sample_PulseOutput_03_HomeReturn_Channel2_Plus_ST_FPSIGMA.pro • Sample_PulseOutput_03_HomeReturn_Channel2_Plus_ST_FPSIGMA.pro 7.4.4.4 Example 4: Home Return in a Backward Direction (-) with 2 Axes When XA turns to TRUE, pulses are output from the CCW outputs Y1 of channel 0 and Y4 of channel 2.
  • Page 163 High-Speed Counter and Pulse Output FPΣ User's Manual 0V (24V DC) FPΣ (X3) (X5) (X2) (X0) Home return start (XA_bPosOperStart) Home input (X2_bHomeSensorInput_CH0) Near home input (X0_bNearHomeSensorIn_CH0) Home input (X5_bHomeSensorInput_CH2) Near home input (X3_bNearHomeSensorIn_CH2) CW pulse output, channel 0 (Y0_bPulseOutCW_CH0) CCW pulse output, channel 0 (Y1_bPulseOutCCW_CH0) CW pulse output, channel 2 (Y3_bPulseOutCW_CH2) CCW pulse output, channel 2 (Y4_bPulseOutCCW_CH2)
  • Page 164 100Hz 300ms 300ms Channel 0: 2000Hz 100Hz 300ms 300ms Positioning start Near home input Home input REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area. Applicable FPWIN Pro Project: • Sample_PulseOutput_04_HomeReturn_2Axes_LD_FPSIGMA.pro • Sample_PulseOutput_04_HomeReturn_2Axes_ST_FPSIGMA.pro...
  • Page 165: Example 5: Jog Operation

    JOG operation, backward direction (-) While XC (XC_bJogMinus) is TRUE, a pulse is output from the CCW output of channel 0. REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area. Applicable FPWIN Pro Project: • Sample_PulseOutput_05_JogOperation_LD_FP_SIGMA_FPX.pro •...
  • Page 166: Example 7: Circular Interpolation, Continue Mode

    3. Use the circular interpolation control flag (sys_bIsCircularInterpolationActive) to confirm completion of the circular interpolation action. REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area. Applicable FPWIN Pro Project: • Sample_PulseOutput_06_Linear_and_Circular_Interpolation_LD_FP_SIGMA.pro • Sample_PulseOutput_06_Linear_and_Circular_Interpolation_ST_FP_SIGMA.pro 7.4.4.7 Example 7: Circular Interpolation, Continue Mode...
  • Page 167 1) Between P1 and P2: rotation direction 0 2) Between P2 and P3: rotation direction 1 3) Between P3 and P4: rotation direction 0 REFERENCE For POU Header and POU Body, please see the programming examples in Panasonic's download area. Applicable FPWIN Pro Project: • Sample_PulseOutput_07_Circular_Interpolation_LD_FP_SIGMA.pro •...
  • Page 168: Pwm Output Function

    FPΣ User's Manual 7.5 PWM Output Function 7.5 PWM Output Function Use the instruction F173_PulseOutput_PWM. This instruction delivers a pulse width modulated output signal according to the specified DUT. The PWM output status is stored in special internal relays. To access special data registers and special internal relays, use the PLC-independent system variables.
  • Page 170: Communication

    Chapter 8 Communication...
  • Page 171: Communication Modes

    Communication FPΣ User's Manual 8.1 Communication Modes With the optional communication cassettes, the FPΣ offers additional communication ports and four different communication modes: • MEWTOCOL-COM Master/Slave • Program controlled • PLC Link (MEWNET-W0) • Modbus RTU Master/Slave Communication ports The FPΣ is equipped with the following port: •...
  • Page 172: Ports: Names And Principle Applications

    FPΣ User's Manual 8.1 Communication Modes 8.1.2 Ports: Names and Principle Applications The TOOL port is provided as a standard feature of the FPΣ. The ports on the communication cassette are treated as COM port 1 and COM port 2. The principle applications of the various ports are described below.
  • Page 173: Program Controlled Communication

    Communication FPΣ User's Manual 8.1.4 Program Controlled Communication With program controlled communication, the user generates a program which governs the data transfer between a PLC and one or more external devices connected to the communication port. By this, any standard or user protocol can be programmed. Typically, such a user program consists of sending and receiving the data.
  • Page 174: Plc Link

    FPΣ User's Manual 8.1 Communication Modes 8.1.5 PLC Link PLC Link is an economic way of linking PLCs using a twisted-pair cable and the MEWNET protocol. Data is shared with all PLCs by means of dedicated internal relays called link relays (L) and data registers called link registers (LD).
  • Page 175: Modbus Rtu Master/Slave

    Communication FPΣ User's Manual 8.1.6 Modbus RTU Master/Slave This communication mode uses the Modbus RTU protocol to exchange data between a master and one or more slaves. This is called 1:1 or 1:N communication. Modbus RTU connection between the FPΣ and an external device Command message Response message There is a Modbus RTU master function and a Modbus RTU slave function.
  • Page 176: Communication Cassettes

    FPΣ User's Manual 8.2 Communication Cassettes 8.2 Communication Cassettes There are several types of communication cassettes, each having a particular field of application (see page 163): Types • FPG-COM1: 1-channel RS232C type (see page 159) • FPG-COM2: 2-channel RS232C type (see page 160) •...
  • Page 177: Fpg-Com2: 2-Channel Rs232C Type

    Communication FPΣ User's Manual Communication modes Communication mode 1:1 communication 1:N communication MEWTOCOL-COM Master/Slave — Program controlled — PLC Link Modbus RTU Master/Slave — For RS232C connections, the maximum number of stations is 2. 8.2.3 FPG-COM2: 2-Channel RS232C Type This communication cassette is a 2-channel unit with a three-wire RS232C port. Communication with two external devices is possible.
  • Page 178: Fpg-Com4: 1-Channel Rs485 And 1-Channel Rs232C Combination Type

    FPΣ User's Manual 8.2 Communication Cassettes Bridge the E terminal and the free (-) terminal on the first and on the last station of the transmission line to terminate the data bus. General station First and last station Open Bridge Communication modes Communication mode 1:1 communication...
  • Page 179: Dip Switch Setting On Fpg-Com4

    Communication FPΣ User's Manual Communication modes Communication mode 1:1 communication 1:N communication MEWTOCOL-COM Master/Slave Program controlled PLC Link Modbus RTU Master/Slave NOTE PLC Link is only available for COM port 1. 8.2.5.1 DIP Switch Setting on FPG-COM4 There are two DIP switches on the cassette which must be set for RS485 connections: •...
  • Page 180: Communication Specifications

    FPΣ User's Manual 8.3 Communication Specifications 8.3 Communication Specifications Overview of communication modes, interfaces, and communication cassettes MEWTOCOL-COM Modbus RTU Program controlled Communication Master/Slave Master/Slave Mode Link RS232C Interface RS232C RS485 RS232C RS485 RS232C RS485 RS485 FPG- FPG- FPG- FPG- FPG- FPG- FPG-...
  • Page 181 Communication FPΣ User's Manual The values for the transmission distance, baud rate and number of stations should be within the values noted in the following graph. transmission distance [m] number of stations for a baud rate of 115200bit/s for a baud rate of 57600bit/s 1000 1200 When using a baud rate of 2400bit/s to 38400bit/s, a maximum of 99 stations and a maximum transmission...
  • Page 182: Communication Parameters

    FPΣ User's Manual 8.4 Communication Parameters 8.4 Communication Parameters The communication parameters are set in the system registers of the PLC. The communication ports occupy different bit positions of the same system register, so individual settings for each communication port are possible. Make settings for the communication mode, communication format, baud rate, station number, and receive buffer if necessary.
  • Page 183 Communication FPΣ User's Manual Station number The station number must be set for MEWTOCOL-COM Master/Slave, Modbus RTU, and for PLC Link. MEWTOCOL-COM The station number can be set within a range of 1 to 99. Modbus RTU PLC Link The station number can be set within a range of 1 to 16. Setting the station number setting switch to a value other than 0 enables the switch setting, and the system register setting is ignored.
  • Page 184: Setting Station Numbers

    FPΣ User's Manual 8.4 Communication Parameters 8.4.2 Setting Station Numbers By default, the station 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, the station number must be specified to identify the different PLCs.
  • Page 185 Communication FPΣ User's Manual Table of switch settings and related station numbers Station Station number number Setting the station number setting switch to 0 enables the SYS1 instruction and the system register settings. NOTE PLC Link: The station number can be set within a range of 1 to 16. B.
  • Page 186: Changing Communication Mode In Run Mode

    FPΣ User's Manual 8.4 Communication Parameters 8.4.3 Changing Communication Mode in RUN Mode The communication mode of the CPU's communication ports can be changed during RUN mode. You can toggle between program controlled mode and MEWTOCOL-COM mode by executing F159_MTRN and setting the variable n_Number (the number of bytes to be sent) to 16#8000.
  • Page 187 PLC Link: No adjustments required. Program controlled: Adjust t in the program algorithm. MEWTOCOL-COM Master/Slave: Adjust t using the SYS1 instruction (see above) 2. Other PLCs from Panasonic: PLC Link: Adjustment not possible. Program controlled: Adjust t in the program algorithm.
  • Page 188: Mewtocol-Com

    MEWTOCOL-COM Master/Slave mode is recommended over program controlled mode since programming is easier. The master function can be used for communication with all Panasonic devices equipped with a MEWTOCOL-COM slave function, for example PLCs, IPDs, temperature controllers, message runners, or eco-power meters.
  • Page 189 MEWTOCOL-COM protocol. MEWTOCOL-COM contains the commands used to control and monitor the slave operation. Master Slave NOTE Panasonic offers software tools with implemented MEWTOCOL-COM Master functionality: FP Connect – connects your Visual Basic application to Panasonic PLCs PCWAY – displays PLC data in Excel...
  • Page 190: Operation Outline For Mewtocol-Com Slave

    FPΣ User's Manual 8.5 MEWTOCOL-COM 8.5.1 Operation Outline for MEWTOCOL-COM Slave 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 191: Command And Response Format

    Communication FPΣ User's Manual 8.5.2 Command and Response Format Command message All command-related items should be noted in the text segment. The station number must be specified before sending the command. Start code Commands must always have a "%" (ASCII code: 16#25) or a "<" (ASCII code: 16#3C) at the beginning of a message.
  • Page 192 FPΣ User's Manual 8.5 MEWTOCOL-COM NOTE If there are large numbers of characters to be written, they may be divided and sent as several commands. If there is a large number of characters in the value that was loaded, they may be divided and several responses sent. Response message The slave that received the command in the example above sends the processing results to the computer.
  • Page 193: Commands

    Communication FPΣ User's Manual NOTE • If no response is returned, the command may not have arrived at the slave, or the slave may not be functioning. Check to make sure all of the communication specifications (e.g. baud rate, data length, and parity) match between the master and the slave.
  • Page 194: Setting Communication Parameters

    FPΣ User's Manual 8.5 MEWTOCOL-COM Command name Code Description Remote control Switches the operation mode of the PLC. Abort Aborts communication. 8.5.4 Setting Communication Parameters Make the following settings for the communication port: • communication mode (MEWTOCOL-COM) • station number •...
  • Page 195: 1:1 Communication With Computer

    Communication FPΣ User's Manual • Settings for COM port 1 (FPG-COM1, FPG-COM2) Name Set value COM port 1 - station number COM port 1 - communication mode MEWTOCOL-COM Master/Slave Data length: 7 bits/8 bits Parity: None/Odd/Even COM port 1 - communication format Stop bit: 1 bit/2 bits End code:...
  • Page 196 FPΣ User's Manual 8.5 MEWTOCOL-COM It is recommended to connect the computer to the TOOL port of the FPΣ. A connection cable (order no. AFC8513D) with a 5-pin mini-DIN connector and a 9-pin Sub-D connector is available. The TOOL port or the 5-pin terminal of the communication cassette is connected to a 9-pin Sub-D connector on the computer.
  • Page 197: 1:1 Communication With Programmable Displays Of Gt Series

    Communication FPΣ User's Manual • Using the 2-channel RS232C type communication cassette (FPG-COM2): Left: computer, right: FPΣ To second external device • Using the 1-channel RS485 and 1-channel RS232C combination type communication cassette (FPG-COM4): Left: computer, right: FPΣ 8.5.5.2 1:1 Communication with Programmable Displays of GT Series For a 1:1 MEWTOCOL-COM connection between the FPΣ...
  • Page 198 FPΣ User's Manual 8.5 MEWTOCOL-COM RS232C MEWTOCOL-COM connection between a GT Series programmable display and the FPΣ Command message Response message NOTE When connecting the GT01 5V type to the TOOL port of the FPΣ, the same cable (AIGT8142) can be used for power supply and communication. In this case, the number of expansion units connected to the FPΣ...
  • Page 199: 1:N Slave Communication

    Communication FPΣ User's Manual • Using the 1-channel RS485 and 1-channel RS232C combination type communication cassette (FGP-COM4): Left: GT terminal, right: FPΣ REFERENCE Please refer to the "GT Series Technical Manual" for more information. 8.5.6 1:N Slave Communication For a 1:N MEWTOCOL-COM connection between a computer and several PLCs, the computer and the first PLC are connected through a commercially available RS232C-RS485 converter.
  • Page 200 FPΣ User's Manual 8.5 MEWTOCOL-COM the connected device should not send a response to the FPΣ before the time t indicated below has passed. Baud rate Response time 19200bit/s t > 1ms 115200bit/s t > 200μs System register settings For 1:N MEWTOCOL-COM communication, the system registers for COM port 1 should be set as shown below.
  • Page 201: Wiring

    Communication FPΣ User's Manual 8.5.6.1 Wiring With 1:N communication, the various RS485 devices are connected using twisted pair cables. Connection diagram for FPG-COM3 Transmission line 1 to external device with RS485 port Transmission line 2 to external device with RS485 port The (+) terminals as well as the (-) signals of the two transmission lines are connected internally, and either terminal pair is assigned to COM port 1.
  • Page 202: Sample Program For Master Communication

    FPΣ User's Manual 8.5 MEWTOCOL-COM Connection diagram for FPG-COM4 To external device with RS485 port Connect two cables each to the (+) and (-) terminals. Use wires with the same cross-sectional area (0.5 to 0.75 mm Bus termination FPΣ FPΣ FPΣ...
  • Page 203 Communication FPΣ User's Manual LD Body ST Body REFERENCE Please refer to the FPWIN Pro online help for detailed information.
  • Page 204: Program Controlled Communication

    FPΣ User's Manual 8.6 Program Controlled Communication 8.6 Program Controlled Communication With program controlled communication, the user generates a program which governs the data transfer between a PLC and one or more external devices connected to the communication port. By this, any standard or user protocol can be programmed. Typically, such a user program consists of sending and receiving the data.
  • Page 205: Setting Communication Parameters

    Communication FPΣ User's Manual Receiving data Data is automatically received in the receive buffer defined in the system registers. Receiving includes processing the data in the receive buffer and preparing the system to receive further data. (See also "Receiving Data from External Devices" on page 193.) Reception can be controlled by the "reception done"...
  • Page 206: Sending Data To External Devices

    FPΣ User's Manual 8.6 Program Controlled Communication Specifying a receive buffer For program controlled communication, a receive buffer must be specified in the DT memory area. The maximum area is 2048 words. Specify the starting address and the capacity (number of words). The receive buffer layout is shown below. Offset Starting address Storage area for the number of bytes...
  • Page 207 Communication FPΣ User's Manual 1. Setting the communication parameters (see "Setting Communication Parameters" on page 188) 2. Generating the data in the send buffer To generate the data in the send buffer, define a variable in the program and copy the data to the send buffer using a transfer instruction, e.g.
  • Page 208 FPΣ User's Manual 8.6 Program Controlled Communication POU Header and LD Body ST Body When the variable bSend is set to TRUE, the function F10_BKMV copies the characters of the string sSendData to the buffer awSendBuffer beginning at awSendBuffer[1]. The first two words of a string contain the string header information (maximum number of characters and the current number of characters).
  • Page 209 Communication FPΣ User's Manual The "reception done" flag turns to FALSE. The number of bytes received is set to 0 in offset 0 of the receive buffer. Data received is written into the receive buffer When the specified number of bytes has been sent, the "transmission done" flag turns to TRUE.
  • Page 210: Receiving Data From External Devices

    FPΣ User's Manual 8.6 Program Controlled Communication ST Body When the variable bSend is set to TRUE, the function F10_BKMV copies the characters of the string sSendData to the buffer awSendBuffer beginning at awSendBuffer[1]. Then, F159_MTRN sends the data from the first element of the send buffer (awSendBuffer[0]) as specified by s_Start.
  • Page 211 Communication FPΣ User's Manual communication port from an external device, operation takes place as follows. (The "reception done" flag turns to FALSE after switching to RUN mode.) • Incoming data is stored in the receive buffer. Start and end codes are not stored in the receive buffer.
  • Page 212 FPΣ User's Manual 8.6 Program Controlled Communication EXAMPLE Receive a string of 8 bytes containing the characters "ABCDEFGH" via COM port 1. The characters are stored in ASCII HEX code without start and end codes. Beginning of reception Reception continued .
  • Page 213 Communication FPΣ User's Manual POU Header and LD Body ST Body Data can be received when the "reception done" flag is FALSE. The "reception done" flag is evaluated by the system variable sys_bIsComPort1ReceptionDone. When the reception of the data is complete (the end code has been received), the "reception done" flag turns to TRUE, and subsequently, receiving data is prohibited.
  • Page 214: Data Format

    FPΣ User's Manual 8.6 Program Controlled Communication pointer back to offset 1. Subsequent data will be stored in the receive buffer starting at offset 1. • For details on the format of the data in the send buffer and in the receive buffer, please see "Data Format"...
  • Page 215: Flag Operation In Program Controlled Communication

    Communication FPΣ User's Manual POU Header and LD Body ST Body 8.6.5 Flag Operation in Program Controlled Communication Program controlled communication provides for half duplex communication, i.e. communication is possible in both directions, but not simultaneously. Sending can be controlled by the "transmission done" flag. Reception can be controlled by the "reception done"...
  • Page 216 FPΣ User's Manual 8.6 Program Controlled Communication "Transmission done" flag When the specified number of bytes has been sent, the "transmission done" flag turns to TRUE. New data may be sent or received. F159_MTRN turns the "transmission done" flag to FALSE.
  • Page 217: Start Code: No-Stx; End Code: Cr

    Communication FPΣ User's Manual 8.6.5.1 Start Code: No-STX; End Code: CR Receiving and sending data: TRUE FALSE TRUE FALSE TRUE FALSE <1> <2> <3> <0> <1> <2> <3> Data received from external device Data sent to external device "Reception done" flag Receive buffer F159_MTRN execution Number of bytes received...
  • Page 218: Start Code: Stx; End Code: Etx

    FPΣ User's Manual 8.6 Program Controlled Communication - The end code is automatically added to the data sent. - While F159_MTRN is being executed, no data can be received. (The "transmission done" flag is FALSE.) 4. When the specified number of bytes has been sent, the "transmission done" flag turns to TRUE.
  • Page 219 Communication FPΣ User's Manual 3. Characters D and E received from the external device are stored in the receive buffer. 4. When the end code is received, the "reception done" flag turns to TRUE. Reception of any further data is prohibited. (Character F is not stored.) 5.
  • Page 220: 1:1 Communication

    FPΣ User's Manual 8.6 Program Controlled Communication When sending data, operation is as follows: F159_MTRN is executed to send data to the external device. When F159_MTRN is executed: 1. The "transmission done" flag turns to FALSE. 2. The start code is sent automatically. 3.
  • Page 221: 1:1 Communication With Micro-Imagechecker

    Communication FPΣ User's Manual • Settings for COM port 1 (FPG-COM1, FPG-COM2) Name Set value COM port 1 - communication mode Program controlled Data length: 7 bits/8 bits Parity: None/Odd/Even COM port 1 - communication format Stop bit: 1 bit/2 bits End code: CR/CR+LF/None/ETX Start code:...
  • Page 222 FPΣ User's Manual 8.6 Program Controlled Communication After the scan start code "%S " has been sent from the FPΣ side, the scan result is returned from the Micro-Imagechecker as the response. Communication format settings for Micro-Imagechecker A100/A200 To set the communication mode and transmission format settings for the Micro-Imagechecker, select "5: Communication"...
  • Page 223 Communication FPΣ User's Manual A100/A200 COM port Please make the connection using a special RS232C cable available for the Micro- Imagechecker (order no. ANM81303). Name Cable color White Black Yellow Blue Green A100/A200 COM port Brown Gray Wiring diagrams • Using the 1-channel RS232C type communication cassette (FPG-COM1): ANM81303 Left: FPΣ, right: Micro-Imagechecker...
  • Page 224 FPΣ User's Manual 8.6 Program Controlled Communication • Using the 2-channel RS232C type communication cassette (FPG-COM2): ANM81303 Left: FPΣ, right: Micro-Imagechecker Shield (housing) To second external device • Using the 1-channel RS485 and 1-channel RS232C combination type communication cassette (FPG-COM4): ANM81303 Left: FPΣ, right: Micro-Imagechecker...
  • Page 225 Communication FPΣ User's Manual Procedure of communication In the following example, the Micro-Imagechecker is connected to COM port 1. A200/A100 FPWIN Pro program Data registers RS232C port Write start command "%S " in send buffer Send data with F159_MTRN "Transmission done" flag: FALSE, "Reception done" flag: FALSE, Receive buffer reset Sending data Send start command "%S "...
  • Page 226 FPΣ User's Manual 8.6 Program Controlled Communication System register settings: In order to use the data in the receive buffer, define a global variable having the same starting address and capacity. In this example, the starting address is 200 (VAR_GLOBAL awReceiveBuffer) and the receive buffer capacity is 5 (ARRAY [0..4] OF WORD).
  • Page 227 Communication FPΣ User's Manual LD Body ST Body...
  • Page 228: 1:1 Communication With Fp Series Plc

    FPΣ User's Manual 8.6 Program Controlled Communication The status of the "reception done" flag may change while a scan is being carried out. For example, if the flag is used more than once as an input condition, different statuses may exist within one scan.
  • Page 229 Communication FPΣ User's Manual When the data area read command "%01#RDD00000 00001** " is sent from the FPΣ side, the values of the data register of the PLC connected to the system are sent as a response. For example, if the value 100 is stored in DT0 and the value 200 is stored in DT1 of the PLC, "%01$RD6400C8006F "...
  • Page 230 FPΣ User's Manual 8.6 Program Controlled Communication • Using the 1-channel RS232C type communication cassette (FPG-COM1): Left: FPΣ, right: FP0 COM port Left: FPΣ, right: FP2/FP2SH COM port • Using the 2-channel RS232C type communication cassette (FPG-COM2): Left: FPΣ, right: FP0 COM port To second external device Left: FPΣ, right: FP2/FP2SH COM port To second external device...
  • Page 231 Communication FPΣ User's Manual • Using the 1-channel RS485 and 1-channel RS232C combination type communication cassette (FPG-COM4): Left: FPΣ, right: FP0 COM port Left: FPΣ, right: FP2/FP2SH COM port 1:1 communication between the FPΣ and another FP series PLC includes two processes: A.
  • Page 232 FPΣ User's Manual 8.6 Program Controlled Communication FPΣ FP... System register settings: In order to use the data in the receive buffer, define a global variable having the same starting address and capacity. In this example, the starting address is 200 (VAR_GLOBAL awReceived) and the receive buffer capacity is 9 (ARRAY [0..8] OF WORD).
  • Page 233 Communication FPΣ User's Manual POU Header LD Body...
  • Page 234 FPΣ User's Manual 8.6 Program Controlled Communication ST Body Buffer statuses The following shows the statuses of the send and receive buffers when the sample program is run. Status of the send buffer before sending: When the program is executed, the following read command is sent to the remote FP series PLC: "%01RDD00000 00001**".
  • Page 235 Communication FPΣ User's Manual Data conversion Only if $1 (16#2431) is recognized in offset 2, the reception was error-free and the data will be converted. If an error occurred, the response is "%01!OO " (OO = error code, = BCC). The data segment of the response is a string of 8 characters starting at offset 4 of the receive buffer (DT200_awReceiveBuffer [4]).
  • Page 236 FPΣ User's Manual 8.6 Program Controlled Communication POU Header LD Body 1(2)
  • Page 237 Communication FPΣ User's Manual 2(2) ST Body...
  • Page 238: 1:N Communication

    FPΣ User's Manual 8.6 Program Controlled Communication 8.6.7 1:N Communication The FPΣ 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. Data registers (DT) Data to be sent Data is sent using F159_MTRN...
  • Page 239 Communication FPΣ User's Manual • FPG-COM3: Bridge the E terminal and the free (-) terminal on the first and on the last station of the transmission line to terminate the data bus. FPG-COM4: Set SW1-1 to ON on the first and on the last station of the transmission line to terminate the data bus.
  • Page 240: Plc Link

    FPΣ User's Manual 8.7 PLC Link 8.7 PLC Link PLC Link is an economic way of linking PLCs using a twisted-pair cable and the MEWNET protocol. Data is shared with all PLCs by means of dedicated internal relays called link relays (L) and data registers called link registers (LD).
  • Page 241: Setting Communication Parameters

    Communication FPΣ User's Manual EXAMPLE Link relay L0 for station #1 turns to TRUE. The status change is fed back to the programs of the other stations, and Y0 of the other stations is set to TRUE. A constant of 100 is written to link register LD0 of station #1.
  • Page 242: Link Area Allocation

    FPΣ User's Manual 8.7 PLC Link • For PLC Link, the communication format and baud rate settings are fixed: Data length: 8 bits Parity: Stop bit: 1 bit End code: Start code: No STX Baud rate: 115200bit/s • FPG-COM4: The baud rate of 115200bit/s must be set with switch SW1-2 on the cassette.
  • Page 243 Communication FPΣ User's Manual Link relays Link registers Unit: words For PLC link 0: 1024 points (1st half) For PLC link 0: 128 words (1st half) For PLC link 1: 1024 points (2nd half) For PLC link 1: 128 words (2nd half) System registers Name Default...
  • Page 244: Example For Plc Link 0

    FPΣ User's Manual 8.7 PLC Link Using PLC link 1 You can either use PLC link 0 or PLC link 1. Set system register 46 to "Reverse" to use PLC link 1. See "PLC Link 0 and 1 Allocation Setting" on page 232. 8.7.2.1 Example for PLC link 0 The PLC link areas are divided into send and receive areas.
  • Page 245: Example For Plc Link 1

    Communication FPΣ User's Manual System register settings Station settings Name Link registers - Send/receive area - Number of words shared by all linked PLCs Link registers - Send area - Start sending from this word address Link registers - Send area - Number of words to send The value of this system register must be identical for all stations.
  • Page 246: Partial Use Of Link Areas

    FPΣ User's Manual 8.7 PLC Link Link register allocation LD128 LD128 LD128 LD128 Send area Receive area Station number of PLC System register settings Station settings Name Link registers - Send/receive area - Number of words shared by all linked PLCs Link registers - Send area - Start sending from this word address Link registers - Send area - Number of words to send...
  • Page 247 Communication FPΣ User's Manual System register settings Name Link relays - Send/receive area - Number of words shared by all linked PLCs Link relays - Send area - Start sending from this word address Link relays - Send area - Number of words to send With the above settings for station number 1, the 14 words (224 points) consisting of WL50 to WL63 can be used as internal relays.
  • Page 248: Precautions For Allocating Link Areas

    FPΣ User's Manual 8.7 PLC Link 8.7.2.4 Precautions for Allocating Link Areas A mistake in the link area allocation will cause an error, and communication will be disabled. Avoid overlapping send areas When sending data from the send area to the receive area of another PLC, send and receive areas must match.
  • Page 249: Setting The Highest Station Number For A Plc Link

    Communication FPΣ User's Manual 8.7.3 Setting the Highest Station Number for a PLC Link Station numbers should be set sequentially and consecutively, starting from 1, with no breaks between them. If there is a missing station number, or if there is a station for which the power supply has not been turned on, the response time for the PLC link (the link transmission cycle time) will be longer (see page 239).
  • Page 250: Monitoring

    FPΣ User's Manual 8.7 PLC Link 8.7.5 Monitoring When using a PLC link, the operation status of the links can be monitored using the relays below. In FPWIN Pro, choose Monitor → Special Relays and Registers → PLC Link Status to view the status of each relay. To monitor other PLC link status items, such as the transmission cycle time and the number of times that errors have occurred, choose Monitor →...
  • Page 251 Communication FPΣ User's Manual Operation mode relays • For PLC link 0: R9070 to R907F (correspond to station nos. 1 to 16) • For PLC link 1: R9090 to R909F (correspond to station nos. 1 to 16) The operation modes (RUN/PROG) can be checked for any given PLC. Relay no.
  • Page 252: Connection Example

    FPΣ User's Manual 8.7 PLC Link 8.7.6 Connection Example The following example demonstrates how the PLC can be connected to two other PLCs using a PLC link connection. In the example shown here, link relays are used. When X1 of station number 1 turns to TRUE, Y1 of station number 2 turns to TRUE.
  • Page 253 Communication FPΣ User's Manual • Settings for FPΣ (station number 2) Name Set value COM port 1 - station number COM port 1 - communication mode PLC Link • Settings for FP2-MCU (station number 3) Name Set value COM port 1 - station number COM port 1 - communication mode PLC Link Set using the station number setting switch on the MCU or in the MCU Setting dialog...
  • Page 254 FPΣ User's Manual 8.7 PLC Link Station settings System Name register Link registers - Send/receive area - Number of words shared by all linked PLCs Link registers - Send area - Start sending from this word address Link registers - Send area - Number of words to send Setting the highest station number Station settings System...
  • Page 255 Communication FPΣ User's Manual GVL in common user library • Station #1: When g_b_StartMotor1 is TRUE, g_b_FromStation1_StartMotor1 turns to TRUE; when g_b_StartMotor2 is TRUE, g_b_FromStation1_StartMotor2 turns to TRUE. POU Header LD Body • Station #2: When g_b_FromStation1_StartMotor1 is TRUE, the output g_b_Motor1 turns to TRUE.
  • Page 256: Plc Link Response Time

    FPΣ User's Manual 8.7 PLC Link LD Body NOTE If you are using FPWIN Pro Ver. 4.1 or higher and wish to use the addresses LD or LE, please enter "L0D" or "L0E". The compiler misinterprets LD and LE as a Load (LD) or Less Than or Equal To (LE) instruction and issues an error message.
  • Page 257 Communication FPΣ User's Manual Tlc = 10 × Ttx Ttx = 1/transmission speed × 1000 × 11ms ≈ 0.096ms at 115200bit/s Twt = Initial value 400ms (can be changed using SYS1 instruction) Tls = 7 × Ttx Ttx = 1/transmission speed × 1000 × 11ms ≈ 0.096ms at 115200bit/s Tlc (link addition command sending time) Twt (addition waiting time) Ttx (sending time per byte)
  • Page 258 FPΣ User's Manual 8.7 PLC Link Calculation example 4 Conditions: All stations have been added to an 8-unit link. Highest station number = 8. Relays and registers have been evenly allocated. Scan time for each PLC: 5ms. Ttx = 0.096 Pcm (per station) = 23 + (8 + 16) ×...
  • Page 259: Reducing Transmission Cycle Times

    Communication FPΣ User's Manual 8.7.7.1 Reducing Transmission Cycle Times If there are stations that have not been added to the link, the link addition processing time (Tlk) and with this the transmission cycle time will be longer. T max. = Ts1 + Ts2 + • • • • • • • + Tsn + Tlt + Tso + Tlk Tlk = Tlc + Twt + Tls + Tso Tlk= link addition processing time Tlc = link addition command sending time...
  • Page 260: Error Detection Time For Transmission Assurance Relays

    FPΣ User's Manual 8.7 PLC Link 8.7.7.2 Error Detection Time for Transmission Assurance Relays If 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 that PLC to be turned off at the other stations.
  • Page 261: Modbus Rtu Communication

    8.8 Modbus RTU Communication The Modbus RTU protocol enables the communication between the FPΣ and other devices (including the Panasonic FP-e PLCs, touch terminals of the GT series and KT temperature controllers). The master station sends instructions (command messages) to the slave stations and the slave stations respond (send response messages) based on the instructions received.
  • Page 262 FPΣ User's Manual 8.8 Modbus RTU Communication Modbus RTU slave function After having received a command message from the master station, the slave stations send back the response message based on the instructions received. Do not execute the F145_WRITE and F146_READ instructions on slave stations. Master Slave Modbus RTU command message frame...
  • Page 263 Communication FPΣ User's Manual Reception done judgment time The process for receiving a message is complete after all data has been received and the time given in this table has been reached. Baud rate Reception done judgment time 2400 ≈13.3ms 4800 ≈6.7ms 9600...
  • Page 264: Setting Communication Parameters

    FPΣ User's Manual 8.8 Modbus RTU Communication 8.8.1 Setting Communication Parameters Make the following settings for the communication port: • communication mode (MEWTOCOL-COM) • station number • baud rate • communication format For details on setting the communication parameters, see "Setting System Registers in PROG Mode"...
  • Page 265 Communication FPΣ User's Manual LD Body ST Body REFERENCE For details on Modbus settings and communication using the F145_WRITE and F146_READ commands, please refer to the online help of FPWIN Pro.
  • Page 266: Security Functions

    Chapter 9 Security Functions...
  • Page 267: Security Function Types

    Security Functions FPΣ User's Manual 9.1 Security Function Types The following security settings are available: • PLC program upload protection • password protection • security settings for FP Memory Loader...
  • Page 268: Security Settings In Fpwin Pro

    FPΣ User's Manual 9.2 Security Settings in FPWIN Pro 9.2 Security Settings in FPWIN Pro In FPWIN Pro, Online → Security Settings opens a dialog that displays the current security settings and enables you to protect your PLC. The LEDs in the dialog display the PLC's current protection status. To display a tool tip, hold the cursor over the LED for approximately 2s.
  • Page 269: Plc Protection (Password Protection)

    Security Functions FPΣ User's Manual 9.2.2 PLC Protection (Password Protection) You can set a new password with up to 8 characters, or change an existing one. To access a PLC for which a password has been set, a login is required whenever the power is turned on.
  • Page 270: Fp Memory Loader

    FPΣ User's Manual 9.3 FP Memory Loader 9.3 FP Memory Loader The FP Memory Loader V2.0 or higher (AFP8670/AFP8671) can be used to transfer a program from one PLC to another. To prevent unauthorized copying of user programs, you must enable upload protection. This function is recommended for users who manage original programs on a PC.
  • Page 271: Download Protection

    Security Functions FPΣ User's Manual “01234567” “01234567” “01234567” Program upload can be disabled in the Security Settings dialog box (see table below) The FP Memory Loader contains a password- and upload-protected program: Password: 01234567 Upload protection: enabled The security settings are transferred together with the program to the target PLC. The target PLC is now doubly protected: Program upload to a PC requires password entry.
  • Page 272 FPΣ User's Manual 9.3 FP Memory Loader “01234567” “01234567” “abcdefgh” ----- Programs can only be downloaded to PLCs that are protected by identical passwords (see table below) The FP Memory Loader contains a password protected program: Password: 01234567 Download is possible only if the target PLC is protected by the same password ("01234587"). Download to a target PLC that is protected by a different password ("abcdefgh") is not possible.
  • Page 274: Other Functions

    Chapter 10 Other Functions...
  • Page 275: F-Rom Backup (P13_Epwt)

    Other Functions FPΣ User's Manual 10.1 F-ROM Backup (P13_EPWT) Data registers of 32765 words can be written to the built-in F-ROM of the FPΣ CPU using the instruction P13_EPWT. Writing can be performed up to 10000 times. After that, the correct operation cannot be guaranteed.
  • Page 276: Sampling Trace

    FPΣ User's Manual 10.2 Sampling Trace 10.2 Sampling Trace Using the sampling trace function, the current contact conditions and/or the variable values can be displayed on a time axis. After data recording in the PLC has been completed, the data is loaded into FPWIN Pro. Sampling parameters such as the sampling time and trigger conditions can be set in FPWIN Pro.
  • Page 278: Troubleshooting

    Chapter 11 Troubleshooting...
  • Page 279: Led Display For Status Condition

    Troubleshooting FPΣ User's Manual 11.1 LED Display for Status Condition When an error occurs, the status of the status indicator LEDs on the CPU changes as shown in the table below. Status indicator LEDs Status indicator LEDs on CPU LED status Description Operation status ERROR/...
  • Page 280: Operation On Error

    FPΣ User's Manual 11.2 Operation on Error 11.2 Operation on Error The CPU has a self-diagnostic function which identifies errors and stops operation if necessary. For some errors, the user may select whether operation shall continue or stop when the error occurs. Procedure 1.
  • Page 281: Error/Alarm Led Is Flashing

    Troubleshooting FPΣ User's Manual 11.3 ERROR/ALARM LED is Flashing Chec the error code using the programming tool. Procedure 1. In online mode: Monitor → PLC Status or The error code is displayed in the "Self-diagnostic Error" section. For error codes 20 or higher: a self-diagnostic error other than a syntax error has occurred.
  • Page 282: Error/Alarm Led Is On

    FPΣ User's Manual 11.4 ERROR/ALARM LED is ON 11.4 ERROR/ALARM LED is ON If the ERROR/ALARM LED is on, the system watchdog timer has been activated and the operation of the PLC has been stopped. There are two ways to remedy the problem: •...
  • Page 283: All Leds Are Off

    Troubleshooting FPΣ User's Manual 11.5 All LEDs are OFF If all LEDs are OFF, try the following: • Check the power supply wiring. • Check if the power supplied to the CPU is in the range of the rating. Be sure to check the fluctuation in the power supply.
  • Page 284: Diagnosing Output Malfunction

    FPΣ User's Manual 11.6 Diagnosing Output Malfunction 11.6 Diagnosing Output Malfunction If the outputs do not function correctly, check the output side first and then the input side. If the output indicator LEDs are ON: • Check the wiring of the loads. •...
  • Page 285: Password Protection Error Message

    Troubleshooting FPΣ User's Manual 11.7 Password Protection Error Message If a protect error message appears, a password has been set. To access a PLC for which a password has been set, a login is required whenever the power is turned on. Procedure 1.
  • Page 286: Prog Mode Does Not Change To Run

    FPΣ User's Manual 11.8 PROG Mode does not Change to RUN 11.8 PROG Mode does not Change to RUN If PROG mode does not change to RUN, a syntax error or a self-diagnostic error that caused operation to stop has occurred. •...
  • Page 287: No Rs485 Communication

    Troubleshooting FPΣ User's Manual 11.9 No RS485 Communication A communication error can be detected when monitoring the special relays for serial communication. • Make sure the transmission cables have been securely connected between the two (+) terminals and the two (-) terminals of the stations. •...
  • Page 288: No Rs232C Communication

    FPΣ User's Manual 11.10 No RS232C Communication 11.10 No RS232C Communication A communication error can be detected when monitoring the special relays for serial communication. • Check whether the RD terminal of a connected device is connected to the SD terminal of the communication cassette, and that SD is connected to RD.
  • Page 290: Appendix

    Chapter 12 Appendix...
  • Page 291: General Specifications

    Appendix FPΣ User's Manual 12.1 General Specifications Item Description Rated operating voltage 24V DC Operating voltage range 21.6–26.4V DC 4ms at 21.6V, 7ms at 24V, 10ms at 26.4V Momentary power off time 3ms at 21.6V, 5ms at 24V, 8ms at 26.4V Ambient temperature 0–+55°C Storage temperature...
  • Page 292: Weight

    FPΣ User's Manual 12.1 General Specifications 12.1.1 Weight Type of unit Product no. Weight FPG-C32x/C28x ≈120g FPΣ CPU FPG-C24x ≈140g FPG-XY64D2T/XY64D2P ≈100g FPG-PP11/PP12 ≈75g FPG-PP21/PP22 ≈80g FPΣ expansion unit FPG-PN2AN/PN4AN/PN8AN ≈90g FPG-EM1 ≈80g FPG-CCLS ≈90g FPG-SL ≈85g FP0-E8X ≈65g FP0-E8R/E8YR ≈90g FP0-E8YT/E8YP ≈65g...
  • Page 293 Appendix FPΣ User's Manual Expansion Input Output Type of unit unit circuit circuit FP0-E8X ≤10mA -– ≤34.4mA – FP0-E8R ≤15mA ≤50mA ≤17.2mA – FP0-E8YR ≤10mA ≤100mA – – FP0-E8YT/P ≤15mA – – ≤24mA FP0 I/O expansion FP0-E16X – ≤68.8mA – unit ≤20mA FP0-E16R...
  • Page 294: Performance Specifications

    FPΣ User's Manual 12.2 Performance Specifications 12.2 Performance Specifications Description Item C32T2H(TM) C24R2H(TM) C28P2H(TM) 32 (16 DC inputs, 24 (16 DC inputs, 8 28 (16 DC inputs, 12 16 NPN outputs) relay outputs) PNP outputs) Max. 120 Max. 124 With FP0 expansion Max.
  • Page 295 Appendix FPΣ User's Manual Description Item C32T2H(TM) C24R2H(TM) C28P2H(TM) Only available when a backup battery is installed (year, month, day, Clock/calendar function hour, minute, second and day of week) Using instructions F12 Data registers (32765 words) and P13 F-ROM Counter relays: 16 (1008–1023) backup Automatically when Internal relays: 128 (R2480–R255F)
  • Page 296: High-Speed Counter, Pulse Output And Pwm Output Specifications

    FPΣ User's Manual 12.2 Performance Specifications 12.2.1 High-Speed Counter, Pulse Output and PWM Output Specifications Item Descriptions No. of channels Single-phase: ≤4 Two-phase: ≤2 Channels used 0–4 0, 2 Single-phase: Two-phase: for 1 channel: ≤50kHz (x 1) for 1 channel: ≤20kHz (x 1) Maximum for 2 channels: ≤0kHz (x 2) counting speed...
  • Page 297: Maximum Counting Speed And Output Frequency

    Appendix FPΣ User's Manual 12.2.1.1 Maximum Counting Speed and Output Frequency The maximum counting speed of the high-speed counter function and the maximum output frequency of the pulse output function are determined by the number of channels used and the combination of the two functions. The same channel cannot be used by more than one function.
  • Page 298 FPΣ User's Manual 12.2 Performance Specifications Channel used Maximum output frequency [kHz] High-speed High-speed counter Pulse output Pulse output counter 1-phase 2-phase No interpol. Inter Interpol. pol. phase phase interpol. Lin. Lin. Lin. Lin. Lin. Circ. Circ. Circ. Circ. Channel Available If the two channels are not used simultaneously, the maximum output frequency for each axis is 100kHz.
  • Page 299: Communication Specifications

    Appendix FPΣ User's Manual 12.2.2 Communication Specifications Overview of communication modes, interfaces, and communication cassettes MEWTOCOL-COM Program Modbus RTU Communication Master/Slave controlled Master/Slave PLC Link Mode RS232C Interface RS232C RS485 RS232C RS485 RS232C RS485 RS485 FPG- FPG- FPG- FPG- FPG- FPG- FPG- COM1...
  • Page 300 FPΣ User's Manual 12.2 Performance Specifications The values for the transmission distance, baud rate and number of stations should be within the values noted in the following graph. transmission distance [m] number of stations for a baud rate of 115200bit/s for a baud rate of 57600bit/s 1000 1200...
  • Page 301: I/O Allocation

    Appendix FPΣ User's Manual 12.3 I/O Allocation FPΣ CPUs CPU type Number of I/O points I/O addresses Input X0–XF FPG-C32x (NPN) Output Y0–YF Input X0–XF FPG-C28x (PNP) Output Y0–YB Input X0–XF FPG-C24x (Relay) Output Y0–Y7 FPΣ expansion units (left side expansion) I/O allocation is performed automatically when an expansion unit is added and is determined by the installation location.
  • Page 302 FPΣ User's Manual 12.3 I/O Allocation FP0 expansion units (right side expansion) I/O allocation is performed automatically when an expansion unit is added and is determined by the installation location. Number Unit number (installation location) Type of unit of I/O Channel points FP0 I/O expansion unit...
  • Page 303: Dimensions

    Appendix FPΣ User's Manual 12.4 Dimensions 12.4.1 Transistor Output Type CPU FPG-C32T2(H), FPG-C28P2(H) ≈100 60.0 (18) 60.0 30.0 (5.0) (13) (3.5) (7.5) Maximum installation dimension DIN rail (DIN EN50022 35mm) FPG-C32T2(H)TM, FPG-C28P2(H)TM (18) (5.0) 60.0 30.0 60.0 EXPANSION CONNECTOR (3.5)
  • Page 304: Relay Output Type Cpu

    FPΣ User's Manual 12.4 Dimensions CPU with communication cassette * With FPG-COM4: 105mm 12.4.2 Relay Output Type CPU FPG-C24R2(H) ≈90 (10) (5.0) 30.0 60.0 60.0 (13) FPΣ (3.5) (7.5) Maximum installation dimension DIN rail (DIN EN50022 35mm)
  • Page 305: Expansion Unit

    Appendix FPΣ User's Manual FPG-C24R2(H)TM 30.0 (10) 60.0 (5.0) 60.0 EXPANSION CONNECTOR (3.5) CPU with communication cassette For dimensions, refer to the transistor output type CPU (see page 286). 12.4.3 Expansion Unit FPG-XY64D2T/FPG-XY64D2P (18) 60.0 (3.5)
  • Page 306: Communication Cassettes

    FPΣ User's Manual 12.4 Dimensions FPG-EM1 30.0 60.0 (3.5) 12.4.4 Communication Cassettes Using FPG-COM1, FPG-COM2, Using FPG-COM4: FPG-COM3:...
  • Page 307: Relays And Memory Areas

    Appendix FPΣ User's Manual 12.5 Relays and Memory Areas Relays [bits] Available address area Memory Type Function size External input %IX0.0– 1184 X0–X73F Turn on or off based on external input. relays %IX73.15 External output %QX0.0– Turn on or off external outputs based on 1184 Y0–Y73F relays...
  • Page 308 FPΣ User's Manual 12.5 Relays and Memory Areas Memory area [double words] Available address area Memory Type Function size External input DWX0– %ID0– Code for specifying 32 external input relays DWX72 %ID72 points as a double word (32 bits) of data. External output DWY0–...
  • Page 309: System Registers

    Appendix FPΣ User's Manual 12.6 System Registers 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. There is no need to set system registers for functions which will not be used. 12.6.1 Precautions When Setting System Registers System register settings are effective from the time they are set.
  • Page 310: Checking And Changing System Registers

    FPΣ User's Manual 12.6 System Registers High-Speed Counter, Pulse-Catch Input, Interrupt Input (system registers 400–403) When using the high-speed counter function, pulse catch function or interrupt function, set the operation mode and the input number to be used for the function. TOOL Port, COM Port (system registers 410–421) Set these registers when the TOOL port and COM ports 1 and 2 ports are to be used for MEWTOCOL-COM Master/Slave connections, program controlled communication, PLC link,...
  • Page 311 Appendix FPΣ User's Manual Name Default Values Data register hold area start address 32710 0–32763 Link relay hold area start address for PLC Link 0 (in word 0–64 units) Link relay hold area start address for PLC Link 1 (in word 64–128 units) Link register hold area start address for PLC Link 0...
  • Page 312 FPΣ User's Manual 12.6 System Registers Name Default Values word address PLC link 0 - Link registers - Send area - Number of words to send 0–127 words PLC link 1 - Highest station number in network 1–16 PLC link 1 - Link relays - Send/receive area - Number of words 0–64 words shared by all linked PLCs PLC link 1 - Link relays - Send area - Start sending from this word...
  • Page 313 Appendix FPΣ User's Manual Name Default Values • Incremental input (X4) • Incremental input (X4), Reset input (X5) High-speed counter: Unused Channel 3 • Decremental input (X4) • Decremental input (X4), Reset input (X5) Pulse catch input: X0 Disable Disable/Enable Pulse catch input: X1 Disable Disable/Enable...
  • Page 314 FPΣ User's Manual 12.6 System Registers TOOL Port Name Default Values MEWTOCOL-COM MEWTOCOL-COM TOOL port - communication mode Slave/Program Slave controlled TOOL port -station number 1–99 115200/57600/3840 TOOL port - baud rate 115200 baud 0/19200/9600/4800/ 2400 baud TOOL port - sending data length 8 bits 7 bits/8 bits None/With-...
  • Page 315 Appendix FPΣ User's Manual Name Default Values COM port 2 - sending start code No-STX No-STX/STX COM port 2 - sending end code/reception done CR/CR+LF/ETX/None condition COM port 2 - receive buffer starting address 2048 0–32762 COM port 2 - receive buffer capacity 0–2048 COM port 2 - modem connection Disable...
  • Page 316: Error Codes

    FPΣ User's Manual 12.7 Error Codes 12.7 Error Codes 12.7.1 Error Codes E1 to E8 Operation Name of Error code status of Description and steps to take error A program with a syntax error has been written. Syntax error Stops (see note) Change to PROG mode and correct the error.
  • Page 317: Self-Diagnostic Error Codes

    Appendix FPΣ User's Manual 12.7.2 Self-Diagnostic Error Codes Operation Error Name of error status of Description and steps to take code User's ROM error Stops Probably a hardware problem. Please contact your dealer. The number of installed units exceeds the limit. Turn off the Unit installation error Stops power supply and check the restrictions on unit combinations.
  • Page 318: Mewtocol-Com Error Codes

    FPΣ User's Manual 12.7 Error Codes 12.7.3 MEWTOCOL-COM Error Codes Error Name Description code NACK error WACK error Unit no. overlap Transmission format error Link unit hardware error Unit no. setting error No support error Link system error No response error Buffer closed error Time-out error Transmission impossible error...
  • Page 319 Appendix FPΣ User's Manual Error Name Description code There was an error in the code format of the address data. Also, Address error when exceeded or insufficient address data, there was a mistake in the range designation. Cannot be read because there is no program in the program area No program error and no data error or the memory contains an error.
  • Page 320: Mewtocol-Com Communication Commands

    FPΣ User's Manual 12.8 MEWTOCOL-COM Communication Commands 12.8 MEWTOCOL-COM Communication Commands 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.
  • Page 321: Data Types

    Appendix FPΣ User's Manual 12.9 Data Types FPWIN Pro provides elementary and user defined data types. Elementary data types Data Type Abbreviation Description Range BOOL BOOL Boolean (1 bit) 0 (FALSE) or 1 (TRUE) INTEGER Integer (16 bits) -32768–32767 UNSIGNED INTEGER UINT Unsigned integer (16 bits) 0–65535...
  • Page 322: Hexadecimal/Binary/Bcd

    FPΣ User's Manual 12.10 Hexadecimal/Binary/BCD 12.10 Hexadecimal/Binary/BCD BCD data Decimal Hexadecimal Binary data (Binary Coded Decimal) 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 0000 0001 0000 0000 0000 0001 0002 0000 0000 0000 0010 0000 0000 0000 0010 0003 0000 0000 0000 0011 0000 0000 0000 0011...
  • Page 323: Ascii Codes

    Appendix FPΣ User's Manual 12.11 ASCII Codes Most significant digit ASCII HEX code SP AC E ” & ’ < – >...
  • Page 324: Index

    Communication cassette ....155 Index Communication........153 Specifications ........163 Communication cassette ......163 COM ports ........155 1 to 1 communication Communication cassette ....75 MEWTOCOL-COM......177 Communication mode......154 Dimensions........289 With computer ......178 Terminal layout ........159 With GT10/GT30 ......180 Troubleshooting.......271 Modbus RTU ........244 Types ...........9 Program controlled communication.203 Wiring..........92 With Micro-Imagechecker...206 Communication format......163...
  • Page 325 Index FPΣ User's Manual FPG-COM4........162 FP0 program compatibility ......14 Direction output method......120 FP0 units...........10, 74 Download protection ......254 I/O allocation........62 Restrictions ........11 FPΣ units..........9, 73 I/O allocation........61 Earthing..........76, 80 FPWIN Pro..........13 Elapsed value, writing and reading..128 FPΣ memory expansion unit....48 Emergency stop circuit ......76 Battery error........53 Data organization.......49...
  • Page 326 Index FPΣ User's Manual Input ............82 Micro-Imagechecker ......206 Input indication........16 MIL connector .........88 Input modes, high-speed counter ..107 Minimum input pulse width ....109 Input specifications .........20 Modbus RTU.........244 Expansion unit ........44 Communication parameters ....177 Example for master communication 185 Installation..........66 Mounting plate ........69 Backup battery........96 Communication cassette ....75...
  • Page 327 Index FPΣ User's Manual With PLC........211 Relay output specifications .....22 1 to N communication ......221 Expansion unit ........44 Communication parameters ....188 Relays ...........290 Data format ........197 Restrictions on unit combinations ...11 Programming cable.........13 RUN/PROG. mode switch ......16 Protect error ..........268 Proximity sensor ........82 Pulse output control code .....126 Safety measures ........2...
  • Page 328 Index FPΣ User's Manual Expansion unit ........47 Terminal layout ........159 Thermistor input function ......31 Tool port..........16, 155 Transistor output specifications ....22 Expansion unit ........44 Transmission error........270 Trapezoidal control .......129, 139 Troubleshooting ........261 Two-phase input ........107 Two-wire type sensor......82 Unit combinations ........11 Unit types..........9 Upload protection......251, 253 Watchdog timer........265...
  • Page 329 Record of Changes Manual No. Date Description of changes ARCT1F333E/ Sept. 2001 First edition ACG-M333E ARCT1F333V1.0END Dec. 2001 European edition • addition of FPWIN Pro examples and procedures ARCT1F333E-1/ Feb. 2002 2nd edition ACG-M333E-1 Additions: • Control units FPG-C32T2 FPG-C24R •...
  • Page 330 Manual No. Date Description of changes • explanations and examples relating to high-speed counter and pulse output instructions • programming example for analog potentiometer • programming example for thermistor input function • information on F143 in table of Instructions ARCT1F333V5.0END May 2005 Additions •...
  • Page 331 • Programming examples changed to match the new programming methods using system variables • Information on downloading programming examples from the Panasonic Web site • Security functions (upload protection, password protection) • FP Memory Loader • Section "Scope of this manual"...
  • Page 332 Jungmansgatan 12, 21119 Malmö, Tel. +46 40697-7000, Fax +46 40697-7099, www.panasonic-fire-security.com f Poland Panasonic Electric Works Polska sp. z o.o. Al. Krakowska 4/6, 02-284 Warszawa, Tel. +48 (0) 22 338-11-33, Fax +48 (0) 22 338-12-00, www.panasonic-electric- works.pl f Portugal Panasonic Electric Works España S.A.

Table of Contents