background image

 

 

Chapter 3 

 CPU 

Types 

Содержание AFPG951T34

Страница 1: ...nasonic building materials com f f Nordic Countries Panasonic Electric Works Nordic AB Sjöängsvägen 10 19272 Sollentuna Sweden Tel 4659476680 Fax 46859476690 www panasonic electric works se PEW Fire Security Technology Europe AB Jungmansgatan 12 SE 211 19 Malmö Tel 46406977000 Fax 46406977099 www panasonic fire security com f f Poland Panasonic Electric Works Polska sp z o o Przedstawicielstwo w P...

Страница 2: ...t or its documentation even if advised of the possibility of such damages We invite your comments on this manual Please e mail us at tech doc eu pewg panasonic com Please direct support matters and technical questions to your local Panasonic representative LIMITED WARRANTY If physical defects caused by distribution are found PEWEU will replace repair the product free of charge Exceptions include W...

Страница 3: ...al 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 data NOTE Contains important additional information EXAMPLE Contains an illustrative example of the previous text section 1 2 3 Procedure Indicates that a step by step procedure follows REFERENCE Indicates where you can find additional in...

Страница 4: ...memory area tables system registers unit dimensions REFERENCE Please refer to the FP Series Programming Manual or to the online help of FPWIN Pro or FPWIN GR for information on system instructions special internal relays data registers 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 ...

Страница 5: ...ous 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 Changing the PLC type from 12k to 32k For the 12k and the 32k type the address ranges and default hold type areas of internal relays do not match The default hold type area i...

Страница 6: ...ers 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 ...

Страница 7: ......

Страница 8: ...munication Cassettes 9 2 2 4 Units for FP0 and FPΣ 10 2 2 5 Accessories 10 2 3 Restrictions on Unit Combinations 11 2 3 1 FP0 Expansion Units 11 2 3 2 FPΣ Expansion Units 12 2 4 Programming Tools 13 2 5 FP0 Program Compatibility 14 3 CPU Types 15 3 1 Parts and Functions 16 3 2 Input and Output Specifications 20 3 2 1 Input Specifications 20 3 2 2 Output Specifications 22 3 3 Terminal Layout 26 ...

Страница 9: ...or Fixed Schedule and Automatic Start 37 3 6 4 Sample Program for 30 Second Compensation 37 4 Expansion 41 4 1 Expansion Methods 42 4 2 FPΣ I O Expansion Units 43 4 2 1 Parts and Functions 43 4 2 2 Input and Output Specifications 44 4 2 3 Terminal Layout 47 4 3 FPΣ Memory Expansion Unit 48 4 3 1 Data Organization 49 4 3 2 Accessing the Memory Expansion Unit 50 4 3 2 1 F150_READ instruction 51 4 3 ...

Страница 10: ...3 6 1 5 Connecting FP0 Expansion Units 74 6 1 6 Installing Communication Cassettes 75 6 2 Safety Instructions for Wiring 76 6 3 Wiring the Power Supply 78 6 3 1 Grounding 80 6 4 Input and Output Wiring 82 6 4 1 Input Wiring 82 6 4 2 Output Wiring 85 6 4 2 1 Protective Circuit for Inductive Loads 86 6 4 2 2 Protective Circuit for Capacitive Loads 86 6 5 Wiring the MIL Connector 88 6 6 Wiring the Te...

Страница 11: ... Counter Control Code 111 7 3 3 2 Writing and Reading the Elapsed Value for the High Speed Counter 113 7 3 3 3 F166_HighSpeedCounter_Set Target Value Match ON 114 7 3 3 4 F167_HighSpeedCounter_Reset Target Value Match OFF 115 7 3 4 Sample Programs 115 7 3 4 1 Positioning Operations with a Single Speed Inverter 116 7 3 4 2 Positioning Operations with a Double Speed Inverter 118 7 4 Pulse Output Fun...

Страница 12: ...with 2 Axes 145 7 4 3 5 Example 5 JOG Operation 148 7 4 3 6 Example 6 Linear and Circular Interpolation Control 148 7 4 3 7 Example 7 Circular Interpolation Continue Mode 149 7 5 PWM Output Function 151 8 Communication 153 8 1 Communication Modes 154 8 1 1 Terminology in FPWIN Pro and FPWIN GR 154 8 1 2 Ports Names and Principle Applications 155 8 1 3 MEWTOCOL COM Master Slave 155 8 1 4 Program Co...

Страница 13: ... with Computer 178 8 5 5 2 1 1 Communication with Programmable Displays of GT Series 180 8 5 6 1 N Slave Communication 182 8 5 6 1 Wiring 184 8 5 7 Sample Program for Master Communication 185 8 6 Program Controlled Communication 187 8 6 1 Setting Communication Parameters 188 8 6 2 Sending Data to External Devices 189 8 6 3 Receiving Data from External Devices 193 8 6 4 Data Format 197 8 6 5 Flag O...

Страница 14: ...LC Link Response Time 239 8 7 7 1 Reducing Transmission Cycle Times 242 8 7 7 2 Error Detection Time for Transmission Assurance Relays 243 8 8 Modbus RTU Communication 244 8 8 1 Setting Communication Parameters 247 8 8 2 Sample Program for Master Communication 247 9 Security Functions 249 9 1 Security Function Types 250 9 2 Security Settings in FPWIN Pro 251 9 2 1 Upload Protection 251 9 2 2 PLC P...

Страница 15: ... 269 11 9 No RS485 Communication 270 11 10No RS232C Communication 271 12 Appendix 273 12 1 General Specifications 274 12 1 1 Weight 275 12 1 2 Current Consumption 275 12 2 Performance Specifications 277 12 2 1 High Speed Counter Pulse Output and PWM Output Specifications 279 12 2 1 1 Maximum Counting Speed and Output Frequency 280 12 2 2 Communication Specifications 282 12 3 I O Allocation 284 12 ...

Страница 16: ... System Registers 292 12 6 3 Checking and Changing System Registers 293 12 6 4 Table of System Registers 293 12 7 Error Codes 299 12 7 1 Error Codes E1 to E8 299 12 7 2 Self Diagnostic Error Codes 300 12 7 3 MEWTOCOL COM Error Codes 301 12 8 MEWTOCOL COM Communication Commands 303 12 9 Data Types 304 12 10Hexadecimal Binary BCD 305 12 11ASCII Codes 306 13 Index 307 ...

Страница 17: ......

Страница 18: ...Chapter 1 Safety Measures ...

Страница 19: ... surges Maintain at least 100mm of space between these devices and the unit Static electricity Before touching the unit or equipment always touch some grounded metal to discharge any static electricity you may have generated especially in dry locations The discharge of static electricity can damage parts and equipment Protection of power supply Use a twisted power supply wire Isolate the wiring sy...

Страница 20: ...a program Be sure to clear any existing program before entering a new program 1 2 3 Procedure 1 Online Online Mode 2 Online Clear Program and Reset System Register 3 Choose OK in the confirmation dialog box Request concerning program storage To prevent the accidental loss of programs the user should consider the following measures Backing up programs To avoid accidentally losing programs destroyin...

Страница 21: ......

Страница 22: ...Chapter 2 Overview ...

Страница 23: ...MEWNET W0 MEWTOCOL COM Master Slave MODBUS RTU Master Slave Program controlled communication via TOOL or COM port RS232C Using the TOOL port RS232C provided as a standard feature on the CPU communication can be carried out with a display panel or a computer Additionally communication cassettes with RS232C and RS485 interfaces are available as an option Controlling two devices having an RS232C port...

Страница 24: ...istor s resistance can be loaded as analog input Thermistors with a resistance value of 200Ω to 75kΩ can be used Clock calendar function see page 35 If an optional backup battery is installed in the FPΣ a clock calendar function is available Positioning control using high speed counter and pulse output see page 100 A high speed counter and a pulse output function are provided as standard features ...

Страница 25: ...ntrol using PWM output function see page 151 A special instruction makes it possible to output pulses with a specified duty ratio A B 1 Increasing the pulse width increases heating 2 Decreasing the pulse width decreases heating Enhanced security see page 249 The FPΣ supports 8 digit passwords alphanumeric and offers an upload protection function as well as security functions for the FP Memory Load...

Страница 26: ...ing unit Line driver 2 axes FPG PP22 ARCT1F365 2 axes FPG PN2AN 4 axes FPG PN4AN FPΣ positioning unit RTEX 8 axes FPG PN8AN ARCT1F421 FPΣ memory expansion unit 256 Kwords FPG EM1 This manual FPΣ S Link master unit 128 inputs outputs using S Link FPG SL ARCT1F403 2 2 3 Communication Cassettes A detachable communication cassette optional should be used when using functions such as MEWTOCOL COM Maste...

Страница 27: ...PG804 Cable length 1m AFP0521D AFP0521BLUED AFP0521COLD I O cable 10 pin MIL wire press socket on one side 2 pieces blue white or multi colored Cable length 3m AFP0523D AFP0523BLUED FP0R FPΣ power supply cable Maintenance part packed with CPU Cable length 1m AFPG805 Phoenix connector 2 pcs Terminal block socket maintenance parts packed with relay output type AFP0802 Connector set 40 pin MIL wire p...

Страница 28: ...ransistor output types is also possible A B A FPΣ CPU B Maximum expansion 3 units 1 Expansion unit intelligent unit 1 2 Expansion unit intelligent unit 2 3 Expansion unit intelligent unit 3 Maximum number of I O points CPU type CPU Using FP0 I O expansion units FPG C32x 32 128 FPG C28x 28 124 FPG C24x 24 120 Number of points when using an FP0 transistor type expansion unit NOTE Install the FP0 the...

Страница 29: ...nd 32 transistor outputs A B A FPΣ CPU B Maximum expansion 4 units 1 Expansion unit 1 2 Expansion unit 2 3 Expansion unit 3 4 Expansion unit 4 Maximum number of I O points CPU type CPU Using FPΣ expansion units FPG C32x 32 288 FPG C28x 28 284 FPG C24x 24 280 NOTE If both FP0 and FPΣ expansion units are used the number of input and output points can be expanded to a maximum of 384 points for FPG C3...

Страница 30: ...s required if used in conjunction with the FPΣ positioning unit Version 5 2 or later is required if used in conjunction with the FPΣ 32k type FPWIN GR Version 2 0 or later FP Memory Loader AFP8670 AFP8671 to transfer programs and system registers can also be used FPS 2 RS232C programming cable Connector Description Product no 9 pin Sub D to 5 pin Mini DIN round Programming cable for FP and GT seri...

Страница 31: ...ol see note F175_PulseOutput_Linear Circular interpolation control see note F176_PulseOutput_Center F176_PulseOutput_Pass PWM output F170_PulseOutput_PWM F173_PulseOutput_PWM NOTE Linear and circular interpolation control are only available with the FPΣ CPU types C32T2 H TM and C28P2 H TM Serial data communication function The following changes have been made to instructions concerning serial data...

Страница 32: ...Chapter 3 CPU Types ...

Страница 33: ...ION CONNECTOR 11 13 12 14 14 15 16 FPG C32 FPG C28 FPG C24 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 18 FPΣ FPG CxxxxTM A B C A Front view B Left side view C Right side view 1 Operation status LEDs Display the current operation mode or the occurrence of an error ...

Страница 34: ...nd the actual operation mode may differ Verify the mode with the operation status LED Otherwise restart the FPΣ and set the operation mode using the operation mode selector 3 Communication status LEDs Display the communication status of COM port 1 and COM port 2 LED Description Flashes while data is being transmitted S Send data monitor Goes out when no data is being transmitted Flashes while data...

Страница 35: ...can be set within a range of 0 1000 Using the potentiometers you can change the internal set values in the PLC e g of an analog clock without needing the programming tool See also Analog Potentiometer on page 29 10 Power supply connector 24V DC Use the power supply cable provided Product no AFPG805 11 Connector for FPΣ I O expansion units Connects a dedicated FPΣ expansion unit on the left side of...

Страница 36: ...lation on the FP0 flat type mounting plate part no AFP0804 15 Connector for FP0 expansion units Connects an FP0 expansion unit to the internal circuit The connector is located under the seal 16 DIN rail attachment lever Used for easy attachment to a DIN rail The lever is also used for installation on an FPΣ mounting plate See Slim Type and FPΣ Mounting Plates on page 69 17 Battery cover A separate...

Страница 37: ...pply can be connected to the common terminal Min ON voltage min ON current For X0 X1 X3 X4 For X2 X5 XF 19 2V DC 6mA 19 2V DC 3mA Max OFF voltage max OFF current 2 4V DC 1 3mA For X0 X1 X3 X4 3kΩ For X2 X5 X7 5 6kΩ Input impedance For X8 XF 6 8kΩ FALSE TRUE Response time TRUE FALSE For input X0 X1 X3 X4 1ms normal input 5μs high speed counter input pulse catch input interrupt input see note For in...

Страница 38: ...in the following range as determined by the ambient temperature 16 8 C32 12 46 52 55 y x 16 8 55 42 47 C28 y x 16 7 9 46 48 55 C24 y x x Ambient temperature C y Number of points per common which are simultaneously TRUE 1 At 24V DC 2 At 26 4V DC Internal circuit diagram For X0 X1 X3 X4 510Ω 3 kΩ Xn COM For X2 X5 XF Xn COM R1 R2 1 Internal circuit For X2 and X5 X7 R1 5 6kΩ R2 1kΩ For X8 XF R1 6 8kΩ ...

Страница 39: ...rent 100μA ON state voltage drop 0 5V FALSE TRUE For Y0 Y1 Y3 Y4 at max 15mA 2μs For Y2 Y5 and higher 0 2ms Response time TRUE FALSE For Y0 Y1 Y3 Y4 at max 15mA 8μs For Y2 Y5 and higher 0 5ms Voltage 21 6 26 4V DC External power supply for driving internal circuit Current 70mA Surge absorber Zener diode Operation mode indicator LEDs Phase fault protection Thermal protection for Y2 Y5 and higher Li...

Страница 40: ...cations 23 Internal circuit diagram C32 NPN Y0 Y1 Y3 Y4 Y2 Y5 YF 24V DC 24V DC 5 24V DC 5 24V DC 1 Internal circuit 5 Load 2 Output circuit 6 External power supply 3 Output indicator LED 7 Load power supply 4 Output 8 Phase fault protection circuit ...

Страница 41: ...circuit 4 Output Relay types These output specifications apply to the C24 CPU type Item Description Output type 1a Nominal switching capacity resistive load 2A 250V AC 2A 30V DC max 4 5A common Output points per common 8 FALSE TRUE 10ms Response time TRUE FALSE 8ms Mechanical lifetime 20 000 000 operations Electrical lifetime 100 000 operations Surge absorber Operation mode indicator LEDs ...

Страница 42: ...E Keep the number of output points per common which are simultaneously TRUE within the following range as determined by the ambient temperature C24 8 4 46 48 55 x y x Ambient temperature C y Number of points per common which are simultaneously TRUE 1 At 24V DC 2 At 26 4V DC Internal circuit diagram C24 Yn COM 1 Internal circuit ...

Страница 43: ...XE X8 XA X0 X1 X8 F X8 X9 1 Connector front view The COM terminals of the input circuits are connected internally Output connector Y5 Y7 Y1 Y3 Y4 Y6 Y0 Y2 L L L L L L L L YD YF Y9 YB YC YE Y8 YA L L L L L L L L Y0 Y1 Y9 Y8 Y0 7 Y8 F 1 Connector front view The terminals as well as the terminals of the output circuits are connected internally ...

Страница 44: ... XC XE X8 XA X0 X1 X9 X8 1 Connector front view The COM terminals of the input circuits are connected internally Output connector Y0 _ 5 Y6 B Y5 Y1 Y3 Y4 Y0 Y2 YB Y7 Y9 YA Y6 Y8 Y0 Y1 Y7 Y6 L L L L L L L L L L L L _ _ _ _ _ 1 Connector front view The terminals as well as the terminals of the output circuits are connected internally ...

Страница 45: ...tor X0 X8 COM X5 X7 X1 X3 COM XD XF X9 XB XC XE X8 XA X4 X6 X0 X2 1 Connector front view The COM terminals of the input circuits are not connected internally Output connector Y0 Y5 Y7 Y1 Y3 Y4 Y6 Y0 Y2 COM L L L L L L L L 1 Connector front view 2 Power supply ...

Страница 46: ...f 0 to 1000 V1 potentiometer 1 Changes the value of DT90041 within a range of 0 to 1000 System variables and special data registers Potentiometer System variable Special data register Range V0 sys_iPotiInputV0 DT90040 V1 sys_iPotiInputV1 DT90041 0 1000 EXAMPLE In this example an analog clock is created that allows you to set the time via a potentiometer The value of special data register DT90040 s...

Страница 47: ...CPU Types FPΣ User s Manual 30 LD Body ...

Страница 48: ... special data registers DT90040 and DT90041 and can be read by the user program Block diagram V REF V IN GND FPΣ 3 3V 3 3V 2 2kW 1 Lead wire red 2 Lead wire black 3 Thermistor The space between the thermistor input and the power supply connector 24V is not isolated the red lead wire is connected to the 3 3V power supply the black to V IN Total precision Total precision total precision of microcomp...

Страница 49: ...ding to the thermistor resistance by reading in the FPΣ s special data register To access special data registers and special internal relays use the PLC independent system variables Applicable special data registers Thermistor Special data register System variable Converted digital value V0 DT90040 sys_iPotiInputV0 V1 DT90041 sys_iPotiInputV1 0 1000 Thermistor Measurement Temperature A D Conversio...

Страница 50: ... 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 EXAMPLE The following input and output values have been collected Input data converted digital data Output data temperature C 332 50 409 60 487 70 878 ...

Страница 51: ...CPU Types FPΣ User s Manual 34 POU Header and LD Body ...

Страница 52: ...0 16 23 Minute data 16 00 16 59 X DT90054 sys_w_RTC_MinSec Minute data 16 00 16 59 Second data 16 00 16 59 X X DT90055 sys_w_RTC_DayHour Day data 16 01 16 31 Hour data 16 00 16 23 X X DT90056 sys_w_RTC_YearMonth Year data 16 00 16 99 Month data 16 01 16 12 X X DT90057 sys_w_RTC_DayOfWeek Day of the week data 16 00 16 06 X X DT90058 sys_w_RTC_Set Bit 15 TRUE 16 8000 activates clock calendar setting...

Страница 53: ... access special data 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 EXAMPLE Set the time to 12 00 00 on the 5th day when X0 turns to TRUE In t...

Страница 54: ...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 The value of DT90053 is written using a system variable GVL POU Header LD Body 3 6 4 Sample Program for 30 Second Compensation This is a program to perform the compensation for 30 seconds when R0 turns to TRUE If the 30 second compensation is required use this program ...

Страница 55: ...CPU Types FPΣ User s Manual 38 LD Body ...

Страница 56: ...rent MinSec AND 16 00FF 30 then To round up 1 minute 16 100 is added to the current time F157_ADD_DTBCD_TIMEBCD s1_DTBCD dtbcdCurrent s2_TIMEBCD 16 100 d_DTBCD dtbcdCurrent end_if Set the seconds to zero dtbcdCurrent MinSec dtbcdCurrent MinSec AND 16 FF00 Write the current time into the RTC and set the RTC using sys_wClockCalendarSet sys_wClockCalendarMinSec dtbcdCurrent MinSec sys_wClockCalendarD...

Страница 57: ......

Страница 58: ...Chapter 4 Expansion ...

Страница 59: ...talling communication cassettes see page 75 Expansion units Dedicated expansion units for the FPΣ are connected on the left side of the CPU Expansion units from the FP0 series are connected on the right side of the CPU 4 x FP 3 x FP0 Maximum left side and right side expansion 1 FPΣ CPU 2 Maximum left side expansion 4 FPΣ I O expansion unit 3 Maximum right side expansion 3 FP0 expansion unit ...

Страница 60: ...ut LED selector Switches between the LED display of the 32 input points and the 32 output points 2 Input connector 40 pins 3 Output connector 40 pins 4 Input status LEDs Output status LEDs 5 Expansion connector Connects the unit to the CPU or to another expansion unit 6 Expansion hook Used to secure an expansion unit The hook is also used for installation on the FP0 flat type mounting plate part n...

Страница 61: ...E 0 2ms Response time TRUE FALSE 0 3ms Operation mode indicator LEDs Transistor output specifications Description Item NPN 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 21 6 26 4V DC Max load current 0 1A Max surge current 0 5A Output points per common 32 OFF state leakage current 100μA ON state voltag...

Страница 62: ... ambient temperature Input Output 32 52 55 29 y x 32 29 52 55 y x x Ambient temperature C y Number of points per common which are simultaneously TRUE 1 At 24V DC and at 26 4V DC Internal circuit diagram Input COM Xn R2 R1 1 Internal circuit 2 Inside R1 6 8kΩ R2 820Ω Output NPN Yn 24V DC 5 24V DC 1 Internal circuit 5 External power supply 2 Output circuit 6 Load power supply 3 Output indicator LED ...

Страница 63: ...Expansion FPΣ User s Manual 46 Output PNP Yn 24V DC 1 Internal circuit 4 Load 2 Output circuit 5 External power supply 3 Output indicator LED 6 Short circuit prevention circuit ...

Страница 64: ...9 20 20 L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L 100 10D 10C 101 102 103 104 105 106 107 108 109 10A 10B 10F 10E 110 111 112 113 114 115 116 117 118 119 11A 11B 11C 11D 11E 11F 1 A B 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L 100 10D 10C 101 102 103 104 10...

Страница 65: ...oltage of the battery for memory backup is reduced or the memory backup switch is turned off 3 Memory backup switch Switch 1 and 2 must be turned ON to use the backup battery factory setting is OFF Without backup battery data is not saved when the power supply is turned off 4 Expansion connector Used to connect the unit to the CPU or another expansion unit 5 Expansion hook Used to secure an expans...

Страница 66: ...d 1μs based on in house measurements Operation conditions Free from corrosive gases and excessive dust Weight 80g Performance specifications Item Description Memory 256 Kwords 1 Kword x 256 banks Battery life 5 years Current consumption 5V 100mA Number of occupied points 16 input points 4 3 1 Data Organization The data in the memory expansion unit is organized in 256 banks 1 bank 1 Kword 1024 word...

Страница 67: ...nsion Unit The following instructions are used to access the memory expansion unit from the CPU 1 F150_READ reads data from memory expansion unit into CPU 2 F151_WRT writes data from CPU into memory expansion unit NOTE If multiple memory areas are read or written during one scan the scan time may be exceeded When programming the operation speed of the instructions must be taken into account F150_R...

Страница 68: ...rt INT WORD Starting address in specified bank source address Range 0 1023 16 0 16 3FF n_Number INT Number of words to be read Range 1 1024 16 1 16 400 d_Start INT WORD Starting address in CPU target address EXAMPLE POU Header LD Body When Start turns to TRUE 10 words are read from bank number 16 50 of the memory expansion unit located in slot 3 beginning at the address 500 and stored in the array...

Страница 69: ...ting address in CPU source address n_Number INT Number of words to be written Range 1 1024 16 1 16 400 d_Start INT WORD Starting address in specified bank target address Range 0 1023 16 0 16 3FF EXAMPLE POU Header LD Body When Start turns to TRUE 10 words of data stored in the array CPUDataToWrite are written into bank number 16 AB of the memory expansion unit located in slot 1 beginning at the ad...

Страница 70: ...t installed as expansion unit 1 in slot 0 LED Status Description Off Battery voltage is normal X100 On Battery voltage for memory backup is low or the memory backup switch is set to OFF Off Battery voltage is normal BATT red On Battery voltage for memory backup is low or the memory backup switch is set to OFF POWER BATT POWER and BATT LEDs on the FPΣ memory expansion unit NOTE If an error with a b...

Страница 71: ...FPΣ User s Manual 54 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 ...

Страница 72: ...s 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 FPG COM3 1 channel RS485 type see page 160 FPG COM4 1 channel RS485 and 1 channel RS232C combination type see page 161 ...

Страница 73: ......

Страница 74: ...Chapter 5 I O Allocation ...

Страница 75: ...units Type of unit Unit number Slot number 1 I O addresses 2 3 4 FPΣ CPU 1 X0 XF Y0 YF 2 1 X20 X3F Y20 Y3F 3 2 X40 X5F Y40 Y5F FP0 I O expansion unit 4 3 X60 X7F Y60 Y7F 5 1 0 X100 X17F Y100 Y17F 6 2 1 X180 X25F Y180 Y25F 7 3 2 X260 X33F Y260 Y33F FPΣ I O expansion unit 8 4 3 X340 X41F Y340 Y41F NOTE 1 Slot numbers must be indicated in certain programming instructions 2 The input relay X and outpu...

Страница 76: ...5 1 General 59 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 ...

Страница 77: ...60 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 16 X0 XF FPG C32x NPN Output 16 Y0 YF Input 16 X0 XF FPG C28x PNP Output 12 Y0 YB Input 16 X0 XF FPG C24x Relay Output 8 Y0 Y7 ...

Страница 78: ...19F Y260 Y27F Y340 Y35F Input 16 X100 X10F X180 X18F X260 X26F X340 X34F FPΣ positioning unit 1 axis type FPG PP11 FPG PP12 Output 16 1st Y100 Y10F Y180 Y18F Y260 Y26F Y340 Y34F 1st X100 X10F X180 X18F X260 X26F X340 X34F Input 32 2nd X110 X11F X190 X19F X270 X27F X350 X35F 1st Y100 Y10F Y180 Y18F Y260 Y26F Y340 Y34F FPΣ positioning unit 2 axis type FPG PP21 FPG PP22 Output 32 2nd Y110 Y11F Y190 Y...

Страница 79: ...0 Y67 FP0 E16YT E16YP Output 16 Y20 Y2F Y40 Y4F Y60 Y6F Input 16 X20 X2F X40 X4F X60 X6F FP0 E32T E32P Output 16 Y20 Y2F Y40 Y4F Y60 Y6F Input 16 0 WX2 X20 X2F WX4 X40 X4F WX6 X60 X6F Input 16 1 WX3 X30 X3F WX5 X50 X5F WX7 X70 X7F FP0 analog I O unit FP0 A21 Output 16 WY2 Y20 Y2F WY4 Y40 Y4F WY6 Y60 Y6F Input 16 0 2 4 6 WX2 X20 X2F WX4 X40 X4F WX6 X60 X6F FP0 A D conversion unit FP0 A80 and FP0 th...

Страница 80: ...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 ...

Страница 81: ......

Страница 82: ...Chapter 6 Installation and Wiring ...

Страница 83: ...inner alcohol or other organic solvents or strong alkaline solutions such as ammonia or caustic soda Direct vibration shock or direct drop of water Influence from power transmission lines high voltage equipment power cables power equipment radio transmitters or any other equipment that would generate high switching surges Maintain at least 100mm of space between these devices and the unit Static e...

Страница 84: ...scale resistors Installation space Leave at least 50mm of space between the wiring ducts of the unit and other devices to allow heat radiation and unit replacement 50mm 50mm Maintain a minimum of 100mm between devices to avoid adverse affects from noise and heat when installing a device or panel door to the front of the unit 1 PLC 2 Other device 3 Panel door 100mm Keep the first 100 mm from the un...

Страница 85: ...XPANSION CONNECTOR 1 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 1 2 3 Procedure EXPANSION CONNECTOR 1 2 3 1 Insert slotted screwdriver into DIN rail attachment lever 2 Pull attachment lever downwards 3 Lift up unit and remove from rail ...

Страница 86: ...ons 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 6mm 10mm 25mm 30mm 30mm 90mm 4mm 12 5mm FPΣ mounting plate Use the FPΣ mounting plate AFP0811 for mounting FPΣ units and 30mm type FP0 units AFP0811 UP 6mm 10mm 45mm 30mm 30mm 4mm 62 5mm 17 5mm 12 5mm d 90mm d Total unit length ...

Страница 87: ...ONNECTOR Combining mounting plates When combining several mounting plates tighten the screws after joining all of the mounting plates to be connected Tighten all corner screws The following diagram shows the combination of the mounting plates AFP0811 and AFP0803 when the maximum number of expansion units is used 30 30 30 30 30 30 30 25 25 25 AFP0811 AFP0803 mm 45 90 17 5 12 5 62 5 4 x FP 3 x FP0 1...

Страница 88: ...y be used with a stand alone CPU It should not be used if an expansion unit is attached to the CPU 45mm 60 0mm 90 0mm 6 2mm 60 0mm Installation 1 2 3 Procedure 1 Raise expansion hooks on top and bottom of the unit 2 Press unit on mounting plate and align expansion hooks with plate 3 Push expansion hooks back into place ...

Страница 89: ... 72 Removal 1 2 3 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 1 DIN rail ...

Страница 90: ... the expansion hooks on the side of the unit 1 2 3 Procedure 1 Remove cover on left side of unit to expose expansion connector 2 Raise expansion hooks on top and bottom of the unit 3 Align pins and holes in all four corners 4 Insert pins into holes so that there is no gap between units 5 Push expansion hooks back into place You can now add up to three more units in the same manner ...

Страница 91: ...e expansion hooks on the side of the unit 1 2 3 Procedure 1 Peel seal on right side of the unit to expose expansion connector 2 Raise expansion hooks on top and bottom of the unit 3 Align pins and holes in all four corners 4 Insert pins into holes so that there is no gap between units 5 Push expansion hooks back into place You can now add up to two more units in the same manner ...

Страница 92: ...ettes The communication cassette is easily attached to the FPΣ NOTE Turn off the power supply to the CPU before installing a cassette 1 2 3 Procedure 1 Remove cover using screwdriver 2 Install communication cassette 1 Communication cassette 3 Plug in communication connector ...

Страница 93: ...ion occurs Start up sequence The PLC should be operated only after all of the field devices are energized To ensure this sequence the following measures are recommended Turn ON the PLC with the operation mode selector set to PROG mode and then switch to RUN mode Program the PLC so as to disregard the inputs and outputs until the field devices are energized NOTE When stopping the operation of the P...

Страница 94: ...rectly applied the internal circuit may be damaged or destroyed If using a power supply device without an internal protective circuit always make sure power is supplied to the unit through a protective element such as a fuse Protection of output sections If current exceeding the nominal switching capacity is being supplied in the form of a motor lock current or a coil shorting in an electromagneti...

Страница 95: ...ange 21 6 26 4V DC NOTE To minimize adverse effects from noise twist the brown and blue wires of the power supply cable To protect the system against faulty voltages from the power supply line use an insulated power supply with an internal protective circuit The regulator on the unit is a non insulated type If using a power supply device without an internal protective circuit always make sure powe...

Страница 96: ... C CPU 1 Circuit breaker 2 Insulated DC power supply 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 Be sure to supply power to a CPU and an expansion unit from the same power supply and turn...

Страница 97: ...roduce an adverse effect Always use an exclusive ground for each device OK 1 PLC 2 Other device inverter etc Risk of short circuits Depending on the surroundings in which the equipment is used grounding may cause problems Example1 Since the power supply lines of the FPΣ and of the FP0 expansion unit 24V DC and 0V terminal are connected to the function earth PE through a varistor the varistor may b...

Страница 98: ... port shielding is connected with the function earth terminal PE Therefore the GND and function earth terminals of the FPΣ are connected if the computer is connected Especially when the FPΣ is connected to a computer with a plus terminal grounded the minus terminal of an FPΣ is connected with the function earth terminal A resulting short circuit may damage the FPΣ and its neighboring parts SG SG 2...

Страница 99: ...acity Arrange the wiring so that the input and output wiring are separated and so that these wirings are separated from the power wiring as much as possible Do not route them through the same duct or wrap them up together 6 4 1 Input Wiring For connecting input devices see the diagrams and recommendations given below Relay output type NPN input PNP input 3 4 1 5 2 COM 3 4 1 5 2 COM A Sensor 3 Powe...

Страница 100: ...ensor 2 Output B FPΣ 3 Power supply for input 1 Internal circuit 4 Input terminal Voltage output universal output type Vcc 0V COM 1 2 3 4 A Sensor 2 Output B FPΣ 3 Power supply for input 1 Internal circuit 4 Input terminal Two wire output type COM 1 2 3 4 A Sensor 2 Output B FPΣ 3 Power supply for input 1 Internal circuit 4 Input terminal ...

Страница 101: ...put of the PLC does not turn off because of leakage current from the two wire type sensor photoelectric sensor or proximity sensor the use of a bleeder resistor is recommended as shown below COM R 1 2 3 A Two wire type sensor 2 Bleeder resistor B FPΣ 3 Input terminal 1 Internal circuit The formula is based on an input impedance of 5 6kΩ The input impedance varies depending on the input terminal nu...

Страница 102: ... The OFF voltage of the input is 2 4V Therefore when the power supply is 24V select the bleeder resistor R so that the current will be greater than the result of this formula I 24 2 4 r The resistance R of the bleeder resistor is kΩ 13 44R 5 6I 2 4 R The wattage W of the resistor is V 2 R W V Power supply voltage In the actual selection use a value that is 3 to 5 times the value of W 6 4 2 Output ...

Страница 103: ...e A FPΣ 1 Output terminal 2 Load 3 Surge absorber e g resistance R 50Ω capacitance C 0 47μF COM 2 1 3 R C A FPΣ 1 Output terminal 2 Load 3 Varistor COM 2 1 3 Using a DC inductive load A FPΣ 1 Output terminal 2 Load 3 Diode reverse voltage VR 3 load voltage average rectified forward current I0 load current or more COM 2 1 3 6 4 2 2 Protective Circuit for Capacitive Loads When connecting loads with ...

Страница 104: ...FPΣ User s Manual 6 4 Input and Output Wiring 87 A FPΣ 1 Output terminal 2 Load 3 Inductor COM 2 1 3 ...

Страница 105: ...1 5 1 1mm 3A Optional cables Description Product no I O cable with 10 pin MIL connector 2pcs 1 10 blue 1 10 white wires 1m AFP0521D I O cable with 10 pin MIL connector 2pcs 1 10 blue 1 10 white wires 3m AFP0523D I O cable with 10 pin MIL connector 2pcs 2 10 blue wires 1m AFP0521BLUED I O cable with 10 pin MIL connector 2pcs 2 10 blue wires 3m AFP0523BLUED I O cable with 10 pin MIL connector 2pcs 2...

Страница 106: ...moving its insulation until it stops 2 Lightly grip tool 1 2 3 Insert press fitted wire into connector housing 4 When all wires have been inserted fit semi cover into place NOTE If there is a wiring mistake or the cable is incorrectly pressure connected the contact puller pin provided with the fitting can be used to remove the contact 1 Press the housing against the pressure connection tool so tha...

Страница 107: ...wires to connect them The solder may break due to vibration After wiring make sure stress is not applied to the wire If the socket in the terminal block closes upon counter clockwise rotation the connection is wrong Disconnect the wire check the terminal hole and then re connect the wire OK Terminal block Item Description Number of pins 9 Manufacturer Phoenix Contact Co Model MC1 5 9 ST 3 5 Produc...

Страница 108: ... 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 Use a screwdriver with a blade size of 0 4 x 2 5 Wiring method 1 2 3 Procedure 1 Remove a portion of the wire s insulation 7mm 2 Insert the wire into the terminal block until it contacts the back of the socket 3 Turn the screw clockwise to fix the wire in place ...

Страница 109: ... make sure stress is not applied to the wire If the socket in the terminal block closes upon counter clockwise rotation the connection is wrong Disconnect the wire check the terminal hole and then re connect the wire OK If two wires are connected to the plus and minus terminals of the RS485 port of FPG COM4 use wires of the same cross sectional area 0 5 0 75mm2 Accessory communication connector If...

Страница 110: ...n sleeve For pole terminals please consider the following specifications Cross sectional area mm 2 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 Use a screwdriver with a blade size of 0 4 x 2 5 Wiring method 1 2 3 Procedure 1 Remove a portion of the wire s insulation 7mm 2 Insert the wire into the terminal block unti...

Страница 111: ...yethylene 0 5 7 8 VCTF 1 2 3 0 75 AWG18 25 1 Polychlorinated biphenyl 0 6 6 6 1 Cover 2 Insulator 3 Conductor 4 Shield NOTE Only use shielded twisted pair cables Only use one type of transmission cable Do not mix more than one type Twisted pair cables are recommended in noisy environments When using shielded cable with crossover wiring for the RS485 transmission line ground one end If two wires ar...

Страница 112: ...forget to monitor the battery status or to reset the hold areas to the default values if no battery is used An empty battery status is indicated by the following Special internal relays R9005 and R9006 will turn to TRUE if the battery voltage drops The relays can be evaluated using the system variables sys_bIsBatteryErrorHold and sys_bIsBatteryErrorNonHold The ERROR ALARM LED will flash if the bat...

Страница 113: ...iver or similar tool open battery cover 2 Connect connector and place battery so that battery terminal fits between the two tabs 3 Insert battery cover from above 6 8 2 Setting the Battery Error Alarm By setting system register no 4 Battery error indication to Enable you turn on the battery error alarm Now the ERROR ALARM LED will flash if the battery voltage drops By default the battery error ind...

Страница 114: ...areas in system registers no 6 to 14 For internal relays and data registers a dialog box opens in which you can adjust the values CAUTION Do not change the default values if no battery is installed If the battery is empty or no battery is present and additional hold areas have been defined the hold non hold operation becomes unstable 6 8 4 Lifetime of the Backup Battery The backup battery will eve...

Страница 115: ......

Страница 116: ...Chapter 7 High Speed Counter and Pulse Output ...

Страница 117: ...RUE or to FALSE b a c 1 PLC 2 Encoder a Encoder output is input to the high speed counter 3 Motor 4 Roller 5 Inverter b Start stop signal 6 Cutter c Cutter blade control signal 7 Tape lead wire Pulse output function By connecting a commercially available motor driver to the PLC positioning control can be performed with the pulse output function Using special instructions trapezoidal control home r...

Страница 118: ...s a ring counter Consequently if the counted value exceeds the maximum value the counter returns to the minimum value Similarly if the counted value drops below the minimum value the counter goes back to the maximum value and continues counting from there 2 147 483 647 2 147 483 646 2 147 483 645 2 147 483 646 2 147 483 647 2 147 483 648 1 Maximum value 2 Minimum value NOTE Using linear interpolat...

Страница 119: ... input X5 can be set to either channel 2 or channel 3 Performance No of phases Minimum input pulse width 1 No of channels Maximum counting speed 1 50kHz 2 30kHz 2 channels 3 20kHz 3 channels 1 10μs 100μs 2 4 20kHz 4 channels 1 20kHz 2 25μs 100μs 2 2 15kHz 2 channels 1 For information on the minimum input pulse width see page 109 2 The values in parentheses refer to the reset input Control flags an...

Страница 120: ...erpolation 1 Y0 Y3 Y1 Y4 Y2 Y5 X2 X5 Any 2 1 The home return operation of the interpolation axes should be performed for every channel see page 145 2 Any input can be specified in the global variable list The near home input is enabled disabled using the pulse output control code See Writing the Pulse Output Control Code on page 126 Performance No of channels Maximum output frequency 1 100kHz 1 ch...

Страница 121: ...lation output function there are two designated channels and outputs NOTE The PWM output function is only available with the transistor output type Output numbers Channel no Pulse output 0 Y0 2 Y3 Performance Resolution Duty ratio for pulse duration and period 1000 1 5Hz 12 5kHz 0 0 99 9 100 15 6kHz 41 7kHz 0 99 Control flags The PWM output status is stored in special internal relays To access spe...

Страница 122: ...ncy to 30kHz or less Otherwise the first pulse may be lost The high speed counter control flag e g sys_bIsHscChannel0ControlActive and the pulse output control flag e g sys_bIsPulseChannel0Active are assigned to the same internal relay e g R903A Therefore when a high speed counter instruction or a pulse output instruction is executed both the high speed counter control flag e g sys_bIsHscChannel0C...

Страница 123: ... 1 F171_PulseOutput_Trapezoidal Trapezoidal control F171_PulseOutput_Home Home return Pulse direction 60 700μs 1 CW CCW 20μs F172_PulseOutput_Jog JOG operation Pulse direction 320μs 1 CW CCW 30μs Pulse output F174_PulseOutput_DataTable Data table control Pulse direction 330μs 1 PWM output F173_PulseOutput_PWM PWM output 30μs 1 If pulse direction is set there is a waiting time 300μs between turning...

Страница 124: ...ystem registers 1 2 3 Procedure 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click High Speed Counter Pulse Catch Input Interrupt Input 4 Select the desired inputs for each channel 7 3 1 Count Input Modes Input mode Input signals 1 Input X0 X1 X3 or X4 2 Count Incremental TRUE FALSE 1 2 3 4 n 3 n 2 n 1 n 0 Decremental n 1 n 2 n 3 n 4 3 2 1 0 n TRUE FALSE 1 Inputs X0...

Страница 125: ...reasing Incremental decremental control 3 2 1 0 2 0 4 3 1 a b TRUE FALSE TRUE FALSE 1 Inputs X0 or X1 X3 or X4 2 Reset input X2 X5 3 Count a Rising edge count disabled elapsed value cleared b Falling edge count enabled Count for reset incremental n 1 n 2 1 0 0 1 2 TRUE FALSE a b c The reset is executed by the interruption at a rising edge and b falling edge The reset input can be enabled disabled ...

Страница 126: ...ictions on page 102 The output to be turned to TRUE or to FALSE can be specified with the instructions F166_HighSpeedCounter_Set and F167_HighSpeedCounter_Reset Outputs can be specified from Y0 to Y7 Using channel 0 with incremental input and reset input 1 Count input X0 2 Reset input X2 3 TRUE FALSE output Yn The output which is turned TRUE or FALSE when the target value is reached Y0 Y7 FPΣ Usin...

Страница 127: ...detailed information on using system variables System variables for memory areas used Description System variable Address 0 sys_bIsHscChannel0ControlActive R903A 1 sys_bIsHscChannel1ControlActive R903B 2 sys_bIsHscChannel2ControlActive R903C High speed counter control flag for channel 3 sys_bIsHscChannel3ControlActive R903D 0 sys_diHscChannel0ElapsedValue DDT90044 1 sys_diHscChannel1ElapsedValue D...

Страница 128: ...eed counter bit 2 Enabling disabling counting operations bit 1 Resetting the elapsed value software reset of the high speed counter to 0 bit 0 Clearing high speed counter instructions bit 3 To cancel execution of an instruction set bit 3 of the data register storing the high speed counter control code sys_wHscOrPulseControlCode to TRUE The high speed counter control flag then changes to FALSE To r...

Страница 129: ...ibited and the elapsed value keeps its current value Counting is continued when bit 1 is reset to FALSE Resetting the elapsed value software reset of the high speed counter to 0 bit 0 0 1 0 t 2 X0 1 X0 High speed counter input 1 Elapsed value 2 Bit 0 of high speed counter control code software reset When bit 0 of the control code is set to TRUE a software reset is performed and the elapsed value i...

Страница 130: ...ple 16 2009 Group Value Description IV 2 Channel number 2 III 0 fixed II 0 fixed Hex 9 corresponds to binary 1001 Clear high speed counter instruction clear bit 3 1 Reset input enabled bit 2 0 Count permit bit 1 0 I 9 Reset elapsed value to 0 yes bit 0 1 NOTE Use the reset input setting bit 2 to disable the reset input allocated in the system registers REFERENCE Please refer to the FPWIN Pro onlin...

Страница 131: ...hSpeedCounter_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 Characteristics of target value match ON control 10000 0 1 2 4 3 10000 Target value 1 Elapsed value of high speed counter 2 Execution condition 3 High speed counter control flag 4 PLC output The PLC output turns to TRUE ...

Страница 132: ...et value In addition the high speed counter control flag turns to FALSE and the instruction is deactivated REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 7 3 5 Sample Programs 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 d...

Страница 133: ...g example 7 3 5 1 Positioning Operations with a Single Speed Inverter Wiring example Y0 X0 X5 COM C OM A B C D E Y0 PNP NPN 1 Input terminal X0 Encoder input X5 Operation start A PLC 2 Output terminal Y0 Inverter operation B Inverter 3 Operation stop C Encoder D Motor E Conveyor When X5 turns to TRUE Y0 turns to TRUE and the conveyor starts to move When the elapsed value sys_diHscChannel0ElapsedVa...

Страница 134: ...7 3 High Speed Counter Function 117 Operation chart Y0 5000 0 y x x Number of pulses y Speed System register settings REFERENCE For POU Header and POU Body please see the programming examples in Panasonic s download area ...

Страница 135: ...on start A PLC 2 Output terminal Y0 Inverter operation Y1 Inverter high speed 3 Operation stop B Inverter 4 Fast slow C Encoder D Motor E 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 When the elapsed value reaches 5000 Y0 turns to FALSE ...

Страница 136: ...High Speed Counter Function 119 Operation chart Y0 5000 4500 Y1 0 y x x Number of pulses y Speed System register settings REFERENCE For POU Header and POU Body please see the programming examples in Panasonic s download area ...

Страница 137: ...se output 1 2 3 Procedure 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click High Speed Counter Pulse Catch Input Interrupt Input 4 Set any high speed counter allocated to a pulse output channel to Unused 7 4 1 Pulse Output Methods and Position Control Modes The pulse output method and position control mode are specified by means of the variables used with the posit...

Страница 138: ...her to specify the direction of rotation with TRUE FALSE signals In this mode forward rotation is carried out when the rotation direction signal is TRUE Relative value control The number of pulses set with the target value is output Positive values result in a positive rotation negative values in a negative rotation EXAMPLE With a current position of 5000 and a target value of 1000 1000 pulses are...

Страница 139: ...position of the axis this difference cannot be predetermined The internal value must be synchronized with the actual position value of the axis This is done by means of a home return during which a position value is registered at a known reference point home During execution of a home return instruction pulses are continuously output until the home input is enabled The I O allocation is determined...

Страница 140: ...ulse Output Function on page 103 Double pulse input driver CW CCW pulse output method Two output contacts are used as a pulse output for CW CCW Set the control code for F171_SPDH to CW CCW Using channel 0 2 A PLC B Motor driver 1 Home input X2 X5 2 Near home input see note e g X3 e g X6 3 CW pulse output Y0 Y3 A B 4 CCW pulse output Y1 Y4 NOTE Any input that is not used for other applications can ...

Страница 141: ...hat pulse output stops when the target value is matched Data table control F174_PulseOutput_DataTable Permits positioning control in accordance with the specified parameters Linear interpolation control F175_PulseOutput_Linear Causes pulses to be output using linear interpolation control Composite speed acceleration deceleration time and target value need to be specified F176_PulseOutput_Center Ca...

Страница 142: ...he beginning of the program Output relays and system variables for FPΣ Channel and pulse output numbers Pulse output method Channel no Interpolation axis 1 Pulse output CW CCW Pulse direction Y0 CW Pulse 0 x Y1 CCW Direction Y3 CW Pulse 2 y Y4 CCW Direction 1 For F175_PulseOutput_Linear F176_PulseOuput_Center F176_PulseOutput_Pass System variables for memory areas used Description System variable ...

Страница 143: ...lse output forced stop Enabling disabling counting operations Resetting the elapsed value software reset of the high speed counter Setting resetting near home input The near home bit is retained Set this bit to FALSE right after setting it to TRUE to be able to set the near home input a second time during a home return Continuing stopping pulse output forced stop By setting bit 3 of the data regis...

Страница 144: ...to 0 The elapsed value keeps the value 0 until bit 0 is reset to FALSE 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 0001 0000 1001 16 2109 15 12 11 8 7 4 3 0 I II III IV Group IV 1 Channel number channel n 16 n Group III 0 fixed Near home input bit 4 Group II 2 0 FALSE 1 TRUE Pulse output b...

Страница 145: ...ing the near home input is not possible if counting is prohibited or if a software reset is performed REFERENCE Please refer to the FPWIN Pro online help for programming examples 7 4 3 2 Writing and Reading the Elapsed Value of the Pulse Output The elapsed value is stored as a double word in the special data registers Access the special data registers using the system variable sys_diHscChannelxEla...

Страница 146: ...s TRUE After a drive system has been switched on there is a difference between the internal position value elapsed value and the mechanical position of the axis this difference cannot be predetermined The internal value must be synchronized with the actual position value of the axis This is done by means of a home return during which a position value is registered at a known reference point home D...

Страница 147: ...eed 3 Near home input TRUE 2 Target speed 4 Home input TRUE 5 Home input is effective at any time Type 2 The home input is effective only after deceleration started by near home input has been completed f t 0Hz 1 Initial and final speed 3 Near home input TRUE 2 Target speed 4 Home input TRUE 5 Home input is effective only after deceleration REFERENCE Please refer to the FPWIN Pro online help for d...

Страница 148: ...type 0 Pulses are output in accordance with the conditions set in the DUT as long as the execution condition is TRUE 300Hz 0Hz TRUE FALSE 1 Execution condition 2 CW pulse output Target value match stop mode type 1 Output stops when the target value is reached Set this mode in the control code and specify the target value an absolute value in the DUT FPΣ V1 4 or higher 300Hz 0Hz TRUE FALSE 1 Execut...

Страница 149: ...and the execution condition is TRUE Pulse output characteristics 1000 2500 5000 x f Hz 1000 3000 8000 10000 0 1 2 x Elapsed value of high speed counter 1 Execution condition 2 Pulse output control flag Pulses are output at the specified frequency until the target value is reached Then the frequency changes to the second frequency value and pulse output continues until the second target value is re...

Страница 150: ...g for this channel is FALSE and the execution condition is TRUE Pulse output characteristics 5000 2000 y x 5000 X axis target value channel 0 2000 Y axis target value channel 2 Pulses are output from channel 0 X axis and channel 2 Y axis so that the initial speed is 500Hz the target speed is 5kHz and the acceleration deceleration time is 300ms The two axes are controlled so that a linear path is f...

Страница 151: ...tion Reverse from channel 0 to channel 2 CW axis 2 Rotation direction Forward from channel 2 to channel 0 CW axis Fv Composite speed O Xo Yo Center position Fx X axis speed S Xs Ys Current position Start Fy Y axis speed P Xp Yp Pass position r Radius E Xe Ye Target position End Ye Y o r Xe Xo r Fx Fvsin θ Fv Fy Fvcosθ Fv Example Let channel 0 be the X axis and channel 2 be the Y axis The position ...

Страница 152: ...ection Reverse from channel 0 to channel 2 CW axis 2 Rotation direction Forward from channel 2 to channel 0 CW axis Fv Composite speed S Xs Ys Current position Start Fx X axis speed P Xp Yp Pass position Fy Y axis speed E Xe Ye Target position End r Radius Ye Y o r Xe Xo r Fx Fvsin θ Fv Fy Fvcosθ Fv Example Let channel 0 be the X axis and channel 2 be the Y axis The position control mode is absolu...

Страница 153: ...pezoidal 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 ...

Страница 154: ...4VDC A D E F X0 Near home sensor XA Home return start channel 0 X2 Home sensor XB Home return start channel 2 X8 Positioning start XD Overrun A PLC Input terminal X9 Positioning start B PLC Output terminal Y0 CW pulse output Y1 CCW pulse output 1 CW input COM Common input C Motor driver 2 CCW input D Stepping motor E Moving table side side F Switches a N O contact b N C contact If necessary connec...

Страница 155: ...X2 X5 X3 XA X0 XB XC COM Y0 Y3 Y1 Y4 D CH0 CH2 B C 24VDC A E C D X2 Home sensor XA Home return start X0 Near home sensor XB Positioning start X5 Home sensor XC Emergency stop A PLC Input terminal X3 Near home sensor B PLC Output terminal Y0 CW pulse output Y1 CCW pulse output C Motor driver 1 CW input 2 CCW input D Stepping motor F Moving table side side CH0 Channel 0 CH2 Channel 2 If necessary co...

Страница 156: ...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 A x C B D 1 X8 Positioning start 2 Y0 CW pulse output A PLC 3 Y1 CCW pulse output B Motor driver C Stepping motor side side D Moving table X 10000 pulses Pulse output diagram 200ms 200ms 5000Hz 500Hz 0Hz 1 Total movement amount 10000 pulses ...

Страница 157: ...DC 1 X9 Positioning start 2 Y0 CW pulse output A PLC 3 Y1 CCW pulse output B Motor driver C Stepping motor side side D Moving table X 8000 pulses Pulse output diagram 300ms 300ms 6000Hz 1000Hz 0Hz 1 Total movement amount 8000 pulses c Absolute value control When X8 X8_bPositioningStartPlus turns to TRUE pulses are output from the CW pulse output or CCW pulse output of the specified channel 0 If th...

Страница 158: ...10000 22000 30000 0V 24V DC A C B D Regardless of the current value the moving table moves towards position 22000 1 X8 Positioning start 2 Y0 CW pulse output A PLC 3 Y1 CCW pulse output B Motor driver C Stepping motor side D Moving table side Pulse output diagram 150Hz 150Hz 4000Hz 200Hz 0Hz REFERENCE For POU Header and POU Body please see the programming examples in Panasonic s download area ...

Страница 159: ...eturn to home begins When X0 X0_bNearHome_CH0 turns to TRUE deceleration begins and when X2 turns to TRUE home return has been completed At this point the elapsed value area sys_diPulseChannel0ElapsedValue is cleared to 0 Y1 and X2 are used implicitly by F171_SPDH The wiring diagram shown above applies to this program See page 137 Y1 Y0 0V 24V DC XA X2 X0 X2 X0 B A C XA Home return start X2 Home i...

Страница 160: ...t_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 When X3 X3_bNearHome_CH2 turns to TRUE deceleration begins and when X5 turns to TRUE home return is completed After the return to home is completed the elapsed value ...

Страница 161: ...C B A C XB Home return start X5 Home input X3 Near home input Y3 CW pulse output Y4 CCW pulse output A Motor driver B Stepping motor side C Moving table side X3 Near home sensor X5 Home sensor Pulse output diagram 250ms 250ms 1000Hz 120Hz 0Hz 1 Positioning start 2 Near home input 3 Home input ...

Страница 162: ...l 2 Home return begins In channel 0 deceleration begins when X0 turns to TRUE When X2 turns to TRUE home return is complete The elapsed value area sys_diPulseChannel0ElapsedValue is cleared to 0 In channel 2 deceleration begins when X3 turns to TRUE When X5 turns to TRUE home return is complete The elapsed value area sys_diPulseChannel2ElapsedValue is cleared to 0 As there is no interpolation func...

Страница 163: ...orIn_CH0 X5 Home input X5_bHomeSensorInput_CH2 X3 Near home input X3_bNearHomeSensorIn_CH2 Y0 CW pulse output channel 0 Y0_bPulseOutCW_CH0 Y1 CCW pulse output channel 0 Y1_bPulseOutCCW_CH0 Y3 CW pulse output channel 2 Y3_bPulseOutCW_CH2 Y4 CCW pulse output channel 2 Y4_bPulseOutCCW_CH2 A Motor driver B Stepping motor side C Moving table side CH2 Channel 2 CH0 Channel 0 X3 Near home sensor X5 Home ...

Страница 164: ...300ms 300ms 2000Hz 100Hz 0Hz 1 Positioning start 2 Near home input 3 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 ...

Страница 165: ...le FPWIN Pro Project Sample_PulseOutput_05_JogOperation_LD_FP_SIGMA_FPX pro Sample_PulseOutput_05_JogOperation_ST_FP_SIGMA_FPX pro 7 4 4 6 Example 6 Linear and Circular Interpolation Control Using linear and circular interpolation functions positioning control is performed that draws a trajectory like the one shown below The interval between the first position P1 and P2 and the interval between P3...

Страница 166: ...e 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 This is ...

Страница 167: ...nt P4 switch the control code to stop mode 3 In this example since the rotation direction changes for each positioning point designation of the rotation direction is as follows 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 ar...

Страница 168: ...g system variables Setting system registers When using the PWM output function make sure the high speed counter function is not allocated to channel 0 or channel 2 1 2 3 Procedure 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click High Speed Counter Pulse Catch Input Interrupt Input 4 Set the high speed counters allocated to channel 0 and channel 2 to Unused REFEREN...

Страница 169: ......

Страница 170: ...Chapter 8 Communication ...

Страница 171: ...interface Using the communication cassettes the FPΣ provides the following additional ports COM port RS232C or RS485 interface COM port RS232C interface 8 1 1 Terminology in FPWIN Pro and FPWIN GR Although similar FPWIN Pro and FPWIN GR use slightly different terminology to describe communication modes The following table provides the terminological equivalents for FPWIN GR FPWIN Pro FPWIN GR MEWT...

Страница 172: ...In PROG mode the TOOL port is automatically set to MEWTOCOL COM mode even if program controlled mode has been selected This way it is always possible to communicate in PROG mode with a programming software like FPWIN Pro 8 1 3 MEWTOCOL COM Master Slave This communication mode uses the proprietary MEWTOCOL COM protocol to exchange data between a master and one or more slaves This is called 1 1 or 1...

Страница 173: ... sending and receiving the data RS 232C POWER READY MODE A B C KEY PAD CAMERA MONITOR COM COM D2 D4 D6 D8 D9 FLASH D1 D3 D5 D7 READY MICRO IMAGECHECKER M100 Matsuhita Electronic Works Ltd 24VDC START ACK IN1 IN3 IN5 COM COM IN2 IN4 COM Data registers DT Send buffer Receive buffer Receiving data Image checker Bar code reader Sending data using F159_MTRN PLC Program controlled connection between the...

Страница 174: ... for sending and areas for receiving data Station numbers and link areas are allocated using the system registers 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 The contents of LD0 in the other stations are also changed to...

Страница 175: ...RTU master function and a Modbus RTU slave function The side that issues commands is called master The slave receives the commands executes the process and sends back responses The slave answers automatically to the commands received from the master so no program is necessary on the slave The Modbus protocol supports both ASCII mode and RTU binary mode However the PLCs of the FP Series only suppor...

Страница 176: ...OM2 FPG COM3 FPG COM4 S SD SD SD RS485 SD COM1 R RD RD RD RS485 RD S RS SD RS232C SD COM2 R CS RD RS232C RD SD Send Data output RS Request to Send RD Receive Data input CS Clear to Send The LED flashes while communication is taking place and goes out when there is no communication 8 2 2 FPG COM1 1 Channel RS232C Type This communication cassette is a 1 channel unit with a five wire RS232C port RS C...

Страница 177: ...PLC External device R1 Receive Data 1 PLC External device COM 1 S2 Send Data 2 PLC External device R2 Receive Data 2 PLC External device COM 2 SG Signal Ground COM 1 COM 2 Communication modes Communication mode 1 1 communication 1 N communication MEWTOCOL COM Master Slave X Program controlled X PLC Link X 1 Modbus RTU Master Slave X 1 PLC Link is only available for COM port 1 For RS232C connection...

Страница 178: ...pts 1 as well as 2 stop bits during reception regardless of the stop bit setting 8 2 5 FPG COM4 1 Channel RS485 and 1 Channel RS232C Combination Type This communication cassette contains a 1 channel unit with a two wire RS485 port and a 1 channel unit with a three wire RS232C port Terminal layout SD RD SG FPG COM4 AFPG806 RS232C RS485 SD RD SG Pin Name Signal direction Port Transmission line Trans...

Страница 179: ...st station switch SW1 2 to set the baud rate For RS485 connections COM port 1 the baud rate must be set in the system registers and with the DIP switch For RS232C connections the baud rate is only set in the system registers For PLC Link the baud rate must be set to 115200bit s Switch Function Switch position Setting ON OFF General station initial setting SW1 1 Terminating resistor ON OFF First an...

Страница 180: ...communication when communication errors due to excessive noise occur or when the receiver equipment cannot receive temporarily 2 For RS232C connections the maximum number of stations is 2 Communication specifications Interface RS232C non isolated RS485 isolated 1 2 Communication mode 1 1 1 N Communication method Half duplex 2 wire half duplex Synchronous method Start stop synchronous system Transm...

Страница 181: ...han 0 enables the switch setting and the system register setting is ignored In this case the same station number is allocated to all communication ports A maximum of 31 stations can be specified with the switch 7 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 t...

Страница 182: ...formation The communication mode can be switched using F159_MRTN see page 169 8 4 1 Setting System Registers in PROG Mode 1 2 3 Procedure 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click COM Port The communication ports occupy different bit positions of the same system register so individual settings for each communication port are possible To make settings for th...

Страница 183: ...and 1200bit s can be specified using the SYS1 instruction However this will not change the setting value of the system register The setting must match the external device connected to the communication port PLC Link The baud rate is fixed at 115200bit s When the RS485 port COM port 1 of FPG COM4 is used set the baud rate in the system registers to either 19200bit s or 115200bit s Set DIP switch SW...

Страница 184: ...ber setting switch to 0 enables the SYS1 instruction and the system register settings In the system registers individual settings are possible for the communication ports Setting the station number setting switch to a value other than 0 enables the switch setting and the system register setting is ignored In this case the same station number is allocated to all communication ports NOTE The station...

Страница 185: ... ON A 11 OFF B 27 ON B 12 OFF C 28 ON C 13 OFF D 29 ON D 14 OFF E 30 ON E 15 OFF F 31 ON F 1 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 Setting station numbers with the SYS1 instruction For details on the SYS1 instruction please refer to your Programming Manual ...

Страница 186: ...e In RS485 communication using FPG COM3 or FPG COM4 it may be necessary to adjust the response time time between the reception of an instruction and the return of a response This applies to all communication modes with automatic responses MEWTOCOL COM Master Slave PLC Link Modbus RTU Master Slave In program controlled communication the program algorithm determines the response time e g using timer...

Страница 187: ...ing adjustments depending on the communication mode and the connected device 1 FPΣ using FPG COM4 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 3 Computer Adjust t in the pro...

Страница 188: ...cessary on the slave MEWTOCOL COM master function The master can be a PLC or any external device supporting the master function To use the built in master functionality of the PLC select MEWTOCOL COM Master Slave in the system registers and implement a PLC program The applicable instructions are F145_WRITE_DATA and F146_READ_DATA MEWTOCOL COM Master Slave mode is recommended over program controlle...

Страница 189: ...ers For 1 N communication in a C NET the station number must be specified in the system registers of the slave No program is necessary on the slaves The program for the master side must send and receive commands according to the MEWTOCOL COM protocol MEWTOCOL COM contains the commands used to control and monitor the slave operation 1 Master 2 Slave NOTE Panasonic offers software tools with impleme...

Страница 190: ...tart code Start code Text Text Source Computer Transmission program Reception processing program Command message Response message The type of command Any settings and data required in order to execute the command The command and data are sent to the PLC with the specified station number The station number of the PLC that sent the response Confirmation of whether or not the processing was carried o...

Страница 191: ...all upper case characters following the fixed formula for the particular command The method for writing text segments in the message varies depending on the type of command 4 Check code Hexadecimal block check code BCC for error detection using horizontal parity The BCC should be created so that it targets all of the text data from the header to the last text character The BCC starts from the head...

Страница 192: ...varies depending on the type of command The value should be read based on the content If the processing is not completed successfully an error code will be stored here so that the content of the error can be checked 4 Check code Hexadecimal block check code BCC for error detection using horizontal parity The BCC starts from the header and checks each character in sequence using the exclusive OR op...

Страница 193: ...its Read data area RD Reads the contents of a data area Write data area WD Writes data to a data area Read timer counter set value area RS Reads the value set for a timer counter Write timer counter set value area WS Writes a timer counter setting value Read timer counter elapsed value area RK Reads the timer counter elapsed value Write timer counter elapsed value area WK Writes the timer counter ...

Страница 194: ...ation This sections describes 1 1 MEWTOCOL COM communication in which the FPΣ acts as a slave The examples below contain the wiring diagrams for the connection to a computer and to a programmable display of the GT series System register settings For 1 1 MEWTOCOL COM communication the system registers should be set as shown below The communication ports occupy different bit positions of the same sy...

Страница 195: ...5 COM port 2 baud rate 2400 115200bit s The setting must match the external device connected to the communication port Programming There is no programming required on the slave Only the station number and the communication parameters must be set in the system registers The program for the master side must send and receive commands according to the MEWTOCOL COM protocol MEWTOCOL COM contains the co...

Страница 196: ...ption 1 CD Carrier Detect 2 RXD Receive Data 3 TXD Transmit Data 4 DTR Data Terminal Ready 5 GND System Ground 6 DSR Data Signal Ready 7 RTS Request To Send 8 CTS Clear To Send 5 1 9 6 9 pin Sub D male connector on computer 9 RI Ring Indicator Wiring diagrams Using the TOOL port SG SD RD 1 2 3 4 5 6 7 8 9 CD RXD TXD DTR GND DSR RTS CTS RI 1 2 3 4 5 FG FG Left computer right FPΣ For the pin layout ...

Страница 197: ...PΣ 8 5 5 2 1 1 Communication with Programmable Displays of GT Series For a 1 1 MEWTOCOL COM connection between the FPΣ and a programmable display of the GT Series an RS232C cable is needed Communication is performed via commands from the programmable display and responses from the PLC No program is required for communication Simply set the mutual communication settings to operate the PLC via the p...

Страница 198: ... of expansion units connected to the FPΣ is limited due to the capacity of the PLCs power supply The maximum number of expansion units is six Using the TOOL port 5 1 2 3 4 SG SD RD RS CS SG SD RD 1 2 3 4 5 Left GT terminal right FPΣ Using the 1 channel RS232C type communication cassette FPG COM1 5 1 2 3 4 SG SD RD RS CS SG SD RD RS CS Left GT terminal right FPΣ Using the 2 channel RS232C type comm...

Страница 199: ...S485 cable The computer and the PLCs communicate via commands and responses The computer sends a command specifying the station number and the PLC with that station number sends a response back to the computer RS232C RS485 1 2 3 4 1 N communication between a computer and several PLCs 1 The station number of the PLC to which the command is being sent is included in the command message 2 The station...

Страница 200: ...to either 19200bit s or 115200bit s Set DIP switch SW1 2 of the cassette to the same setting see page 162 When setting the station number using the system registers be sure to set the switch on the unit to 0 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 la...

Страница 201: ...nals of the two transmission lines are connected internally and either terminal pair is assigned to COM port 1 NOTE Wiring should extend from one station to the next Never run two wires from a single station to two other stations Correct Incorrect Bus termination FPΣ FPΣ FPΣ FPΣ 1 To converter for RS232C connection of computer 2 Transmission line Bridge the E terminal and the free terminal on the ...

Страница 202: ...1 1 to ON on the first and on the last station of the transmission line to terminate the data bus See DIP Switch Setting on FPG COM4 on page 162 8 5 7 Sample Program for Master Communication Use the F145_WRITE and F146_READ instructions for the MEWTOCOL COM master function Be sure to set the COM port used in the program to MEWTOCOL COM Master Slave in the system registers GVL POU Header In order t...

Страница 203: ...Communication FPΣ User s Manual 186 LD Body ST Body REFERENCE Please refer to the FPWIN Pro online help for detailed information ...

Страница 204: ...00 Matsuhita Electronic Works Ltd 24VDC START ACK IN1 IN3 IN5 COM COM IN2 IN4 COM Data registers DT Send buffer Receive buffer Receiving data Image checker Bar code reader Sending data using F159_MTRN PLC Program controlled connection between the FPΣ and an external device Sending data Sending includes generating the data for the send buffer and sending it using the instruction F159_MTRN See also ...

Страница 205: ...e 198 Receiving data Reception done flag is turned on Data registers DT Device with RS232C port Send buffer Receive buffer PLC No end code is included in the data stored The maximum volume of data that can be received is 4094 bytes NOTE With FPG COM4 the time between reception and response should be adjusted see page 169 8 6 1 Setting Communication Parameters Make the following settings for the co...

Страница 206: ...FPWIN Pro In order to use the data in the receive buffer define a global variable having the same starting address and capacity 8 6 2 Sending Data to External Devices Steps for sending data to external devices 1 Setting the communication parameters to match the external device 2 Generating the data in the send buffer 3 Sending the data using the instruction F159_MTRN NOTE F159_MTRN allows multiple...

Страница 207: ...rea for the data to be sent Bold numbers indicate the order of transmission The maximum volume of data that can be sent is 2048 bytes EXAMPLE Define a send buffer for 30 bytes ARRAY 0 15 OF WORD and copy 8 characters of a string ABCDEFGH into the buffer Send buffer layout 0 1 2 4 16 42 B 16 41 A 16 44 D 16 43 C 16 48 H 16 47 G 16 46 F 16 45 E 8 3 Offset 15 The first word of the send buffer offset ...

Страница 208: ...g can be copied into each element of the array SendBuffer SendBuffer 0 is reserved for the total number of bytes to be sent by F159_MTRN 3 Sending the data using the instruction F159_MTRN Execute F159_MTRN to specify the amount of data to be sent specify the communication port to be used output the data from the communication port to the external device When the execution condition of F159_MTRN tu...

Страница 209: ...ag turns to TRUE The end code is automatically added to the data sent At the end of transmission the value in offset 0 is automatically reset to 0 EXAMPLE Transmit the characters ABCDEFGH to an external device connected to COM port 1 For start code and end code the default settings No STX and CR are selected CR ON OFF ON OFF 0 2 3 4 A B C D E F G H Offset Transmission data Execution condition Tran...

Страница 210: ... Data Format on page 197 Data cannot be sent unless the pin CS Clear to Send is on When connecting to a three wire port short circuit the RS and CS pins 8 6 3 Receiving Data from External Devices Steps for receiving data from external devices 1 Setting the communication parameters and specifying the receive buffer 2 Receiving the data 3 Processing the data in the receive buffer 4 Preparing the sys...

Страница 211: ...ohibited The reception done flag only turns to TRUE if an end code e g CR has been selected in the system registers 3 Processing the data in the receive buffer Verify the end of reception Copy the data in the receive buffer to a target area defined in the program using a transfer instruction e g F10_BKMV NOTE For details on the operation of the reception done flag see page 198 4 Preparing the syst...

Страница 212: ...e Reception possible Execution of F159_MTRN Receive buffer layout 0 1 2 4 16 42 B 16 41 A 16 44 D 16 43 C 16 48 H 16 47 G 16 46 F 16 45 E 8 3 Offset When reception begins the value in offset 0 is 8 At the end of reception the value in offset 0 is 0 The data in offset 1 to offset 4 is received in order from the low order byte System register settings In order to use the data in the receive buffer d...

Страница 213: ...he next data without immediately sending further data the receive buffer is reset by executing F159_MTRN with n_Number 0 NOTE 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 To ensure proper execution of the program the status of the special internal ...

Страница 214: ...the data received are recognized if the corresponding start and end codes have been specified in the system registers Start and end codes are not stored in the receive buffer The end code serves as a reception done condition i e the reception done flag turns to TRUE when the end code is received The start code resets the receive buffer If None is selected for the start code a start code is not add...

Страница 215: ...g to FALSE The reception done flag can be evaluated using the IsReceptionDone function Or use the system variable sys_bIsComPort1ReceptionDone sys_bIsComPort2ReceptionDone or sys_bIsToolPortReceptionDone depending on the port The end of reception can also be determined by time out using the IsReceptionDoneByTimeOut function or by checking the contents of the receive buffer The status of the recept...

Страница 216: ...s_bIsToolPortTransmissionDone COM1 1 R9039 sys_bIsComPort1TransmissionDone COM2 2 R9049 IsTransmissionDone sys_bIsComPort2TransmissionDone TRUE Communication error flag If the communication error flag turns to TRUE during reception reception continues Execute F159_MTRN to turn the error flag to FALSE and to move the write pointer back to offset 1 The communication error flag can be evaluated using...

Страница 217: ...one flag 8 Write pointer When receiving data operation is as follows 1 Characters A B and C received from the external device are stored in the receive buffer 2 When the end code is received the reception done flag turns to TRUE Reception of any further data is prohibited Character D is not stored 3 F159_MTRN is executed to send response data to the external device When F159_MTRN is executed The r...

Страница 218: ...offset 0 to 0 and moves the write pointer back to offset 1 Subsequent data will be stored in the receive buffer starting at offset 1 8 6 5 2 Start Code STX End Code ETX Receiving data A B C STX D H ETX A A B B C A B C A E C G E C H E C H 1 2 3 0 0 1 1 E ETX F G STX B C D 1 E C D 2 E C D 2 E C D 0 E C G 1 TRUE FALSE TRUE FALSE 1 2 3 4 5 6 1 Data received from external device 4 Receive buffer 2 Rece...

Страница 219: ...159_MTRN is executed at the same time the end code is received from the external device F159_MTRN turns the reception done flag to FALSE Therefore this flag will not be detected NOTE Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and moves the write pointer back to offset 1 Subsequent data will be stored in the receive buffer starting at offset 1 If two start codes...

Страница 220: ...teps 1 to 5 are repeated This time the characters c d and e are sent 8 6 6 1 1 Communication This section describes 1 1 program controlled communication in which the FPΣ acts as a master The examples below contain the wiring diagrams for the connection to a Micro Imagechecker and to another FP series PLC System register settings By default the COM port is set to MEWTOCOL COM mode For 1 1 program c...

Страница 221: ... 2 bits End code CR CR LF None ETX Start code No STX STX 415 COM port 2 baud rate 2400 115200bit s 418 COM port 2 receive buffer starting address 0 32762 initial value 0 419 COM port 2 receive buffer capacity 0 2048 words initial value 2048 words NOTE In PROG mode the TOOL port is automatically set to MEWTOCOL COM mode even if program controlled mode has been selected This way it is always possibl...

Страница 222: ...ontrol 9600bit s 8 1 Odd None 53 Serial Output Output Invalid Digit Read End Process End Numerical Calculation Judgment 5 Column Repl 0 None None Output Output NOTE If Del is specified for the invalid processing parameter zero suppression processing will be carried out on the output data and the output format will be changed Always make sure Repl 0 is specified When outputting data to an external ...

Страница 223: ...der no ANM81303 Pin Name Cable color 1 TXD Red 2 RXD White 3 RTS Black 4 CTS Yellow 5 DSR Blue 6 GND Green 7 CD Brown A100 A200 COM port 8 DTR Gray Wiring diagrams Using the 1 channel RS232C type communication cassette FPG COM1 ANM81303 SG SD RD RS CS TXD RXD RTS CTS DRS GND DCD DTR 1 2 3 4 5 6 7 8 9 Left FPΣ right Micro Imagechecker 1 Shield housing ...

Страница 224: ...RXD RTS CTS DRS GND DCD DTR SG S1 R1 S2 R2 1 2 3 4 5 6 7 8 9 Left FPΣ right Micro Imagechecker 1 Shield housing 2 To second external device Using the 1 channel RS485 and 1 channel RS232C combination type communication cassette FPG COM4 ANM81303 TXD RXD RTS CTS DRS GND DCD DTR SG SD RD 1 2 3 4 5 6 7 8 9 Left FPΣ right Micro Imagechecker ...

Страница 225: ... Write start command S C R in send buffer 2 Send data with F159_MTRN 3 Transmission done flag FALSE Reception done flag FALSE Receive buffer reset 4 Send start command S C R A Sending data 5 Transmission done flag TRUE 6 Receive scan result 1012345 C R 7 Reception done flag TRUE 8 Read data 1012345 C R 9 Send empty data with F159_MTRN B Receiving data 10 Transmission done flag FALSE Reception done...

Страница 226: ...ster 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 GVL POU Header ...

Страница 227: ...Communication FPΣ User s Manual 210 LD Body ST Body ...

Страница 228: ...lue in offset 0 is automatically reset to 0 Status of the receive buffer when the reception is completed DT200 16 30 DT201 DT202 DT203 DT204 16 31 0 1 16 32 16 31 2 1 16 34 16 33 4 3 16 35 5 7 The number of bytes received is stored in offset 0 The received data is stored in order from the low order byte 8 6 6 2 1 1 Communication with FP Series PLC Connect the FPΣ and another FP series PLC using th...

Страница 229: ...s many other commands System register settings The factory setting for the communication mode is MEWTOCOL COM Master Slave For 1 1 program controlled communication the system registers should be set as shown below System register settings for FP series PLC FP0 FP2 FP2SH No Name Set value 412 COM port 1 communication mode MEWTOCOL COM Master Slave 413 COM port 1 communication format Data length 8 b...

Страница 230: ...ight FP0 COM port SG SD RD RS CS 1 2 3 4 5 6 7 8 9 FG SD RD RS CS SG Left FPΣ right FP2 FP2SH COM port Using the 2 channel RS232C type communication cassette FPG COM2 S R G SG S1 R1 S2 R2 Left FPΣ right FP0 COM port 1 To second external device SG S1 R1 S2 R2 1 2 3 4 5 6 7 8 9 FG SD RD RS CS SG Left FPΣ right FP2 FP2SH COM port 1 To second external device ...

Страница 231: ...port 1 1 communication between the FPΣ and another FP series PLC includes two processes A Reading data from remote FP series PLC B Writing data to remote FP series PLC A Reading data from remote FP series PLC Procedure of communication In this example an FP series PLC FP connected to COM port 1 of another FP series PLC FPΣ stores the value 100 in DT0 and 200 in DT1 The FPΣ sends a command to read ...

Страница 232: ...0 a b c 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 GVL ...

Страница 233: ...Communication FPΣ User s Manual 216 POU Header LD Body ...

Страница 234: ...16 25 0 19 16 23 16 31 1 16 44 16 52 D R 16 30 16 44 0 D 16 30 16 30 0 0 16 30 16 30 0 0 16 30 16 30 0 0 16 30 16 30 0 0 16 2A 16 31 1 16 2A 1 2 3 4 5 6 7 8 9 10 0 Offset At the end of transmission the value in offset 0 is automatically reset to 0 Status of the receive buffer when the reception is completed The remote FP series PLC returns the values 100 in DT0 and 200 in DT1 with the following re...

Страница 235: ...et 0 and offset 1 of the data area awReceivedData F72_AHEX is the hexadecimal ASCII to hexadecimal data conversion instruction 16 36 6 16 34 4 16 30 0 16 30 0 16 30 0 16 30 0 16 43 C 16 38 8 16 64 16 00 16 C8 16 00 200 100 F72_AHEX ASCII HEX 1 DT1 1 DT0 Offset 4 Offset 5 Offset 6 Offset 7 Offset 0 Offset 1 1 DT1 1 DT0 DT200_awReceiveBuffer awReceivedData Conversion of the ASCII values from DT0 and...

Страница 236: ...FPΣ User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2 ...

Страница 237: ...Communication FPΣ User s Manual 220 2 2 ST Body ...

Страница 238: ... t 200μs System register settings By default the COM port is set to MEWTOCOL COM mode For 1 N program controlled communication the system registers should be set as shown below Settings for COM port 1 FPG COM3 FPG COM4 No Name Set value 412 COM port 1 communication mode Program controlled 413 COM port 1 communication format Data length 7 bits 8 bits Parity None Odd Even Stop bit 1 bit 2 bits End c...

Страница 239: ... 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 ...

Страница 240: ...k registers LD The statuses of the link relays and link registers of one PLC are automatically fed back to the other PLCs on the same network The link relays and link registers of the PLCs contain areas for sending and areas for receiving data Station numbers and link areas are allocated using the system registers RS485 1 4 2 3 1 2 3 1 2 3 1 2 3 Sharing of data in a PLC link using dedicated send a...

Страница 241: ... L0 LD 0 100 100 LD 0 RS485 1 4 2 3 1 4 2 3 100 LD 0 100 LD 0 PLC Link connection between four FPΣ units Station number of PLC LD Link register 8 7 1 Setting Communication Parameters Make the following settings for the communication port communication mode PLC Link station number link area For details on setting the communication parameters see Communication Parameters on page 165 For details on s...

Страница 242: ...TE Make sure the same station number is not used for more than one of the PLCs connected through the PLC Link function Station numbers should be set sequentially and consecutively starting from 1 with no breaks between them If there are fewer than 16 stations linked set the highest station number to reduce the link transmission cycle time See Setting the Highest Station Number for a PLC Link on pa...

Страница 243: ...s 44 Link registers Send area Start sending from this word address 0 0 127 45 Link registers Send area Number of words to send 0 0 128 words PLC link 0 47 1 Highest station number in network 16 1 16 50 Link relays Send receive area Number of words shared by all linked PLCs 0 0 64 words 51 Link registers Send receive area Number of words shared by all linked PLCs 0 0 128 words 52 Link relays Send a...

Страница 244: ...n the same area as on the sending side Link relay allocation WL0 19 20 63 WL0 19 20 63 WL0 63 WL0 63 39 40 39 40 1 4 2 3 1 2 3 1 2 3 1 2 3 Send area Receive area Station number of PLC System register settings Station settings No Name 1 2 3 4 40 1 Link relays Send receive area Number of words shared by all linked PLCs 64 64 64 64 42 Link relays Send area Start sending from this word address 0 20 40...

Страница 245: ...areas of stations no 2 and 3 Station no 4 is allocated as a receive area only and can receive data from stations no 1 2 and 3 but cannot send data to other stations 8 7 2 2 Example for 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 Link relay allocation WL64 83 84 127 WL64 83 84 127 WL64 127 WL64 127 103 104 103 104 4 1 2 3 1 2 3 ...

Страница 246: ...nd area of station no 1 can be transmitted to the receive areas of stations no 2 3 and 4 Also the receive area of station no 1 can receive data from the send areas of stations no 2 and 3 Station no 4 is allocated as a receive area only and can receive data from stations no 1 2 and 3 but cannot send data to other stations 8 7 2 3 Partial Use of Link Areas In the link areas available for PLC link li...

Страница 247: ...50 to WL63 can be used as internal relays Link register allocation Send area Receive area Area for internal relays 1 Used for link relays 2 Not used for link relays LD0 39 40 127 79 80 99 100 System register settings No Name 1 41 Link registers Send receive area Number of words shared by all linked PLCs 100 44 Link registers Send area Start sending from this word address 40 45 Link registers Send ...

Страница 248: ... error so that communication cannot be carried out WL0 19 20 63 WL0 19 20 63 WL0 63 39 40 29 40 1 2 3 1 2 3 1 3 Send area Overlapping area System register settings Station settings No Name 1 2 3 40 Link relays Send receive area Number of words shared by all linked PLCs 64 64 64 42 Link relays Send area Start sending from this word address 0 20 30 43 Link relays Send area Number of words to send 20...

Страница 249: ...ation number 1 2 1 2 3 4 n Highest station number 1 2 2 4 4 4 4 N 1 Same setting for each station 8 7 4 PLC Link 0 and 1 Allocation Setting The default setting of system register 46 PLC Link 0 and 1 allocation setting is Normal This means that the unit which is closest to the CPU uses PLC link 0 and the unit which is further away uses PLC link 1 To reverse this behavior select Reverse In the examp...

Страница 250: ...sing the data from a different station in the network check to make sure the transmission assurance relay for this station is TRUE Relay no Station no System variable name Conditions for TRUE FALSE R9060 1 sys_bIsPlcLink0Station1Active R9061 2 sys_bIsPlcLink0Station2Active R9062 3 sys_bIsPlcLink0Station3Active R9063 4 sys_bIsPlcLink0Station4Active R9064 5 sys_bIsPlcLink0Station5Active R9065 6 sys_...

Страница 251: ...PlcLink0Station8InRunMode R9078 9 sys_bIsPlcLink0Station9InRunMode R9079 10 sys_bIsPlcLink0Station10InRunMode R907A 11 sys_bIsPlcLink0Station11InRunMode R907B 12 sys_bIsPlcLink0Station12InRunMode R907C 13 sys_bIsPlcLink0Station13InRunMode R907D 14 sys_bIsPlcLink0Station14InRunMode R907E 15 sys_bIsPlcLink0Station15InRunMode R907F 16 sys_bIsPlcLink0Station16InRunMode TRUE if the unit is in RUN mode ...

Страница 252: ...LC 1 Link relay L0 turns to TRUE 2 Link relay L1 turns to TRUE System register settings For PLC Link the communication format and baud rate settings are fixed No Name Set value 413 COM port 1 communication format Data length 8 bits Parity Odd Stop bit 1 bit End code CR Start code No STX 415 COM port 1 baud rate 115200bit s NOTE FPG COM4 The baud rate of 115200bit s must be set with switch SW1 2 on...

Страница 253: ... FPWIN Pro 2 Set using the mode speed setting switch on the MCU Link relay allocation WL0 19 20 63 WL0 19 20 63 WL0 63 39 40 39 40 1 2 3 1 2 3 1 2 3 FP X FP2 FP10SH FPΣ Send area Receive area Station settings System register Name 1 2 3 40 Link relays Send receive area Number of words shared by all linked PLCs 64 64 64 42 Link relays Send area Start sending from this word address 0 20 40 43 Link re...

Страница 254: ...and the free terminal on the first and on the last station of the transmission line to terminate the data bus See FPG COM3 1 Channel RS485 Type on page 160 Connection diagram for FPG COM4 To terminate the data bus use the DIP switch on the cassette of the last station of the transmission line FPΣ FPΣ FPΣ FPΣ 1 SW1 1 must be ON 2 Transmission line Set SW1 1 to ON on the first and on the last statio...

Страница 255: ...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 POU Header LD Body Station 3 When g_b_FromStation1_StartMotor2 is TRUE the output gb_Motor2 turns to TRUE POU Header ...

Страница 256: ...ansmission time per station Ts scan time Tpc Tpc Ttx Pcm Ttx 1 transmission speed 1000 11ms 0 096ms at 115200bit s Pcm 23 number of relay words number of register words 4 Tpc PLC link sending time Ttx sending time per byte Pcm PLC link sending size 2 Tlt link table sending time Tlt Ttx Ltm Ttx 1 transmission speed 1000 11ms 0 096ms at 115200bit s Ltm 13 2 n Ttx sending time per byte Ltm link table...

Страница 257: ...smission time T of one cycle will be T max 7 82 16 4 32 1 130 44ms Calculation example 2 Conditions All stations have been added to a 16 unit link Highest station number 16 Relays and registers have been evenly allocated Relays and registers have been evenly allocated Scan time for each PLC 5ms Ttx 0 096 Pcm per station 23 4 8 4 71 Tpc Ttx Pcm 0 096 71 6 82ms Ts per station 5 6 82 11 82ms Tlt 0 09...

Страница 258: ... transmission time T of one cycle will be T max 44 072 2 1 632 5 94 776ms Calculation example 6 Conditions All stations have been added to a 2 unit link Highest station number 2 32 relays and 2 register words have been evenly allocated Scan time for each PLC 1ms Ttx 0 096 Pcm per station 23 1 1 4 31 Tpc Ttx Pcm 0 096 31 2 976ms Ts per station 1 2 976 3 976ms Tlt 0 096 13 2 2 1 632ms Given the abov...

Страница 259: ... increase in the transmission cycle time EXAMPLE Set SYS1 to change the waiting time for a link to be added to the PLC link from the default value of 400ms to 100ms LD Body NOTE If there are any stations that have not been added to the link the setting should not be changed as long as a longer link transmission cycle time does not cause any problems The SYS1 instruction should be executed at the b...

Страница 260: ...on assurance is off from the default value of 6 4s to 100ms LD Body NOTE The setting should not be changed as long as a longer transmission assurance relay detection time does not cause any problems The SYS1 instruction should be executed at the beginning of the program at the rise of R9014 The same waiting time should be set for all linked PLCs The time should be set to a value of at least twice ...

Страница 261: ...he instructions received The master station has read and write access to a maximum number of 99 slave stations Modbus RTU connection between the FPΣ and an external device 1 Command message 2 Response message NOTE The Modbus protocol supports both ASCII mode and RTU binary mode However the PLCs of the FP Series only support the RTU binary mode Modbus RTU master function Write and read access to va...

Страница 262: ... address FUNCTION 8 bits DATA Varies depending on the commands CRC 16 bits END Transmission time for 3 5 characters differs depending on baud rate Please refer to Reception done judgment time 1 FPWIN Pro does not support the address range from 0 247 of the Modbus RTU protocol Response in normal status The same message as a command is returned for a single write command A part of a command message ...

Страница 263: ...F145_WRITE 06 Preset Single Register Write DT 1 Word 4X Cannot be issued 08 Diagnostics Loopback Test F145_WRITE 15 Force Multiple Coils Write Multiple Ys and Rs 0X F145_WRITE 16 Preset Multiple Registers Write DT Multiple Words 4X Cannot be issued 22 Mask Write 4X Register Write DT Mask 4X Cannot be issued 23 Read Write 4X Registers Read Write DT 4X Modbus references and FPΣ addresses Modbus refe...

Страница 264: ...e setting must always be CR and the start code setting must be No STX The station number can be set within a range of 1 to 99 With a C NET adapter a maximum of 32 stations can be specified 8 8 2 Sample Program for Master Communication Use the F145_WRITE and F146_READ instructions for the Modbus master function Be sure to select Modbus RTU Master Slave for the COM port in system register 412 POU He...

Страница 265: ...Communication FPΣ User s Manual 248 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 ...

Страница 266: ...Chapter 9 Security Functions ...

Страница 267: ...ecurity Functions FPΣ User s Manual 250 9 1 Security Function Types The following security settings are available PLC program upload protection password protection security settings for FP Memory Loader ...

Страница 268: ...nently even if you know the password When using this function be sure to back up your programs The program on your PLC will not be recoverable either by a person knowing the password or by customer support You can cancel the setting for this function using FPWIN Pro However all programs system registers and password information will be deleted If upload protection is enabled you can edit files on ...

Страница 269: ...mming tool the SYS1 instruction Be sure to memorize your password Without the password you will not be able to read programs on password protected PLCs If you have forgotten your password our support team will not be able to reset it for you If you are not logged in Clear Password will erase not only the password but also the program and parameters stored in the PLC s comment memory REFERENCE For ...

Страница 270: ...emory Loader Upload protection Download protection 9 3 1 Upload Protection Upload protection prevents programs from being uploaded to an FP Memory Loader 1 2 3 Procedure 1 Online Security Settings The Security Settings dialog box opens 2 Select Enable upload protection 3 Enter the password 4 Choose Set Protection or Change Protection When defining security settings for the first time choose Set Pr...

Страница 271: ...he source PLC and target PLC are protected by identical passwords 01234567 9 3 2 Download Protection Using download protection you can transfer a program from one PLC to another with the FP Memory Loader provided the passwords the two PLCs passwords are identical 1 2 3 Procedure 1 Online Security Settings The Security Settings dialog box opens 2 Select Allow download to PLC only if password in the...

Страница 272: ...nload to a target PLC that is not password protected is not possible CAUTION During program download from the FP Memory Loader to a target PLC the password set on the source PLC may be changed under certain conditions Security setting on FP Memory Loader Password setting on target PLC after download No password set Password will be cleared 8 digit password set Allow download to PLC only if passwor...

Страница 273: ......

Страница 274: ...Chapter 10 Other Functions ...

Страница 275: ...instruction P13_EPWT Writing can be performed up to 10000 times After that the correct operation cannot be guaranteed If the power supply turns off while the instruction P13_EPWT is being executed or during online editing data in the hold area may be lost REFERENCE For details please refer to the FPWIN Pro Programming Manual or to the FPWIN Pro online help ...

Страница 276: ...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 A maximum of 16 Boolean variables and three 16 bit variables can be traced per sampling REFERENCE For details please refer to the FPWIN Pro Programming Manual or to the FPWIN Pro online help ...

Страница 277: ......

Страница 278: ...Chapter 11 Troubleshooting ...

Страница 279: ...ndicator LEDs on CPU LED status RUN PROG ERROR ALARM Description Operation status On Off Off Normal operation Continue Off On Off PROG mode Stop Normal condition Flashes Flashes Off Forcing on off in RUN mode Continue On Off Flashes A self diagnostic error has occurred Continue Off On Flashes A self diagnostic error has occurred Stop Abnormal condition Varies Varies On System watchdog timer has be...

Страница 280: ... click System Registers 3 Double click Act on Error Select the desired setting for each type of error EXAMPLE 1 Operation is to continue even though a calculation error has occurred Set system register no 26 Operation error to Continue Operation errors will be handled as an error but operation will continue 2 When using a battery a battery error is to be indicated in the PLC Status dialog and by a...

Страница 281: ... on while in PROG mode this clears all of the contents of the operation memory except hold type data Execute the self diagnostic error set instruction F148_ERR NOTE If the mode selector switch has been set to RUN the error is cleared and at the same time operation is enabled However the error continues to be displayed unless the cause of the error has been eliminated When an operation error error ...

Страница 282: ...n the power off and then on If the ERROR ALARM LED turns on again there is probably an abnormality in the CPU Please contact your dealer Check if the ERROR ALARM LED is flashing See ERROR ALARM LED is Flashing on page 264 Set the mode selector from PROG to RUN mode If the ERROR ALARM LED turns on the program execution time is too long Check if instructions such as JP or LOOP are programmed in such...

Страница 283: ...the range of the rating Be sure to check the fluctuation in the power supply Disconnect the power supply wiring to the other devices if the power supplied to the CPU is shared with them If the LEDs on the CPU turn on at this moment increase the capacity of the power supply or prepare another power supply for other devices Please contact your dealer for further information ...

Страница 284: ...emains OFF there is probably an abnormality with the outputs Please contact your dealer If the input indicator LEDs are OFF Check the wiring of the input devices Check that the power is properly supplied to the input terminals If the power is properly supplied to the input terminal there is probably an abnormality with the inputs Please contact your dealer If the power is not supplied to the input...

Страница 285: ...or 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 1 2 3 Procedure 1 Online Security Settings 2 Enter your password under PLC Access 3 Choose Login ...

Страница 286: ...t 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 Check to see if the ERROR ALARM LED is flashing See ERROR ALARM LED is Flashing on page 264 Locate the syntax error by executing Monitor PLC Status ...

Страница 287: ...tics of the transmission cables are within the specified ranges See Transmission Cables on page 94 Make sure all of the cables in the link are of the same type Make sure the terminating resistors have been correctly set on the first and on the last station only Check that link areas do not overlap When using FPG COM4 When the RS485 port COM port 1 of FPG COM4 is used set the baud rate in the syste...

Страница 288: ...d to the SD terminal of the communication cassette and that SD is connected to RD Make sure SG is connected Check that link areas do not overlap When using FPG COM1 Data cannot be sent unless the pin CS Clear to Send is on When connecting to a three wire port short circuit the RS and CS pins Check if the CS signal is TRUE If the LED COM 2 R on the CPU is off the CS signal is FALSE RS Request to Se...

Страница 289: ......

Страница 290: ...Chapter 12 Appendix ...

Страница 291: ...inals X0 X7 Input terminals X8 XF 500V AC for 1min 1 Breakdown voltage C24 Input terminals X0 X7 Input terminals X8 XF Output terminals 1500V AC for 1min 1 Input terminals Output terminals Power supply terminal Function earth C32 C28 Input terminals Output terminals Input terminals X0 X7 Input terminals X8 XF Power supply terminal Function earth Output terminals Power supply terminal Function eart...

Страница 292: ...05g FP0 E16T E16P E16X E16YT E16YP 70g FP0 E32T E32P 85g FP0 A21 80g FP0 A80 90g FP0 IOL 85g FP0 TC4 85g FP0 TC8 95g FP0 CCLS 80g FP0 expansion unit FP0 A04V A04I RTD6 75g 12 1 2 Current Consumption Type of unit CPU 1 Expansion unit 2 Input circuit 3 Output circuit 4 FPG C32x FPG C28x 90mA 70mA FPΣ CPU FPG C24x 160mA 77 2mA FPΣ I O expansion unit FPG XY64D2T FPG XY64D2P 35mA 112mA 15mA FPG PP11 PP...

Страница 293: ...OM3 FPG COM4 25mA Display GT01 AIGT0030B1 AIGT0030H1 80mA C NET adapter S2 AFP15402 50mA 1 The current consumed by the CPU power supply connector If expansion units or intelligent units are added the current is increased by the value indicated in the table 2 The current consumed by the expansion unit power supply connector If a unit is not listed in the table it means that it has no power supply c...

Страница 294: ...8 216 218 Operation speed 0 32μs step for basic instruction External input relays X 1184 1 External output relays Y 1184 1 Internal relays R 4096 R0 R255F Timer relays Counter relays T C 1024 2 Factory setting timers 1008 points T0 T1007 Factory setting counters 16 points C1008 C1023 Timer 1 32767 in units of 1ms 10ms 100ms or 1s Counter 1 32767 Operation memory Relays Link relays L 2048 Data regi...

Страница 295: ...cement interval 1 year Comment memory 328kByte PLC link function Max 16 units link relays 1024 link registers 128 words Other functions Editing in RUN mode constant scan on off forcing of inputs outputs password protection upload protection floating point operation PID processing 1 The actual number of points available for use depends on the hardware configuration 2 The number of points can be inc...

Страница 296: ...nels used 1 0 2 Pulse output method CW CCW Pulse direction Maximum output frequency 1 channel 100kHz x 1 2 channels 60kHz x 2 Linear interpolation control 100kHz Circular interpolation control 20kHz Pulse output Input output used 2 Channel 0 X2 Home input Y0 CW pulse output Pulse output Y1 CCW pulse output Direction output Y2 Deviation counter clear output Channel 2 X5 Home input Y3 CW pulse outpu...

Страница 297: ...same channel cannot be used by more than one function Channel used Maximum output frequency kHz High speed counter Pulse output High speed counter Pulse output 1 phase 2 phase No interpol CH0 CH1 CH2 CH3 CH0 CH2 CH0 CH2 Inter pol 1 phase 2 phase No interpol Interpol X 50 X 50 X 50 X 50 X X 30 X X 30 X X 30 X X 30 X X 30 X X 30 X X X 20 X X X 20 X X X 20 X X X 20 X 20 X X 20 15 X X 20 15 X X X 20 1...

Страница 298: ... 45 X 3 X 3 X X 20 30 Lin 100 2 Lin 80 X 3 Lin 20 60 X 3 Lin 20 60 X 3 X 3 Lin 20 45 Circ 20 X 3 Circ 20 20 X 3 Circ 20 20 X 3 X 3 Circ 20 20 CH Channel X Available 1 If the two channels are not used simultaneously the maximum output frequency for each axis is 100kHz 2 This value applies when neither the PLC link mode nor periodic interrupts are used 3 When using channel 0 for pulse output do not ...

Страница 299: ...ion when communication errors due to excessive noise occur or when the receiver equipment cannot receive temporarily 2 For RS232C connections the maximum number of stations is 2 Communication specifications Interface RS232C non isolated RS485 isolated 1 2 Communication mode 1 1 1 N Communication method Half duplex 2 wire half duplex Synchronous method Start stop synchronous system Transmission lin...

Страница 300: ...e other than 0 enables the switch setting and the system register setting is ignored In this case the same station number is allocated to all communication ports A maximum of 31 stations can be specified with the switch 7 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...

Страница 301: ...utput 32 Y100 Y11F Y180 Y19F Y260 Y27F Y340 Y35F Input 16 X100 X10F X180 X18F X260 X26F X340 X34F FPΣ positioning unit 1 axis type FPG PP11 FPG PP12 Output 16 1st Y100 Y10F Y180 Y18F Y260 Y26F Y340 Y34F 1st X100 X10F X180 X18F X260 X26F X340 X34F Input 32 2nd X110 X11F X190 X19F X270 X27F X350 X35F 1st Y100 Y10F Y180 Y18F Y260 Y26F Y340 Y34F FPΣ positioning unit 2 axis type FPG PP21 FPG PP22 Outpu...

Страница 302: ...1 WX3 X30 X3F WX5 X50 X5F WX7 X70 X7F FP0 analog I O unit FP0 A21 Output 16 WY2 Y20 Y2F WY4 Y40 Y4F WY6 Y60 Y6F Input 16 0 2 4 6 WX2 X20 X2F WX4 X40 X4F WX6 X60 X6F FP0 A D conversion unit FP0 A80 and FP0 thermocouple unit FP0 TC4 FP0 TC8 Input 16 1 3 5 7 WX3 X30 X3F WX5 X50 X5F WX7 X70 X7F Input 16 WX2 X20 X2F WX4 X40 X4F WX6 X60 X6F Output 16 0 2 WY2 Y20 Y2F WY4 Y40 Y4F WY6 Y60 Y6F FP0 D A conve...

Страница 303: ...put Type CPU FPG C32T2 H FPG C28P2 H 18 40 13 9 10 3 5 7 5 60 0 90 0 130 0 90 0 60 0 30 0 5 0 4 5 2 0 100 1 2 1 Maximum installation dimension 2 DIN rail DIN EN50022 35mm FPG C32T2 H TM FPG C28P2 H TM EXPANSION CONNECTOR 18 20 10 150 3 5 60 0 90 0 30 0 60 0 90 0 5 0 4 5 ...

Страница 304: ...CPU with communication cassette 100 With FPG COM4 105mm 12 4 2 Relay Output Type CPU FPG C24R2 H 10 40 13 9 10 FPΣ 30 0 90 0 60 0 3 5 60 0 90 0 Approx 130 0 7 5 5 0 4 5 2 0 90 1 2 1 Maximum installation dimension 2 DIN rail DIN EN50022 35mm ...

Страница 305: ... H TM EXPANSION CONNECTOR 10 20 10 150 3 5 60 0 90 0 30 0 60 0 90 0 5 0 4 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 90 0 3 5 4 5 ...

Страница 306: ...FPΣ User s Manual 12 4 Dimensions 289 FPG EM1 30 0 60 0 3 5 90 0 4 5 12 4 4 Communication Cassettes Using FPG COM1 FPG COM2 Using FPG COM4 FPG COM3 100 mm 105 mm ...

Страница 307: ...le address area Type Memory size FP IEC Function External input relays 1 74 WX0 WX73 IW0 IW73 Code for specifying 16 external input points as one word 16 bits of data External output relays 1 74 WY0 WY73 QW0 QW73 Code for specifying 16 external output points as one word 16 bits of data Internal relays 2 256 WR0 WR255 MW0 0 MW0 255 Code for specifying 16 internal relays as one word 16 bits of data ...

Страница 308: ...Timer counter elapsed value area 2 512 DEV0 DEV1022 MD4 0 MD4 1022 Data memory for storing the elapsed values during operation of timers or counters The values are stored by timer counter number Special data registers 130 DDT90000 DDT90258 MD5 90000 MD5 90258 Data memory for storing settings and error codes 1 The number of points noted above is the number reserved as the calculation memory The act...

Страница 309: ...ers 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 Memory Size system register 0 Set the size of the memory area for the user program Hold On Off system registers 5 8 10 14 Use these system registers to specify the hold ...

Страница 310: ...king and Changing System Registers 1 2 3 Procedure 1 Double click PLC in the navigator 2 Double click System Registers 3 To change a value write the new value into the system register table 4 Online Online Mode or 5 Online Download Program Code and PLC Configuration This downloads the project and system registers To download system registers only 6 Online PLC Configuration 7 Select System Register...

Страница 311: ...diagnostic error is issued and the ERROR ALARM will LED flash 4 DF P function leading falling edge detection Holds result Holds result disregards result 20 Duplicate output Enable Fixed 23 I O verification error Stop Stop Continue 26 Operation error Stop Stop Continue Time Out No Name Default Values 30 Watchdog timer time out 400 0ms Fixed 31 Multi frame communication time 6500 0ms 10 0 81900 0ms ...

Страница 312: ...peed counter Channel 0 Unused Two phase input X0 X1 Two phase input X0 X1 Reset input X2 Incremental input X0 Incremental input X0 Reset input X2 Decremental input X0 Decremental input X0 Reset input X2 Incremental input X0 Decremental input X1 Incremental input X0 Decremental input X1 Reset input X2 Counter input X0 Incremental decremental control input X1 Counter input X0 Incremental decremental...

Страница 313: ...3 Unused Rising edge Falling edge 403 Interrupt input X4 Interrupt 4 Unused Rising edge Falling edge 403 Interrupt input X5 Interrupt 5 Unused Rising edge Falling edge 403 Interrupt input X6 Interrupt 6 Unused Rising edge Falling edge 403 Interrupt input X7 Interrupt 7 Unused Rising edge Falling edge If the same input has been set as high speed counter input pulse catch input or interrupt input th...

Страница 314: ...Program controlled PLC Link Modbus RTU Master Slave 410 COM port 1 station number 1 1 99 415 COM port 1 baud rate 1 2 9600 baud 115200 57600 38400 19200 960 0 4800 2400 baud 413 COM port 1 sending data length 8 bits 7 bits 8 bits 413 COM port 1 sending parity check 1 With Odd None With Odd With Even 413 COM port 1 sending stop bit 1 bit 1 bit 2 bits 413 COM port 1 sending start code 1 No STX No ST...

Страница 315: ...s 2048 0 32762 419 COM port 2 receive buffer capacity 0 0 2048 412 COM port 2 modem connection Disable Disable Enable 1 For PLC Link the communication format and baud rate settings are fixed Data length 8 bits Parity Odd Stop bit 1 bit End code CR Start code No STX Other system register settings will be ignored 2 FPG COM4 For RS485 connections COM port 1 the baud rate must be set in the system reg...

Страница 316: ... PROG mode and correct the error E5 see note Program area error Stops An instruction was written to the wrong program area main program area or subprogram area Change to PROG mode and correct the error This error is also detected during online editing No changes will be downloaded and operation will continue E6 see note Compile memory full error Stops The program stored in the PLC is too large to ...

Страница 317: ...r using the system variable sys_wHardwareErrorLeftIoUnit and locate the faulty FPΣ expansion I O unit Then check the unit E41 Intelligent unit error Stops An error in an intelligent unit occurred Check the error using the system variable sys_wHardwareErrorIntelligentUnit_0_15 and locate the faulty FPΣ intelligent unit E42 I O unit verify error Selectable The connection condition of an I O unit has...

Страница 318: ...er is full 52 Transmit disable error Transmission processing to another device is not possible link unit runaway etc 53 Busy error Processing of command received is not possible because of multiple frame processing or because command being processed is congested 60 Parameter error Content of specified parameter does not exist or cannot be used 61 Data error There was a mistake in the contact data ...

Страница 319: ...rogram area or the memory contains an error Or reading of non registered data was attempted 68 Rewrite during RUN error When inputting with programming tool software editing of an instruction ED SUB RET INT IRET SSTP and STPE that cannot perform a rewrite during RUN is being attempted Nothing is written to the CPU 70 SIM over error Program area was exceeded during a program write process 71 Exclus...

Страница 320: ...imer counter elapsed value area RK Reads the timer counter elapsed value Write timer counter elapsed value area WK Writes the timer counter elapsed value Register or Reset contacts monitored MC Registers the contact to be monitored Register or Reset data monitored MD Registers the data to be monitored Monitoring start MG Monitors a registered contact or data using MD and MC Preset contact area fil...

Страница 321: ...ate and time of day 32 bits DT 2001 01 01 00 00 00 DT 2099 12 31 23 59 59 TIME OF DAY 1 TOD Time of day only 32 bits TOD 00 00 00 TOD 23 59 59 DATE 1 DATE Date only 32 bits DT 2001 01 01 DT 2099 12 31 STRING 1 STRING Variable length character string Depending on PLC type ARRAY ARRAY Number of similar data elements Depending on PLC type A data type has to be assigned to each variable 1 Internal rep...

Страница 322: ...00 0001 0001 0000 0000 0001 0010 0000 0000 0001 0011 0000 0000 0001 0100 0000 0000 0001 0101 16 17 18 19 20 21 22 23 0010 0011 0012 0013 0014 0015 0016 0017 0000 0000 0001 0000 0000 0000 0001 0001 0000 0000 0001 0010 0000 0000 0001 0011 0000 0000 0001 0100 0000 0000 0001 0101 0000 0000 0001 0110 0000 0000 0001 0111 0000 0000 0001 0110 0000 0000 0001 0111 0000 0000 0001 1000 0000 0000 0001 1001 000...

Страница 323: ...1 1 1 1 b3 b2 b1 b0 b6 b5 b4 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 8 9 A B C D E F b4 b5 b6 SP AC E DEL LF VT FF CR SO SI DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z b7 b7 Most significant digit Least significant digit AS...

Страница 324: ...e 169 Communication cassette 155 Communication 153 Specifications 163 Communication cassette 163 COM ports 155 Communication cassette 75 Communication mode 154 Dimensions 289 Terminal layout 159 Troubleshooting 271 Types 9 Wiring 92 Communication format 163 Communication interface 163 Communication mode 154 Changing with F159_MTRN 169 MEWTOCOL COM Master Slave 171 Modbus RTU 244 PLC Link 223 Progr...

Страница 325: ...put_Center 134 148 F176_PulseOutput_Pass 135 148 Features of FPΣ 6 Flat type mounting plate 71 FP Memory Loader 253 FP0 program compatibility 14 FP0 units 10 74 I O allocation 62 Restrictions 11 FPΣ units 9 73 I O allocation 61 FPWIN Pro 13 FPΣ memory expansion unit 48 Battery error 53 Data organization 49 FPΣ mounting plate 69 FPΣ units Restrictions 12 F ROM backup 258 G Grounding 76 80 GT10 GT30...

Страница 326: ...on 182 Command format 174 Commands 176 Communication parameters 177 Error codes 301 Example for master communication 185 Micro Imagechecker 206 MIL connector 88 Minimum input pulse width 109 Modbus RTU 244 Communication parameters 177 Example for master communication 185 Mounting plate 69 N No RS485 Communication 270 O Operation on error 263 Output indication 16 Output malfunction 267 Output speci...

Страница 327: ...ction output method 120 PWM output function 100 151 Booting time 106 F173_PulseOutput_PWM 151 Restrictions 105 Specifications 104 280 R Real time clock 35 Receive buffer 193 Record of Changes 314 Reed switch 82 Relay output specifications 22 Expansion unit 44 Relays 290 Restrictions on unit combinations 11 RUN PROG mode switch 16 S Safety measures 2 Installation 66 Wiring 76 Sampling trace 259 Sec...

Страница 328: ...zoidal control 129 139 Troubleshooting 261 Two phase input 107 Two wire type sensor 82 U Unit combinations 11 Unit types 9 Upload protection 251 253 W Watchdog timer 265 Weight 275 Wiring Communication cassette 92 Grounding 76 80 Input 82 Photoelectric sensor 82 Precautions 84 Proximity sensor 82 MIL connector 88 Output 85 Capacitive load 86 Inductive load 86 Power supply 78 Terminal block 90 ...

Страница 329: ...tion F171 deviation counter clear signal p 7 34 F173 PWM output function note on out of range duty area p 7 74 programming example F159 body p 10 14 flag number R9049 changed to R9048 p 10 35 command name SYS2 changed to SYS1 p 11 18 Additions product numbers for power supply unit p 6 3 F172 target value ranges p 7 37 IEC addresses appendix ARCT1F333E 2 ACG M333E 2 Nov 2002 Additions Control units...

Страница 330: ...of thermistor input function in chapter 2 Terminal layout diagram of FPG expansion unit NPN type in chapter 3 FPWIN Pro examples in chapter 6 FPWIN Pro examples updated corrected in chapter 7 Description of communication with external devices general purpose mode updated in chapter 7 Structural changes Control unit types C32T and C32TTM deleted Procedures and examples for FPWIN GR removed in all c...

Страница 331: ...ples from the Panasonic Web site Security functions upload protection password protection FP Memory Loader Section Scope of this manual In MEWTOCOL COM mode term pair computer PLC changed to slave master Deletions Detailed programming tool information for FPWIN Pro and FPWIN GR Connection diagrams for motor drivers will be available for download Programming examples for HSC and pulse output availa...

Страница 332: ...sonic Electric Works Nordic AB Sjöängsvägen 10 19272 Sollentuna Sweden Tel 46 859476680 Fax 46 859476690 www panasonic electric works se PEW Fire Security Technology Europe AB Jungmansgatan 12 21119 Malmö Tel 46 40697 7000 Fax 46 40697 7099 www panasonic fire security com f 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 0...

Отзывы: