Home

FP-SIGMA User`s Manual

image

Contents

1. 0 Fixed Duty on width 0 Duty 1 2 50 1 Duty 1 4 25 Frequency range 2 0 1 5 Hz to 9 8 kHz 1 48 Hz to 100 kHz 2 191 Hz to 100 kHz Operating mode and output type 00 No counting CW 01 No counting CCW 10 Incremental counting CW 12 Incremental counting Directional output off 13 Incremental counting Directional output on 21 Decremental counting CCW 22 Decremental counting Directional output off 23 Decremental counting Directional output on 2 Frequency Hz K constant 1 5 Hz to 9 8 kHz K1 to K9800 units Hz Maximum error near 9 8 kHz approximately 1 kHz 48 Hz to 100 kHz K48 to K100000 units Hz Maximum error near 100 kHz approximately 3 kHz 191 Hz to 100 kHz K191 to K100000 units Hz Maximum error near 100 kHz approximately 0 8 kHz Set K1 to specify 1 5 Hz During execution of an instruction if a value is written for the frequency area that is outside of the allowable range the frequency will be corrected to the minimum or maximum value for the pertinent frequency range before being output The data that was written will not be corrected however Figure 97 FP Control code of F172 instruction High speed Counter and Pulse Output Functions FP Positioning control instruction F171 home return Performs home return according to the specified data table Pulses are output from Y1
2. Figure 207 FP Unit No setting using switch Relationship between unit number setting switch and unit numbers Unit No e The range of numbers that can be set using at ower SO Seea the unit number setting switch is from 1 to 16 p switch off switch on e Setting the unit number setting switch to 0 makes the system register settings valid Not available 1 2 3 4 5 6 7 8 9 TN mM o olol S oloi ini olal aio DY alo To make the unit number setting in the FPWIN GR valid set the unit number setting switch to 0 When using the PLC link function set the range of unit numbers as 1 to 16 FPx 9 2 Communication Parameter Settings 9 2 3 Allocation of Link Relay and Link Register Link area allocation The PLC link function is a function that involves all of the PLCs that have been booted in the MEWNET W0O mode To use the PLC link function a link area needs to be allocated Set the allocations for both the link relays and link registers Link area allocations are specified using system registers System registers No Name Set value Range of link relay used for PLC link 0 to 64 words Range of link register used for PLC link 0 to 128 words Starting no for link relay transmission 0 to 63 Link relay transmission size 0 to 64 words Starting no for link register transmission
3. Installation and Wiring FPx Wiring system Isolate the wiring systems to the control unit input output devices and mechanical power apparatus Circuit breaker os hg Mechanical O power Oo ct gt apparatus Input Output devices Control unit a Insulated DC power supply Figure 36 FP Power supply wiring system Measures regarding power supply sequence start up sequence The power supply sequence should be set up so that power to the control unit is turned off before the input output power supplies If the input output power supplies are turned off before the power to the control unit the control unit will detect the input fluctuations and may begin an unscheduled operation Be sure to supply power to a control unit and an expansion unit from the same power supply and turn the power on and off simultaneously for both FP 4 2 Wiring of Power Supply 4 2 2 Groundin Under normal conditions the inherent noise resistance is sufficient However in situations of excess noise ground the instrument to increase noise suppression For grounding purposes use wiring with a minimum of 2 mm2 The grounding connection should have a resistance of less than 100 Q The point of grounding should be as close to the PLC unit as possible The ground wire should be as short as possible If two devices share a single ground point it may produce an adverse e
4. Figure 47 FPx Precautions when using capacitive loads About the short circuit protective circuit To prevent the output circuit from being damaged by a short circuit or other electrical problems on the output side a transistor with short circuit protection is provided 4 3 3 Precautions Regarding Input and Output Wirings Be sure to select the thickness dia of the input and output wires while taking into consideration the required current capacity Arrange the wiring so that the input and output wiring are separated and 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 Separate the input output wires from the power and high voltage wires by at least 100 mm 3 937 in Installation and Wiring 4 4 Wiring of MIL Connector Type Supplied connector and Suitable wires The connector housings semi cover and welders listed below come supplied with the FP control unit Use the wires given below Also use the required pressure connection tools for connecting the wires Figure 48 FP Supplied MIL connector Supplied connector AFP0807 Type and Product No Housing 10 pin type only Semi cover AXW61001 Welder contact AXW7221 Suitable wires Size Conductor cross sectional area Insulation thickness AWG 22 0 3 mm2 dia 1 5 to dia 1 1 AWG 24 0 2 mm2 Pressure conn
5. 6 cece eee eee 12 14 12 4 1 System Registers lt cc0s 60 Sviarae pik awe neue sea pete eee ens 12 14 12 4 2 Table of System Registers 0 0 cece eee eee eee 12 16 12 5 Table of Special Internal Relays 0 0 c cece eee eee ee 12 21 12 6 Table of Special Data Registers 0 0 c cece eee eee 12 28 12 7 Tabl ot Error GordS sorrenca eat ab dens Beth is eee bee 12 42 12 7 1 Table of Syntax Check Error 000 cece eee 12 42 12 7 2 Table of Self Diagnostic Error 00 0 cee eee 12 43 12 8 Table of Instructions sc icc45 ee eels ennnen naaa 12 44 12 9 MEWTOCOL COM Communication commands 12 66 12 10 Hexadecimal Binary BCD 0 c cece eee 12 67 1214 ASCII COGS ss eee beets Seabee Seas E EE beta cue how eed 12 68 INGOK 2a eect cee ies cata E a E sue E E eee ees l 1 Record of changes 002 c cece cece cece eens R 1 vi FP Before You Start Before You Start Installation environment Do not use the FP unit where it will be exposed to the following e Direct sunlight and ambient temperatures outside the range of 0 C to 55 C 32 F to 131 F e Ambient humidity outside the range of 30 to 85 RH and sudden temperature changes causing condensation e inflammable or corresive gas e Excessive vibration or shock e Excessive airborne dust metal particles or salts e Water or oil in any fro
6. FP 5 4 Pulse Output Function Program XA R903A R52 R50 HDF Positioning operation running R50 e R50 R51 HDF Positioning operation start R51 Positioning data table FipMy K120 T202 pr2o3 nital speed 1202 DT204 FipMv K100 DT 206 DT207 Fipmv Ko DT208 Control code H11 20 Duty 1 4 25 48 Hz to 100 kHz Home return CW F171 SPDH DT 200 The data table headed by DT200 is used Pulses are output from CHO R903A R50 TO R52 DF HY R52 Pulse output instruction table shaped control The data table headed by DT200 is used and pulses are output from CHO Positioning done pulse 1 s TMX 0 K10 0 1 s type timer Setting K10 and using it as a 1 second timer JEL X3 HDF HFo mv H10 DT 90052 Fo mv Ho DT 90052 Near home deceleration start Figure 120 FPX Sample program home return operation program Pulse output diagram Near home sensor Home sensor XA on X3 o0n X2 on 1 000 Hz 120 Hz 0 Hz Figure 121 FPX Sample program home return operation pulse output diagram High speed Counter and Pulse Output Functions FP JOG operation plus direction While X8 is in the on state a pulse is output from CW output YO of specified channel CHO Program Data table XB Control code H11 Duty 1 4 25 48 Hz to 100 kHz Incremental counting CW F172 PLSH The data table headed by DT300
7. Control code H11 21 Duty 1 4 25 48 Hz to 100 kHz Home return CCW F171 SPDH DT 200 The data table headed by DT200 is used Pulses are output from CHO R903A R40 TO R42 Pulse output instruction table shaped control The data table headed by DT200 is used and pulses are output from CHO Positioning done pulse 1 s R42 TMX 0 K 10 0 1 s type timer Setting K10 and using it as a 1 second timer JEL x3 HDF Fo mv H10 DT 90052 Fo mv Ho DT 90052 Near home deceleration start Figure 117 FP amp Sample program home return operation program Pulse output diagram Near home sensor Home sensor XA on X3 o0n X2 on 2 000 Hz 100 Hz 0 Hz Figure 118 FPX Sample program home return operation pulse output diagram High speed Counter and Pulse Output Functions FP Home return operation plus direction When XA turns on a pulse is output from CW output YO of specified channel CHO and the return to home begins When X3 turns on deceleration begins and when X2 turns on home return is completed After the return to home is completed the elapsed value area DT90044 and DT90045 are cleared to 0 0 V 24 V DC Home return start l_ Pulse output CW Pulse output CCW Motor driver Near home sensor Home sensor Figure 119 FP Sample program home return operation direction
8. 8 33 8 6 1 When STX not exist is Set for Start Code and CR is Set for End Code 0 0 cc ee eee 8 33 8 6 2 When STX is Set for Start Code and ETX is Set for End Code 0 0 ccc cee eee 8 35 8 7 Changing the Communication Mode of COM Port 8 37 FP Table of Contents Chapter9 Communication Function 3 PLC Link Function Oa PEG TINK vegies ts ceeds las eee were care aaa ae ey aceon 9 3 9 1 1 Overview of Function 0 cece eee 9 3 9 2 Communication Parameter Settings cece eee ee eee 9 5 9 2 1 Setting of Communication Mode 000 eee ee 9 5 9 2 2 Setting of Unit No lt sn2 aeei nae eed eed aeiie Me 9 6 9 2 3 Allocation of Link Relay and Link Register 9 9 9 3 Connection Example of PLC Link 0 0c c eee eae 9 15 9 3 1 Using a PLC Link with Three FP2 Units 9 15 9 3 2 Sample Programs as 205 sega gla voce gcd e cee eaee tees eres 9 18 Chapter 10 Other Functions 10 1 Analog Potentiometer 2 s 2 25 peakee oae aes peda eye ed epee setts 10 3 10 1 1 Overview of Analog Potentiometer 00005 10 3 10 1 2 Example Showing How the Analog Potentiometers are Used 10 3 10 2 Clock Calendar Function as sai sian toda bahia avawaeadeeawk vas Aa 10 4 10 2 1 Area for Clock Calendar Function 0 00 eee 10 4 10 2 2 Setting of Cloc
9. Figure 140 Cautions regarding wiring 6 12 Chapter 7 7 1 7 2 7 3 Communication Function 1 Computer Link Computer Link 2 czar boceye epee Glee ke es 7 3 7 1 1 Overview of Function 0000020es 7 3 7 1 2 Explanation of Operation when Using a Computer Link 7 4 7 1 3 Format of Command and Response 7 5 7 1 4 Types of Commands that Can Be Used 7 8 7 1 5 Setting the Communication Parameters when Using a Computer Link 7 10 7 1 6 Restriction 0 0 cece eee 7 10 Connection Example with External Device 7 11 7 2 1 Connection Example with External Device 1 1 communication with computer 7 11 7 2 2 Connection Example with External Device 1 1 communication with programmable display GT10 32 28 uote etapa tees 7 14 Computer Link 1 N communication 7 18 7 3 1 Overview of 1 N Communication 7 18 7 3 2 Communication Cassette Used for 1 N Communication 00000 eee 7 18 7 3 3 Settings of System Register and Unit No 7 19 7 3 4 Connection with External Device 7 22 Communication Function 1 Computer Link FP FP 7 1 Computer Link 7 1 Computer Link This section contains overview of computer link function 7 1 1 Overview of Function Computer Command message ee Response message With a computer link first an instruction command is sent fro
10. 55 pa lines JOG start XC O O Overrun XD b contact am a contact Cd a contact b contact Stepping motor Moving table side side AAAA Stepping motor driver Output terminal Pulse output CW YO CW input COM Pulse output CCW CCW input 24 V Note joc Power supply Figure 106 FPx Pulse output function sample program wiring lt Note When the stepping motor input is a 5 V optical coupler type connect a 2 kQ 1 4 W resister Table of I O alOesuon Home sensor input Overrnning signal Near home sensor input Pulse output CW Positioning start signal Pulse output CCW Positioning start signal Positioning in progress Home return start signal Positioning operation start JOG start signal Positioning done pulse JOG start signal High speed counter control flag for CHO High speed Counter and Pulse Output Functions FP Relative value positioning operation plus direction When X8 turns on the pulse is output from CW output YO of specified channel CHO 0 V 24 V DC pal Fas FPS Start input Pulse output CW Pulse output CCW Motor driver side 10000 pulses AAV Figure 107 FP amp Sample program relative value positioning operation direction Program X8 R903A R12 R10 Positioning operation ru
11. Example If the reception completed flag is used multiple times as an input condition there is a possibility of different statuses existing within the same scan To avoid this an internal relay should be substituted at the beginning of the program FP 8 6 Flag Operations When Using Serial Communication 8 6 2 When STX is Set for Start Code and ETX is Set for End Code When receiving data The relationship between the various flags Reception done flag and Transmission done flag and the F159 MTRN instruction External received A lt B C STY DCE TX F G 6 HET gate x Cannot be Reception code is stored when deleted by F159 Shi reception done MTRN ee R9038 R9048 flag is on Reception off l done flag on Reception done flag is ff turned off by execut F159 MTRN p ing the F159 MTRN instruction ff instruction execution Q Stored y Y Y Reception A A A A j D D D D e G G le H H buffer i B B B B e E E E E e E E e E me C Cc C C e Cc Cc C C C lt Number of lt I gt lt 2 gt lt 3 gt lt 0 gt lt i gt lt 2 gt lt 2 gt lt 0 gt lt i gt lt 0 gt lt l gt lt l gt reception bytes Number of bytes Number of bytes Number of bytes received is received is cleared received is Write pointer cl
12. Figure 152 FP Computer link connection example GT10 Communication cassette used for 1 1 communication The following types of communication cassettes can be used for 1 1 computer link communication Description Part No This communication cassette is a 1 channel unit with a FP Communication cassette five wire RS232C port It supports 1 1 computer links and 1 channel RS232C type general purpose serial communication RS CS control is possible FPG COM1 This communication cassette is a 2 channel unit with a FP Communication cassette three wire RS232C port It supports 1 1 computer links and 2 channel RS232C type general purpose serial communication Communication with two external devices is possible FPG COM2 FP 7 2 Connection Example with External Device Setting of system register To carry out 1 1 communication using a computer link the system registers should be set as shown below Communication format setting for FP side e Settings when using the COM 1 port No Name Set value Unit No for COM 1 port 1 Communication mode for COM 1 port Computer link Communication format for COM 1 port Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting for COM 1 port 19200 bits s e Settings when using the COM 2 port Unit No for COM 2 port Communication mode for COM 2 port Communication format for COM 2 port
13. Functions Overview of Each Functions 0 2 000eee00e 5 3 5 1 1 Three Functions that Use Built in High speed Counter nananana 5 3 5 1 2 Performance of Built in High speed Co nter oe ee es Se eee ne Sd hb 5 4 Function Specifications and Restricted Items 5 5 5 2 1 Table of Specifications 5 5 5 2 2 Function being Used and Restrictions 5 7 High speed Counter Function 0 00000 5 9 5 3 1 Overview of High speed Counter Function 5 9 5 3 2 Types of Inout Modes 5 9 5 3 3 Min Input Pulse Width aaaaaaa 5 11 5 3 4 VO Allocation 225 ots eutaaeeys se ceetes 5 12 5 3 5 Instructions Used with High speed Counter Function 3 ois es ees pes enew ns 5 13 5 3 6 Sample Program os 03 i he wee eek eae nes 5 16 Pulse Output Function 9 55 suck acta slouch aaah id ates 5 20 5 4 1 Overview of Pulse Output Function 5 20 5 4 2 Types of Pulse Output Method 5 21 543 UO AlOCAUON ao ncaccsndasdaregeat daeyes 22 5 4 4 Control Mode 233s eens peed vee ate ees 5 25 5 4 5 Instructions Used with Pulse Output Function ele wx seg b2eete bes weet eee 5 26 5 4 6 Sample Program for Positioning Control 5 35 next page High speed Counter and Pulse Output Functions FPZ 5 5 PWM Output Function lt i 2 att yoo o bo genes ees 5 48 5 5 1 Overview of PWM Output Function 5 48 5 5 2 Instruction Used with PWM Output FUINCHONN aee ais ab di
14. This section contains the overview of analog potentiometer 10 1 1 __ Overview of Analog Potentiometer The FP is equipped with two analog potentiometers as a standard feature Turning the potentiometers changes the values of the special data registers DT90040 and DT90041 within a range of KO to K1000 Using this function makes it possible to change the internal set values in the PLC without using the programming tool so this can be used for example with analog clocks to change the set value externally by turning the potentiometer Analog potentiometer VO potentiometer 0 Changes the value of DT90040 within a range of KO to K1000 V1 potentiometer 1 Changes the value of DT90041 within a range of KO to K1000 Figure 224 FP Analog potentiometer Applicable special data register Symbol Potentiometer No Special data register Range of change vo Volume 0 DT90040 KO to K1000 V1 Volume 1 DT90041 10 1 2 Example Showing How the Analog Potentiometers are Used The FP is provided with special internal registers in which the values in the registers change in response to the analog potentiometers being moved If the values of these registers are sent to the clock setting value area a clock can be created that allows the time to be set using the potentiometer Writing example of the clock setting value The value of the
15. Turn off the check box for No 20 When operation is resumed it will not be handled as an error d g l Example 2 When continuing operation even a calculation error has occured Turn off the check box for No 26 When operation is resumed it will be continued but will be handled as an error 11 4 FP 11 2 Troubleshooting 11 2 Troubleshooting This section explains what to do if an error occurs 11 2 1 If the ERROR ALARM LED Flashes Condition The self diagnostic error occurs Procedure 1 Check the error contents error code using the programming tool FPWIN GR Using FPWIN GR With the FPWIN GR Ver 2 if a PLC error occurs during programming or debugging the following status display dialog box is displayed automatically Check the contents of the self diagnosed error Status display dialog box Status Display Untitle1 If the error is an operation error r Program Information E E h rror r n n Program Size z 12000 12K Rest 11984 ta T a a co Machine Lanquage Of OK 7 E ae i Click on the Clear Error but 1 0 Comment Size 100000P Rest 100000 P ton to clear the error Block Comment 5 5000L Rest 5000 L 10 Error Remark Size s 5000P Rest 5000 P ARER PLC Connection PLC Type FP SIGMA 12K Station Home Verifi Err Version 1 01 Scan Time 1 0 msec B Condition Normal Min 0 5 msec Deaton En PLC Mode REMOTE PROG Max 1 0 mse
16. _ F159 MTRN DT100 H8000 K1_ Set to H8000 Set to H8000 Specify the port to be changed Specify the port to be changed Figure 201 FP Changing the communication mode of COM port RS232C port selection flag in R9032 or R9042 Turns on when general communication mode is selected se Note When the power is turned on the mode of use selected in system register No 412 takes effect Communication Function 2 General purpose Serial Communication FP Chapter 9 9 1 9 2 9 3 Communication Function 3 PLC Link Function PEC LINK peasid oine aa aaa a a a 9 3 9 1 1 Overview of Function aannaaaaa 9 3 Communication Parameter Settings When Using a PLC Link 00 cece ene 9 5 9 2 1 Setting of Communication Mode 9 5 922 Setting of Unit NO esa ccces ba tdned been kes 9 6 9 2 3 Allocation of Link Relay and Link Register 9 9 Connection Example of PLC Link 9 15 9 3 1 Using a PLC Link with Three FP amp Units 9 15 9 3 2 Sample Programs 0 0 000 9 18 Communication Function 3 PLC Link Function FP FPx 9 1 PLC Link 9 1 PLC Link This section contains the overview of PLC link function 9 1 1 Overview of Function What is the PLC Link The PLC link is an economic way of linking two PLCs using a twisted pair cable Data is shared between the PLCs using a link relay L and a link register LD With a PLC link the statu
17. 0 to 127 Link register transmission size 0 to 127 words Relation of system register set value to link area Link relay A 0 Received area No 42 Starting no for link relay lt transmission No 40 Range of link relay Transmitted area No 43 Link relay transmission size used for PLC link Received area Not used area Max 64 for PLC link word Figure 208 FPZ Link relay allocation Link register E Received area No 44 Starting no for link q register transmission No 41 Range of link fegister sed for Transmitted area No 45 Link register transmission size PLC link Received area Not used area Max 128 for PLC link word Figure 209 FP Link register allocation Communication Function 3 PLC Link Function FP Tip Link areas consist of link relays and link registers for PLC link and used with respective control units The link relay which can be used in an area for PLC link is maximum 1 024 points and the link register is maximum 128 words Example of link area allocation The areas for PLC link is divided into transmitted areas and received areas The link relays and link registers are transmitted from the transmitted area to the received area of a different FP Link relays and link registers with the same numbers as those on the transmission side must exist in the received area on the receiving side Link relay allocation FPx FPZ FPx F
18. 1 communication using general purpose serial communication the system registers should be set as shown below Communication format setting for FP e Settings when using the COM 1 port No Name Set value Communication mode General communication Communication format Header STX not exist Baud rate setting 9600 bit s Starting address for data received DT200 Buffer capacity setting for data received e Settings when using the COM 2 port 100 byte No Name Set value Communication mode General communication Communication format Header STX not exist Baud rate setting 9600 bit s Starting address for data received DT200 Buffer capacity setting for data received 100 byte Communication format setting for FP series PLC FPO FP1 No Name Set value Communication mode for COM port Computer link Communication format for COM port Header STX not exist Baud rate for COM port 19200 bits s Communication Function 2 General purpose Serial Communication FP Connection example with FP series PLC FPO FP1 e When using the RS232C 1 channel type of communication cassette FPO Connection with COM port FPO COM port FPZ side 5 pin side 3 pin RD Received Dara AD as f Requestio sera RSF FP1 Connection with COM port FP1 COM port side 9 pin FP
19. D data Example H 44 43 42 41 HCDAB DC BA 4 digit BCD S1 S2 D Converts the four digits of BCD data specified by S1 data ASCII and S2 to ASCII code and stores it in D code Example H1234 gt H 32 31 34 33 2143 ASCII code gt Converts the ASCII code specified by S1 and S2 to 4 digit BCD four digits of BCD data and stores it in D data Example H 34 33 32 31 gt H3412 4321 16 bit binary S1 S2 D Converts the 16 bits of binary data specified by S1 to data ASCII ASCII code and stores it in D area of S2 bytes code 001 ASCII code gt S1 S2 D Converts the ASCII code specified by S1 and S2 to 16 bit binary 16 bits of binary data and stores it in D data 001 32 bit binary S1 S2 D Converts the 32 bits of binary data S1 1 S1 to ASCII data ASCII code and stores it in D 1 D code ASCII code gt S1 S2 D Converts the ASCII code specified by S1 and S2 to 32 bit binary 32 bits of binary data and stores it in D 1 D data 16 bit binary S D Converts the 16 bits of binary data specified by S to data 4 digit four digits of BCD data and stores it in D BCD data Example K100 H100 12 54 FPS 12 8 Table of Instructions No Name Boolean 4 digit BCD data 16 bit binary data Operand Description Converts the four digits
20. DT 90044 _ F167 HC1R KO K 5000 YO ae When elapsed value reaches 5 000 UU LW YO goes off R101 YO S Set the inverter operation signal YO Y1 as S Set the inverter high speed signal Y1 R100 e HH Es DCMP K 4500 DT 90044 32 bit data comparison instruction R900C turns on when the CHO high speed counter elapsed value becomes greater than 4500 pulses R100 R900C R102 E ee a s D Speed reduction point reached R102 Y1 E DF XX R Reset the inverter high speed signal Y1 R903A R100 TO R103 HDF Positioning done pulse 0 5 s R103 0 1 s type timer Setting K5 and using it as a 0 5 s timer Figure 84 FP High speed counter function sample program 2 program 5 19 High speed Counter and Pulse Output Functions FP 5 4 Pulse Output Function This section explains about the pulse output function of FPx 5 4 1 Overview of Pulse Output Function Instructions used and controls The pulse output function enables positioning control by use in combination with a commercially available pulse string input type motor driver Provides trapezoidal table shaped control with the exclusive instruction F171 SPDH for automatically obtaining pulse outputs by specifying the initial soeed maximum speed acceleration deceleration time and target value The exclusive instruction F171 SPDH also enables automatic home return operation JOG operation with the exclusive instruction F172 PLSH
21. Device with RS232C port Figure 1 Features communication RS232C A C NET up of to 32 units is supported When using the 1 channel RS485 type communication cassette Computer Communication is possible with up to 32 units FPZ FPZ FPZ FPX No 1 No 2 No 3 No 32 C NET adapter RS485 Figure2 Features communication C NET next page 1 3 Functions and Restrictions of the Unit FPZ Data can be shared among the various PLCs using the PLC link function When using the 1 channel RS485 type communication cassette Data can be shared among up to 16 FP units using the PLC link function Figure 3 Features communication PLC link Positioning control supported through high speed counter and pulse output A high speed counter and pulse output functions are provided as standard features The pulse output function supports frequencies of up to 100 kHz enabling positioning control using a stepping motor or servo motor Measurement using high speed counter supported Increment input mode decrement input mode 2 phase input mode individual input mode and direction discrimination mode are supported Single phase Max 50 kHz Two phase Max 20 kHz FP Encoder Pulse input Sj Encoder Pulse input 6 Figure 4 Features High speed counter Positioning control based on pulse output supported Pulse sign and CW CCW output are sup
22. Figure 150 FP Computer link connection example 1 computer When using the 2 channel RS232C type of communication cassette Computer side FP side 5 pin D SUB 9 pin Rr Received Daet AD re RecevedDatae RDF se Signal Ground _SG_ Jap To other device Figure 151 FPX Computer link connection example 2 computer Programming for a computer link To use a computer link a program should be created that enables command messages to be sent and response messages to be received on the computer side The PLC automatically sends back a response to commands No communication program is required on the PLC side Also if a software program such as PCWAY is used on the computer side PLC data can be easily compiled without having to think about the MEWTOCOL COM Communication Function 1 Computer Link FP 7 2 2 Connection Example with External Device 1 1 communication with programmable display GT10 Outline A 1 1 computer link with a programmable display panel GT10 connects the FP and a programmable display using an RS232C cable Communication is carried out by the PLC sending responses to commands from the programmable display side No program is required for communication Operation can be carried out using the programmable display simply by setting the mutual communications settings Programmable display GT10 ommand message Response message RS232C
23. Parity check with odd Stop bit 1 bit Enter the settings for the various items Character bit 7bits 8bits Parity chk none with odd with even Stop bit 1bit 2bits Communication speed Baud rate setting 9600 bps 2400 bps 4800 bps 9600 bps 19200 bps 38400 bps 57600 bps 115200 bps Unit No setting 1 0 to 99 Communication mode setting Computer link Computer link General communication PLC link Selection of modem connection Disabled Enabled Disabled Communication format setting Character bit 8 bits Parity check with odd Stop bit 1 bit Enter the settings for the various items Character bit 7bits 8bits Parity chk none with odd with even Stop bit 1bit 2bits The following setting is valid only when the communication mode specified by system register 412 has been set to General com munication End code Terminator CR CR LF None Start code Header STX not exist STX exist Communication speed Baud rate setting 9600 bps 2400 bps 4800 bps 9600 bps 19200 bps 38400 bps 57600 bps 115200 bps Starting address for received buffer of general serial data communication mode 0 to 32764 Buffer capacity setting for data received of general serial data communication mode Note 0 to 2048 The communication format when using the PLC link is fixed at the following settings the data length is 8 bits odd parity
24. R900C on Sere aH 16 bit data band comparison 1 S2 S3 S1 gt S S2 s S S1 lt S R900A on lt S3 R900B on R900C on NIH 32 bit data band comparison 1 S2 S3 S1 1 S1 S2 1 S2 S1 1 S1 gt S3 1 S3 gt R900A on s S1 1 S1 lt S3 1 S3 R900B on lt S2 1 S2 gt R900C on SSH Block data comparison 1 S2 S3 Compares the two blocks beginning with S2 and S3 to see if they are equal 12 53 Specifications FPS No Name Boolean Operand Description Logic operation instructions 16 bit data AND 1 S2 D 16 bit data OR S1 S2 D 16 bit data S1 S2 D exclusive OR 16 bit data S1 S2 D exclusive NOR 16 bit data S1 S2 S1 A S3 v S2 A 53 gt D unite S3 D When S3 is HO S2 gt D When S3 is HFFFF S1 gt D Data conversion instructions Block S1 S2 Creates the code for checking the data specified by check code S3 D S2 and S3 and stores it in D calculation The calculation method is specified by S1 Hexadecimal S1 S2 D Converts the hexadecimal data specified by S1 and data ASCII S2 to ASCII code and stores it in D code Example HABCD gt H 42 41 44 43 BADOC ASCII code gt S1 S2 D Converts the ASCII code specified by S1 and S2 to Hexadecimal hexadecimal data and stores it in
25. S1 S2 1 S2 Connects a contact serially by comparing two 32 bit data in the comparative condition S1 1 1 lt S2 1 S2 Connects a contact serially by comparing two 32 bit data in the comparative condition S1 1 S1 s S2 1 S2 32 bit data Connects a contact in parallel by comparing two comparison 32 bit data in the comparative condition S1 1 OR 1 S2 1 S2 Connects a contact in parallel by comparing two 32 bit data in the comparative condition S1 1 1 S2 1 S2 Connects a contact in parallel by comparing two 32 bit data in the comparative condition S1 1 1 gt S2 1 S2 Connects a contact in parallel by comparing two 32 bit data in the comparative condition S1 1 S1 2 S2 1 S2 Connects a contact in parallel by comparing two 32 bit data in the comparative condition S1 1 1 lt S2 1 S2 Connects a contact in parallel by comparing two 32 bit data in the comparative condition S1 1 S1 S2 1 S2 12 50 FPS 12 8 Table of Instructions Table of High level Instructions Boolean Operand Description Steps Name Data transfer instruct 16 bit data move ions 32 bit data move S 1 S gt D 1 D 16 bit data in vert and move gt D 32 bit data in vert and move S 1 S gt D 1 D Bit data move The specif
26. Set the desired address Buffer capacity setting for data received Settings when using the COM 2 port Set the desired capacity Max 2 048 byte No Name Set value No 411 Unit No Communication mode 1 to 32 Set the desired unit No General communication Communication format Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting 9600 bits s Starting address for data received Set the desired address Buffer capacity setting for data received S Note Set the desired capacity Max 2 048 byte The transmission format and baud rate should be set to match the device connected to the FP FP 8 6 Flag Operations When Using Serial Communication 8 6 Flag Operations When Using Serial Communication 8 6 1 When STX not exist is Set for Start Code and CR is Set for End Code When receiving data The relationship between the various flags Reception done flag and Transmission done flag and the F159 MTRN instruction External received A B C CR D E F G data Cannot be stored when reception done flag is on on R9038 R9048 Reception done flag off D F159 MTRN on Duplex transmission instruction disabled while F159 MTRN i execution off instruction is being executed on R9039 R9049 Transmission done flag off Transmitted data 1 2 3
27. Specifications FPZ 12 3 Relays Memory Areas and Constants External input relay X No of memory area points and range available for use 512 points X0 to X31F Note 1 Function Turn on or off based on external input External output relay Y 512 points YO to Y31F Note 1 Externally outputs on or off state Internal relay Note 2 R 1 568 points RO to R97F Relay which turns on or off only within program Link relay Note 2 L 1 024 points LO to L63F This relay is a shared relay used for PLC link Timer Note 2 T Counter Note 2 C 1 024 points TO to T1007 C1008 to C1023 Note 3 This goes on when the timer reaches the specified time It corresponds to the timer number This goes on when the timer increments It corresponds to the timer number Special internal relay R 176 points R9000 to R910F Relay which turns on or off based on specific conditions and is used as a flag Memory area External input relay WX 32 words WX0 to WX31 Note 1 Code for specifying 16 external input points as one word 16 bits of data External output relay WY 32 words WX0 to WY31 Note 1 Code for specifying 16 external output points as one word 16 bits of data Internal relay Note 2 WR 98 words WRO to WR97 Code for specifying 16 internal relay points as one word
28. speed tions On off Count Input EE Control Elapsed Target Mini Maximum output input contact TE flag value value mum counting mode number nel no area area input speed value i pulse in pa width renthe sis is reset input Note Specify DT90044 DT90046 Using the to to one channel desired DT90045 DT90047 Max 50 kHz output x1 channel from DT90048 DT90050 Using ae a to to two channels tn i DT90049 DT90051 Max 30 kHz a x2 channel tion i DT90200 DT90202 Using to to three channels DT90201 DT90203 Max 20 kHz FQ MV x3 channel DT90204 DT90206 Using to to four channels DT90205 DT90207 Max 20 kHz x4 channel Specify 2 phase DT90044 DT90046 Using the input to to one channel desired Incre DT90045 DT90047 Max 20 kHz output mental x1 channel from decre YO to Y7 mental e A using input DT90200 DT90202 Max 15 kHz instruc Direc to to x2 ch annel tion tional DT90201 DT90203 distinc tion se Note Reset input X2 can be set to either CHO or CH1 Reset input X5 can be set to either CH2 or CH3 High speed Counter and Pulse Output Functions FP Pulse output function specifications Built in Input output contact number being used Memory area being used Maximum Related high output instruc speed CWor CCW Deviation Home Near Control Elapsed Target frequency
29. 1 stop bit The baud rate is fixed at 115 200 bps 12 19 Specifications FPZ Unit No setting Default value 1 Descriptions 1 to 99 Communication mode setting Computer link Computer link General communication Selection of modem connection Disabled Enabled Disabled Communication format setting Character bit 8 bits Parity check with odd Stop bit 1 bit Enter the settings for the various items Character bit 7bits 8bits Parity chk none with odd with even Stop bit 1bit 2bits The following setting is valid only when the communication mode specified by system register 412 has been set to General com munication End code Terminator CR CR LF None Start code Header STX not exist STX exist Communication speed Baud rate setting 9600 bps 2400 bps 4800 bps 9600 bps 19200 bps 38400 bps 57600 bps 115200 bps Starting address for received buffer of general serial data communication mode 0 to 32764 Note Buffer capacity setting for data re ceived of general serial data commu nication mode 0 to 2048 The communication format when using the PLC link is fixed at the following settings the data length is 8 bits odd parity 1 stop bit The baud rate is fixed at 115 200 bps 12 20 FPx 12 5 Table of Special Internal Relays 12 5 Table of Special Internal Relays The special internal relays turn on and off
30. FPX Index Index Numbers 1 N communication 8 31 A Absolute 5 25 Absolute value positioning operation 5 40 Analog potentiometer 10 3 Attachment of communication cassette 6 10 Backup battery 4 21 Basic instructions 12 44 Battery error alarm 4 22 BCD data 12 67 C Capacitive loads 4 15 Changing the communication mode of COM Port 8 37 Clock calendar function 10 4 Command 7 5 7 8 Command message 7 5 Communication cassette 1 6 2 6 6 3 6 6 Communication specifications of commu nication cassette 6 8 Communication status LEDs 2 4 Computer link 6 3 7 3 Computer link 1 N communication 7 18 Connection example of PLC link 9 15 Connection example with external de vices 8 16 8 22 Constants 12 12 Control mode 5 25 Controllable I O points 1 7 Current consumption 12 4 CW CCW output method 5 21 D Data transmission 8 4 Data transmission to external device 8 8 Decremental input mode 5 9 Direction control mode 5 10 E Elapsed value change and read instruc tion F1 5 13 Elapsed value write and read instruction F1 5 33 Emergency stop circuit 4 19 Error cords 12 42 Expansion method 3 6 F F159 MTRN instruction 8 5 Features 1 3 Flat type mounting plate 4 8 FP control unit 1 6 Index FPX G General specifications 12 3 General pur
31. Received Data RD RNAS e Request to Send Notused 6 co per jo Figure 183 FPZ Connection example with micro imagechecker 1 e When using the RS232C 2 channel type of communication cassette Micro Imagechecker side FP side 5 pin at Received Daa RD mo ae os R2 Received Data2 RD Mouse 6 Cao e en o To other device Figure 184 FP Connection example with micro imagechecker 2 Communication Function 2 General purpose Serial Communication FP Procedure of communication In the following example the Micro Ilmagechecker is connected to the COM 1 port Micro Imagechecker nio HE aso m ancrzaneriss oro J Dow no oy HEemm ono e a J Ladder program Data register RS232C port Start command Sp is o set in transmission buffer LS Data transmission with F159 MTRN O ED R9039 off and R9038 off Reception buffer writing point reset D 5 Start command S Cp transmission Transmission done flag R9039 ON Transmission Scan command 1012345 is received G gt Reception done flag R9038 ON Data read 1012345Cp Empty data transmission with F159 MTRN ae R9039 off and R9038 off oq Reception buffer writing point reset Reception 14 5 O 7 oO 9 Figure 185 FP Procedure of communication micro imagechecker FPZ 8 3 Conn
32. S to S 2 and S 4 to S 10 and the result is stored in the S 3 16 bit data revision detection If the data in the 16 bit area specified by S has changed since the previous execution internal relay R9009 carry flag will turn on D is used to store the data of the previous execution 32 bit data revision detection If the data in the 32 bit area specified by S 1 S has changed since the previous execution internal relay R9009 carry flag will turn on D 1 D is used to store the data of the previous exe cution 12 65 Specifications FPS 12 9 MEWTOCOL COM Communication commands Table of MEWTOCOL COM commands Read contact area Reads the on and off status of contacts Specifies only one point Specifies multiple contacts Specifies a range in word units Write contact area Turns contacts on and off Specifies only one point Specifies multiple contacts Specifies a range in word units Read data area Reads the contents of a data area Write data area Writes data to a data area Read timer counter set value area Reads the value set for a timer counter Write timer counter set value area Writes a timer counter setting value Read timer counter elapsed value area Reads the timer counter elapsed value Write timer counter elapsed value area Writes the timer counter elapsed value
33. When X1 is turned on pulses are output from CW output YO or CCW output Y1 of specified channel CHO If the current value at that point is larger than 22 000 the pulses are output from Y1 and if the value is smaller than 22 000 the pulses are output from Y2 o V 24 V DC Motor driver side Motor 10 000 22 000 30 000 Regardless of the current value its movement is towards position 22 000 Figure 113 FP amp Sample program absolute value positioning operation FP 5 4 Pulse Output Function Program X8 HF R30 R903A R32 R30 Positioning operation running R30 R31 SS SE R31 Positioning operation start Positioning data table DT100 F1 DMV H 1110 DT 100 DT101 Control code H 1110 F1pmv K200 DT 102 Initial speed S00 Fi Dmv K4000 DT104 Maximum speed 4 000 Hz F1 DMV K 250 DT 106 Acceleration time 250 msec DT108 DT109 Target value Movement amount 22 000 pulses DT110 DT111 Pulse stop Fi Dmv K22000 DT108 F1DMV KO DT 110 Control code Duty 1 4 25 48 Hz to 100 kHz Absolute CW and CCW H11 10 ii LJ LOLO LOLL F171 SPDH DT 100 The data table headed by DT100 is used Pulses are output from CHO R903A R30 TO R32 HDF HH R32 Pulse output instruction table shaped control The data table headed by DT100 is used and pulses are output from C
34. Year data Month data setting HOO to H99 H01 to H12 A onthe DT90057 Day of the week week data HOO to H06 12 32 FPx 12 6 Table of Special Data Registers A Available N A Not available Name Description Reading Writing DT90058 Clock calendar The clock calendar is adjusted as follows es beetle and When setting the clock calendar by program correction By setting the the highest bit of DT90058 to 1 the time be register comes that written to DT90054 to DT90057 by FO MV instruction After the time is set DT90058 is cleared to 0 Cannot be performed with any instruction other than FO MV instruction Example Set the time to 12 00 00 on the 5th day when the XO turns on a Inputs 0 minutes L DF 4FO MV H 0 DT90054 and 0 seconds Inputs 12th FO MV H 512 DT90055 hour 5th day FO MV H8000 DT90058 Sets the time If you changed the values of DT90054 to DT90057 with the programming tool software the time will be set when the new values are written Therefore it is unnecessary to write to DT90058 When the correcting times less than 30 seconds By setting the lowest bit of DT90058 to 1 the value will be moved up or down and become exactly 0 seconds After the correction is completed DT90058 is cleared to 0 Example Correct to 0 seconds with XO turns on X0 Correct to 0 DF Fo MV H 1 DT90058 second At the time of correction if between 0 and
35. and sent to DTO R11 DT1 H2431 R12 HoF yL dl r Check of received data To determine whether the received data is a normal response the comparison in struction is used to check whether the character string 1 is stored in DT1 f 2 a 2 E 2 f 2 FE Reception R12 F72 AHEX DT3 K8 DT50 Check of received data The eight character ASCII code beginning with DT3 is converted to a hexadecimal value and stored in DT50 and DT51 R11 ee F159 MTRN DT 100 KO Ki Preparing to receive the next data m To prepare to receive the next data the Starting from DT100 F159 instruction resets the buffer writing the contents consisting of 0 bytes point and turns off the Reception Done are sent to the COM 1 K1 port R9038 contact based on the empty data Figure 192 FP Sample program for FP series PLC FPS 8 3 Connection Example with External Devices The various buffer statuses The following shows the statuses of the send and received buffers when the sample program is run DT100 DT101 DT102 DT103 DT104 DT105 DT106 DT107 DT108 DT109 DT110 Transmission buffer Number of bytes to be transmitted Condition before transmission Figure 193 FP Various buffer statuses DT200 DT201 DT202 DT203 DT204 DT205 DT206 DT207 DT208 Reception buffer Condition when reception is co
36. p CH1 16 points WX3 X30 to X3F WX5 X50 to X5F WX7 X70 to X7F Output 16 points WY2 Y20 to Y2F WY4 Y40 to Y4F WY6 Y60 to Y6F 3 1 4 O Number of FPO A D Conversion Unit The I O allocation of FPO A D conversion unit FPO A80 is determined by the installation location The data for the various channels is converted and loaded with a user program that includes a switching flag to convert the data fit O O First expansion Second expansion Third expansion CHO 16 points CH2 16 points CH4 16 points CH6 16 points CH1 16 points CH3 16 points CH5 16 points CH7 16 points WX2 X20 to X2F WX4 X40 to X4F WX6 X60 to X6F WX3 X30 to X3F WX5 X50 to X5F WX7 X70 to X7F 3 1 5 O Number of FPO I O Link Unit The I O allocation of FPO I O link unit FPO IOL is determined by the installation location Input 32 points X20 to X3F X40 to X5F X60 to X7F Output 32 points Y20 to Y3F Y40 to Y5F Y60 to Y7F FP 3 1 I O Allocation a 3 1 O number of FP and FPO Specifying X and Y numbers On the FP and the FPO the same numbers are used for input and output Example The same number X20 and Y20 can be used for input and output Expression of numbers for input output relays Since input relay X and output relay Y are handled in units of 16 points they are expressed as a combination of decimal and hexadecima
37. 1 In order to use the serial communication function 1 1 communication a communication cassette RS232C type is required 2 The baud rate and transmission format are specified using the system registers Serial communication specifications 1 N communication Note 1 Sr Dt a Communicationmethod Two wire half duplex transmission Synchronous method Start stop synchronous system Transmission line Twisted pair cable or VCTF Transmission speed 9 600 bits s to 115 2k bits s Note 2 Transmission code ASCII Transmission format Stop bit 1 bit 2 bits Parity none even odd data length 7 bits 8 bits Note 2 Number of units Maximum 32 units Note 3 Interface se Notes Conforming to RS485 connected via the terminal block 1 In order to use the serial communication function 1 N communication a communication cassette RS485 type is required 2 The baud rate and transmission format are specified using the system registers 3 Unit numbers are specified using the system registers Up to 31 unit numbers can be set using the switches on the control unit 12 8 FP 12 1 Table of Specifications PLC link function specification Note 1 CR Communication method Token bus Transmission method Floating master method Transmission line Twisted pair cable Transmission distance 80 m 2 625 ft total distance Transmission speed 115 2k bit
38. 12 30 FPx 12 6 Table of Special Data Registers A Available N A Not available Name Description Reading Writing DT90044 High The elapsed value 32 bit data for the high speed counter is speed stored here The value can be read and written by executing counter F1 DMV instruction DT90045 elapsed value DT90046 High The target value 32 bit data of the high speed counter speed specified by the high speed counter instruction is stored counter here target Target values have been preset for the various instructions DT90047 value to be used when the high speed counter related instruction F166 F167 and F171 to F173 is executed The value can be read by executing F1 DMV instruction DT90048 High The elapsed value 32 bit data for the high speed counter is speed stored here The value can be read and written by executing counter F1 DMV instruction DT90049 elapsed value area DT90050 High The target value 32 bit data of the high speed counter speed specified by the high speed counter instruction is stored counter here target Target values have been preset for the various DT90051 value instructions to be used when the high speed counter related area instruction F166 F167 and F171 to F173 is executed The value can be read by executing F1 DMV instruction DT90052 High speed A value can be written with FO MV instruction to reset the counter and high speed counter disable counti
39. 16 bits of data Link relay WL 64 words WLO to WL63 Code for specifying 16 link relay points as one word 16 bits of data Data register Note 2 DT 32 765 words DTO to DT32764 Data memory used in program Data is handled in 16 bit units one word Link data register Note 2 LD 128 words LDO to LD127 This is a shared data memory which is used within the PLO link Data is han dled in 16 bit units one word Timer Counter set value area Note 2 SV 1 024 words SVO to SV1023 Data memory for storing a target value of a timer and an initial value of a count er Stores by timer counter number Timer Counter set value area Note 2 EV 1 024 words EVO to EV1023 Data memory for storing the elapsed value during operation of a timer count er Stores by timer counter number Special data register DT 260 words DT90000 to DT90259 Data memory for storing specific data Various settings and error codes are stored Index register D 14 words I0 to ID Register can be used as an address of memory area and constants modifier 12 12 FPx 12 3 Relays Memory Areas and Constants Constant Decimal constants K K 32768 to K32767 for 16 bit operation integer type K 2147483648 to K2147483647 for 32 bit operation Hexadecimal H HO to HFFFF for 16 bit operation constants HO to HFFFFFFFF for 32 bit oper
40. 3 Min Input Pulse Width sic acese leases tee aed es eee ee 5 11 5 3 4 VOAMOCAIONC S te cot itecntoned etd daria dite etd a 5 12 5 3 5 Instructions Used with High speed Counter Function 5 13 5 3 6 Sample Program tacceioes socio dee ia he ante teeeeeae ee 5 16 FP Table of Contents 5 4 Pulse Output Function 2 ss20 522k dee one seceGae eidesse ee oar ate sleazy 5 20 5 4 1 Overview of Pulse Output Function 00 5 20 5 4 2 Types of Pulse Output Method 00 eee eee 5 21 54 3 WO Allocation 0 6 se ena eid eg Me eee thet ees 5 22 SAA Control Mode se sw dis iv ada geste pe weet ae te awadae Mane 5 25 5 4 5 Instructions Used with Pulse Output Function 5 26 5 4 6 Sample Program for Positioning Control 5 35 5 5 PWM Output Function cccc5c acd ebige dead oven Meta idia dab bleeds 5 48 5 5 1 Overview of PWM Output Function 005 5 48 5 5 2 Instruction Used with PWM Output Function 5 48 Chapter6 Communication Cassette 6 1 Communication Functions of FP 22 36 6008 need ei eee UES 6 3 6 1 1 Functions of Communication Cassette 55 6 3 6 2 Communication Cassette 6 eee 6 6 6 2 1 Type of Communication Cassette 00 eee eee 6 6 6 2 2 Names and Principle Applications of the Ports 6 7 6 2 3 Communication Specifications of Communication Cassette 6 8 6 3 Attachment
41. 90052 Figure 126 FP Sample program emergency stop program High speed Counter and Pulse Output Functions FP 5 5 PWM Output Function This section explains about the PWM output function of FP 5 5 1 Overview of PWM Output Function PWM output function With the F173 PWMR instruction the pulse width modulation output of specified duty ratio is obtained Setting the system register When using the PWM output function set the channels CHO and CH2 corresponding to system registers 400 and 401 to Do not use high speed counter 5 5 2 Instruction Used with PWM Output Function PWM output instruction F173 While X6 is in the on state a pulse with a period of 502 5ms and duty ratio of 50 is output from YO of specified channel CH2 X6 H Fo MV K1 DT100 Fo MV K500 DT101 F173 PWMH DT100 KO Figure 127 FPX PWM output instruction F173 program When the program is run the data table will be as shown below Data table DT100 Control code 1 K1 DT101 Duty 2 50 FP 5 5 PWM Output Function 1 Specify the control code by setting the K constant Resolution of 1000 Resolution of 100 Frequency Frequency Hz K20 15 6k 0 06 K21 20 8k 0 05 K22 25 0k 0 04 K23 31 3k 0 03 K24 41 7k 0 02 2 Specification of duty specify using K constant If the control code is KO to K19 the duty is KO
42. Abort Aborts communication FPS 7 1 Computer Link a Tip Commands and responses used with the FP have a dedicated header start code added to the MEWTOCOL COM communica tion protocol of the FP series PLC The contents of the specified header vary depending on the commu nication conditions With the FPZ in addition to ordinary MEWTOCOL COM an expan sion header is also supported that enables single frames of up to 2 048 characters to be sent Type of header No of characters that can be sent in 1 frame Max 118 characters Max 2048 characters The number of characters that can be sent is restricted by the type of header and the command R A Communication Function 1 Computer Link FP 7 1 5 Setting the Communication Parameters when Using a Computer Link Setting of communication speed baud rate and communication format The settings for the COM port communication speed and communication format are specified using the FPWIN GR programming tool Select PLC Configuration under Options on the menu bar and click on the COM 1 and 2 Port tab There are separate settings for COM 1 and COM 2 PLC Configuration setting dialog box PLC Configuration p08p FP Hold Non hold 1 Hold Non hold2 Action on Error Time Link High Speed Counter Interrupt Input Tool Port COMI Port CoM Port No 410 Unit No TONDE No
43. Available Except for the examples noted below inputs and outputs that have been allocated to the various functions cannot be allocated as normal inputs and outputs Cases in which inputs and outputs can be used as exceptions A amp Example 1 If no reset input is used in the high speed counter function X2 and X5 are allocated as normal inputs d g g Example 2 If no output is used to clear the differential counter in the pulse output function Y2 and Y5 are allocated as normal outputs Restrictions on the execution of related instructions F166 to F173 When any of the instructions related to the high speed counter F166 to F173 are executed the control flag special internal relay R903A to R903D corresponding to the used channel turns on Please be aware that the control flag is in progress may change while a scan is being carried out To prevent this an internal relay should be substituted at the beginning of the program When the flag for a channel turns on another instruction cannot be executed using that same channel High speed Counter and Pulse Output Functions FP Restrictions for maximum counting speed and pulse output frequency The counting speed when using the high speed counter function will differ depending on the counting mode as shown in the table on page 5 5 A Example 1 While in the decremental input mode and using the two channels CHO and CH1 CHO and CH1 can be used
44. Branch Office 629 Central Ave New Providence N J 07974 U S A ech Matsushita Electric Works C2 11 0 Tel 1 908 464 3550 Headquarters Scandinavia Matsushita Electric Works Scandinavia AB New Jersey um 2 aay e Georgia CA gt aA e Massachusetts Illinois e Texas e California Los Angels San Jose e Michigan Canada Aromat Canada Inc nt E Singapore Matsushita Electric Works Asia Pacific Pte Ltd Representative Office n s TEA Hb 25 03 05 United Square Singapore 307591 e Indonesia Malaysia Matsushita Electric Works Malaysia Sdn Bhd Vietnam Thailand Matsushita Electric Works Sales Thailand Co Ltd e Philippines U A E Matsushita Electric Works Middle East FZE e India E China Matsushita Electric Works China Co Ltd e Turkey Suite 201 Level 2 Tower W3 The Toners Oriental Plaza No 1 East Chang An Ave Dong Cheng District Beijing 100005 China Breall Tel 86 10 8518 1302 1303 Beijing Matsushita Electric Works China Co Ltd Shanghai Matsushita Electric Works China Co Ltd Shanghai Branch Office Guangzhou Matsushita Electric Works China Co Ltd Guangzhou Branch Office Dalian Matsushita Electric Works China Co Ltd Dalian Branch Office Shenzhen Matsushita Electric Works China Co Ltd Shenzhen Branch Office Chengdu Matsushita Electric Works China Co Ltd Chengdu Branch Office E Hong Kong Matsushita Electric Works Hong Kong Ltd Rm1601 16 F Tower 2 The Gateway 25 Canton R
45. CR Stored pt at m m Reception A A A A t Write pointer buffer B Number of recep lt 11 gt lt 2 gt lt 3 gt lt 0 gt lt 1 gt lt 2 gt lt 3 gt tion bytes y Number of bytes received is Write pointer cleared when F159 MTRN instruction is executed lt Write pointer Figure 198 FP Flag operation when receiving data STX not exit and CR setting Half duplex transmission method should be used for general purpose serial communication Reception is disabled when the reception done flag R9038 R9048 is on When the F159 MTRN instruction is executed the number of bytes received is cleared and the address write pointer returns to the initial address in the reception buffer When the F159 MTRN instruction is executed the error flag R9037 R9047 reception done flag R9038 R9048 and transmission done flag R9039 R9049 go off Communication Function 2 General purpose Serial Communication FP Duplex transmission is disabled while the F159 MTRN instruction is being executed Check the transmission done flag R9039 R9049 Reception stops if the error flag R9037 R9047 goes on To resume reception execute the F159 MTRN instruction and turns off the error flag se Note Be aware that the reception done flag R9038 R9048 changes even while a scan is in progress
46. Contact Co Model No Product No Phoenix Contact Co CRIMPFOX UD6 1204436 Communication Cassette FP 6 4 2 Tool for Tightening Communication Connector Terminal Block When tightening the terminals of the communication connector use a screwdriver Phoenix Contact Co Product No 1205037 blade size of 0 4 2 5 model No SZS 0 4 x 2 5 or screwdriver Part No AFP0806 The tightening torque should be 0 22 to 0 25 N m or less 6 4 3 Wiring Method Procedure 1 Remove a portion 7 mm 0 276 in of the wire s insulation k 7 mm Figure 138 FPX Communication connector wiring method 1 2 Insert the wire into the terminal block until it contacts the back of the block and then tighten the screw clockwise to fix the wire in place 6 4 4 Cautions Regarding Wirin The following items should be observed taking care not to cut or disconnect the wiring When removing the wire s insulation be careful not to scratch the core wire Do not twist the wires to connect them Do not solder the wires to connect them The solder may break due to vibration After wiring make sure stress is not applied to the wire In the terminal block socket construction if the wire closes upon counter clockwise rotation the connection is faulty Disconnect the wire check the terminal hole and then re connect the wire lel f CORRECT INCORRECT Clockwise Counter clockwise
47. Example 2 Reading the elapsed value X8 Reads the elapsed value of the H DF F1 DMV DT90044 DT100 high speed counter to DT100 and DT101 Figure 105 FP amp Program 2 of elapsed value write and read instruction F1 High speed Counter and Pulse Output Functions FP a a The area DT90052 for writing channels and control codes is allocated as shown below Control codes written with an FO MV instruction are stored by channel in special data registers DT90190 to DT90193 High speed counter control flag area of FP 15 12 11 8 7 4 3 0 DT90052 UW Channel specification HO to H3 CHO to CH3 Near home input 0 off tion High speed counter instruction 0 Continue 1 Clear Pulse output 0 Continue 1 Stop Hardware reset 0 Permit 1 Prohibit Count 0 Permit 1 Prohibit Software reset 0 No 1 Yes a J For information on the special data register for high speed counter function and pulse output function see pages 5 5 and 5 6 FP 5 4 Pulse Output Function 5 4 6 Sample Program for Positioning Control Wiring example FP gt Input terminal Home sensor X2 Near home sensor X3 PEN tee Positioning start X8 O O De e a oe Positioning start X9 O O i Home return start XA O O aaki JOG start XB O O
48. First expansion Second expansion Third expansion Figure 18 FP I O allocation 3 1 1 VO Number of FP gt Control Unit The I O allocation of FP control unit is fixed Uio o Transistor output type Input 16 points XO to XF Output 16 points YO to YF 3 1 2 O Number of FPO Expansion Unit O do not need to be set as I O allocation is performed automatically when an expansion unit is added The I O allocation of expansion unit is determined by the installation location Type of expansion unit First expansion Second expansion Third expansion E8X Input 8 points X20 to X27 X40 to X47 X60 to X67 Input 4 points X20 to X23 X40 to X43 X60 to X63 Output 4 points Y20 to Y23 Y40 to Y43 Y60 to Y63 E8YR E8YT E8YP Output 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67 E16X Input 16 points X20 to X2F X40 to X4F X60 to X6F Input 8 points X20 to X27 X40 to X47 X60 to X67 Output 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67 E16YT E16YP Output 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F Input 16 points X20 to X2F X40 to X4F X60 to X6F Output 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F E8R E16R E16T E16P E32T E32P I O Allocation and Expansion Method FP 3 1 3 O Number of FPO Analog 1 O Unit The I O allocation of FPO analog I O unit FPO A21 is determined by the installation location CHO 16 points WX2 X20 to X2F WX4 X40 to X4F WX6 X60 to X6F Input
49. M Internal circuit Y Figure 12 FPx Internal circuit diagram Input 1 X2 X5 to XF M Hs R1 Xn 5 R2 E S COM For X2 and X5 to X7 R1 5 6 KQ R2 1 kQ For X8 to XF R1 6 8 kQ R2 820 Q Figure 13 FPZ Internal circuit diagram Input 2 FP 2 2 Input and Output Specifications 2 2 2 Output Specifications Transistor output specifications C Insulation method Optical coupler Output type Open collector Rated load voltage 5 to 24 V DC Operating load voltage range 4 75 to 26 4 V DC Max load current For YO Y1 Y3 Y4 0 3 A For Y2 Y5 to YF 01A Max surge current For YO Y1 Y3 Y4 0 9 A For Y2 Y5 to YF 0 5A Output points per common 16 points common Off state leakage current 100 uA or less On state voltage drop 1 5 V or less Response time off on For YO Y1 Y3 Y4 at 15 mA or more 2 us or less For Y2 Y5 to YF 1 ms or less on gt off For YO Y1 Y3 Y4 at 15 mA or more 8 us or less For Y2 Y5 to YF 1 ms or less External power Voltage 21 6 to 26 4 VDC supply for driving internal circuit Current 70 mA or less Surge absorber Zener diode Operating mode indicator LED display Phase fault protection Thermal protection for Y2 Y5 to YF Limitations on number of simultaneous output on points Keep the number of output points per common which are simultaneously on within the following range as determine
50. Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting for COM 2 port 19200 bits s 1 Notes The communication format and baud rate communication speed should be set to match the connected programmable display For information on setting the system registers to use a computer link please refer to page 7 10 Communication format setting for GT10 When the GT10 is shipped from the factory the communication format settings are as shown below GT Configuration settings should be changed to match the application at hand Baud rate 19200 bits s Data length 8 bits Stop bit 1 bit fixed Parity bit Odd next page 7 15 Communication Function 1 Computer Link FP Communication condition settings are specified using the parameter settings for the GT10 and the GT Configuration item in the GTWIN screen creation tool For detailed information please see the technical manual for the GT10 GTWIN GT Configuration settings Communication Parameters screen Basic Setup Communication Parameters Auto Paging Start up Screen Setup Hold PLC Device Value OK OOM Port Connected to PLO External Device Baud Rate 19200 gt bps Handle Communication Error Data Length 8 x bit Retry 3times 2 seconds Setup Stop Bits bit Display Error Codes Yes Unhold Parity Bit odd kd TOOL Port Connected to GTWIN f0 z r T
51. S to binary data and the converted result is stored in the D 1 D Bit line to bit column conversion The values of bits line 0 to 15 of S are stored in bit column n of D to D 15 Bit column to bit line conversion Comparing character strings 1 S2 The values of bit column n of S to S 15 are stored in bits line 0 to 15 of D These instructions compare two specified character strings and output the judgment results to a special internal relay Character string coupling 1 2 D These instructions couple one character string with another Number of characters ina character string S D These instructions determine the number of characters in a character string Search for char acter string S1 S2 D The specified character is searched in a character string Retrieving data from character strings right side S1 S2 D These instructions retrieve a specified number of char acters from the right side of the character string Retrieving data from character strings left side These instructions retrieve a specified number of char acters from the left side of the character string Retrieving a character string from a charac ter string S1 S2 S3 D These instructions retrieve a character string consist ing of a specified number of characters from the speci fied position in the character string Writing a char
52. Used for 1 N Communication 7 18 7 3 3 Settings of System Register and Unit No 7 19 7 3 4 Connection with External Device 005 7 22 Chapter8 Communication Function 2 General purpose Serial Communication 8 1 General purpose Serial Communication 02200e eee 8 3 8 1 1 Overview of Function 0 0 c eee eee eee eee 8 3 8 1 2 Program of General purpose Serial Communication 8 5 8 1 3 Communication Parameter Settings when Using General purpose Serial Communications 8 6 8 2 Overview of Communication with External Devices 8 8 8 2 1 Data Transmission to External Device 0 8 8 8 2 2 Receiving Data from External Device 5 8 12 8 3 Connection Example with External Devices 0005 8 16 8 3 1 Connection Example with External Device 1 1 communication with Micro Imagechecker 8 16 8 3 2 Connection Example with External Device 1 1 communication with FP series PLC 8 22 8 4 Data Transmitted and Received with the FP2 0 8 29 85 1 N communication 0 eee eee eee 8 31 8 5 1 Overview of 1 N Communication 0 0 0 0 c eae 8 31 8 5 2 Communication Cassette Used with 1 N Communication 8 31 8 5 3 Setting of System Register 0 cece eee eee 8 32 8 6 Flag Operations When Using Serial Communication
53. When turning on the power for the first time be sure to take the precautions given below When performing installation check to make sure that there are no scraps of wiring particularly conductive fragments adhering to the unit Verify that the power supply wiring I O wiring and power supply voltage are all correct Sufficiently tighten the installation screws and terminal screws Set the mode selector to PROG mode Before entering a program Be sure to perform a program clear operation before entering a program Operation procedure when using FPWIN GR Ver 2 Procedure 1 Select Online Edit Mode on the FPWIN GR On line menu 2 Select Clear Program on the Edit menu When the confirmation dialog box is displayed click on Yes to clear the program viii FP Before You Start Request concerning program storage To prevent the accidental loss of programs the user should consider the following measures e Drafting of documents To avoid accidentally losing programs destroying files or overwriting the contents of a file documents should be printed out and then saved e Specifying the password carefully The password setting is designed to avoid programs being accidentally overwritten If the password is forgotten however it will be impossible to overwrite the program even if you want to Also if a password is forcibly bypassed the program is deleted When specifying the pas
54. X4F X60 to X6F Output 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F I O No of FPO analog I O unit The I O allocation of FPO analog I O unit FPO A21 is determined by the installation location First Second Third expansion expansion expansion CHO 16 points WX2 WX4 WX6 X20 to X2F X40 to X4F X60 to X6F CH1 16 points WXx3 WX5 WX7 X30 to X3F X50 to X5F X70 to X7F Output 16 points wy2 WY4 WY6 Y20 to Y2F Y40 to Y4F Y60 to Y6F 12 10 FP 12 2 I O No Allocation 1 O No of FPO A D converter unit The I O allocation of FPO A D converter unit FPO A80 is determined by the installation location The data of the various channels is switched and read using a program that includes the flag for switching converted data Input channel of A D converter unit First Second Third expansion expansion expansion CHO 16 points CH2 16 points CH4 16 points and WX2 WX4 WX6 CH6 16 points X20 to X2F X40 to X4F X60 to X6F CH1 16 points CH3 16 points CH5 16 points and WX3 WX5 WX7 CH7 16 points X30 to X3F X50 to X5F X70 to X7F I O No of FPO I O link unit The I O allocation of FPO I O link unit FPO IOL is determined by the installation location First Second Third expansion expansion expansion Input 32 points X20 to X3F X40 to X5F X60 to X7F Output 32 points Y20 to Y3F Y40 to Y5F Y60 to Y7F 12 11
55. aae 2 6 2 2 Input and Output Specifications 0 0 eee 2 7 2 2 1 Input Specifications 0 cee eee 2 7 2 2 2 Output Specifications week ctaaees dereedeaeeeen 2 9 2 3 Terminal Layout Diagram ase acticaw chine swe eieacte ow beet at eww ate ted 2 11 Chapter3 I O Allocation and Expansion Method Sebi MO AIGCALON ser a cd aot det ies oxen eaut eae a went seul hed ices 3 3 3 1 1 I O Number of FP Control Unit 0 4 3 3 3 1 2 I O Number of FPO Expansion Unit 0 3 3 3 1 3 I O Number of FPO Analog I O Unit 0 3 4 3 1 4 I O Number of FPO A D Conversion Unit 3 4 3 1 5 I O Number of FPO I O Link Unit 3 4 3 2 Adding Expansion Units 0 cee eee eee 3 6 3 2 1 Expansion Method lt 5 vein chad etvande ira Mes ceeeedeas cee 3 6 Table of Contents FP Chapter 4 Installation and Wiring 4 1 Installation enste inaa e ne E Ceed eae ae oe ees 3 3 4 1 1 Installation Environment and Space 00 00ees 4 3 4 1 2 Installation and Removal 00 c cece eee eee ee 4 6 4 2 Wiring of Power Supply c26 i3 2 eee es soe we ale se te a ee cae wae sath we 4 9 4 2 1 Wiring of Power Supply 00 c eee e eee eee 4 9 4 2 2 OSHOUMOING a reese Se eee ae sents teas coe ain ear aaa 2 4 11 4 3 Wiring of Input and Output is at tai ete es ee oe eas ce 4 12 4 3 1 Input Wiring 354 c224cc
56. acter string to a character string S1 S2 D n These instructions write a specified number of charac ters from a character string to a specified position in the character string Replacing character strings S D p n A specified number of characters in a character string are rewritten starting from a specified position in the character string 12 60 FP 12 8 Table of Instructions No Name Boolean Operand Description Integer type data processing instructions Maximum value word data 16 bit Searches the maximum value in the word data table between the S1 and S2 and stores it in the D The address relative to S1 is stored in D 1 Maximum value double word data 32 bit Searches for the maximum value in the double word data table between the area selected with S1 and S2 and stores it in the D The address relative to S1 is stored in D 2 Minimum value word data 16 bit 1 2 D Searches for the minimum value in the word data table between the area selected with S1 and S2 and stores it in the D The address relative to S1 is stored in D 1 Minimum value double word data 32 bit Searches for the minimum value in the double word data table between the area selected with S1 and S2 and stores it in the D The address relative to S1 is s
57. and Suitable Cable 1 8 Functions and Restrictions of the Unit FPx FPx 1 1 Features and Functions of the Unit 1 1 Features and Functions of the Unit Powerful control capabilities All of the functions of a mid scale PLC are packed into the compact body size of the 32 point type FPO A program capacity of 12 k steps is provided as a standard feature so you never have to worry about how much memory is left as you re programming In addition 32 k words are reserved for data registers so large volumes of data can be compiled and multiple operations can be processed without running out of memory A full range of communication functions Using the Tool port RS232C provided as a standard feature on the main unit communication can be carried out with a display panel or computer Additionally communication cassettes with RS232C and RS485 interfaces are available as an option Installing a 2 channel RS232C type communication cassette in the FPX makes it possible to connect two devices with RS232C port A full lineup of communication functions means you can also work with C NET up to 32 units and PLC link function up to 16 units Controlling two devices with RS232C port with one FPx When using the 2 channel RS232C type communication cassette Display panel Two devices with RS232C port can be connected Device with RS232C port The Tool port can be used gg to connect a display panel or other device
58. and a return to the home position is carried out at an initial speed of 100 Hz a maximum speed of 2 000 Hz and an acceleration deceleration time of 150 ms XA HDF F1 DMV H1121 DT200 F1 DMV K100 DT202 F1 DMV K2000 DT204 F1 DMV KO DT208 F1 DMV K150 DT206 F171 SPDH DT200 KO Figure 98 FPx Program of positioning control instruction F171 When the program is run the positioning data table and the pulse output diagram will be as shown below Positioning data table Control code 1 H 1121 Initial speed 2 100 Hz Maximum speed 2 2000 Hz Acceleration deceleration time 3 150ms Deviation counter clear signal 4 Not used Pulse output diagram when near home input is not used Home PON sensor on 2000 Hz 100 Hz 0 Hz 150 ms Pulse output diagram when near home input is used XA on Near home Home sensor on sensor on 2000 Hz 100 Hz 0 Hz 150 ms 150 ms Figure 99 FP Pulse output diagram of F171 instruction 5 30 FPS 5 4 Pulse Output Function 1 Control code 0 Fixed Duty on width 0 Duty 1 2 50 1 Duty 1 4 25 Frequency range 2 0 1 5 Hz to 9 8 kHz 1 48 Hz to 100 kHz 2 191 Hz to 100 kHz Operation mode and output type 20 Type home return CW 21 Type home return CCW 22 Type home return Direct
59. and held at on Reset R Output is set to and held at off Keep Outputs at set trigger and holds until reset trigger turns on No opera No operation tion se Note When relay R1120 or higher or timer T256 or higher or counter C256 or higher is used the number of steps is the number in parentheses 12 45 Specifications FPS Basic function instructions On delay timer TMa n Description After set value n x 0 001 seconds timer contact a is set to on Steps Note After set value n x 0 01 seconds timer contact a is set to on After set value n x 0 1 seconds timer contact a is set to on After set value n x 1 second timer contact a is set to on Auxiliary timer 16 bit Y R L H F137 STMR S DH After set value S x 0 01 seconds the specified output and R900D are set to on Auxiliary timer 32 bit YRL H F183 DSTM S DH After set value S x 0 01 seconds the specified output and R900D are set to on Counter Decrements from the preset value n UP DOWN counter F118 UDC F118 UDC S D Increments or decrements from the preset value S based on up down input Shift register Shifts one bit of 16 bit word internal relay WR data to the left Left
60. and stored in D Data write into FIFO buffer The data of S is written to the buffer starting from D FPS 12 8 Table of Instructions No Name Boolean Basic function instructions UP DOWN counter Operand Description Counts up or down from the value preset in S and stores the elapsed value in D Data rotation instruct Left right shift register 16 bit data right rotation Shifts one bit to the left or right with the area between D1 and D2 as the register Rotate the n bits in data of D to the right 16 bit data left rotation Rotate the n bits in data of D to the left 16 bit data right rotation with carry flag data Rotate the n bits in 17 bit area consisting of D plus the carry flag R9009 data to the right 16 bit data left rotation with carry flag data Rotate the n bits in 17 bit area consisting of D plus the carry flag R9009 data to the left 32 bit data right rotation Rotate the number of bits specified by n of the double words data 32 bits specified by D 1 D to the right 32 bit data left rotation Rotate the number of bits specified by n of the double words data 32 bits specified by D 1 D to the left 32 bit data right rotation with carry flag data Rotate the number of bits specified by n of the double words da
61. exceeding the floating point type data Converts real number data specified by S 1 S to the 16 bit integer data with sign the largest integer not exceeding the floating point data and the converted data is stored in D Floating point type data to 32 bit integer conver sion the largest integer not exceeding the floating point type data Converts real number data specified by S 1 S to the 32 bit integer data with sign the largest integer not exceeding the floating point data and the converted data is stored in D 1 D Floating point type data to 16 bit inte ger conversion rounding the first decimal point down to integer Converts real number data specified by S 1 S to the 16 bit integer data with sign rounding the first decimal point down and the converted data is stored in D Floating point type data to 32 bit inte ger conversion rounding the first decimal point down to integer Converts real number data specified by S 1 S to the 32 bit integer data with sign rounding the first decimal point down and the converted data is stored in D 1 D 12 63 Specifications FPS No Name Boolean Operand Description Floating point Converts real number data specified by S 1 S to the type data to 16 bit integer data with sign rounding the first decimal 16 bit integer point off and the converted data is stored in D convers
62. for pulse output while the execution condition trigger is in the on state Setting the system register When using the pulse output function set the channels corresponding to system registers 400 and 401 to Do not use high speed counter FP 5 4 Pulse Output Function 5 4 2 Types of Pulse Output Method CW CCW output method i Forward Reverse ewes vol FLFLFLELA cowpuse vma LE FUEL L Direction of increas Direction of decreas ing elapsed value ing elapsed value This is a method in which control is carried out using two pulses a forward rotation pulse and a reverse rotation pulse Figure 85 FP Pulse output function CW CCW output method Pulse Sign output method Forward off Reverse on Forward a Reverse gt Pulse Pulse Yo f LELE LELEL FLAELA LAL Rotation Y1 CEE en direction Sign Direction of increas Direction of decreas ing elapsed value ing elapsed value This is a method in which control is carried out using one pulse output to specify the speed and on off signals to specify the direction of rotatin In this mode forward rotation is carried out when the rotation direction Sign signal is off Figure 86 FP Pulse output function Pulse sign output method 1 Pulse Sign output method Forward on Reverse off Forward o Reverse Puise Puise vo F LALF LFL FULLU Rotation Y1 on OFE direction Sign Direction of increas Dire
63. forward on reverse off forward off reverse on forward on reverse off 2 Frequency Hz K constant 1 5 Hz to 9 8 KHz K1 to K9800 units Hz Maximum error near 9 8 kHz approximately 1 kHz 48 Hz to 100 KHz K48 to K100000 units Hz Maximum error near 100 kHz approximately 3 kHz 191 Hz to 100 KHz K191 to K100000 units Hz Maximum error near 100 kHz approximately 0 8 kHz Set K1 to specify 1 5 Hz 3 Acceleration deceleration time ms K constant K30 to K32767 4 Target value K constant K 2147483648 to K2147483647 Figure 94 FP Control code of F171 instruction High speed Counter and Pulse Output Functions FP Pulse output instruction F172 JOG operation This instruction is for JOG operation by obtaining a pulse from the desired output when the execution condition trigger turns on While XB is in the on state a pulse of 300HZz is output from YO XB H F1 DMV H1110 DT300 F1 DMV K300 DT302 F172 PLSH DT300 KO Figure 95 FPX Program of pulse output instruction F172 When the program is run the data table and the pulse output diagram will be as shown below Data table Control code 1 Frequency 2 Pulse output diagram XB JOG command of 300 Hz yy Figure 96 FP Pulse output diagram of F172 instruction FPS 5 4 Pulse Output Function 1 Control code
64. in all of the PLCs on the same network Link relay If the link relay LO for the unit No 1 is turned on the status change is fed back to the ladder programs of other units and the YO of the other units is output RS485 No 2 Link register gt fool e No 3 Link register oo y RO No 4 Link al S LHro MV K100 LDO LDO 100 No 1 Link register Link register If a constant of 100 is written to the LDO of unit No 1 the contents of LDO in unit No 2 are also changed to a constant of 100 Figure 203 FPZ Overview of PLC link operation FPx 9 2 Communication Parameter Settings 9 2 Communication Parameter Settings This section contains the communication parameter settings communication mode communication format unit No and link area allocation when using PLC link function 9 2 1 Setting of Communication Mode In the default settings the COM ports are not set so that communication is enabled Communication mode settings are entered using the FPWIN GR programming tool Select PLC Configuration under Option O on the menu bar and click on the COM Port tab There are separate settings for the COM 1 and COM 2 ports PLC Configuration setting dialog box PLC Configuration p08p FP Hold Non hold 1 Hold Non hold2 Action on Error Time Link High Speed Counter Interrupt Input Tool Port COMI Port COM
65. in order in D 16 bit data digit distribute Each of the digits of the data of S are stored in distributed to the least significant digits of the areas beginning at D Character strings instruction F95 Data conversion instructions ASCII code conversion 16 bit table data search S D S1 S2 S3 Twelve characters of the character constants of S are converted to ASCII code and stored in D to D 5 The data of S1 is searched for in the areas in the range S2 to S3 and the result is stored in DT90037 and DT90038 15 32 bit table data search S1 S2 S3 The data of S1 1 S1 is searched for in the 32 bit data designated by S3 beginning from S2 and the result is stored in DT90037 and DT90038 12 55 Specifications FPS No Name Boolean Operand Description Data buffer instructions Data table shift out and compress Transfer D2 to D3 Any parts of the data between D1 and D2 that are 0 are compressed and shifted in order toward D2 Data table shift in and compress Right shift of n bits in a 16 bit data Transfer S to D1 Any parts of the data between D1 and D2 that are 0 are compressed and shifted in order toward D2 Shifts the n bits of D to the right Left shift of n bits in a 16 bit data Shifts the n b
66. is used Pulses are output from CHO Figure 122 FPX Sample program JOG operation direction program Pulse output instruction JOG operation The data table headed by DT300 is used and pulses are output from CHO Pulse output diagram side side Motor gt yj XB JOG command of l l 300Hz 4 i OHz Figure 123 FPX Sample program JOG operation pulse output diagram JOG operation minus direction While XC is in the on state a pulse is output from CCW output Y1 of specified channel CHO Program xc Data table How una oro J peeo a F1 DMV K 300 DT 312 Frequency speed 300 Hz Control code Duty 1 4 25 48 Hz to 100 kHz Decremental counting CCW F172 PLSH Pulse output instruction JOG operation The data table headed by DT310 is used and pulses are output from CHO The data table headed by DT310 is used Pulses are output from CHO Figure 124 FPX Sample program JOG operation diagram program Pulse output diagram p g XC JOG command of T LTL side side 300Hz veso w I OHz Motor p o Figure 125 FP Sample program JOG operation pulse output diagram 5 46 FP 5 4 Pulse Output Function Emergency stop over limit If XD turns off while a pulse is being output from YO the output of the pulse is stopped Program XD H DF H Fo MV H8 DT 90052 Pulse output control clear Fo mv HO DT
67. more actual usage value approx 840 days 25 C Periodic replacement interval 1 year value applies when no power is supplied at all Comment input function Available 128k byte Without backup battery next page 12 5 Specifications FPX io p ae Link function Computer link 1 1 1 N Note 4 General purpose communication 1 1 1 N Note 4 Note 5 PLC link Note 6 Other functions Program edition during RUN constant scan forced on off and password se Notes 1 If no battery is used only the fixed area is backed up counters C1008 to C1023 internal relays R900 to R97F data registers DT32710 to DT32764 When the optional battery is used data can be backed up Areas to be held and not held can be specified using the system registers 2 The number of points can be increased by using an auxiliary timer 3 Precision of calender timer At 0 C 32 F less than 119 second error per month At 25 C 77 F less than 51 seconds error per month At 55 C 131 F less than 148 seconds error per month 4 An optional communication cassette RS232C type is required in order to use 1 1 communication 5 An optional communication cassette RS485 type is required in order to use 1 N communication 6 An optional communication cassette RS485 type is required If a communication cassette is installed and communication is being carried out re send processing is recomme
68. ni ie eek ied ave eted ntawhigd oan 4 12 43 2 SOUIDUL WIKIO sssr eases eti ope gedees aan vases wee ee xe 4 15 4 3 3 Precautions Regarding Input and Output Wirings 4 15 4 4 Wiring of MIL Connector Type 0 06 e eee 4 16 4 5 Safety Measures nenecese niai ee eee ean ote el E RAEE GG Ea 4 19 4 5 1 Safety Measures tu aici eee ey eee ade eee ae 4 19 4 5 2 Momentary Power Failures 02 20 eee eee eee 4 20 4 5 3 Protection of Power Supply and Output Sections 4 20 4 6 Backup Battery ccs soy iiai eee ee ea ee ee ee 4 21 4 6 1 Installation of Backup Battery 0 c ee eee 4 21 4 6 2 System Register Setting cc eee eee 4 22 4 6 3 Lifetime of Backup Battery 0 0 cee eee eee 4 23 Chapter5 High speed Counter and Pulse Output Functions 5 1 Overview of Each Functions i225 ccs ca4eieded bodweatabiokend aes 5 3 5 1 1 Three Functions that Use Built in High speed Counter 5 3 5 1 2 Performance of Built in High speed Counter 5 4 5 2 Function Specifications and Restricted Items 2 2005 5 5 5 2 1 Table of Specifications lt lt ld sis ected eee daar eeee toes 5 5 5 2 2 Function being Used and Restrictions 5 7 5 3 High speed Counter Function 00 c eee ee eee eee 5 9 5 3 1 Overview of High speed Counter Function 5 9 5 3 2 Types of Input Modes 0 2 cece eee eee 5 9 5 3
69. not being used Do not designate any unit other than those at both ends of the network as a terminal station Procedure 3 Check that link areas do not overlap Self Diagnostic and Troubleshooting FPx 11 12 Chapter 12 Specifications 12 1 Table of Specifications 0 cc cece nee 12 3 12 1 1 General Specifications 12 3 12 1 2 Performance Specifications 12 5 12 2 IO No Allocation oes rege te ees ele eee eee 12 10 12 3 Relays Memory Areas and Constants 12 12 12 4 Table of System Registers 00eeeeee 12 14 12 4 1 System Registers aaaaaannnnnn 12 14 12 4 2 Table of System Registers 12 16 12 5 Table of Special Internal RelayS 4 12 21 12 6 Table of Special Data Registers 12 28 12 7 Table of Error Cords 0 ccvec cence eee 12 42 12 7 1 Table of Syntax Check Error 12 42 12 7 2 Table of Self Diagnostic Error 12 43 12 8 Table of Instructions 0 0 cece eee 12 44 12 9 MEWTOCOL COM Communication commands 12 66 12 10 Hexadecimal Binary BCD 6 20ce cease 12 67 1211 ASCI COGCS sein skate eet mee Peewee ey 12 68 Specifications FPS 12 2 FPS 12 1 Table of Specifications 12 1 Table of Specifications 12 1 1 General Specifications item Description O Rated operating voltage 24 V DC Operating voltage
70. occurs 01 OOOO Cp Data read BOG e 4 Error code Empty data transmission with F159 MTRN Reception R9039 off and R9038 off Reception buffer writing point reset 14 5 O 7 8 D Figure 191 FP Procedure of communication FP series PLC Communication Function 2 General purpose Serial Communication FP Sample program The following shows an example in which an FP series PLC is connected to the COM 1 port R10 RO ai DF 1 Data transmission command The internal relay R10 is turned on at the R10 timing of the transmission condition RO F95 ASC M 01 RDD00000 DT101 Data conversion 01 RDD00000 is converted to ASCII code and written to DT101 to DT106 F95 ASC M 00001 u DT107 00001 is converted to ASCII code and written to DT107 to DT112 Ten spaces inserted F1 59MTRN pTi00 K19 K1 Data transmission The data in the transmission buffer is sent With DT100 as the transmission buffer from the COM port 1 the contents consisting of 19 bytes of it are sent to COM 1 K1 port DF 1l Reception done detection The internal relay R11 is turned on at the R11 Reception done R9038 timing F10 BKMV D201 DT208 DTO Retrieving received data The received data in the received buffer is The contents of 8 words from DT201 to DT208 read from the area in which it is stored are written to data registers DTO to DT7 DT201 to
71. of BCD data specified by S to 16 bits of binary data and stores it in D Example H100 K100 32 bit binary data 8 digit BCD data Converts the 32 bits of binary data specified by S 1 S to eight digits of BCD data and stores it in D 1 D 8 digit BCD data 32 bit binary data Converts the eight digits of BCD data specified by S 1 S to 32 bits of binary data and stores it in D 1 D 16 bit data in vert comple ment of 1 Inverts each bit of data of D 16 bit data complement of 2 Inverts each bit of data of D and adds 1 inverts the sign 32 bit data complement of 2 Inverts each bit of data of D 1 D and adds 1 inverts the sign 16 bit data ab solute Gives the absolute value of the data of D 32 bit data ab solute Gives the absolute value of the data of D 1 D 16 bit data sign extension Extends the 16 bits of data in D to 32 bits in D 1 D Decode Decodes part of the data of S and stores it in D The part is specified by n 7 segment decode Converts the data of S for use in a 7 segment display and stores it in D 1 D Encode Encodes part of the data of S and stores it in D The part is specified by n 16 bit data digit combine The least significant digit of each of the n words of data beginning at S are stored united
72. purpose communication It goes off when transmission is requested when using general purpose communication R904A to R904F Not used R9050 MEWNET WO PLC link transmission error flag When using MEWNET WO turns on when transmission error occurs at PLC link turns on when there is an error in the PLC link area settings R9051 to R905F Not used 12 25 Specifications FPS Relay No Name Description R9060 MEWNET WO Unit No Turns on when Unit No 1 is communicating properly in the PLC link PLC link mode Turns off when operation is stopped when transmission an error is occurring or when not in the PLC link mode assurance relay 7 TER R9061 Turns on when Unit No 2 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9062 Unit No Turns on when Unit No 3 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9063 Unit No Turns on when Unit No 4 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9064 Turns on when Unit No 5 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9065 Unit No Turns on
73. side 5 pi RD Received Data RD Request to Send Figure 189 FP Connection example with FP series PLC 1 e When using the RS232C 2 channel type of communication cassette FPO Connection with COM port FPO COM port FPZ side 5 pin side 3 pin Rt Received Datat RD R2 Received Data2 RD To other device FPO Connection with COM port FP side 5 pin FP1 COM port side 9 pin 2 Tat Received Data 1 RD os Pe Revina RD ee ae a ee To other device Figure 190 FPZ Connection example with FP series PLC 2 8 24 FP 8 3 Connection Example with External Devices Procedure of communication In this example an FP series PLC is connected to the COM 1 port and K100 is being stored to DTO of the PLC on the other end and K200 to DT1 FP series PLC w Hs aso u acrzaperass 010 J ew o ov J we HEren ono e Kt J Ladder program Data register RS232C port Data area read command is o set in transmission buffer d Data transmission with F159 MTRN po R9039 off and R9038 off o Arion bufer writing pointreset Te Data area reading command 01 RDD00000 00001 CR transmission Pe Transmission done flag R9039 on D Transmission Data register value of PLC on other end is received e If normal 01 RD6400C8006FCR A Reception done flag R9038 on If error
74. status for the selected system register are displayed To change the value and setting status write in the new value and or select the setting status 4 To register these settings click on the OK button 12 14 FP 12 4 Table of System Registers Precautions for system register setting Sytem register settings are effective from the time they are set However MEWNET W0O PLC link settings input settings tool port and COM ports communication settings become effective when the mode is changed from PROG to RUN With regard to the modem connection setting when the power is turned off and on or when the mode is changed from PROG to RUN the controller sends a command to the modem which enables it for reception When the initialized operation is performed all set system register values parameters will be initialized 12 15 Specifications FPZ 12 4 2 Table of System Registers Starting number setting for counter Default value 1008 Descriptions 0 to 1024 Hold type area starting number setting for timer and counter 1008 0 to 1024 Hold type area starting number setting for internal relays 90 0 to 98 Hold type area starting number setting for data registers 32710 0 to 32765 Hold or non hold setting for step ladder process Non hold Hold Non hold Hold type area starting number for PLC link relays 64 0 to 64 Hold type area starting numb
75. this will cause an error so that communication cannot be carried out Link relay allocation FPS FPX FPZ Unit No 1 Unit No 2 Unit No 3 Transmitted p Pacsived area I P area Received area j Transmitted K Received area 3 Transmitted lt p Received area area Figure 214 Precautions when allocating link relay area System register Set value of various control unit No 1 No 2 No 3 Range of link relay used for PLC link Starting no for link relay transmission Link relay transmission size Communication Function 3 PLC Link Function FP Unallowable allocations Allocations such as those shown below are not possible either for link relays or link registers Allocations in which the transmitted area is split Transmitted area Transmitted area Figure 215 Unallowable allocation example 1 Allocations in which the transmitted and received areas are split into multiple segments Transmitted area Received area Transmitted area Transmitted area Received area Transmitted area Figure 216 Unallowable allocation example 2 FP 9 3 Connection Example of PLC Link 9 3 Connection Example of PLC Link This section contains the connection example of PLC link 9 3 1 Using a PLC Link with Three FP gt Units In the example shown here link relays are used and when X1 of the control unit of unit no 1 goes on Y10 of the control unit of unit no 2 go
76. to K999 0 0 to 99 9 If the control code is K20 to K24 the duty is KO to K990 0 to 99 Values are specified in units of 1 K10 digits below the decimal point are rounded off S Note If a value outside the specified range is written for the duty area while the instruction is being executed the frequency that is output will be uncorrected Written data is not corrected however High speed Counter and Pulse Output Functions FP Chapter 6 6 1 6 2 6 3 6 4 Communication Cassette Communication Functions of FP 20 4 6 3 6 1 1 Functions of Communication Cassette 6 3 Communication Cassette 000c cece eens 6 6 6 2 1 Type of Communication Cassette 6 6 6 2 2 Names and Principle Applications of the POr neiaa a R RE E RRA RTE 6 7 6 2 3 Communication Specifications of Communication Cassette 6 8 Attachment of Communication Cassette 6 10 6 3 1 Attachment Procedure 6 10 Wiring of Communication Cassette 6 11 6 4 1 Wiring the Connector with the Communication Cassette 6 11 6 4 2 Tool for Tightening Communication Connector Terminal Block 6 12 6 4 3 Wiring Method ssaaaaaaaaaaaaaan 6 12 6 4 4 Cautions Regarding Wiring 6 12 Communication Cassette FP FPx 6 1 Communication Functions of FP 6 1 Communication Functions of FP gt This section exp
77. under special conditions The on and off states are not output externally Writing is not possible with a programming tool or an instruction Relay No Name Description Self diagnostic error flag Turns on when a self diagnostic error occurs The content of self diagnostic error is stored in DT90000 Not used Not used Not used I O verification error flag Turns on when an I O verification error occurs Backup battery error flag non hold Turns on for an instant when a backup battery error occurs Backup battery error flag hold Turns on and keeps the on state when a backup battery error occurs Once a battery error has been detected this is held even after recovery has been made It goes off if the power supply is turned off or if the system is initialized Operation error flag hold Turns on and keeps the on state when an operation error occurs The address where the error occurred is stored in DT90017 indicates the first operation error which occurred Operation error flag non hold Turns on for an instant when an operation error occurs The address where the operation error occurred is stored in DT90018 The contents change each time a new error occurs Carry flag This is set if an overflow or underflow occurs in the calculation results and as a result of a shift system instruction being executed gt flag Turns on for an instant when the compared resu
78. up to 30 kHz d g g Example 2 While in the two phase input mode and using the two channels CHO and CH2 CHO and CH2 can be used up to 15 kHz The maximum output frequency when using the pulse output function will differ depending on the number of channel being used as shown in the table on page 5 6 MM Example 1 When using only one channel CHO up to 100 kHz can be used d g g Example 2 When using two channels CHO and CH2 up to 60 kHz may be used for each channel If using both the pulse output function and the high speed counter function the following combinations result A Example 1 When using one pulse output channel with a maximum output of 100 kHz the maximum counting speed of the high speed counter is 20 kHz in the single phase and three channels mode d Wiz Example 2 When using one pulse output channel with a maximum output of 100 kHz the maximum counting speed of the high speed counter is 20 kHz in the two phase and one channel mode FPx 5 3 High speed Counter Function 5 3 High speed Counter Function This section explains about the high speed counter function of FP 5 3 1 Overview of High speed Counter Function High speed counter function The high speed counter function counts the input signals and when the count reaches the target value turns on and off the desired output To turn on an output when the target value is matched use the target v
79. val read of the DT90044 ue area Note DT90045 DT90044 elapsed value ao of high speed DT90044 Transfers value in high speed counter elapsed value counter D area Note DT90045 DT90044 to D 1 D Target value n S D Turns output Yn on when the elapsed value of the much on built in high speed counter reaches the target value of instruction S 1 S with channel specification Target value Turns output Yn off when the elapsed value of the much off built in high speed counter reaches the target value of instruction S 1 S with channel specification 12 58 FPS 12 8 Table of Instructions No Name Boolean Pulse output instruction with channel specification Table shaped control and home return Operand Description Positioning pulses are output from the specified output in accordance with the contents of the data table that starts with S Pulse output instruction with channel specification JOG operation Pulse strings are output from the specified output in accordance with the contents of the data table that starts with S Pulse output instruction with channel specification PWM output Basic function instruction PWM output is output from the specified output in ac cordance with the contents of the data table that starts with S F183 Auxiliary timer 32 bit DSTM Turn on the specified output and R900D after se
80. value 32 bit data for the high speed counter is stored here The value can be read and written by executing F1 DMV instruction 12 38 FPx 12 6 Table of Special Data Registers A Available N A Not available Name Description Reading Writing DT90206 High speed Forch3 The target value 32 bit data of the high speed counter target counter specified by the high speed counter value instruction is stored here Target values have been preset for the various DT90207 instructions to be used when the high speed counter related instruction F166 F167 and F171 to F173 is executed The value can be read by executing F1 DMV instruction DT90208 Not used to DT90218 12 39 Specifications FPS Address Name A Available N A Not available Description Reading Writing DT90219 Unit station No selection for DT90220 to DT90251 0 Unit station number 1 to 8 1 Unit station number 9 to 16 A N A DT90220 DT90221 DT90222 DT90223 PLC link unit station No 1 org System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 DT90224 DT90225 DT90226 DT90227 PLC link unit station No 2 or 10 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 DT90228 DT90229 D
81. when Unit No 6 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9066 Unit No Turns on when Unit No 7 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9067 2 Turns on when Unit No 8 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9068 Unit No Turns on when Unit No 9 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R9069 Unit No Turns on when Unit No 10 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R906A i Turns on when Unit No 11 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R906B Unit No Turns on when Unit No 12 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R906C Unit No Turns on when Unit No 13 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or wh
82. 0 DT90111 A 655 t 651 ba i 643 640 Process No cess 832 to 847 1 Executing 0 Not executing DT90112 Step ladder pro cess 848 to 863 A programming tool software can be used to write data Step ladder pro cess 864 to 879 Step ladder pro cess 880 to 895 DT90116 Step ladder pro cess 896 to 911 DT90117 Step ladder pro cess 912 to 927 DT90118 Step ladder pro cess 928 to 943 DT90119 Step ladder pro cess 944 to 959 DT90120 Step ladder pro cess 960 to 975 DT90121 Step ladder pro cess 976 to 991 DT90122 Step ladder pro cess 992 to 999 Higher byte not used DT90113 DT90114 DT90115 12 36 FPS 12 6 Table of Special Data Registers Address Name A Available N A Not available Description Reading Writing DT90123 to DT90125 Not used DT90126 Forced on off operating unit No display Used by the system DT90127 to DT90139 Not used N A N A DT90140 DT90141 DT90142 DT90143 DT90145 DT90146 DT90147 MEWNET WO PLC link status The number of times the receiving operation is performed The current interval between two receiving operations val ue in the register x 2 5ms The minimum interval between two receiving operations value in the register x 2 5ms The maximum interval between two receiving operations
83. 0 E WHE m S B oL g AFP0811 1 30 mm 1 18 in 6 mm 0 24 in Figure 29 FPx Installation optional slim 30 type mounting plate The rest of the procedure is the same as that for attaching the unit to the DIN rails Installation Removal Figure 30 FPZ Installation using slim 30 type mounting plate When using an expansion unit tighten the screws after joining all of the slim 30 type mounting plate to be connected Tighten the screws at each of the four corners Example Two expansion units 30 0 mm 1 18 in Q i O 60 0 mm 2 36 in lt gt Figure 31 FPZ Installation using two expansion units Installation and Wiring FPx When using the flat type mounting plate AFP0804 Use M4 size pan head screws for attachment of the flat type mounting plate and install according to the dimensions shown below e a acm ur 60 0 mm 2 36 in AF P0804 2 ls EEN g Figure 32 FPx Installation optional flat type mounting plate Raise the expansion hooks on the top and bottom of the unit Align the expansion hooks with the mounting plate and press the hooks on the top and bottom Installation Removal 1443 14 E a g LH El a EIEN 8 ag 14 Figure 33 FPx Installation using flat
84. 0 as high speed settings X0 to X2 Do not set in counter put XO as 2 phase input X0 X1 high speed 2 phase input X0 X1 Reset counter input X2 Incremental input X0 Incremental input X0 Reset input X2 Decremental input X0 Decremental input X0 Reset input X2 Individual input XO X1 Individual input X0 X1 Reset input X2 Direction decision X0 X1 Direction decision X0 X1 Reset input X2 CH1 Do not set input X1 as high Do not set in speed counter put X1 as Incremental input X1 high speed Incremental input X1 Reset counter input X2 Decremental input X1 Decremental input X1 Reset input X2 High speed counter operation mode CH2 Do not set input X3 as high speed settings X3 to X5 Do not set in counter put X3 as 2 phase input X3 X4 high speed 2 phase input X3 X4 Reset counter input X5 Incremental input X3 Incremental input X3 Reset input X5 Decremental input X3 Decremental input X3 Reset input X5 Individual input X3 X4 Individual input X3 X4 Reset input X5 Direction decision X3 X4 Direction decision X3 X4 Reset input X5 CH3 Do not set input X4 as high Do not set in speed counter put X4 as Incremental input X4 high speed Incremental input X4 Reset counter input X5 Decremental input X4 Decremental input X4 Reset input X5 12 17 Specifications FPZ Default Descr
85. 00 ee aee 8 3 8 1 2 Program of General purpose Serial Communication a an ccc cee ee 8 5 8 1 3 Communication Parameter Settings when Using General purpose Serial Communications 8 6 Overview of Communication with External Devices 8 8 8 2 1 Data Transmission to External Device 8 8 8 2 2 Receiving Data from External Device 8 12 Connection Example with External Devices 8 16 8 3 1 Connection Example with External Device 1 1 communication with Micro Imagechecker 020ee 8 16 8 3 2 Connection Example with External Device 1 1 communication with FP series PLC 8 22 Data Transmitted and Received with the FP 8 29 1 N communication 000 0c anaana 8 31 8 5 1 Overview of 1 N Communication 8 31 8 5 2 Communication Cassette Used with 1 N Communication 5 4 3 09326G48 weaned ae Sts 8 31 8 5 3 Setting of System Register 8 32 Flag Operations When Using Serial Communication 8 33 8 6 1 When STX not exist is Set for Start Code and CR is Set for End Code 8 33 8 6 2 When STX is Set for Start Code and ETX is Set for End Code 0002e eee 8 35 Changing the Communication Mode of COM Port 8 37 Communication Function 2 General purpose Serial Communication FP FP 8 1 General purpose Serial Communication 8 1 General purpose Serial Communication This section contains overview of
86. 000 0000 0000 1110 0000 0000 0000 1111 0000 0000 0000 1000 0000 0000 0000 1001 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 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 0000 0000 0010 0000 0000 0000 0010 0001 0000 0000 0010 0010 0000 0000 0010 0011 0000 0000 0001 1000 0000 0000 0001 1001 0000 0000 0001 1010 0000 0000 0001 1011 0000 0000 0001 1100 0000 0000 0001 1101 0000 0000 0001 1110 0000 0000 0001 1111 0000 0000 0010 0100 0000 0000 0010 0101 0000 0000 0010 0110 0000 0000 0010 0111 0000 0000 0010 1000 0000 0000 0010 1001 0000 0000 0011 0000 0000 0000 0011 0001 0000 0000 0011 1111 0000 0000 1111 1111 0010 0111 0000 1111 0000 0000 0110 0011 0000 0010 0101 0101 1001 1001 1001 1001 12 67 Specifications FPS 12 11 ASCII Codes ASCII HEX code 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 2D me pan a w 2 E a D a 7 oO oO I NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DEL DC DC DC3 DC NAK SYN ETB CAN EM SUB ESC FS GS RS US SPA CE oO DEL 12 68
87. 16 bit data in the comparative condition S1 lt S2 Connects a contact in parallel by comparing two 16 bit data in the comparative condition S1 s S2 32 bit data comparison Start Begins a logic operation by comparing two 32 bit data in the comparative condition S1 1 S1 S2 1 S2 Begins a logic operation by comparing two 32 bit data in the comparative condition S1 1 S1 S2 1 S2 Begins a logic operation by comparing two 32 bit data in the comparative condition S1 1 S1 gt S2 1 S2 Begins a logic operation by comparing two 32 bit data in the comparative condition S1 1 S1 S2 1 S2 Begins a logic operation by comparing two 32 bit data in the comparative condition S1 1 S1 lt S2 1 S2 Begins a logic operation by comparing two 32 bit data in the comparative condition S1 1 S1 lt S2 1 S2 12 49 Specifications FPS 32 bit data Connects a contact serially by comparing two comparison 32 bit data in the comparative condition S1 1 AND 1 S2 1 S2 Connects a contact serially by comparing two 32 bit data in the comparative condition S1 1 S1 4 S2 1 S2 Connects a contact serially by comparing two 32 bit data in the comparative condition S1 1 1 gt S2 1 S2 Connects a contact serially by comparing two 32 bit data in the comparative condition S1 1
88. 2 Port No 410 Unit No fi aa No 412 Comm Mode GATENE Modem Enabled J Noais Bommunication Format Nosio Baudrete her Bit E Bits z Temna cr z 115200 bps v Parity Oad zj Header Cancel Heades Initialize Help STX not exist v Stop Bit fi T No 416 Starting address for data received of fo 0 32766 serial data communication mode Buffer capacity setting for data received of 2048 peu serial data communication mode Deca Figure 204 FPWIN GR PLC Configuration setting dialog box No 412 Communication Mode Comm Mode Select the COM port communication mode Click on the button and select PC Link from the displayed pull down menu Las Tip When using a PLC link the communication format and baud rate are fixed as shown below Communication format Character Bit 8 bits Parity Odd Stop Bit 1 Baud rate 115200 bps Communication Function 3 PLC Link Function FPx 9 2 2 Setting of Unit No Unit No In the default settings in the system registers the Unit No parameter for the communication port is set to 1 In a PLC link that connects multiple PLCs on the same transmission line the Unit No parameter must be set in order to identify the various PLCs Max 16 units Cet tT ft 7 fy RS485 Figure 205 FP Unit No for PLC link The unit number is a number assigned to a given PLC in order to
89. 29 seconds it will be moved down and if the between 30 and 59 seconds it will be moved up In the example above if the time was 5 minutes 29 seconds it will become 5 minutes 0 second and if the time was 5 minutes 35 seconds it will become 6 minutes 0 second 12 33 Specifications FPS DT90059 Serial communication error code A Available N A Not available Error code is stored here when a communication error occurs Name Description Reading Writing DT90060 Step ladder process 0 to 15 DT90061 Step ladder process 16 to 31 DT90062 Step ladder pro cess 32 to 47 DT90063 Step ladder pro cess 48 to 63 DT90064 Step ladder pro cess 64 to 79 DT90065 Step ladder pro cess 80 to 95 DT90066 Step ladder pro cess 96 to 111 DT90067 Step ladder pro cess 112 to 127 DT90068 Step ladder pro cess 128 to 143 DT90069 Step ladder pro cess 144 to 159 DT90070 Step ladder pro cess 160 to 175 DT90071 Step ladder pro cess 176 to 191 DT90072 Step ladder pro cess 192 to 207 DT90073 Step ladder pro cess 208 to 223 DT90074 Step ladder pro cess 224 to 239 DT90075 Step ladder pro cess 240 to 255 DT90076 Step ladder pro cess 256 to 271 Indicates the startup condition of the step ladder process When the proccess starts up the bit
90. 412 Comm Mode Computer Link fa Modem Enabled No 413 Communication Format No 415 Baudrate pemp Initialize Char Bit 18 Bits FF Teminat E R E 9600 bps hd Parity Odd E Header S Help Stop Bit 1 hal No 41g Starting address for data received of a 0 32766 serial data communication mode Buffer capacity setting for data received of I k bgi serial data communication mode 2048 er Figure 148 FPWIN GR PLC Configuration setting dialog box No 412 Communication Comm Mode Select the COM port operation mode Click on the button and select Computer Link from the displayed pull down menu No 413 for COM 1 port No 414 for COM 2 port Communication Format setting The default settings for the communication Char Bit n n 8 Bits format are as shown at the right Parity aeneae Odd To change the communication format to match Stop Bit 1 Bit an external device connected to the COM port Terminator CR enter the settings for the various items AAR cose 2ccxhex a 2 STX not exist No 415 Baud rate communication speed setting The default setting for the communication speed for the various ports is 9600 bps Change the communication speed to match the external device connected to the COM port Click on the button and select one of the values from 2400 bps 4800 bps 9600 bps 19200 bps 38400 bps 57600 bps 115200 bps on the displayed
91. 445464748 ES ABCDEFGH Dale 2a DT Data transmission using F159 MTRN instruction E buffer 7 Device with RS232C port Figure 172 FP Data transmission explanatory diagram Explanation of data table This is used as a data table for transmission starting at the data register specified in G At the beginning of transmission S ae the number of bytes to be transmitted is set _ Atthe end of transmission 0 is set Transmission data The circled numbers indicate the order of transmission S n 2n n t Figure 173 FPx Data table for transmission Use an FO MV or F95 ASC instruction to write the data to be transmitted to the transmission data storage area specified in S Communication Function 2 General purpose Serial Communication FP Explanation during transmission This is used as a data table for transmission starting at the data register specified in iS When the execution condition of the F159 MTRN instruction turns on operation is as follows when the transmission done flag R9039 R9049 is on 1 n is preset in S The reception done flag R9038 R9048 is turned off and the reception data number is cleared to 0 2 The set data is transmitted in order from the lower order byte in S 1 of the table During transmission the transmission done flag R9039 R9049 turns off If system register 413 or 414
92. 5s cents utes ase a kek SES 4 12 4 3 2 Output Wiring cece eee 4 15 4 3 3 Precautions Regarding Input and Output WiringS ici ea eele heme Bae adlon bet 4 15 Wiring of MIL Connector Type 00 204 4 16 Safety Measures 0 ents 4 19 4 5 1 Safety Measures 00 cece neee 4 19 4 5 2 Momentary Power Failures 4 20 4 5 3 Protection of Power Supply and Output Sections ip woh sin ni eeeand eas 4 20 Backup Battery epic dee hat AR huh ence dd Sree 4 21 4 6 1 Installation of Backup Battery 4 21 4 6 2 System Register Setting 4 22 4 6 3 Lifetime of Backup Battery 4 23 Installation and Wiring FPZ FPS 4 1 Installation 4 1 Installation This section explains installation environment and installation method of FP 4 1 1 Installation Environment and Space Avoid installing the unit in the following locations Ambient temperatures outside the range of 0 C to 55 C 32 F to 131 F Ambient humidity outside the range of 30 to 85 RH Sudden temperature changes causing condensation Inflammable or corrosive gases Excessive airborne dust metal particles or salts Benzine paint thinner alcohol or other organic solvents or strong alkaline solutions such as ammonia or caustic soda Excessive vibration or shock Direct sunlight Water or oil in any form including spray or mist Measures regarding noise Influence from power transmiss
93. 6 points common Either the positive or negative of the input power supply can be connected to common terminal Min on voltage Min on current For XO X1 X3 X4 19 2 V DC 6 mA For X2 X5 to XF 19 2 V DC 3 mA Max off voltage Max off current 2 4 V DC 1 3 mA Input impedance For XO X1 X3 X4 3 KQ For X2 X5 to X7 5 6 kQ For X8 to XF 6 8 kQ Response time For XO X1 X3 X4 5 us or less For X2 X5 to X7 100 us or less For X8 to XF 2 ms or less on gt off Same as above Operating mode indicator se Note LED display X0 through X7 are inputs for the high speed counter and have a fast response time If used as normal inputs we recommend inserting a timer in the ladder program as chattering and noise may be interpreted as an input signal Also the above specifications apply when the rated input voltage is 24 VDC and the temperature is 25 C 70 F Specifications and Functions of the Unit FPx Limitations on number of simultaneous input on points Keep the number of input points per common which are simultaneously on within the following range as determined by the temperature C32T at 24 V DC at 26 4 V DC Number of 16 points per common 1 which are si multaneous 8 on 46 52 55 107 8118 6 124 Ambient temperature C F Figure 11 FPx Limitations on number of simultaneous input on points Internal circuit diagram X0 X1 X3 X4
94. 9048 flag on and off The received data is stored in the received buffer specified by the system register Data can be received when the F159 MTRN instruction turns the Reception done flag R9038 or R9048 off Communication Function 2 General purpose Serial Communication FP 8 1 3 Communication Parameter Settings when Using General purpose Serial Communications Setting of baud rate and communication format In the default settings the COM port is set to the computer link mode When communication is carried out system register settings should be entered for the following items Settings for the COM port baud rate and transmission format are entered using the FPWIN GR programming tool Select PLC Configuration under Option O on the menu bar and click on the COM 1 amp 2 Port tab There are separate settings for the COM 1 and COM 2 ports PLC Configuration setting dialog box PLC Configuration p08p FP Hold Non hold 1 Hold Non hold 2 Action on Error Time Link High Speed Counter Interrupt Input Tool Port COMI Port COM2 Port No 410 Unit No 1 hed Cancel No 412 Comm Mode eO AA T NTT Bead Fils Modem Enabled I No 413 Communication Format No45 Baudrate Char Bit E Bits v Terminator CR E 3600 bps z Parity Odd Header STX not exist W Initialize Help Stop Bit 1 ha Starting address for data received of j 7 Hadis serial da
95. Communication Specifications of Communication Cassette Serial communication specifications 1 1 communication Note 1 Communication method Half duplex communication Synchronous method Start stop synchronous system Transmission line RS232C Transmission distance Total length 3m 9 84 ft Transmission speed Baud rate 9600 bits s to 115 2 k bits s Note 2 Transmission code ASCII Transmission data format Stop bit 1 bit 2 bit Parity None Even Odd Data length Character bits 7 bit 8 bit Note 2 Interface Conforming to RS232C Connection using terminal block lt Notes 1 The RS232C type of communication cassette is necessary in order to use the serial communication function 1 1 communication 2 The transmission speed baud rate and transmission format are specified using the system registers Serial communication specifications 1 N communication Note 1 Communication method Two wire half duplex communication Synchronous method Start stop synchronous system Transmission line Twisted pair cable or VCTF Transmission speed Baud rate 9600 bits s to 115 2 k bits s Note 2 Transmission code ASCII Transmission data format Stop bit 1 bit 2 bit Parity None Even Odd Data length Character bits 7 bit 8 bit Note 2 Number of unit station Max 32 units stations Interface Conforming to RS485 Connection using terminal block
96. F148 ERR If the mode selector switch has been set to the RUN position the error is cleared and at the same time operation is enabled If the problem that caused the error has not been eliminated it may look in some cases as though the error has not been cleared as Tip When an operation error error code 45 occurs the address at which the error oc curred is stored in special data registers DT90017 and DT90018 If this happens click on the Operation Err button in the Status display dialog box and confirm the address at which the error occurred before cancelling the error FP 11 2 Troubleshooting 11 2 2 If the ERROR ALARM LED Lights Condition The system watchdog timer has been activated and the operation of PLC has been stopped Procedure 1 Set the mode selector of PLC from RUN to PROG mode and turn the power off and then on If the ERROR ALARM LED is turned on again there is probably an abnormality in the FP control unit Please contact your dealer If the ERROR ALARM LED is flashed go to page 11 5 Procedure 2 Set the mode selector from PROG to RUN mode If the ERROR ALARM LED is turned on the program execution time is too long Check the program referring the following Check if instructions such as Jump or LOOP are programmed in such a way that a scan can never finish Check that interrupt instructions are executed in succession 11 2 3 _ If None of th
97. F159 MTRN on Duplex transmission instruction a disabled while F159 a execution off MTRN instruction is being executed T Transmission buffer a lela a Le b b te b d d e d d d ma m e e e e m m Number of bytes not yet transmitted lt 2 gt lt l gt lt 0 gt lt 0 gt lt 3 gt lt 2 gt lt l gt lt 0 gt lt 0 gt 4 Transmission point Figure 200 FP Flag operation when sending data STX and ETX setting Start code STX and end code ETX are automatically added to the data being transmitted and the data is transmitted to an external device When the F159 MTRN instruction is executed the transmission done flag R9039 R9049 go off Duplex transmission is disabled while the F159 MTRN instruction is being executed Check the transmission done flag R9039 R9049 FPX 8 7 Changing the Communication Mode of COM Port 8 7 Changing the Communication Mode of COM Port An F159 MTRN instruction can be executed to change between general communication mode and computer link mode To do so specify H8000 in n the number of transmission bytes and execute the instruction Changing from general port to computer link Changing from computer link to general port RO R9032 RO R9032 HpF H RK 1 Hor Hi 1 1 gt F159 MTRN DT100 H8000 Ki__ 1 gt
98. HO Positioning done pulse 1 second TMX Op B10 0 1 s type timer Setting K10 and using it as a 1 second timer wall Figure 114 FP amp Sample program absolute value positioning operation program Pulse output diagram 4 000 Hz 200 Hz 0 Hz Figure 115 FP Sample program pulse output diagram High speed Counter and Pulse Output Functions FP Home return operation minus direction When XA turns on the pulse is output from CCW output Y1 of specified channel CHO and the return to home begins When X3 turns on deceleration begins and when X2 turns on home return is completed After the return to home is completed the elapsed value area DT90044 and DT90045 are cleared to 0 0 V 24 V DC Home return start O Pulse output CW Home input Pulse output CC EAE Near home input Motor driver side side Motor _ _ i fm NY Q Q xX2L_ LJx3 Home sensor Near home sensor Figure 116 FP Sample program home return operation direction FP 5 4 Pulse Output Function Program XA R903A R42 R40 HDF Positioning operation running R40 e R40 R41 c HDF Positioning operation start R41 Positioning data table How Hna orao I Dr Toonrorcoo ana DT202 Fipmv K100 T22 pr2o3 ntial speed 1002 DT204 p DTO acairar ome 1some Fi Dmv K150 DT206 DT207 Fipmv Ko DT208
99. Hz at resolution of 1000 15 6k to 41 7k Hz at resolution of 100 Output duty 0 0 to 99 9 at resolution of 1000 1 to 99 at resolution of 100 High speed counter used Note 2 Two phase ch0 or ch 2 Output contact used Note 1 1 Notes YO or Y3 1 The contacts noted above cannot be allocated for more than one function Also contacts that are not assigned to the various functions can be used as general inputs outputs Inputs XO to X5 are pulse catch inputs and can also be used for interrupt input 2 If using pulse output or PWM output one channel of the two phase high speed counter is used for each output point in each case If only one pulse output point is being used either one point of the two phase high speed counter or three points of the single phase high speed counter may be used 12 7 Specifications FPZ Serial communication specifications 1 1 communication Note 1 C Communication method Half duplex transmission Synchronous method Start stop synchronous system Transmission line RS232C Transmission distance 3 m 9 84 ft total distance Transmission speed 9 600 bits s to 115 2k bits s Note 2 baud rate Transmission code ASCII Transmission format Stop bit 1 bit 2 bits Parity none even odd data length 7 bits 8 bits Note 2 Interface se Notes Conforming to RS232C connected via the terminal block
100. IN GR and turn on the Access radio button Using FPWIN GR 1 Select Set PLC Password under Tool on the menu bar 2 The PLC password setting dialog box shown below is displayed Turn on the radio button next to Access enter a password and click on the Settings button Set PLC Password dialog box Set PLC Password Untitlel x m Operation Mode Close Access Force Cancel C Protect Unprotect Hee m Password Enter in hex ga Figure 232 FPWIN GR Set PLC Password dialog box 11 2 6 If the Program Mode does not Change to RUN Condition A syntax error or a self diagnosed error that caused operation to stop has occurred Procedure 1 Check to see if the ERROR ALARM LED is flashing If the ERROR ALARM LED is flashing check the contents noted on page 11 5 Procedure 2 Execute a total check function to determine the location of the syntax error FP 11 2 Troubleshooting 11 2 7 Ifa Transmission Error has Occurred Procedure 1 Check to make sure the transmission cables have been securely connected between the two terminals and the two terminals of the units and that the final unit has been correctly connected Procedure 2 Check to see if the transmission cables are within the specifications range referring to page 6 11 At this point make sure all of the cables in the link are of the same type and that multiple types of cables are
101. LC connected to the system are sent as a response For example if the value K100 is stored in DTO and the value K200 is stored in DT1 of the PLC 01 RD6400C8006F is sent as a response to the command If there is an error 01 OO Cp is returned OO is the error code In addition to data area read and write commands the MEWTOCOL COM is also provided with contact area reading and writing and many other commands When two FP units are involved data can easily be exchanged shared using the PLC link function that comes with the RS485 1 channel type communication cassette Communication cassette used with 1 1 communication The following types of communication cassettes can be used with 1 1 general purpose serial communication This communication cassette is a 1 channel unit with a FP Communication cassette five wire RS232C port It supports 1 1 computer links and 1 channel RS232C type general purpose serial communication RS CS control is FPG COM1 possible This communication cassette is a 2 channel unit with a FP Communication cassette three wire RS232C port It supports 1 1 computer links 2 channel RS232C type and general purpose serial communication Communica tion with two external devices is possible FPG COM2 FPZ 8 3 Connection Example with External Devices Setting of system register In the default settings the COM port is set to the computer link mode To carry out 1
102. LC sending a response is included in the response message Figure 157 FPZ Overview of compute link function 1 N communication Tip If the FPX is used in combination with a communication cassette the 1 channel RS485 type no C NET adapter is necessary on the PLC side e 7 3 2 Communication Cassette Used for 1 N Communication The following types of communication cassettes can be used for 1 N communication with a computer link Name Description Part No This communication cassette is a 1 channel unit with a FP Communication cassette two wire RS485 port It supports 1 N computer links C FPG COM3 1 channel RS485 type NET general purpose serial communication and a PLC link FP 7 3 Computer Link 1 N communication 7 3 3 Settings of System Register and Unit No Setting of system register To carry out 1 N communication with a computer link the system registers should be set as shown below COM 1 port settings No Name Set value Unit No for COM 1 port 1 to 32 Set the desired unit No Communication mode for COM 1 port Computer Link Communication format for COM 1 port Character bit 8 bits Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting for COM 1 port 9600 bits s se Note The communication format and baud rate communication speed should be set to match the connected computer Setting of unit No st
103. NAiS PROGRAMMABLE CONTROLLER EErP gt User s Manual ES eee Applicable PLC e FPX C32 Control unit Part No FPG C32T Smart Solutions by NAiS http Awww naisplc com FP Table of Contents Table of Contents Before VOU Start tccc ates cen e Bass ee RE ee eee Evaro vii Programming Tool Restrictions 0 0 cece ees xX Chapter 1 Functions and Restrictions of the Unit 1 1 Features and Functions of the Unit 2 000 000 1 3 1 2 Unit TYPES iaei iu Se et ed Gee kg a OR wees ar 1 6 1 2 1 FPS Control Unit 54 600 cea intemal ae anh at Ap aeiald Bi 1 6 1 2 2 Expansion Unit Power Supply Unit and Intelligent Unit 1 6 1 2 3 Communication Cassette 0 0 ee eee ee 1 6 1 3 Restrictions on Unit Combinations 00 cece eee 1 7 1 3 1 Restrictions on the Number of Expansion Units 1 7 1 3 2 Controllable I O Points 0 cc eee eee 1 7 1 4 Programming Tools at 2 ioe a og Ae oe tae 2G AM Ait Bate Mate 1 8 1 4 1 Tools Needed for Programming 00e eee eee 1 8 1 4 2 Software Environment and Suitable Cable 1 8 Chapter 2 Specifications and Functions of the Unit 2 1 Parts and Functions 25 44 ieedars ava ariweite eas eda bes 2 3 2 1 1 Parts and Functions ct cates ostenus cote ae anne neetan 2 3 2 1 2 Tool Port Specification wn22 22isdena cians betaceuehe eedce 2 6 2 1 3 Communication Cassette sssaaa
104. OP LP a ee on x1 eC off Count 0 1 2 3 4 3 2 1 0 Increasing Decreasing aE ocd Figure 67 FPx High speed counter function direction control mode FPx 5 3 High speed Counter Function 5 3 3 Min Input Pulse Width The minimum input pulse width indicated below is necessary for the period T 1 frequency Single phase T I I 2 2 Figure 68 FP High speed counter function min input pulse width single phase Two phase IIIT 4444 Figure 69 FPX High speed counter function min input pulse width two phase High speed Counter and Pulse Output Functions FP 5 3 4 I O Allocation The inputting as shown in the table on page 5 5 will differ depending on the channel number being used The output turned on and off can be specified from YO to Y7 as desired with instructions F166 HC1S and F167 HC1R When using CHO with incremental input and reset input FP x Count input XO R eset input X2 On and off output Yn jj gt The output turned on and off when the target values match can be specified from YO to Y7 as desired Figure 70 FP High speed counter function I O allocation 1 When using CHO with two phase input and reset input FP gt Aph i phase input xo X1 X2 B phase input a Reset input On and off output Yn gt The output turned on and off when the target values match ca
105. PS Relay No Name Description Not used Not used COM 1 port communication mode flag This is on when the general purpose communication function is being used It goes off when the MEWTOCOL COM or the PLC link function is being used Print instruction execution flag Off Printing is not executed On Execution is in progress Run overwrite complete flag This is the special internal relay that goes on for only the first scan following completion of a rewrite during the RUN operation Not used Not used COM 1 port communication error flag This goes on if a transmission error occurs during data communication This goes off when a request is made to send data using the F159 MTRN instruction COM 1 port reception done flag during general purpose communicating Turns on when the end code is received during the general purpose communicating COM 1 port transmission done flag during general purpose communicating This goes on when transmission has been completed when using general purpose communication It goes off when transmission is requested when using general purpose communication High speed counter chO control flag Turns on while the high speed counter instructions F166 HC15 F167 HC1R and the pulse output instructions F171 SPDH to F173 PWMH are executed High speed counter control flag Turns on while the high speed counter instructi
106. PZ Unit No 1 Unit No 2 Unit No 3 Unit No 4 Transmitted Received area area gt Transmitted gt area Received area Received area Received area Transmitted area Figure 210 Example of link area allocation System register Set value of various control unit No 1 No 2 No 3 Range of link relay used for PLC link Starting no for link relay transmission Link relay transmission size FPx 9 2 Communication Parameter Settings Link register allocation FPZ FPZ FP FP Unit No 1 Unit No 2 Unit No 3 Unit No 4 LDO No 1 LPO Transmitted Received area gt area 39 70 Received area Noz 3 Transmitted gt area Received area Received area gu 9 ae No 3 Transmitted a Receiv r eceived area AE 127 127 Figure 211 Example of link register allocation System register Set value of various control unit No 1 No 2 No 3 Range of link register used for PLC link Starting no for link register transmission Link register transmission size When link areas are allocated as shown above the No 1 transmitted area can be transmitted to the No 2 No 3 and No 4 received areas Also the No 1 received area can receive data from the No 2 and No 3 transmitted areas No 4 is allocated as a received area only and can receive data from No 1 No 2 and No 3 but cannot transmit it to other unit Communication Function 3 PLC Link Funct
107. Register or Reset contacts monitored Registers the contact to be monitored Register or Reset data monitored Registers the data to be monitored Monitoring start Monitors a registered contact or data Preset contact area fill command Embeds the area of a specified range in a 16 point on and off pattern Preset data area fill command Writes the same contents to the data area of a specified range Read system register Reads the contents of a system register Write system register Specifies the contents of a system register Read the status of PLC Reads the specifications of the programmable controller and error codes if an error occurs Remote control Switches the operation mode of the programmable controller Abort Aborts communication 12 66 FPS 12 10 Hexadecimal Binary BCD 12 10 Hexadecimal Binary BCD Geese Hexadecimal Binary data 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 0000 0010 0000 0000 0000 0011 0000 0000 0000 0100 0000 0000 0000 0101 0000 0000 0000 0110 0000 0000 0000 0111 BCD data 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 0000 0010 0000 0000 0000 0011 0000 0000 0000 0100 0000 0000 0000 0101 0000 0000 0000 0110 0000 0000 0000 0111 Binary Coded Decimal OD NOohwWwn o 0000 0000 0000 1000 0000 0000 0000 1001 0000 0000 0000 1010 0000 0000 0000 1011 0000 0000 0000 1100 0000 0000 0000 1101 0
108. T90230 DT90231 PLC link unit station No 3 or 11 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 DT90232 DT90233 DT90234 DT90235 PLC link unit station No 4 or 12 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 DT90236 DT90237 DT90238 DT90239 PLC link unit station No 5 or 13 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 The contents of the system register settings pertaining to the PLC inter link function for the various unit numbers are stored as shown below Example When DT90219 is 0 Lower byte DT90220 to T DT90223 i f unit station number 1 Higher byte T p contents of system register 40 42 44 and 46 Setting contents of system register 41 43 45 and 47 A N A 12 40 FPS 12 6 Table of Special Data Registers Address Name Name Description A Available N A Not available Reading Writing DT90240 DT90241 DT90242 DT90243 PLC link unit station No 6 or 14 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 DT90244 DT90245 DT90246 DT90247 PLC li
109. The F159 MTRN instruction and the Reception done flag are used in these operations to transfer data between the FP and an external device Data transmission Data to be output is stored in the data register used as the transmission buffer DT and when the F159 MTRN instruction is executed the data is output from the COM port Data register DT Data transmission using Data writing F159 MTRN instruction The end code specified by the system register is automatically added to the data that has been sent The maximum volume of data that can be sent is 2 048 bytes Device with RS232C port FPZ Figure 164 FPx Data transmission Data reception Input data from the COM port is stored in the received buffer specified by the system register and the Reception done flag goes on Data can be received whenever the Reception done flag is off Data register DT 2 DT When data is received the Reception done flag is controlled by the F159 MTRN instruction No end code is included in the stored data The maximum volume of data that can be received is 4 096 bytes Device with RS232C port Reception done FPZ flag on Figure 165 FPx Data reception FP 8 1 General purpose Serial Communication 8 1 2 Program of General purpose Serial Communication The F159 MTRN instruction is used to send and receive data using the COM port The F159 MTRN ins
110. This communication cassette is a 1 channel unit with a five wire RS232C port It supports 1 1 computer links and general purpose serial communication RS CS control is possible Terminal layout FPX Transmitted data Unit External device Received data Unit lt External device Request to Send Unit gt External device Clear to Send Unit External device Signal Ground Figure 131 FP 1 channel RS232C type communication cassette 2 channel RS232C type Part No FRG COM2 This communication cassette is a 2 channel unit with a three wire RS232C port It supports 1 1 computer links and general purpose serial communication Communication with two external devices is possible Terminal layout FPX Abbreviation Name Signal direction Transmitted data 1 Unit External device Received data 1 Unit lt External device Transmitted data 2 Unit External device Received data 2 Unit lt External device Signal Ground Figure 132 FP 2 channel RS232C type communication cassette 6 6 FPX 6 2 Communication Cassette 1 channel RS485 type Part No FPG COM3 This communication cassette is a 1 channel unit with a two wire RS485 port It supports 1 N computer link C NET general purpose serial communication and a PLC link Terminal layout FPX Transmission line Transmission line Transmission line Transmissi
111. Transmitted data Flashes while data is being transmitted monitor Goes out when no data is being transmitted Received data Flashes while data is being received monitor Goes out when no data is being received Transmitted data mo Flashes while data is being transmitted nitor Goes out when no data is being transmitted Received data Flashes while data is being received monitor Goes out when no data is being received 4 Tool port RS232C This port is used to connect a programming tool 5 Input connector 10 pins x 2 6 Input indicator LEDs 2 4 FP 2 1 Parts and Functions T Output connector 10 pins x 2 Output indicator LEDs 9 Analog potentiometer analog dial Turning this dial changes the values of special data registers DT90040 and DT90041 within the range of KO to K1000 It can be used for analog timers and other applications Power supply connector 24 V DC Supply 24 V DC It is connected using the power supply cable AFP0581 that comes with the unit 47 Unit Station number setting switch This unit station number is specified when using the communication functions provided on the optional communication cassettes The unit station number setting switch is located under the cover on the back of the unit Specify the unit station number using the selector switch and the dial Figure 9 FP Parts and Funct
112. Turns on for an instant only in the first scan of the process the mo on type ment the step ladder process is opened Not used Not used 0 01 s clock pulse relay Repeats on off operations in 0 01 s cycles 0 02 s clock pulse relay Repeats on off operations in 0 02 s cycles 0 1 s clock pulse relay Repeats on off operations in 0 1 s cycles 0 2 s clock pulse relay Repeats on off operations in 0 2 s cycles 1 s clock pulse relay Repeats on off operations in 1 s cycles 2 s clock pulse relay Repeats on off operations in 2 s cycles 1 min clock pulse relay Repeats on off operations in 1 min cycles 12 22 FPx 12 5 Table of Special Internal Relays Relay No Name Description RUN mode flag Turns off while the mode selector is set to PROG Turns on while the mode selector is set to RUN Not used Not used Not used Not used Not used Message flag Turns on while the F149 MSG instruction is executed Not used Not used Forcing flag Turns on during forced on off operation for input output relay and timer counter contacts Interrupt enable flag Turns on while the external interrupt trigger is enabled by the ICTL instruction Interrupt error flag Turns on when an interrupt error occurs Not used Not used Not used Not used 12 23 Specifications F
113. __ 4 30 0 0 8 C 0 0 4 Value of DT1 in the PLC on Value of DTO in the PLC the other side on the other side 16 Hexadecimal ASCII gt HEX conversion instruction F72 DT51 DT50 Upper Lower Upper Lower byte byte byte byte Hoo H64 K200 K100 FS M _ OAnN Value of DT1 in the Value of DTO in the PLC PLC on the other side on the other side If an error occurs 01 OO Cpr is returned as the response OO is the C error code and is the BCC E 8 28 FP 8 4 Data Transmitted and Received with the FP 8 4 Data Transmitted and Received with the FP The following four points should be kept in mind when accessing data in the FP transmission and received buffers Data in the transmission and received buffers that is being sent and received is in ASCII code If the transmission format settings indicate that a start code will be used the code STX H02 will automatically be added at the beginning of the data being sent An end code is automatically added to the end of the data being sent There is no end code on the data stored in the received buffer When sending data Data written to the transmission buffer will be sent just as it is A Example When the data 12345 is transmitted as an ASCII code to a device with RS232C port Data sent using the F95 ASC instruction should be converted to ASCII code data C
114. a sine operation S D SIN S 1 S gt D 1 D Floating point type data co sine operation S D COS S 1 S gt D 1 D Floating point type datatang ent operation S D TAN S 1 S gt D 1 D Floating point type data arc sine operation S D SIN S 1 S gt D 1 D Floating point type data arccosine operation S D COS S 1 S gt D 1 D Floating point type data arctangent operation TAN S 1 S gt D 1 D Floating point type data natu ral logarithm LN S 1 S D 1 D Floating point type data exponent EXP S 1 S gt D 1 D 12 62 FPS 12 8 Table of Instructions No Name Boolean Floating point type data logarithm Operand Description LOG S 1 S gt D 1 D Floating point type data power S141 S1 a S2 1 S2 gt D 1 D Floating point type data square root A S 1 S gt D 1 D 16 bit integer data to floating point type data conversion Converts the 16 bit integer data with sign specified by S to real number data and the converted data is stored in D 32 bit integer data to floating point type data conversion Converts the 32 bit integer data with sign specified by S 1 S to real number data and the converted data is stored in D 1 D Floating point type data to 16 bit integer conversion the largest integer not
115. a value within the range Figure 100 FP Control code of F171 instruction High speed Counter and Pulse Output Functions FP Pa x z E Home return operation modes There are two operation modes for a home return with the FP a Type home re turn and a Type II home return Type home return The home return input is effective regardless of whether or not there is near home input whether deceleration is taking place or whether deceleration has been com pleted In this mode near home input is not used When near home input is not used When near home input is used Home Near home Home Speed input on Speed input on input on Max speed Max speed Initial speed Initial speed OHz OHz Home input is effective at any timing When home input is input while the near home input is decelerating Near home input on p Home Max speed input on Speed Initial speed OHz Type Il home return In this mode the home return input is effective only after deceleration based on the near home input has been completed S Near home Home peed input on input on Max speed Initial speed OHz Home return input effective only during deceleration Figure 101 FP Home return operation modes FP 5 4 Pulse Output Function Pulse output control instruction FO This instruction is used for resetting the built in high speed
116. agram when using a PLC link with three FP units 9 3 2 Sample Programs Program of unit No 1 FP control unit When X1 is input the LO of the link relay goes on and when X2 is input the L1 of the link relay goes on X1 LO Unit No 2 control unit begins operation Unit No 3 control unit begins operation X2 L1 Figure 221 Sample program unit No 1 Program of unit No 2 FP control unit When the LO of the link relay goes on Y10 is output LO Y10 ae PA Y10 output Figure 222 Sample program unit No 2 Program of unit No 3 FP control unit When the L1 of the link relay goes on Y10 is output L1 Y10 lt lt s i Y10 output Figure 223 Sample program unit No 3 9 18 Chapter 10 10 1 10 2 Other Functions Analog Potentiometer 202 0e cece 10 3 10 1 1 Overview of Analog Potentiometer 10 3 10 1 2 Example Showing How the Analog Potentiometers are Used 10 3 Clock Calendar Function 000ceeecee reas 10 4 10 2 1 Area for Clock Calendar Function 10 4 10 2 2 Setting of Clock Calendar Function 10 4 10 2 3 Precautions Concerning Backup of Clock Calendar Data 42 00eee 10 5 10 2 4 Example Showing the Clock Calendar being Used 5 10 6 Other Functions FP 10 2 FPx 10 1 Analog Potentiometer 10 1 Analog Potentiometer
117. alue match on instruction F166 HC1S To turn off an output use the target value match off instruction F167 HC1R Preset the output to be turned on and off with the SET RET instruction Setting the system register In order to use the high speed counter function it is necessary to set system register Nos 400 and 401 5 3 2 Types of Input Modes Incremental input mode on ey ls eden a es Leen el esp Le Count 9 1 2 3 4 n 3 n 2 n 1 n Figure 63 FP High speed counter function incremental input mode Decremental input mode Count n n 1 n 2 n 3 n4 3 2 1 0 Figure 64 FPx High speed counter function decremental input mode High speed Counter and Pulse Output Functions FP Two phase input mode Incremental input CW on X0 l l l L T L of on mf a a a A Ae Count 0 1 2 n 1 n od Decremental input CCW Figure 65 FP High speed counter function two phase input mode Individual input mode Incremental and decremental input mode on xwx ga D C FULL o on a TUUL FL o Count O 1 2 3 14 3 2 1 2 3 4 3 Increasing Decreasing Increasing Decreasing Figure 66 FPx High speed counter function individual input mode Direction control mode on
118. ase be aware that these values cannot be used unless a battery has been installed in the FP2 No values have been set in the default settings so the programming tool or another means must be used to specify the values M Other Functions FP 10 2 4 Example Showing the Clock Calendar being Used Sample program for Fixed schedule and automatic start In the example shown here the clock calendar function is used to output the YO signal for one second at 8 30 a m every day Here the Hour minute data stored in the special data register DT90053 is used to output the signal at the appointed time R9010 Feso CMP DT 90053 H830 ee Data comparison instruction The value of the special data register DT90053 Hour minute data is compared with the value of H830 8 30 R900B RO Comparison match is output RO TO YO HDF Appointed time output pulse 1 second YO TMX 0 K10 0 1 second type timer K10 is set and used as a 1 second clock Figure 228 FPX Sample program of clock calendar function The hour data is stored in the upper 8 bits of DT90053 and the minute data in the lower 8 bits in the BCD format This hour and minute data is compared with the appointed time BCD and the R900B flag special internal relay is used to detect whether or not it matches the appointed time Chapter 11 Self Diagnostic and Troubleshooting 11 2 Self Diagno
119. ation Decimal constants F F 1 175494 x 10738 to F 3 402823 x 1038 monorefined real number F1 175494 x 10 38 to F3 402823 x 1038 1 Notes 1 The number of points noted above is the number reserved as the calculation memory The actual number of points available for use is determined by the hardware configuration 2 If no battery is used only the fixed area is backed up counters C1008 to C1023 internal relays R900 to R97F data registers DT32710 to DT32764 When the optional battery is used data can be backed up Areas to be held and not held can be specified using the system registers 3 The points for the timer and counter can be changed by the setting of system register 5 The number given in the table are the numbers when system register 5 is at its default setting 12 13 Specifications FPS 12 4 Table of System Registers 12 4 1 __ System Registers What is the system register area System registers are used to set values parameters which determine operation ranges and functions used Set values based on the use and specifications of your program There is no need to set system registers for functions which will not be used Type of system registers Hold non hold type setting System registers 5 to 8 10 12 and 14 The values for the timer and counter can be specified by using system register no 5 to specify the first number of the counter System registers no 6 to no 8 no 10 n
120. ation number The Unit No parameter for each of the communication ports is set to 1 in the system register default settings There is no need to change this if 1 1 communication is being used but if 1 N communication is being used to connect multiple PLCs to transmission line such as in a C NET the Unit No must be specified so that the system can identify the unit targeted for communication Computer C NET e adapter RS232C F A RS485 A unit number is used to identify the destination to which a command is being sent The PLC that sends a response can be identified by the unit number Figure 158 FP Computer link setting of unit No station No Communication Function 1 Computer Link FP Setting method The unit number is specified using the unit number setting switch on the side of the FP2 control unit or the system register settings Setting the unit number setting switch to 0 makes the system register setting valid To set unit numbers with the FPWIN GR select PLC Configuration under Option on the menu bar and then click on the COM Port tab There are two settings one for the COM 1 port and one for the COM 2 port PLC Configuration setting dialog box PLC Configuration p08p FP ETE E E HEGEN Figure 159 FPWIN GR PLC Configuration setting dialog box No 410 for COM 1 port No 411 f
121. c m PLC Error Flag PLC Mode Flag PC link Self 1 1 0 Verifi 0 RUN Mode 0 OUT Refresh 0 Volt Dip 0 BatteyEr 0 TEST Mode 0 STEPRUN 0 140 Error 0 fHold 0 Break Mode 0 Message 2 0 Help Advance Unit 0 Ope Er A Break Enable 0 Remote SEN Force flaq 0 ExtemalEl 0 r Self Diagnosis Error Message Eror Code 45 Operation Error Occurred Figure 231 FPWIN GR Status display dialog box as Tip To display the status display dialog box select Status Display under Online on the menu bar w next page 11 5 Self Diagnostic and Troubleshooting FPx Procedure 2 For error code is 1 to 9 Condition There is a syntax error in the program Operation 1 Change to PROG mode and clear the error Operation 2 Execute a total check function using FPWIN GR to determine the location of the syntax error For error code is 20 or higher Condition A self diagnostic error other than a syntax error has occurred Operation Use the programming tool FPWIN GR in PROG mode to clear the error Using FPWIN GR Click on the Clear Error button in the Status display dialog box Error code 43 and higher can be cleared In the PROG mode the power supply can be turned off and then on again to clear the error but all of the contents of the operation memory except hold type data are cleared An error can also be cleared by executing a self diagnostic error set instruction
122. ck If the output indicator LED remains off there is probably an abnormality in the output unit Please contact your dealer Check of input condition 3 Input indicator LEDs are off Procedure 1 Check the wiring of the input devices Procedure 2 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 in the input unit Please contact your dealer If the power is not supplied to the input terminal there is probably an abnormality in the input device or input power supply Check the input device and input power supply FP 11 2 Troubleshooting Check of input condition 4 Input indicator LEDs are on Procedure Monitor the input condition using a programming tool If the input monitored is off there is probably an abnormality with the input unit Please contact your dealer If the input monitored is on check the leakage current at the input devices e g two wire type sensor and check the program again referring the following Check for the duplicated use of output and for the output using the high level instruction Check the program flow when a control instruction such as Master control relay or Jump is used Self Diagnostic and Troubleshooting FPx 11 2 5 Ifa Protect Error Message Appears When a Password Function is Used Procedure Enter a password in the Set PLC Password menu in FPW
123. content should be noted in all ae characters following the fixed formula for that particular command Tt 1 Specification and l name data to be written Command code ASCII code H23 Figure 144 FPE Command message text 4 Check code This is the BCC block check code used to detect errors using horizontal parity It should be created so that it targets all of the text data from the start code to the last text character The BCC starts from the start code and checks each character in sequence using the exclusive OR operation and replaces the final result with character text It is normally part of the calculation program and is created automatically The parity check can be skipped by entering x ASCII code H2A2A instead of the BCC 5 End code Terminator Messages must always end with a Cp ASCII code HOD mw next page 7 5 Communication Function 1 Computer Link FP Se Notes Precautions when writing messages e The method for writing text segments in the message varies depending on the type of command e If there is a large number of characters to be written they may be divided and sent as several commands If there is a large number of characters in the value that was loaded they may be divided and several responses sent Response message The PLC that received the command in the previous page sends the results of the processing to the computer Start code 2 Un
124. corresponding to the process number turns on 1 Monitor using binary display Example 15 11 7 0 Bit No DT90060 3 15 11 7 3 1 Executing 0 N 0 Process No ot executing A programming tool software can be used to write data 12 34 FPS 12 6 Table of Special Data Registers DT90077 Step ladder pro cess 272 to 287 DT90078 Step ladder pro cess 288 to 303 DT90079 Step ladder pro cess 304 to 319 DT90080 Step ladder pro cess 320 to 335 DT90081 Step ladder pro cess 336 to 351 DT90082 Step ladder pro cess 352 to 367 DT90083 Step ladder pro cess 368 to 383 DT90084 Step ladder pro cess 384 to 399 DT90085 Step ladder pro cess 400 to 415 DT90086 Step ladder pro cess 416 to 431 DT90087 Step ladder pro cess 432 to 447 DT90088 Step ladder pro cess 448 to 463 DT90089 Step ladder pro cess 464 to 479 DT90090 Step ladder pro cess 480 to 495 DT90091 Step ladder pro cess 496 to 511 DT90092 Step ladder pro cess 512 to 527 DT90093 Step ladder pro cess 528 to 543 DT90094 Step ladder pro cess 544 to 559 DT90095 Step ladder pro cess 560 to 575 DT90096 Step ladder pro cess 576 to 591 DT90097 Step ladder pro cess 592 to 607 A Available N A Not available In
125. counter stopping the pulse outputs and setting and resetting the near home input Specify this FO MV instruction together with the special data register DT90052 Once this instruction is executed the settings will remain until this instruction is executed again a Example 1 Enable the near home input during home return operations and begin deceleration In the program the near home input is enabled in step 1 and 0 is entered just after that in step 2 to perform the preset operations x3 H pF Fo mv H 10 DT90052 Fo MV HO DT90052 J ee Figure 102 FP Program 1 of pulse output control instruction FO MM Example 2 Performing a forced stop of the pulse output X7 H DF Fo MV H 8 DT90052 Fo MV H 0 DT90052 Figure 103 FPZ Program 2 of pulse output control instruction FO Elapsed value write and read instruction F1 This instruction is used to read the pulse number counted by the built in high speed counter Specify this F1 DMV instruction together with the special data register DT90044 The elapsed value is stored as 32 bit data in the combined area of special data registers DT90044 and DT90045 Use only this F1 DMV instruction to set the elapsed value A Example 1 Writing the elasped value X7 Set the initial value of K3000 in the H DF F1 DMV K3000 DT90044 high speed counter Figure 104 FP Program 1 of elapsed value write and read instruction F1 M
126. ction of decreas ing elapsed value ing elapsed value This is a method in which control is carried out using one pulse output to specify the speed and on off signals to specify the direction of rotatin In this mode forward rotation is carried out when the rotation direction Sign signal is on Figure 87 FPx Pulse output function Pulse sign output method 2 High speed Counter and Pulse Output Functions FP 5 4 3 I O Allocation Double pulse input driver CW pulse input and CCW pulse input method Two output contact are used as a pulse output for CW CCW The I O allocation of pulse output terminal and home input is determined by the channel used See the table of specifications on page 5 6 Set the control code for F171 SPDH instruction to CW CCW When using CHO FP gt Home input X2 ee a Near home input Driver CW output YO gt Y1 CCW output X3 or other desired input can be specified for the near home input Figure 88 FP Pulse output function I O allocation when using CHO double pulse input When using CH2 FP gt Home input X5 gt X6 Near home input Driver CW output VOe Y4 gt CCW output X6 or other desired input can be specified for the near home input Figure 89 FPZ Pulse output function I O allocation when using CH2 double pulse input FP 5 4 Pulse Output Functio
127. d by the ambient temperature C32T at 24 V DC Number of 16 points per i at 26 4 V DC common 1 j which are si multaneous 8 i on 46 52 55 107 8118 6124 Ambient temperature C F Figure 14 FPx Limitations on number of simultaneous output on points Specifications and Functions of the Unit FPx Internal circuit diagram YO Y1 Y3 Y4 l Output indicator LED M i Output Load _L External power supply g z T lee 24 V DC 2 5 power supply Fo sF 5 to 24 V DC D 2 6 a OV Figure 15 FPx Internal circuit diagram output 1 Y2 Y5 to YF j Output indicator LED AA Output L External power supply LS B 5 Q Load ic d 24 V DC a 3 power supply g k 37 5 to 24 V DC O 8 oV Phase fault protection circuit Figure 16 FPx Internal circuit diagram output 2 FPx 2 3 Terminal Layout Diagram 2 3 Terminal Layout Diagram Intput Ry ee HH Yo Y1 y8 Y9 HYHY H HI ill H HI LF LE Ff Connector front view Figure 17 FP Terminal layout diagram I O connector 1 Notes e The four COM terminals of input circuit are connected internally e The two terminals of output circuit are connected internally e The two terminals of output circuit a
128. d second data and the converted data is stored in and seconds D 1 D data Carry flag set Turns on the carry flag R9009 Carry flag reset Turns off the carry flag R9009 Partial I O Updates the I O from the number specified by D1 to update the number specified by D2 Only possible for I O numbers in a range of X0 to XF and YO to YF Printout Converts the ASCII code data in the area starting with S for printing and outputs it to the word external out put relay WY specified by D Self diagnostic n Stores the self diagnostic error number n in DT90000 error set n K100 turns R9000 on and turns on the ERROR ALARM LED to K299 Message S Displays the character constant of S in the connected display programming tool Time addition S1 S2 D The time after S2 1 S2 elapses from the time of S1 2 S1 1 S1 is stored in D 2 D 1 D Time S1 S2 D The time that results from subtracting S2 1 S2 from substruction the time S1 2 S1 1 S1 is stored in D 2 D 1 D Serial data S n D This is used to send data to or receive data from an communication external device through the specified RS232C port Double word 32 bit data square root High speed S Performs high speed counter control according to the counter and DT90052 control code specified by S pulse output control Change and S Transfers S 1 S to high speed counter elapsed
129. de is stored here when a self diagnostic error occurs DT90001 to Not used DT90003 DT90004 1 0 verify error flag Turns on when I O verification error occurs DT90005 to Not used DT90013 DT90014 Operation auxiliary register for One shift out hexadecimal digit is stored data shift instruction in bit positions 0 to 3 when the data shift instruction F105 BSR or F106 BSL is executed DT90015 Operation auxiliary register for The divided remainder 16 bit is stored in division instruction DT90015 when the division instruction F32 or F52 B instruction is exe cuted The divided remainder 32 bit is stored in DT90016 DT90015 and DT90016 when the division instruction F33 D or F53 DB is ex ecuted The value can be read and writ ten by executing FO MV instruction DT90017 Operation error address After commencing operation the address hold type where the first operation error occurred is stored Monitor the address using deci mal display DT90018 Operation error address The address where a operation error oc non hold type curred is stored Each time an error oc curs the new address overwrites the pre vious address At the beginning of scan the address is 0 Monitor the address us ing decimal display DT90019 2 5ms ring counter The data stored here is increased by one every 2 5ms HO to HFFFF Difference between the values of the two points absolute value x 2 5ms Elap
130. dicates the startup condition of the step ladder process When the proccess starts up the bit corresponding to the process number turns on 1 Monitor using binary display Example 11 7 3 15 11 7 3 1 Executing 0 N 0 Bit No DT90060 0 Process No ot executing A programming tool software can be used to write data Name Description Reading Writing 12 35 Specifications FPX A Available N A Not available Name Description Reading Writing DT90098 Step ladder pro cess 608 to 623 Step ladder pro cess 624 to 639 Step ladder pro cess 640 to 655 Step ladder pro cess 656 to 671 Step ladder pro cess 672 to 687 Step ladder pro cess 688 to 703 Step ladder pro cess 704 to 719 Step ladder pro cess 720 to 735 Step ladder pro cess 736 to 751 Step ladder pro cess 752 to 767 DT90099 DT90100 DT90101 DT90102 DT90103 DT90104 DT90105 DT90106 DT90107 Indicates the startup condition of the step ladder process DT90108 SteP a P a3 When the proccess starts up the bit corresponding to the cess 768 to 783 process number turns on 1 Step ladder pro Monitor using binary display DT90109 cess 784 to 799 ge SPEY Example Step ladder pro l cess 800 to 815 15 1 7 3 O BitNo Step ladder pro DT90100 cess 816 to 831 A Step ladder pro DT9011
131. e LEDs Light Procedure 1 Check wiring of power supply Procedure 2 Check if the power supplied to the FP control unit is in the range of the rating Be sure to check the fluctuation in the power supply Procedure 3 Disconnect the power supply wiring to the other devices if the power supplied to the FPX control unit is shared with them If the LED on the control unit turn on at this moment increase the capacity of the power supply or prepare another power supply for other devices 11 7 Self Diagnostic and Troubleshooting FPx 11 2 4 _ If Outputting does not Occur as Desired Proceed from the check of the output side to the check of the input side Check of output condition 1 Output indicator LEDs are on Procedure 1 Check the wiring of the loads Procedure 2 Check if the power is properly supplied to the loads If the power is properly supplied to the load there is probably an abnormality in the load Check the load again If the power is not supplied to the load there is probably an abnormality in the output section Please contact your dealer Check of output condition 2 Output indicator LEDs are off Procedure 1 Monitor the output condition using a programming tool If the output monitored is turned on there is probably a duplicated output error Procedure 2 Forcing on the output using forcing input output function If the output indicator LED is turned on go to input condition che
132. e combined area of special data registers DT90044 and DT90045 Use this F1 DMV instruction to set the elapsed value A Example 1 Changing the elapsed value X7 HDF F1 DMV K3000 DT90044 Set the initial value of K3000 in the high speed counter Figure 73 FP Program 1 of elapsed value change and read instruction F1 High speed Counter and Pulse Output Functions FP d g g Example 2 Reading the elapsed value X7 HDF HF DMV DT90044 DT100 Read the elapsed value of the high speed counter and co pies it to DT100 and DT101 Figure 74 FP Program 2 of elapsed value change and read instruction F1 a 3 The area DT90052 for writing channels and control codes is allocated as shown below Control codes written with an FO MV instruction are stored by channel in special data registers DT90190 to DT90193 High speed counter control flag area of FP 15 12 11 8 7 43 0 DT90052 UW Channel specification HO to H3 CHO to CH3 Near home input 0 off dion Clear high speed counter instruction 0 Continue 1 Clear Pulse output 0 Continue 1 Stop Hardware reset 0 Permit 1 Prohibit Count 0 Permit 1 Prohibit Software reset 0 No 1 Yes FPS 5 3 High speed Counter Function Target value match on instruction F166 A Example 1 XA HDF F166 HC1S KO K10000 Y7 If the elapsed value DT90044 a
133. eared when when F159 MTRN cleared when start code is instruction is start code is received executed received Figure 199 FPX Flag operation when receiving data STX and ETX setting The data is stored in the reception buffer in sequential order but at the point at which the start code is received the number of bytes received is cleared and the address write pointer is returned to the initial address in the reception buffer Reception is disabled while the reception done flag R9038 R9048 is on When the F159 MTRN instruction is executed the number of bytes received is cleared and the address write pointer is returned to the initial address in the reception buffer If there are two start codes data following the later start code is overwritten and stored in the reception buffer The reception done flag R9038 R9049 is turned off by the F159 MTRN instruction Because of this if the F159 MTRN instruction is executed at the same time that the terminal code is received the reception done flag will not be detected Communication Function 2 General purpose Serial Communication FP When sending data The relationship between the various flags Reception done flag and Transmission done flag and the F159 MTRN instruction Transmitted data STH a b ET STX c d e ET i i Transmission Transmission R9039 R9049 Transmission done flag I off
134. ection Example with External Devices Sample program In the following example the Micro Imagechecker is connected to the COM 1 port Data transmission command The internal relay R10 is turned on at the timing of the transmission condition RO RO R1 so a R10 HH F95 ASC M 8 DT101 Ten spaces inserted F159 MTRN DT100 K2 With DT100 as the transmission buffer the contents consisting of two bytes of it are sent to COM 1 K1 port Data conversion The start command S character is con verted to ASCII code and written to DT101 to DT106 Data transmission The data in the transmission buffer is sent from the COM port 1 K1 io a a 2 c 2 KE R9038 R11 bo lt 2 R11 HH Foek HH F159 MTRN DT 100 Starting from DT100 the contents of 0 bytes are sent to the COM 1 K1 port Reception done detection The internal relay R11 is turned on at the Reception done R9038 timing D201 Retrieving received data The received data in the received buffer is read from the area in which it is stored from DT201 and sent to DTO Preparing to receive the next data To prepare to receive the next data the F159 instruction resets the buffer writing point and turns off the Reception Done R9038 contact based on the empty data Figu
135. ection tool Product No AXY52000 Figure 49 FPx Pressure connection tool FPx 4 4 Wiring of MIL Connector Type Procedure of assembly Wiring method The wire end can be directly crimped without removing the wire s insulation saving labor 1 Bend the welder contact back from the carrier and set it in the pressure connection tool Figure 50 FPx MIL connector assembly procedure 1 2 Insert the wire without removing its insulation until it stops and lightly grip the tool Figure 51 FPx MIL connector assembly procedure 2 3 After press fitting the wire insert it into the housing Figure 52 FPx MIL connector assembly procedure 3 4 When all wires has been inserted fit the semi cover into place Figure 53 FPx MIL connector assembly procedure 4 Installation and Wiring FPX 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 Press the housing against the pressure connection tool so that the contact puller pin comes in contact with this section Tet p g Figure 54 FPx MIL connector rewiring Tip If using a MIL connector for flat cables specify the product no AXM110915 FP 4 5 Safety Measures 4 5 Safety Measures This section explains the safety measures momentary power failures and protec
136. en not in the PLC link mode R906D Turns on when Unit No 14 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R906E Unit No Turns on when Unit No 15 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode R906F Unit No Turns on when Unit No 16 is communicating properly in the PLC link mode Turns off when operation is stopped when an error is occurring or when not in the PLC link mode 12 26 FPS 12 5 Table of Special Internal Relays Relay No Name Description MEWNET WO PLC link operation mode relay Unit No Turns on when unit No Turns off when unit No 1 is in the RUN mode 1 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 2 is in the RUN mode 2 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 3 is in the RUN mode 3 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 4 is in the RUN mode 4is in the PROG mode Unit No Turns on when unit No Turns off when unit No 5is in the RUN mode 5is in the PROG mode Unit No Turns on when unit No Turns off when unit No 6 is in the RUN mode 6 is in the PROG mode Unit No Turns on whe
137. er RUN 1 Incoming data is stored in order from the lower order byte of the 2nd word area of the reception buffer Header and terminator Start and end codes are not stored Beginning of reception Reopening Received data A Bo T Rr U V on R9038 R9048 ooo Execution condition on RO 2o i Y W A ti J Execution of Reception Reception Reception is F159 MTRN is possible is not pos possible instruction sible Figure 181 Explanation during reception 2 When the terminator end code is received the reception done flag R9038 R9048 turns on Reception of any further data is prohibited 3 When an F159 MTRN instruction is executed the reception done flag R9038 R9048 turns off the number of received bytes is cleared and subsequent data is stored in order from the lower order byte FPx 8 2 Overview of Communication with External Devices a Tip gt To perform repeated reception of data refer to the following steps Receive data Reception done R9038 R9048 on reception prohibited Process received data Execute F159 MTRN instruction R9038 R9048 off reception possible Receive subsequent data QOOWO Preparation of reception The reception done flag R9038 R9048 turns on when data reception from the external device is completed Reception of any further data is prohibited To receive subsequent data you must execute an F159 MTRN instruction to turn off the recept
138. er for PLC link registers 128 0 to 128 Action on error Disable or enable setting for dupli cated output Disabled Disabled Enabled Operation setting when an I O verification error occurs Stop Stop Continuation of operation Operation setting when an operation error occurs Stop Stop Continuation of operation Alarm Battery Error Operating setting when battery error occurs Disabled Disabled When a battery error occurs a self diagnostic error is not is sued and the ERROR ALARM LED does not light Enabled When a battery error occurs a self diagnostic error is issued and the ERROR ALARM LED lights Wait time setting for multi frame com munication 6500 0 ms 10 to 81900 ms Constant value settings for scan time 0 0 ms 0 Normal scan 0 to 350 ms Scans once each specified time interval Range of link relays used for PLC link 0 to 64 words Range of link data registers used for PLC link 0 to 128 words Starting number for link relay transmission 0 to 63 Link relay transmission size 0 to 64 words Starting number for link data register transmission 0 to 127 Link data register transmission size 0 to 127 words Maximum unit number setting for MEWNET W0O PLC link 1to 16 12 16 FP 12 4 Table of System Registers Default Descriptions value High speed counter operation mode CHO Do not set input X
139. es on When X2 of the control unit of unit no 1 goes on Y10 of the control unit of unit no 3 goes on Link relay LO turns on Link relay L1 turns on FPX RS485 FPX Unit No 1 Unit No 2 Unit No 3 Figure 217 FP Connection when using a PLC link with three FPX units Communication cassettes used with the PLC link The following types of communication cassettes can be used with the PLC link function Name pein CPN general purpose serial communication and a PLC link Pere This communication cassette is a 1 channel unit with a two FPZ Communication cassette F 1 channel RS485 type wire RS485 port It supports 1 N computer links C NET FPG COM3 Communication Function 3 PLC Link Function FP Setting of system register When using a PLC link the transmission format and baud rate are fixed as shown below Communication format Character Bit 8 bits Parity Odd Stop Bit 1 Baud rate 115200 bps Set the communication mode and the unit numbers using the system registers Setting of unit no and communication mode Setting of unit No 1 FP control unit No 410 Unit No for COM 1 port 1 No 412 Communication mode for COM 1 port PLC link Setting of unit No 2 FP control unit No 410 Unit No for COM 1 port 2 No 412 Communication mode for COM 1 port PLC link Setting of unit No 3 FP control unit No 410 Unit No for COM 1 port 3 No 412 Com
140. ffect Always use an exclusive ground for each device CORRECT INCORRECT FPX Other device Other device Inverter etc Inverter etc Figure 37 FP Grounding S Note Depending on the surroundings in which the equipment is used grounding may cause problems Example Since the power supply line of the FP power supply connector is connected to the function earth through a varistor if there is an irregular potential between the power supply line and earth the varistor may be shorted 24V DC 24 V DC ov ov Function Varistor 82 V Function Varistor 39 V earth earth FP power supply line FPO exponsion unit power supply line Figure 38 Power supply line of FP and FPO expansion unit Installation and Wiring FPX 4 3 Wiring of Input and Output This section explains input wiring and output wiring of FP 4 3 1 Input Wirin Connection of photoelectric sensor and proximity sensor Relay output type O Input terminal Sensor FP Power supply for sensor Power supply for input Figure 39 FPx Relay output type sensor NPN open collector output type Sensor FPX Internal circuit Power supply for input Figure 40 FP NPN open collector output type sensor Voltage output Universal output type Sensor FPX Power supply for input Figure 41 FPx Voltage output universal output type sensor Two wire output type Sensor FPX Power supply for input Figure 42 FPX Two wire out
141. formation please contact the manufacturer of the motor driver As a result when the FP2 is used in the directional output mode and a fast frequency has been specified for the initial speed there may be times when pulses are skipped if pulse output starts instantaneously If this happens set the initial speed setting for the FP2 to a slower frequency Pulse output from the FP starts from the off state when the FP is booted so more time leeway can be created by setting a slower frequency Calculating the frequency Frequency F Hz duty on width D motor driver setup time Tm s F lt 100 D Tm x 100 Example When the motor driver setup time is Tm 100 us 100 x 10 6 s the frequency F must be set to 5 000 Hz or less when the duty is 50 1 2 If the duty is 25 1 4 the frequency F must be set to 7 500 Hz or less FPS 5 4 Pulse Output Function 5 4 4 Control Mode Incremental lt relative value control gt Outputs the pulses set with the target value Selected mode Positive Cw CCW Pulse output from CW PLS and SIGN Forward off Reverse on Pulse output when direction output is off PLS and SIGN Forward on Reverse off Pulse output when direction output is on Elapsed value of high speed counter Increment Negative Pulse output from CCW Pulse output when direction output is on Absolute lt absolute value control gt Outputs a number of pulses equal to the d
142. general purpose serial communication 8 1 1 Overview of Function What is the general purpose serial communication Using the COM ports it sends and receives data to and from an external device such as an image processing unit or a bar code reader Data is read and written using the FP ladder program and data is read from and written to an external device connected to the COM port by means of the FP2 data registers Image processing device Sending data using the F159 MTRN instruction Data is sent by transferring the data to a data register and then sending it us ing the F159 MTRN instruction M QS Receiving data to the data register s designated as the received buffer Data is received by data being sent from the RS232C port to the data register specified by the system register as the received buffer and then being stored there automatically Data register DT Received data Data is read from and written to an external device through the data registers Figure 163 FP General purpose Serial Communication overview Communication Function 2 General purpose Serial Communication FP Outline of operation To send data to and receive it from an external device using the general purpose serial communication function the Data transmission and Data reception functions described below are used
143. gt D 1 D When S1 1 S1 lt S3 1 3 lt S2 1 S2 S3 1 S3 gt D 1 D 16 bit data deadband control When S1 gt S3 S3 S1 D When S2 lt S3 S3 S2 D When S1 lt S3 lt S2 0 gt D 32 bit data deadband control When S1 1 S1 gt S3 1 S3 S3 1 S3 S1 1 S1 gt D 1 D When S2 1 S2 lt S3 1 S3 S3 1 S3 S2 1 S2 gt D 1 D When S1 1 S1 lt S3 1 S3 lt S2 1 S2 0 gt D 1 D 12 61 Specifications FPS No Name Boolean Operand Description Integer type data processing instructions 16 bit data zone control When S3 lt 0 S3 S1 D When S3 0 0 gt D When S3 gt 0 S3 S2 gt D 32 bit data zone control When S3 1 S3 lt 0 S3 1 S3 S1 1 S1 gt D 1 D When S3 1 S3 0 0 gt D 1 D When S3 1 S3 gt 0 S3 1 S3 S2 1 S2 gt D 1 D Floating point type real number operation instructions Floating point type data move S D S 1 S gt D 1 D Floating point type data addition 1 2 D S141 S1 S2 1 S2 gt D 1 D Floating point type data subtraction 1 2 D 141 1 S2 1 S2 gt D 1 D Floating point type data multiplication 1 2 D S1 1 S1 x S2 1 S2 gt D 1 D Floating point type data division S1 S2 D S1 1 S1 S2 1 S2 gt D 1 D Floating point type dat
144. guration item in the GTWIN screen creation tool For detailed information please see the technical manual for the GT10 GTWIN GT Configuration settings Basic Setup screen xi Basic Setup Communication Parameters Auto Paging Start up Screen Setup Hold PLC Device Value Cancel Title PLO Model Matsushita MEWNET FP ATREA stirs GT Model GT10 Monochrome RS2E DT hitialize Basic Communication Area to PLC Mode GTIO mode C IOPO mo Word Area foo a t pe Back Cleer Bit Area po H t Figure 156 GTWIN GT Configuration setting screen basic setup Communication Function 1 Computer Link FPX 7 3 Computer Link 1 N communication This section contains the 1 N communication of computer link 7 3 1 Overview of 1 N Communication For a 1 N computer link the computer and the FP are connected through a C NET adapter and the respective PLCs are wired using an RS485 cable Communication is carried out by the command specifying the unit number being sent from the computer side and the PLC with that unit number sending a response back to the computer FP gt FP gt FP gt FP gt Unit No 1 Unit No 2 Unit No 3 Unit No 4 Computer C NET e adapter RS232C ees ES RS485 The unit number for the PLC to which the command is being sent is included in the command message The unit number of the P
145. hrough Function Eosti i9200 es J Forward only to the selected unit Data Leneth P bit Stop Bits bit Parity Bit od g Figure 153 GTWIN GT Configuration setting screen communication prameters Connection example with programmable display GT10 When using the 1 channel RS232C type of communication cassette FP side 5 pin GT10 side 5 pin RO Received Daa RD RS Reauesiio Sera PS Figure 154 FP Computer link connection example 1 GT10 When using the 2 channel RS232C type of communication cassette FPZ side 5 pin GT10 side 5 pin Pin No lt a ai Recewed Data 1 RD _ fee Ao _ Tas SD RS fe Received Data mo P SG sc _ To other device Figure 155 FP Computer link connection example 2 GT10 FP 7 2 Connection Example with External Device Basic communication area setting for GT10 To carry out communication with a PLC the Basic Communication Area setting for the internal device area in the PLC reserved by the GT10 in advance should be specified in the GT10 configuration settings When the GT10 is shipped from the factory the basic communication area is set as shown below GT Configuration settings should be changed to match the application at hand tem Description Word area DTO to DT2 Bit area WRO to WR2 The basic communication area is changed using the parameter settings for the GT10 and the GT Confi
146. ication cassette G S M fz s og d Figure 135 FPX Communication cassette attachment procedure 2 3 Plug in the communication connector Figure 136 FP Communication cassette attachment procedure 3 se Note Turn off the power supply to the control unit before installing the communication cassette FP 6 4 Wiring of Communication Cassette 6 4 Wiring of Communication Cassette This section explains about the wiring of optional communication cassette 6 4 1 Wiring the Connector with the Communication Cassette The communication connector provided with the communication cassette has a screw type terminal block Use the following for wiring Figure 137 FPX Communication connector Accessory communication connector The communication connector made by Phoenix Contact Co should be used Model No of Phoenix Contact Co Model No Product No MC1 5 5 ST 3 5 1840396 Suitable wire Twisted wire Sie eross sectonararea AWG 28 to 16 0 08 mm to 1 25 mm2 Number of pin Pole terminal with a compatible insulation sleeve If a pole terminal is being used the following models are marketed by Phoenix Contact Co Cross sectional Produccnumber area AWG 24 Al 0 25 6 YE Phoenix AWG 20 Al 0 50 6 WH Contact Co AWG 18 Al 0 75 6 GY AWG 18 Al 1 6 RD Pressure welding tool for pole terminals Model No of Phoenix
147. identify that particular PLC Unit numbers should be specified in such a way that the same number is not used for more than one PLC on the same network Setting method The unit number is specified using the system registers settings in the FPWIN GR programming tool and the unit number setting switch on the side of the main unit Setting the unit number setting switch to O makes the system register settings valid FPS 9 2 Communication Parameter Settings To set unit numbers with the FPWIN GR select PLC Configuration under Option on the menu bar and then click on the COM Port tab There are two settings one for the COM 1 port and one for the COM 2 port PLC Configuration setting dialog box PLC Configuration p08p FP OTTO AUGTT tet m O Ee gt E Emre E F pa I F Heade E SOPE Figure 206 FPWIN GR PLC Configuration setting dialog box No 410 for COM 1 port No 411 for COM 2 port Unit No Click on the button and select a unit number from among the numbers 1 to 16 displayed on the pull down menu Communication Function 3 PLC Link Function FP Unit No setting using unit No setting switch The unit number setting switch is located inside the cover on the left side of the FP The selector switch and the dial can be used in combination to set a unit number between 1 and 16 Unit No setting switch Dial switch Selector switch
148. ied one bit in S is transferred to the speci fied one bit in D The bit is specified by n Hexadecimal digit 4 bit data move The specified one digit in S is transferred to the speci fied one digit in D The digit is specified by n Two 16 bit data move S1 S2 D 1 gt D 2 gt D 1 Two 32 bit data move 1 2 D S1 1 S1 gt S2 1 S2 gt gt D 1 D D 3 D 2 S S Block move S1 S2 D The data between S1 and S2 is transferred to the area starting at D Block copy S D1 D2 The data of S is transferred to the all area between D1 and D2 Data read from EEP ROM F ROM S1 S2 D The data stored in the EEPROM F ROM specified by S1 and S2 are transferred to the area starting at D Data write to EEP ROM F ROM S1 S2 D The data specified by S1 and S2 are transferred to the EEPROM F ROM starting at D 16 bit data exchange D1 D2 D2 gt D1 32 bit data exchange D1 1 D1 gt D2 1 D2 D2 1 D2 gt D1 1 D1 Higher lower byte in 16 bit data exchange The higher byte and lower byte of D are exchanged 16 bit data block exchange Exchange the data between D1 and D2 with the data specified by D3 12 51 Specifications FPS No Name B
149. ifference between the set target value and the current value Selected mode Target value greater than current value Cw CCW Pulse output from CW PLS and SIGN Forward off Reverse on Pulse output when direction output is off Pulse output when direction output is off PLS and SIGN Forward on Reverse off Pulse output when direction output is on Decrement Elapsed value of high speed counter Increment Target value less than current value Home return Pulse output from CCW Pulse output when direction output is on Pulse output when direction output is off Decrement Until the home input X2 or X5 is entered by executing F171 SPDH instruction the pulse is continuously output To decelerate the movement when near the home set the bit corresponding to the special data register DT90052 to off on gt off with the near home input The differential counter clear output can be output when the return to the home position has been completed JOG operation Pulses are output from the specified channel while the trigger for F172 PLSH instruction is in the on state The direction output and output frequency are specified by F172 PLSH instruction High speed Counter and Pulse Output Functions FP 9 4 5 _ Instructions Used with Pulse Output Function Positioning control instruction F171 trapezoidal control Automatically performs trapezoidal control accordi
150. ifies multiple contacts Specifies a range in word units Read data area Reads the contents of a data area Write data area Writes data to a data area Read timer counter set value area Reads the value set for a timer counter Write timer counter set value area Writes a timer counter setting value Read timer counter elapsed value area Reads the timer counter elapsed value Write timer counter elapsed value area Writes the timer counter elapsed value Register or Reset contacts monitored Registers the contact to be monitored Register or Reset data monitored Registers the data to be monitored Monitoring start Monitors a registered contact or data using MD and MC Preset contact area fill command Embeds the area of a specified range in a 16 point on and off pattern Preset data area fill command Writes the same contents to the data area of a specified range Read system register Reads the contents of a system register Write system register Specifies the contents of a system register Read the status of PLC Reads the specifications of the programmable controller and error codes if an error occurs Program block read The PLC program is read on the computer side Program block write The program read by the RP is written to the PLC Remote control Switches the operation mode of the programmable controller
151. ine 7 Commercially available 25 pin male female IBM PS 2 machine Part No AFC8513 conversion adapter e g MF335 by Data Spec Chapter 2 Specifications and Functions of the Unit 2 1 Parts and Functions yc 026 sina pts iad sedi Ona non beers 2 3 2 1 1 Pans and Functions ai ic pede eae eee 2 3 2 1 2 Tool Port Specification 2 6 2 1 3 Communication Cassette 2 6 2 2 Input and Output Specifications 4 2 7 2 2 1 Input Specifications 2 2 7 2 2 2 Output Specifications 00 5 2 9 2 3 Terminal Layout Diagram naaaaaaaaaaa 2 11 Specifications and Functions of the Unit FPx FP 2 1 Parts and Functions 2 1 Parts and Functions This section explains about the parts and functions of FP control unit 2 1 1 Parts and Functions Front view oN rr gt oe m o oo gooooo00 00000000 Pater ae 00000000 ooooo000 mo gt noloo g FPS co2T Right side view UUU aA O Cc EXPANSION CONNECTOR DIN standard rail attachment Figure 8 FPx Parts and Functions Specifications and Function
152. ing control instruction F171 5 26 5 30 Programming tools 1 8 Protect error 11 10 Proximity sensor 4 12 Pulse output 12 7 FPX Index Pulse output control instruction F0 5 33 Pulse output function 5 3 5 20 Pulse output function specifications 5 6 Pulse output instruction F172 5 28 Pulse output method 5 21 Pulse Sign output method 5 21 PWM output function 5 3 5 48 PWM output instruction 5 48 PWM output specifications 12 7 R Receiving data from external device 8 12 Relative value positioning operation 5 36 5 38 Relays 12 12 Removal method 4 6 Response 7 5 Response message 7 6 Restrictions on unit combinations 1 7 RUN PROG mode switch 2 4 S Safety measures 4 19 Self diagnostic error 11 5 12 43 Self diagnostic function 11 3 Serial communication specifications 1 1 communication 6 8 12 8 Serial communication specifications 1 N communication 6 8 12 8 Short circuit protective circuit 4 15 Slim 30 type mounting plate 4 7 Software environment 1 8 Special internal relays 12 21 Specifications 12 3 Start up sequence 4 19 Status indicator LEDs 2 4 11 3 Suitable cable 1 8 Suitable wire 6 11 Syntax check error 12 42 System registers 12 14 System watchdog timer 11 7 T Target value match off instruction F167 5 15 Target value match on in
153. ing the system registers e se Note To make the unit number setting in the FPWIN GR valid set the unit number setting switch to 0 Communication Function 1 Computer Link FP 7 3 4 Connection with External Device Connection diagram Wiring should extend from one unit to the next Never run two wires from the same unit to two other units Correct wiring Incorrect wiring To external device with RS485 port FP side 5 pin Transmission ine Transmissiontine2 0 To external device with RS485 port Figure 161 FP Computer link connection diagram With 1 N communication the various RS485 devices are connected using twisted pair cables The and signals of transmission line 1 and transmission line 2 are connected inside the communication cassette and either port may be used as COM 1 port Setting of terminal station In the PLC that serves as the final unit terminal station the transmission line and the E terminal should be shorted To C NET adapter of computer connection Short the transmission line and the E terminal in the final unit terminal station Figure 162 FP Computer link terminal station setting Chapter 8 Communication Function 2 General purpose Serial Communication 8 1 8 2 8 3 8 4 8 5 8 6 8 7 General purpose Serial Communication 8 3 8 1 1 Overview of Function 000
154. interrupt disabled masked 1 interrupt enabled unmasked Name Description Reading Writing DT90026 Not used DT90027 Periodical interrupt interval INT 24 The value set by ICTL instruction is stored KO periodical interrupt is not used K1 to K3000 0 5ms to 1 5s or 10ms to 30s DT90028 Not used DT90029 Not used DT90030 Message 0 DT90031 Message 1 DT90032 Message 2 DT90033 Message 3 DT90034 Message 4 DT90035 Message 5 The contents of the specified message are stored in these special data registers when F149 MSG instruction is executed DT90036 Not used DT90037 Operation auxiliary register for search instruction F96 SRC The number of data that match the searched data is stored here when F96 SRC instruction is executed DT90038 Operation auxiliary register for instruction F96 SRC The position of the first matching data is stored here when an F96 SRC instruction is executed DT90039 Not used DT90040 Potentiometer volume input VO DT90041 Potentiometer volume input V1 The potentiometer value KO to K1000 is stored here This value can be used in analog timers and other applications by using the program to read this value to a data register V0 DT90040 V1 DT90041 DT90042 Used by the system DT90043 Used by the system
155. ion Operand Description D S gt D 8 digit BCD data addition D 1 D S 1 S gt D 1 D 4 digit BCD data addition S1 S2 gt D 8 digit BCD data addition S1 1 S1 S2 1 S2 gt D 1 D 4 digit BCD data subtraction D S gt D 8 digit BCD data subtraction D 1 D S 1 S gt D 1 D 4 digit BCD data subtraction S1 S2 D S1 S2 gt D 8 digit BCD data subtraction S1 S2 D S1 1 S1 S2 1 S2 gt D 1 D 4 digit BCD data multiplication S1 S2 D S1 x S2 gt D 1 D 8 digit BCD data multiplication S1 S2 D S1 1 S1 x S2 1 S2 gt D 3 D 2 D 1 D 4 digit BCD data division S1 S2 D S1 S2 gt quotient D remainder DT90015 8 digit BCD data division S1 S2 D S1 1 S1 S2 1 S2 quotient D 1 D remainder DT90016 DT90015 4 digit BCD data increment D 1 gt D 8 digit BCD data increment D 1 D 1 gt D 1 D 4 digit BCD data decrement D 1 D 8 digit BCD data decrement Data comparison instructions 16 bit data comparison 1 S2 D 1 D 1 gt D 1 D R900A on R900B on R900C on S S lt S 2 2 2 wos 32 bit data comparison 1 S2 S1 1 S1 S141 S1 S141 S1 gt S2 1 S2 R900A on S2 1 S2 R900B on lt S2 1 S2
156. ion rounding the first decimal point off to integer Floating point type data to 32 bit integer conversion rounding the first decimal point off to integer Converts real number data specified by S 1 S to the 32 bit integer data with sign rounding the first decimal point off and the converted data is stored in D 1 D Floating point The decimal part of the real number data specified in type data S 1 S is rounded down and the result is stored in rounding the D 1 D first decimal point down Floating point The decimal part of the real number data stored in type data S 1 S is rounded off and the result is stored in D 1 rounding the D first decimal point off Floating point type data sign changes The real number data stored in S 1 S is changed the sign and the result is stored in D 1 D type data absolute Floating point Takes the absolute value of real number data specified by S 1 S and the result absolute value is stored in D 1 D type data degree gt radian Floating point The data in degrees of an angle specified in S 1 S is converted to radians real number data and the result is stored in D 1 D type data radian gt degree Floating point The angle data in radians real number data specified in S 1 S is converted to angle data in degrees and the result is stored in D 1 D 12 64 FPS 12 8 Tab
157. ion FP Using only a part of the link area Link areas are available for PLC link and link relay 1 024 points 64 words and link register 128 words can be used This does not mean however that it is necessary to reserve the entire area Parts of the area which have not been reserved can be used as internal relays and internal registers Link relay allocation Received area Range of link relay used for PLC link Starting no for link relay transmission Link relay transmission size With the above setting the 14 words 224 points consisting of WL50 to WL63 can be used as internal relays Not used Range of link register used for PLC link Starting no for link register transmission Link register transmission size With the above setting the 28 words consisting of LD100 to LD127 can be used as internal registers Figure 213 Using only a part of the link register area FPx 9 2 Communication Parameter Settings Precautions when allocating link areas If a mistake is made when allocating a link area be aware that an error will result and communication will be disabled Avoid overlapping transmitted areas When sending data from the transmitted area to the received area of another FP there must be a link relay and link register with the same number in the received area on the receiving side In the example shown below there is an area between No 2 and No 3 which is overlapped and
158. ion by comparing two 16 bit data in the comparative condition S1 lt S2 Begins a logic operation by comparing two 16 bit data in the comparative condition St S2 12 48 FPS 12 8 Table of Instructions 16 bit data comparison AND Description Connects a contact serially by comparing two 16 bit data in the comparative condition S1 S2 Connects a contact serially by comparing two 16 bit data in the comparative condition S12 S2 Connects a contact serially by comparing two 16 bit data in the comparative condition S1 gt S2 Connects a contact serially by comparing two 16 bit data in the comparative condition S12 S2 Connects a contact serially by comparing two 16 bit data in the comparative condition S1 lt S2 Connects a contact serially by comparing two 16 bit data in the comparative condition S1 s S2 16 bit data comparison Connects a contact in parallel by comparing two 16 bit data in the comparative condition S1 S2 OR Connects a contact in parallel by comparing two 16 bit data in the comparative condition S1 S2 Connects a contact in parallel by comparing two 16 bit data in the comparative condition S1 gt S2 Connects a contact in parallel by comparing two 16 bit data in the comparative condition S12 S2 Connects a contact in parallel by comparing two
159. ion cassette optional can be selected from among the three types shown below Type Applicable communication Terminal layout diagram function 1 channel Computer link RS232C General purpose serial FPGCOMT AFPGSO1 type communication FPR SD Transmitted Data Output RD Received Data Input 22929 RS Request to Send Output CS Clear to Send Input SG Signal Ground SD RD RS CS SG 2 channel Computer link RS232C General purpose serial FPG COM2 type communication ePoste RS2320 M ER o S1 Transmitted Data Output COM 1 R1 Received Data Input COM 1 S2 Transmitted Data Output COM 2 R2 Received Data Input COM 2 si Ri S2 R2 SG SG Signal Ground COM 1 and 2 e9998 1 channel Computer link RS485 type General purpose serial LL General Terminal communication station station PLC link Se 8 OPEN Shori FPS 2 2 Input and Output Specifications 2 2 Input and Output Specifications This section contains input and output specifications of FP control unit 2 2 1 Input Specifications Input specifications a Optical coupler Insulation method Rated input voltage 24 V DC Operating voltage range 21 6 to 26 4 V DC Rated input current For XO X1 X3 X4 approx 8 mA For X2 X5 to X7 approx 4 3 mA For X8 to XF approx 3 5 mA Input points per common 1
160. ion done flag R9038 R9048 RO H _ F159 MTRN DT100 K 0 K1 To repeatedly perform only reception specify KO R9038 R9048 also turns off when transmission is performed with a byte number specification x wo Communication Function 2 General purpose Serial Communication FP 8 3 Connection Example with External Devices This section contains the connection example with external devices 8 3 1 Connection Example with External Device 1 1 communication with Micro Imagechecker Outline The FP2 and Micro Imagechecker A200 A100 are connected using an RS232C cable and the results of the scan are stored in the data registers of the FP2 Communication mode General Communication Communication mode Normal mode FP gt Start command SCp is sent Scan result 1012341234C is received Figure 182 FP Connection example with external device micro imagechecker Micro Imagechecker 3 A200 A100 When the scan start code S p is sent from the FP side the scan result is returned from the Micro Imagechecker as the response Communication cassette used with 1 1 communication The following types of communication cassettes can be used with 1 1 general purpose serial communication This communication cassette is a 1 channel unit with a FP Communication cassette five wire RS232C port It supports 1 1 computer links and 1 channel RS232C ty
161. ion lines high voltage equipment power cables power equipment radio transmitters or any other equipment that would generate high switching surges If noise occurs in the power supply line even after the above countermeasures are taken it is recommended to supply power through an insulation transformer noise filter or like Installation and Wiring FPX Measures regarding heat discharge Always install the unit orientated with the tool port facing outward on the bottom in order to prevent the generation of heat CORRECT Figure 23 FPx Installation heat discharge Do not install the FP control unit as shown below INCORRECT Upside down Installation which Installations such that Input and output Horizontal blocks the air duct the input and output connectors on top installation of the unit connectors face down Figure 24 FPZ Installation direction Do not install the unit above devices which generate heat such as heaters transformers or large scale resistors FP 4 1 Installation Installation space Leave at least 50 mm 1 97 in of space between the wiring ducts of the unit and other devices to allow heat radiation and unit replacement 50 mm 1 97 in or more 50 mm 1 97 in or more Figure 25 FPZ Installation space 1 Maintain a minimum of 100 mm 3 937 in between devices to avoid adverse affects from n
162. ion output off 23 Type home return Direction output on 24 Type home return CW and deviation counter reset 25 Type home return CCW and deviation counter reset 26 Type home return Direction output off and deviation counter reset 27 Type home return Direction output on and deviation counter reset 30 Type Il home return CW 31 Type Il home return CCW 32 Type Il home return Direction output off 33 Type Il home return Direction output on 34 Type Il home return CW and deviation counter reset 35 Type Il home return CCW and deviation counter reset 36 Type Il home return Direction output off and deviation counter reset 37 Type Il home return Direction output on and deviation counter reset 2 Frequency Hz K constant 1 5 Hz to 9 8 KHz K1 to K9800 units Hz Maximum error near 9 8 kHz approximately 1 kHz 48 Hz to 100 KHz K48 to K100000 units Hz Maximum error near 100 kHz approximately 3 kHz 191 Hz to 100 KHz K191 to K100000 units Hz Maximum error near 100 kHz approximately 0 8 kHz Set K1 to specify 1 5 Hz 3 Acceleration deceleration time ms K constant K30 to K32767 4 Deviation counter clear signal ms K constant 0 5 ms to 100 ms KO to K100 Set value and error 0 5 ms or less Specify KO when not using or when specifying 0 5 ms If a value is written that exceeds the specified range of the deviation counter clear signal it will be revised to
163. ions Unit No setting switch 42 Communication cassette option This is the optional cassette type adapter used when communication is carried out Any one of the following the cassette types may be installed 1 channel RS232C type 2 channel RS232C type 1 channel RS485 type 43 Expansion hook This hook is used to secure expansion units The hook is also used for installation on flat type mounting plate AFP0804 Expansion connector Connects an expansion unit to the internal circuit of the control unit 45 DIN rail attachment lever The FP unit enables attachment at a touch to a DIN rail The lever is also used for installation on slim 30 type mounting plate AFP0811 Specifications and Functions of the Unit FPX 2 1 2 Tool Port Specification A commercial mini DIN 5 pin connector is used for the Tool port on the control unit Pinno e Signal name Abbreviation Signal direction Signal Ground Transmitted Data Unit External device Received Data Unit External device Not used 5V Unit External device Figure 10 FPx Parts and Functions Tool port The following are the default settings set when the unit is shipped from the factory The system registers should be used to change these Baudrate 9600 bps Character bit 8 bit Parity check Odd parity Stop bit length 1 bit 2 1 3 Communication Cassette The detachable communicat
164. iptions value Not set X0 X1 X2 X3 X4 X5 X6 X7 Specify the input contacts used as pulse catch input 1 Notes Interrupt input settings Not set X0 X1 X2 X3 X4 X5 X6 X7 Specify the input contacts used as interrupt input XO X1 X2 X3 X4 X5 X6 X7 Specify the effective interrupt edge When set on off is valid If the operation mode is set to 2 phase individual or direction decision the setting for CH1 is invalid in system register 400 and the setting for CH3 is invalid in system register 401 If reset input settings overlap the setting of CH1 takes precedence in system register 400 and the setting of CH3 takes precedence in system register 401 The settings for 402 and 403 are specified on the screen for each contact If system register 400 to 403 have been set simultaneously for the same input relay the following precedence order is effective High speed counter Pulse catch Interrupt input Example When the high speed counter is being used in the incremental input mode even if input X0 is specified as an interrupt input and as pulse catch input those settings are invalid and input X0 functions as counter input for the high speed counter 12 18 FPS 12 4 Table of System Registers Unit No setting Default value 1 Descriptions 1 to 99 Selection of modem connection Disabled Enabled Disabled Communication format setting Character bit 8 bits
165. is set to header start code with STX the header start code is automatically added to the beginning of the data The terminator end code specified in system register 413 or 414 is automatically added to the end of the data DT101 DT102 DT103 DT104 Transmission data A B C D F CR R9039 on R9049 off on off Execution condition F159 MTRN execution During transmission During this interval the F159 MTRN instruction cannot be executed Figure 174 Explanation during transmission 3 When all of the specified quantity of data has been transmitted the S value is cleared to 0 and the transmission done flag R9039 R9049 turns on When you do not wish to add the terminator end code during transmissions use one of the following methods Specify the number of bytes to be transmitted using a negative number If you also do not wish to add an end code to receptions set system register 413 or 414 to Terminator None A amp Example Program for transmitting 8 bytes of data without adding the terminator end code RO HDF y i 1 gt F159 MTRN DT100 K 8 K1 Specify K 8 Figure 175 FP Data transmission sample program 8 10 FPx 8 2 Overview of Communication with External Devices Tip Do not include the terminator end code in the transmission data The terminator end code is added automatically When STX exist is s
166. ission transmission buffer f When transmission begins K8 DT100 K8 When transmission ends KO DT101 H42 B i H41 A DT102 H44 D H43 C Data is transmitted in order DT103 H46 F H45 E from the low order byte DT104 H48 H H47 G Data table before transmission Figure 170 FPx Data table for transmission transmission buffer FPx 8 2 Overview of Communication with External Devices Sample program for data transmission This program transmits the character ABCDEFGH to external device using COM 1 port RO R1 HDF y Data transmission command The internal relay R10 is turned on at the tim R10 ing of the transmission condition RO HH F95 ASC M ABCDEFGH DT101 Data conversion The character ABCDEFGH is converted to an ASCII code and written to DT101 to DT104 Data transmission The data in the transmission buffer is sent from the COM port 1 R10 H F159MTRN DT 100 K8 KI Starting from DT100 the contents of 8 bytes are sent to the COM 1 K1 port ul Figure 171 FP amp Sample program for data transmission The program described above is executed in the following sequence Q ABCDEFGH is converted to an ASCII code and stored in a data register 2 That data is sent from the COM port 1 using the F159 MTRN instruction Explanatory diagram The character is converted to ASCII code and the data is stored in sent buffer H4142434
167. it No of source PLC that processed the commana in decimal Text Processing results and communication error codes are stored here Check code BCC Hexadecimal T End code parena Two One digit digit Le value specified contact is off l name Processing results for contact area read Response indicates a normal processing result indicates that an error occurred Figure 145 FPX Response message overview Start code Header A ASCII code H25 or lt ASCII code H3C must be at the beginning of a message The response must start with the same start code that was at the beginning of the command 2 Unit No The unit number of the PLC that processed the command is stored here If 1 1 communication is being used 01 will be stored here 3 Text The content of this 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 0 1 RC i211 amp ian If the read command was used the data that was read is stored here If normal Command name If error occurs Error code Response code If normal ASCII code H23 If error occurs ASCII code H21 Figure 146 FPX Response message text 7 6 FPS 7 1 Computer Link 4 Check code This is the BCC block check code used to detect er
168. its of D to the left Right shift of n bits in a 32 bit data Shifts the n bits of the 32 bit data area specified by D 1 D to the right Left shift of n bits in a 32 bit data Shifts the n bits of the 32 bit data area specified by D 1 D to the left Right shift of one hexadeci mal digit 4 bit Shifts the one digit of data of D to the right Left shift of one hexadeci mal digit 4 bit Shifts the one digit of data of D to the left Right shift of multiple bits n bits Shifts the n bits of data range by D1 and D2 to the right Left shift of multiple bits n bits Shifts the n bits of data range by D1 and D2 to the left Right shift of one word 16 bit Shifts the one word of the areas by D1 and D2 to the right Left shift of one word 16 bit Shifts the one word of the areas by D1 and D2 to the left Right shift of one hexadeci mal digit 4 bit Shifts the one digit of the areas by D1 and D2 to the right Left shift of one hexadeci mal digit 4 bit Data buffer instructio FIFO buffer define Shifts the one digit of the areas by D1 and D2 to the left The n words beginning from D are defined in the buffer Data read from FIFO buffer The oldest data beginning from S that was written to the buffer is read
169. k Calendar Function 2 55 10 4 10 2 3 Precautions Concerning Backup of Clock Calendar Data 10 5 10 2 4 Example Showing the Clock Calendar being Used 10 6 Chapter 11 Self Diagnostic and Troubleshooting 11 1 Self Diagnostic FUNCUONs sis sees aie see eee eae wna tae ee oe 11 3 11 1 1 LED Display for Status Condition 0 04 11 3 11 1 2 Operation on Error oxic Ses oka eees Gaeta kya eeuk weaees 11 4 11 2 Troubleshooting ac sed Yas eee ess eer 4 Eee ee es 11 5 11 2 1 If the ERROR ALARM LED Flashes 11 5 11 2 2 If the ERROR ALARM LED Lights 11 7 11 2 3 If None of the LEDs Light 2 2 4002dste des adetaeci cee hae 11 7 11 2 4 If Outputting does not Occur as Desired 11 8 11 2 5 If a Protect Error Message Appears 0e eee 11 10 11 2 6 If the Program Mode does not Change to RUN 11 10 11 2 7 If a Transmission Error has Occurred 000 005 11 11 Table of Contents FP Chapter 12 Specifications 12 1 Table of Specifications Ee rowe vassal eee awe eed eae 8 12 3 12 1 1 General Specifications 0 c cece eee 12 3 12 1 2 Performance Specifications 00 cee ee eee 12 5 1222 VONG Allocations cede wi aud a tee bali aurea E 12 10 12 3 Relays Memory Areas and Constants 00 0 cee eee eee eee 12 12 12 4 Table of System Registers
170. l numbers as shown below x Decimal K2 Oe ke Hexadecimal y eae eee 9 A B F I O Allocation and Expansion Method FP 3 2 Adding Expansion Units Because unit expansion is done using the expansion connector and hook on the side of the unit no expansion cable is needed 3 2 1 Expansion Method Q Peel the seal on the side of the unit so that the internal expansion connector is exposed Peel the seal Figure 19 Expansion method procedure 1 2 Raise the expansion hooks on the top and bottom sides of the unit with a screw driver Figure 20 Expansion method procedure 2 3 Align the pins and holes in the four corners of the control unit and expansion unit and insert the pins into the holes so that there is no gap between the units Figure 21 Expansion method procedure 3 4 Press down the expansion hooks raised in step 2 to secure the unit Figure 22 Expansion method procedure 4 3 6 Chapter 4 4 1 4 2 4 3 4 4 4 5 4 6 Installation and Wiring l stallatior sess vsraz sche cacedca eb sesh Gather ea ational nde ea 4 3 4 1 1 Installation Environment and Space 4 3 4 1 2 Installation and Removal 4 6 Wiring of Power Supply 0000 cee cee ene 4 9 4 2 1 Wiring of Power Supply 4 9 4 2 2 Grounding 623 sooo een east eo eet 3g 4 11 Wiring of Inout and Output 6200 cee eee 4 12 4 3 0 Input Wiring es
171. l output relay Y 512 points The number of points actually available for use is determined by the hardware configuration Internal relay R 1 568 points RO to R97F Note 1 Timer Counter T C 1 024 points Note 1 and 2 initial setting is 1 008 timer points TO to T1007 16 counter points C1008 to C1023 Timer Can count up to in units of 1 ms 10 ms 100 ms or 1 s x 32767 Counter Can count up to 1 to 32767 Link relays L 1 024 points Note 1 Data register DT 32 765 words DTO to DT32764 Note 1 Link data register LD 128 words Note 1 Index register I 14 words I0 to ID Differential points Unlimited of points Master control relay points MCR 256 points Number of labels JP and LOOP 256 labels Number of step ladders 1 000 stages Number of subroutines 100 subroutines Pulse catch input 8 points X0 to X7 Number of interrupt programs 9 programs external input 8 points XO to X7 periodical inter rupt 1 point 0 5 ms to 30s Self diagnosis function Such as watchdog timer program syntax check Clock calendar function Available year month day hour minute second and day of week However this can only be used when a battery has been installed Note 3 Potentiometer Volume input 2 points Resolution 10 bits KO to K1000 Battery life 220 days or
172. l unit with a FP Communication cassette three wire RS232C port It supports 1 1 computer links EPG COM2 2 channel RS232C type and general purpose serial communication Communica tion with two external devices is possible This communication cassette is a 1 channel unit with a FP Communication cassette two wire RS485 port It supports 1 N computer links C EPG COM3 1 channel RS485 type NET general purpose serial communication and a PLC link FPS 1 3 Restrictions on Unit Combinations 1 3 Restrictions on Unit Combinations This section contains restrictions on unit combinations 1 3 1 Restrictions on the Number of Expansion Units e oo ooooo oooooooo m douooooo T EAZ dodobobo Goootooo EAA dobobooo ha tododo0o T TA dodobobo m a poa 0o000000 dooooo00 Cobobodo oodotooo dofoboto oodotooo Cr o o o o dodooooo oe m e e a aL Le Maximum possible expansion is with a total of 3 units FP Y C32T Expansion unit or intelligent unit Expansion unit or intelligent unit Expansion unit or FP Control unit intelligent unit Figure 6 Restriction on unit combinations A maximum of three FPO ex
173. lains about the communication functions and type of the optional communication cassette 6 1 1 Functions of Communication Cassette There are three types of communication functions made possible by the FP x communication cassette as described below Computer link The computer link is used to carry out communication with a computer connected to the PLC that has a transmission right Instructions command messages are output to the PLC and the PLC responds sends response messages based on the received instructions A MEWNET exclusive protocol called MEWTOCOL COM is used to exchange data between the computer and PLC Two communication methods are available 1 1 and 1 N A network using the 1 N connection is called a C NET The PLC sends back responses automatically in reply to commands from the computer so no program is necessary on the PLC side in order to carry out communication Computer FP gt Command message gt Response message Figure 128 FP Computer link function Applicable communication cassette For 1 1 communication 1 channel RS232C type Part No FRG COM1 2 channel RS232C type Part No FRG COM2 For 1 N communication 1 channel RS485 type Part No FRG COM3 Communication Cassette FPx General purpose serial communication General purpose serial communication enables data to be sent back and forth between an image processing device co
174. le of Instructions No Name Boolean Floating point type data compare Operand Description Floating point type real number data processing instructions 1 S2 S1 1 S1 gt S2 1 S2 gt R900A on S1 1 S1 S2 1 S2 gt R900B on S1 1 S1 S2 1 S2 R900C on lt Floating point type data band compare S1 S2 S3 gt S2 1 S2 lt S141 S1 lt S3 1 S3 gt R900B on lt S1 1 S1 gt S3 1 S3 gt R900A on s S1 1 S1 lt S2 1 S2 gt R900C on Floating point type data upper and lower limit control 1 S2 3 D When S1 1 S1 gt S3 1 S3 S141 S1 gt D D When S2 1 S2 lt S3 1 3 S2 1 S2 gt D 1 D When S1 1 S1 S S3 1 S3 s S2 1 S2 S3 1 S3 gt D 1 D Floating point type data dead band control When S1 1 S1 gt S3 1 S3 S3 1 S3 S1 1 S1 gt D 1 D When S2 1 S2 lt S3 1 S3 S3 1 S3 S2 1 S2 gt D 1 D When S1 1 S1 lt S3 1 3 lt S2 1 S2 0 0 gt D 1 D Process control instr Data compare instructions Floating point type data zone control PID processing uction When S3 1 3 lt 0 0 S341 S3 S141 S1 gt D 1 D When S3 1 S3 0 0 0 0 gt D 1 D When S3 1 S3 gt 0 0 S341 S3 S241 2 gt D 1 D PID processing is performed depending on the control value mode and parameter specified by
175. lts become larger in the comparison instructions flag Turns on for an instant when the compared results are equal in the comparison instructions when the calculated results become 0 in the arithmetic instructions lt flag Turns on for an instant when the compared results become smaller in the comparison instructions Auxiliary timer instruction flag Turns on when the set time elapses set value reaches 0 in the timing operation of the F137 STMR F183 DSTM auxiliary timer instruction The this flag turns off when the trigger for auxiliary timer instruction turns off Tool port communication error Turns on when communication error at tool port is occurred Constant scan error flag Turns on when scan time exceeds the time specified in system register 34 during constant scan execution This goes on if 0 has been set using system register 34 12 21 Specifications FPS Relay No Name Description Always on relay Always on Always off relay Always off Scan pulse relay Turns on and off alternately at each scan Initial on type pulse relay This goes on for only the first scan after operation RUN has been started and goes off for the second and subsequent scans Initial off type pulse relay This goes off for only the first scan after operation RUN has been started and goes on for the second and subsequent scans Step ladder initial pulse relay
176. m including spray or mist e Benzine paint thinner alcohol or other organic solvents or strong alkaline solutions such as ammonia or caustic soda e Influence from power transmission lines high voltage equipment power cables power equipment radio transmitters or any other equipment that would generate high switching surges Static electricity e Before touching the unit always touch a grounded piece of metal in order to discharge static electricity e In dry locations excessive static electricity can cause problems Cleaning e Do not use thinner based cleaners because they deform the unit case and fade the colors Power supplies e An insulated power supply with an internal protective circuit should be used The power supply for the control unit operation is a non insulated circuit so if an incorrect voltage is directly applied the internal circuit may be damaged or destroyed e If using a power supply without a protective circuit power should be supplied through a protective element such as a fuse vii Before You Start FP Power supply sequence Have the power supply sequence such that the power supply of the control unit turns off before the power supply for input and output If the power supply for input and output is turned off before the power supply of the control unit the control unit will detect the input fluctuations and may begin an unscheduled operation Before turning on the power
177. m the computer to the PLC and then the PLC sends a reply response back to the computer Figure 141 FPX Overview of computer link function What is the computer link A computer link is a function that carries out communication between a computer and PLC making it possible to monitor and control the PLC operating status from a computer Conversation is carried out between the two by instructions commands being sent from the computer to the PLC and the PLC replying sending response messages back to the computer A MEWNET exclusive protocol called MEWTOCOL COM is used to exchange data between the computer and PLC The communication speed and transmission format are specified using system registers No 413 COM 1 port and No 414 COM 2 port Program for computer link To use a computer link a program should be created that enables command messages to be sent and response messages to be received on the computer side No communication program is required on the PLC side Programs for the computer side should be written in BASIC or C language based on the MEWTOCOL COM format MEWTOCOL COM contains the commands used to monitor and control PLC operation Communication Function 1 Computer Link FP 7 1 2 Explanation of Operation when Using a Computer Link Command and Response Instructions pertaining to the PLC are called commands These should be issued by the computer to the PLC Messages sent back
178. mpleted lt Received number of bytes Received data is stored in order from the lower order byte Communication Function 2 General purpose Serial Communication FP c k Contents of the response If K100 is stored in DTO and K200 is stored in DT1 of the FP series PLC on the other side 01 RD6400C8006F is returned from the FP series PLC on the other side as the response when the program is executed The re ceived data is stored in the data registers as shown below DT4 DT3 DT2 DTI DTO OO FT OEE eo Upper Lower Upper Lower Upper Lower Upper Lower Upper Lower byte byte byte byte byte byte byte byte byte byte 0 0 4 6 BD R 0 amp Value of DTO in the PLC on the other side DT7 DT6 DT5 a OO SS Upper Lower Upper Lower Upper Lower byte byte byte byte byte byte 1 F 0 0 8 BCC Value of DT1 in the PLC on the other side Extracting the data register values from the PLC on the other side In the program the data segment of the response from the PLC on the other side is converted to hexadecimal data using the F72 AHEX hexadecimal ASCII HEX conversion instruction and stored in DT50 and DT51 only if the character string 1 stored in DT1 detected as a comparison instruction DT6 DT5 DT4 DI3 Upper Lower Upper Lower Upper Lower Upper Lower byte byte byte byte byte byte byte byte Hao Has H30 0 8 0 4 6 et _ _ _
179. munication mode for COM 1 port PLC link Tip Make sure the same unit number is not used for more than one of the PLCs connected through the PLC link function FPZ 9 3 Connection Example of PLC Link Allocation of link area Link relay allocation FPX FPZ FPX Unit No 1 Unit No 2 Unit No 3 r WLOJ Transmitted area Received area Received area Transmitted area 19 20 Received area Figure 218 FP Link relay allocation when using a PLC link with three FP units Received area deans rites area 63 System register Range of link relay used for PLC link Starting no for link relay transmission Link relay transmission size Link register allocation FPX FPX FPZ Unit No 1 Unit No 2 Unit No 3 LDO i area 39 Received area 40 Received area C Transmitted 127 Figure 219 FP Link register allocation when using a PLC link with three FPX units System register Range of link register used for PLC link Starting no for link register transmission Link register transmission size Communication Function 3 PLC Link Function FP Connection diagram FPX FPX FPX Unit No 1 Unit No 2 Unit No 3 The final unit should be shorted The final unit should be shorted between the transmission line between the transmission line and the E terminal and the E terminal Figure 220 FP Connection di
180. n Single pulse input driver pulse input and directional switching input method One output point is used as a pulse output and the other output is used as a direction output The I O allocation of pulse output terminal direction output terminal and home input is determined by the channel used See the table of specifications on page 5 6 Near home input is substituted by allocating the desired contact and turning on and off the specified bit of special data register DT90052 Up to two driver systems can be connected When using CHO FP gt Home input X2 KB Near home input Driver Pulse output YO Y1 Directional switching output X3 or other desired input can be specified for the near home input Figure 90 FP Pulse output function I O allocation when using CHO single pulse input When using CH2 FPE Home input X5 gt X6 Near home input Driver Pulse output Y3 Y4 Directional switching output X6 or other desired input can be specified for the near home input Figure 91 FP Pulse output function I O allocation when using CH2 single pulse input High speed Counter and Pulse Output Functions FP se Notes e Precautions when the Pulse and Sign type of driver is being used With some motor drivers it takes some time for pulse input to be accepted after the directional output has gone on For detailed in
181. n The received number of DT200 bytes Ly stored as data is DT200 to DT204 are used as the reception buffer System register settings are as fol DT201 H42 B H41 A lows System register 416 K200 DT202 H44 D H43 C Received data is stored in A order from the lower order System register 417 K5 DT203 H46 F H45 E Pyle DT204 H48 H H47 G Reception buffer when reception is completed Figure 179 FPX Data table for reception received buffer Explanation of data table Data sent from an external device connected to the RS232C port is stored in the data registers that have been set as the reception buffer The number of bytes received is stored in this area Reception data storage area The circled numbers indicate the order of storage Figure 180 FPx Data table for reception Data registers are used for the reception buffer Specify the data registers in system registers 416 to 419 The number of bytes of data received is stored in the starting address of the reception buffer The initial value is O Received data is stored in the received data storage area in order from the lower order byte Communication Function 2 General purpose Serial Communication FP Explanation during reception When the reception done flag R9038 R9048 is off operation takes place as follows when data is sent from an external device The R9038 R9048 is off during the first scan aft
182. n be specified from YO to Y7 as desired Figure 71 FP High speed counter function I O allocation 2 FPx 5 3 High speed Counter Function 5 3 9 _ Instructions Used with High speed Counter Function High speed counter control instruction F0 This instruction is used for counter operations such as software reset and count disable Specify this instruction together with the special data register DT90052 Once this instruction is executed the settings will remain until this instruction is executed again Operations that can be performed with this instruction Counter software reset Counting operation enable disable Hardware reset enable disable Clear controls from high speed counter instructions F166 F167 and F171 to F173 Clear target value match interrupt lt 5 te Example Performing a software reset X7 DF FO MV H 1 DT90052 FO MV H 0 DT90052 Figure 72 FPx Program of high speed counter control instruction FO In the above program the reset is performed in step 1 and 0 is entered just after that in step 2 The count is now ready for operation If it is only reset counting will not be performed Elapsed value change and read instruction F1 This instruction changes or reads the elapsed value of the high speed counter Specify this instruction together with the special data register DT90044 The elapsed value is stored as 32 bit data in th
183. n unit No Turns off when unit No 7 is in the RUN mode 7 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 8 is in the RUN mode 8 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 9 is in the RUN mode 9 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 10 is in the RUN mode 10 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 11 is in the RUN mode 11 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 12 is in the RUN mode 12 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 13 is in the RUN mode 13 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 14 is in the RUN mode 14 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 15 is in the RUN mode 15 is in the PROG mode Unit No Turns on when unit No Turns off when unit No 16 is in the RUN mode 16 is in the PROG mode 12 27 Specifications FPS 12 6 Table of Special Data Registers The special data registers are one word 16 bit memory areas which store specific information A Available N A Not available Name Description Reading Writing DT90000 Self diagnostic error code The self diagnostic error co
184. nctions such as data registers settings must be entered for system registers Nos 6 to 12 For hold area setting using FPWIN GR select PLC Configuration on the Option menu and click on Hold Non hold 1 and Hold Non hold 2 FPE 4 6 Backup Battery 4 6 3 Lifetime of Backup Battery The life of the backup battery will eventually expire and therefore it is important to replace it with a new battery periodically Refer to the table below for a guide as to when to replace the battery Item Description Battery lifetime 220 days or more typical lifetime in actual use approx 840 days at 25 C 70 F Suggested replacement interval 1 year Value when no power at all is supplied Maintenance battery Name Part No Battery for FPX AFPG804 se Notes e If system register No 4 Alarm Battery Error is set to ON special internal relays R9005 and R9006 will go on if the battery voltage drops and the ERROR ALARM LED will flash The battery remains effective for about a week after the alarm is issued but in some cases the problem is not detected immediately The battery should be replaced as soon as possible without turning off the power supply e When replacing the battery connect the new battery within 20 seconds of removing the old one Installation and Wiring FPZ Chapter 5 High speed Counter and Pulse Output 5 1 5 2 5 3 5 4
185. nd DT90045 for channel 0 matches K10000 output Y7 turns on Figure 75 FP Program 1 of target value match on instruction F166 d g g Example 2 XB HDF F166 HC1S K2 K20000 Y6 If the elapsed value DT90200 and DT90201 for channel 2 matches K20000 output Y6 turns on Figure 76 FP Program 2 of target value match on instruction F166 Target value match off instruction F167 A Example 1 XC HDF F167 HC1R K1 K30000 Y4 If the elapsed value DT90048 and DT90049 for channel 1 matches K30000 output Y4 turns off Figure 77 FP Program 1 of target value match off instruction F167 d g g Example 2 XD HDF F167 HC1R K3 K40000 Y5 If the elapsed value DT90204 and DT90205 for channel 3 matches K40000 output Y5 turns off Figure 78 FPx Program 2 of target value match off instruction F167 High speed Counter and Pulse Output Functions FP 5 3 6 Sample Program Positioning operations with a single speed inverter Wiring example FPX Input terminal Conveyor Encoder input XO ai Operation start X5 O OF Encoder 7X Output terminal inverter Inverter operation gt Operation Stop gt M e e d Figure 79 FPx High speed counter function sample program 1 wiring Operation chart O allocation Encoder input Speed Operation start signal Inverter ope
186. nded FPS 12 1 Table of Specifications High speed counter pulse output and PWM output specifications Ca Ce eee High speed counter Input point number When using single phase Four channels maximum When using 2 phase Two channels maximum Maximum counting speed When using single phase for 1 channel 50 KHz max x1 ch for 2 channels 30 KHz max x2 ch for 3 or 4 channels 20 KHz max x3 to 4ch When using 2 phase for 1 channel 20 KHz max x1 ch for 2 channels 15 kHz max x2 ch Input contact used Note1 When using single phase XO count input chO X1 count input ch1 X2 reset input chO ch1 X3 count input ch2 X4 count input ch3 X5 reset input ch2 ch3 When using 2 phase XO X1 count input chO X2 reset input chO X3 X4 count input X5 reset input ch2 ch2 Output point number Two independent points simultaneous output possible Output mode CW and CCW mode Pulse and Sign mode Maximum output frequency When using 1 channel 100 kHz max x1 ch When using 2 channels 60 kHz max x2 ch High speed counter used Note 2 Two phase ch0 or ch2 Output contact used Note 1 X2 or X5 Home input YO or Y3 CW output or Pulse output Y1 or Y4 CCW output or Sigh output Y2 or Y5 Deviation counter reset output Output point number Two points Y0 Y3 Output frequency 1 5 to 12 5k
187. ned and proc The command and data are essing is carried out based on the sent to the PLC with the content of the response such as specified unit number retrieving any data that was sent Response message Start Source Text Check End code OD code code Figure 142 FPE MEWTOCOL COM 7 4 FPZ 7 1 Computer Link 7 1 3 Format of Command and Response Command message Items necessary for commands should be noted in the text segment and the unit number specified before sending the command Start code Unit No of destination 01 to 32 Decimal Text Content is specified based on type of command O iat code BCC Hexadecimal End he S HOI GIG ECCT Two One digit digit a ae Target that reads the value internal relay R1 t item specifies that only 1 point should be read Command name e g Read contact area Command code Indicates that this is a command Figure 143 FPX Command message format Start code Header Commands must always have a ASCII code H25 or a lt ASCII code H3C at the beginning of a message 2 Unit No Any PLC connected to the C NET has a unit number specified for it The unit number of the PLC to which the command is being sent should be specified When using 1 1 communication 01 should be specified 3 Text The content differs depending on the command The
188. ng continue or clear pulse output high speed counter instruction control flag Control code setting 15 Pe Channel setting 0 to 3 CHO to CH3 Home near input 0 Invalid 1 Valid High speed counter instruction 0 Continue 1 Clear Pulse output 0 Continue 1 Stop Hardware reset 0 Enable 1 Disable Count 0 Enable 1 Disable Software reset 0 No 1 Yes 12 31 Specifications FPS A Available N A Not available Name Description Reading Writing DT90053 Clock calendar Hour and minute data of the clock calendar are stored here monitor This data is read only data it cannot be overwritten hour minute Higher byte Lower byte Hour data Minute data HOO to H23 HOO to H59 DT90054 Clock calendar The year month day hour minute second and day of the setting week data for the calendar timer is stored The built in calen minute second dar timer will operate correctly through the year 2099 and supports leap years The calendar timer can be set the time set by writing a value using a programming tool software or a DT90055 Clock calendar Program that uses the FO MV instruction setting day hour e Higher byte _ Lower byte DT90056 Clock calendar DT90054 Minute data Second data setting HOO to H59 HOO to H59 year month DT90055 Day data Hour data H01 to H31 HOO to H23 DT90057 Clock calendar DT90056
189. ng to the specified data table Generates a pulse from output YO at an initial soeed of 500Hz a maximum speed of 5 000Hz an acceleration deceleration time of 200ms and a movement amount of 10 000 pulses HDF F1 DMV H1100 DT100 F1 DMV K500 DT102 F1 DMV K5000 DT104 F1 DMV K10000 DT108 F1 DMV K200 DTi06 F1 DMV KO DT110 F171 SPDH DT100 KO Figure 92 FPx Program of positioning control instruction F171 When the program is run the positioning data table and the pulse output diagram will be as shown below Positioning data table Control code 1 H 1100 Initial speed 2 500 Hz Maximum speed 2 5 000 Hz Acceleration deceleration time 3 200 ms Target value 4 10 000 pulses Pulse stop KO Pulse output diagram 5 000 Hz 10 000 pulses l 500 Hz 0 Hz i i 200 ms 200 ms Figure 93 FPx Pulse output diagram of F171 instruction FPS 5 4 Pulse Output Function 1 Control code 0 Fixed Duty on width 0 Duty 1 2 50 1 Duty 1 4 25 Frequency range 2 0 1 5 Hz to 9 8 kHz 1 48 Hz to 100 kHz 2 191 Hz to 100 kHz Operation mode and output type 00 Incremental CW CCW 02 Incremental PLS and SIGN 03 Incremental PLS and SIGN 10 Absolute CW CCW 12 Absolute PLS and SIGN 13 Absolute PLS and SIGN forward off reverse on
190. nk unit station No 7 or 15 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 DT90248 DT90249 DT90250 DT90251 PLC link unit station No 8 or 16 System regis ter 40 and 41 System regis ter 42 and 43 System regis ter 44 and 45 System regis ter 46 and 47 The contents of the system register settings pertaining to the PLC inter link function for the various unit numbers are stored as shown below Example When DT90219 is 0 Higher byte T Lower byte DT90240 to DT90243 unit station number 6 i contents of system register 40 42 44 and 46 Setting contents of system register 41 43 45 and 47 A N A DT90252 to DT90255 Not used DT90256 Unit station No switch monitor for COM port Used by the system 12 41 Specifications FPZ 12 7 Table of Error Cords 12 7 1 Table of Syntax Check Error Name Operation Description and steps to take status Syntax error A program with a syntax error has been written Change to PROG mode and correct the error Duplicated output error Two or more OT Out instructions and KP Keep instructions are programmed using the same relay This also occurs if the same timer counter number is being used Change to PROG mode and correct the program so that one relay is n
191. nnected to the COM port and an external device such as a bar code reader Reading and writing of data is done using a ladder program in the FP while reading and writing of data from an external device connected to the COM port is handled through the FP data registers Image checker Data register DT Data transmission using F159 MTRN instruction Data is sent to and received from external devices through the data registers Data received in reception buffer FPX Figure 129 FP General purpose serial communication function Applicable communication cassette For 1 1 communication 1 channel RS232C type Part No FRG COM1 2 channel RS232C type Part No FRG COM2 For 1 N communication 1 channel RS485 type Part No FRG COM3 FPx 6 1 Communication Functions of FP PLC link Data is shared with PLCs connected through the MEWNET using dedicated internal relays Link relays L and data registers Link registers LD When using link relays if the link relay contact for one PLC goes on the same link relay also goes on in each of the other PLCs connected to the network With link registers if the contents of a link register are rewritten in one PLC the change is made in the same link register of each of the other PLCs connected to the network With a PLC link the status of the link relays and link registers in any one PLC a
192. nning Positioning operation start Positioning data table DT100 k DT101 Control code H 1100 pana Initial speed 500 Hz DT104 x DT105 Maximum speed 5 000 Hz DT106 rtimn DT107 Acceleration time 200 msec DT108 DT109 Target value Movement amount 10 000 pulses DT110 DT111 Pulse stop Control code H11 00 Duty 1 4 25 48 Hz to 100 kHz Incremental CW and CCW HHFinmv H1100 DT100 FiDmv K500 DT 102 Fi1DMV 5000 DT 104 F1DMV K200 DT 106 F1DMV K10000 DT108 F1DMV KO DT 110 T LJ LO LO LOLU L F171 SPDH DT 100 The data table headed by DT100 is used Pulses are output from CHO TO R12 Pulse output instruction table shaped control The data table headed by DT100 is used and pulses are output from CHO R903A R10 HDF R12 Positioning done pulse 1 second TMR Bee ETO 0 1 s type timer Setting K10 and using it as a 1 sec 1 second timer h Figure 108 FP Sample program relative value positioning operation program 5 36 FPS 5 4 Pulse Output Function Pulse output diagram 5 000 Hz 10 000 pulses Figure 109 FPZ Sample program pulse output diagram High speed Counter and Pulse Output Functions FP Relative value positioning operation minus direction When X9 turns on the pulse is output from CCW output Y1 of specified channel CHO 0 V 24 V DC _ _ FPX Start input Pulse
193. nput terminal Conveyor Encoder input X0 L Operation start X5 O oO Encoder Motor Output terminal Inverter Inverter operation YQ gt gt Operation Stop Inverter Y1 gt gt gt Fast Slow high speed gt 5 J oe COM Figure 82 FPx High speed counter function sample program 2 wiring Operation chart O allocation Encoder input Speed Operation start signal Inverter operation signal Inverter high speed signal 4500 5000 Number of pulse Positioning operation start vo i L_ Arrival at deceleration point s Positioning done pulse Y1 Comparison instruction lt flag Positioning operation running High speed counter CHO control flag Figure 83 FP High speed counter function sample program 2 operation chart FPx 5 3 High speed Counter Function Program When X5 is turned on YO and Y1 turn on and the conveyor begins moving When the elapsed value DT90044 and DT90045 reaches K4500 Y1 turns off and the conveyor be gins decelerating When the elapsed value reaches K5000 YO turns off and the conveyor stops X5 R903A R103 R100 DF Positioning operations running R100 R100 R101 H DF N Positioning operations start R101 Ee A Resets elapsed value of high speed counter CHO Target value match off instruction YO goes off when elapsed value of high speed counter CHO reaches 5 000 pulses FiDMv s Ko
194. o Control unit C32T Current consumption at 24 V DC 90 mA or less Expansion unit E32T E32P 40 mA or less E16T E16P E16YT E16YP 25 mA or less E16R E16X 20 mA or less E8YT E8YP E8R 15 mA or less E8X E8YR Current consumption by the control unit 10 mA or less When using expansion units the consumption current increases by the number of expansion units The E8R E8YR E16R relay type expansion units require 50 mA E8R or 100 mA E8YR E16R per unit as a separate relay drive source This current should be supplied to the each of the various units through the power supply connector for expansion unit 12 4 FP 12 1 Table of Specifications 12 1 2 Performance Specifications item i eseriptions O Z O Z OoOO o oo O Programming method Control method Relay symbol Cyclic operation Controllable I O points Basic unit Total 32 Input 16 Output 16 With expansion unit Max 128 The number of FPO expansion units can be expanded to a maximum of 3 Program memory Built in Flash ROM without backup battery Program capacity 12 000 steps Number of instruction Basic 89 High level 212 Operation speed 0 4 us step by basic instruction Operation memory Relay External input relay X 512 points The number of points actually available for use is determined by the hardware configuration oints P Externa
195. o 12 and no 14 are used to specify the area to be held when a battery is used Operation mode setting on error System registers 4 20 23 and 26 Set the operation mode when errors such as battery error duplicated use of output I O verification error and operation error occur Time settings System registers 31 to 34 Set time out error detection time and the constant scan time MEWNET W0 PLC link settings System registers 40 to 45 and 47 These settings are for using link relays and link registers for MEWNET W0 PLC link communication Note that the default value setting is no PLC link communication Input settings System register 400 to 403 When using the high speed counter function pulse catch function or interrupt function set the operation mode and the input number to be used as a exclusive input Tool and COM ports communication settings System registers 410 to 419 Set these registers when the tool port COM 1 and COM 2 ports are to be used for computer link general communication PLC link and modem communication Note that the default value setting is Computer link mode Checking and changing the set value of system register Using programming tool software 1 Set the control unit in the PROG mode 2 Select PLC Configuration under Option on the menu bar 3 When the function for which settings are to be entered is selected in the PLC Configuration dialog box the value and setting
196. oad Tsimshatsui Kowloon Hong Kong Tel 852 2529 3956 a Japan Matsushita Electric Works Ltd Automation Controls Company 1048 Kadoma Kadoma shi Osaka 571 8686 Japan Tel 81 06 6908 1050 Please contact Matsushita Electric Works Ltd Automation Controls Company Head Office 1048 Kadoma Kadoma shi Osaka 571 8686 Japan Telephone Japan 81 Osaka 06 6908 1050 Facsimile Japan 81 Osaka 06 6908 5781 http www nais e com COPYRIGHT 2001 All Rights Reserved ARCT1F333E 200108 5ZT Specifications are subject to change without notice Printed in Japan ACG M333E
197. of Communication Cassette 0 000 6 10 6 3 1 Attachment Procedure 22 cece eee eee 6 10 6 4 Wiring of Communication Cassette sessu sesanan 6 11 6 4 1 Wiring the Connector with the Communication Cassette 6 11 6 4 2 Tool for Tightening Communication Connector Terminal Block 0 00 0c cece eects 6 12 6 4 3 Wiring Method ics esc toveda eon ee ee Sees 6 12 6 4 4 Cautions Regarding Wiring 2 cece eee eee 6 12 Chapter 7 Communication Function 1 Computer Link 7A Computer LINK peracid tered tor peka a Betas beads dara ee he 7 3 7 1 1 Overview of Function 1 sc2de 5026 topo badereunesi ani aade 7 3 7 1 2 Explanation of Operation when Using a Computer Link 7 4 7 1 3 Format of Command and Response 000 7 5 7 1 4 Types of Commands that Can Be Used 7 8 7 1 5 Setting the Communication Parameters when Using a Computer Link 00 eee eee eee 7 10 Teo RESTICH ae aqout Seas caret eles arene he ene 7 10 7 2 1 Connection Example with External Device 1 1 communication with computer 05 7 11 7 2 2 Connection Example with External Device 1 1 communication with programmable display GT10 7 14 Table of Contents FP 7 3 Computer Link 1 N communication 0 0000 eee eee 7 18 7 3 1 Overview of 1 N Communication 0 00 c eee 7 18 7 3 2 Communication Cassette
198. oise and heat when installing a device or panel door to the front of the PLC unit 100 mm 3 937 in or more Panel door PLC unit Other device Figure 26 FPZ Installation space 2 Keep the first 100 mm 3 937 in from the front surface of the control unit open in order to allow room for programming tool connections and wiring Installation and Wiring FPX 4 1 2 Installation and Removal Attachment to DIN rail and removal from DIN rail The FP unit enables simple attachment to DIN rails Procedure of installation method Q Fit the upper hook of the unit onto the DIN rail 2 Without moving the upper hook press on the lower hook to fit the unit into position Figure 27 Installation method Procedure of removal method S Nace CONNECTOR C Insert a slotted screwdriver into the DIN rail attachment lever 2 Pull the attachment lever downwards 3 Lift up the unit and remove it from the rail Figure 28 Removal method FPZ 4 1 Installation Installation using the optional mounting plate When using the slim 30 type mounting plate AFP0811 Use M4 size pan head screws for attachment of the slim 30 type mounting plate to mounting panel and install according to the dimensions shown below gt cS F 10 mm 0 39 in re 1K 2 Tm 1 E tue S m 00 g E 0
199. on line Terminal station setting Figure 133 FP 1 channel RS485 type communication cassette 6 2 2 The tool port provided as a standard feature of the FP is treated as the COM 0 port The ports in which the communication cassettes are installed are treated as the COM 1 port and COM 2 port The principle applications of the various ports are as described Names and Principle Applications of the Ports below Port name COM 0 port When using only the FP gt contorl unit Tool port Computer link When the 1 channel RS232C type has been added Tool port Computer link When the 2 channel RS232C type has been added Tool port Computer link When the 1 channel RS485 type has been added Tool port Computer link COM 1 port Computer link General purpose serial communication Computer link General purpose serial communication C NET General purpose serial communication PLC link COM 2 port lt 2 Notes Computer link General purpose serial communication e Communication using MEWTOCOL COM is possible with ports and tool ports for which Computer link is noted above With MEWTOCOL COM the same commands are supported on all three channels and frames of up to 2 048 bytes header lt are supported e General purpose serial communication is possible only with the COM 1 port and COM 2 port Communication Cassette FPx 6 2 3
200. ons F166 HC15 F167 HC1R and the pulse output instructions F171 SPDH to F173 PWMH are executed High speed counter control flag Turns on while the high speed counter instructions F166 HC15 F167 HC1R and the pulse output instructions F171 SPDH to F173 PWMH are executed High speed counter control flag Turns on while the high speed counter instructions F166 HC15 F167 HC1R and the pulse output instructions F171 SPDH to F173 PWMH are executed Not used Not used 12 24 FPS 12 5 Table of Special Internal Relays Relay No Name Description R9040 Not used R9041 COM 1 port PLC link flag Turns on while PLC link function is used R9042 COM 2 port commu nication mode flag This goes on when the general purpose communication function is used It goes off when MEWTOCOL is used R9043 to R9046 Not used R9047 COM 2 port commu nication error flag This goes on if a transmission error occurs during data communication This goes off when a request is made to send data using the F159 MTRN instruction COM 2 port reception done flag during gen eral purpose commu nicating Turns on when the end code is received during the general purpose com munication COM 2 port transmis sion done flag during general purpose communicat ing This goes on when transmission has been completed when using general
201. onversion of ASCII code 12345 Data to be transmitted it Conversion of ASCII code H 31 32 33 34 35 Coded data 1 2 3 4 5 Figure 194 FPX Conversion of ASCII code If DT100 is being used as the transmission buffer data will be stored in sequential order in the data registers starting from the next register DT101 in two byte units consisting of the upper byte and lower byte DT103 DT102 DT101 Upper byte Lower byte Upper byte Lower byte Upper byte Lower byte _ ee 5 4 3 2 1 Figure 195 FP Example transmission buffer Communication Function 2 General purpose Serial Communication FP When receiving data The data of received area being read is ASCII code data A Example When the data 12345 is transmitted from a device with RS232C port If DT200 is being used as the received buffer received data will be stored in the registers starting from DT201 in sequential order of first the lower byte and then the upper byte DT203 DT202 DT201 Upper byte Lower byte Upper byte Lower byte Upper byte Lower byte 5 4 3 2 1 Figure 196 FP Example received buffer 8 30 FPx 8 5 1 N communication 8 5 1 N communication This section contains the overview of general purpose serial communication 1 N communication 8 5 1 Overview of 1 N Communication The FP and the external unit with the unit number are connected using an RS485 cable Using the p
202. oolean Operand Description Binary arithmetic instructions 16 bit data S D D S gt D addition 32 bit data S D D 1 D S 1 S D 1 D addition 16 bit data S1 S2 D S1 S2 gt D addition 32 bit data S1 S2 D S1 1 S1 S2 1 S2 D 1 D addition 16 bit data S D D S gt D subtraction 32 bit data S D D 1 D S 1 S gt D 1 D subtraction 16 bit data S1 S2 D S1 S2 gt D subtraction 32 bit data S1 S2 D S1 1 S1 S2 1 S2 D 1 D subtraction 16 bit data S1 S2 D S1 x S2 gt D 1 D multiplication 32 bit data S1 S2 D S1 1 S1 x S2 1 S2 gt D 3 D 2 D 1 D multiplication 16 bit data S1 S2 D S1 S2 quotient D remainder DT90015 division 32 bit data S1 S2 D S1 1 S1 S2 1 S2 quotient D 1 D division remainder DT90016 DT90015 16 bit data S1 S2 D S1 x S2 gt D multiplication result in one word 16 bit data D 1 D increment 32 bit data D 1 D 1 D 1 D increment 16 bit data D 1 D decrement 32 bit data D 1 D 1 D 1 D decrement 32 bit data S1 S2 D S1 1 S1 x S2 1 S2 gt D 1 D multiplication result in two words 12 52 FPS 12 8 Table of Instructions No Name Boolean BCD arithmetic instructions 4 digit BCD data addit
203. or COM 2 port Unit No Setting Click on the button and select a unit number from among the numbers 1 to 32 displayed on the pull down menu FP 7 3 Computer Link 1 N communication Unit No setting using unit station No setting switch The unit number setting switch is located inside the cover on the left side of the FP control unit The selector switch and the dial can be used in combination to set a unit number between 1 and 31 Unit station No setting switch Selector Dial switch switch F 07 fal o Ne ea 7 Figure 160 FP Computer link unit station No setting Relationship between unit number setting switch and unit numbers Unit No 23 24 25 26 27 28 29 30 31 eee Selector Selector posten switch off switch on 16 The range of numbers that can 1 17 be set using the unit number 5 18 setting switch is from 1 to 31 3 19 Setting the unit number setting 4 20 switch to 0 makes the system 5 21 register setting valid so that a 5 a unit number between 1 and 31 can be set 8 9 k Oo pay k M k oo B nm ol olw pl oloi olal a olni 0 oa Tip Unit numbers set using the unit number setting switch are valid only for the communication port of the communication cassette Tool port unit numbers should be set us
204. osa Geeta EEA 5 48 FP 5 1 Overview of Each Functions 5 1 Overview of Each Functions This section explains about the functions that use built in high speed counter of FP 5 1 1 Three Functions that Use Built in High speed Counter Functions that use built in high speed counter There are three functions available when using the high speed counter built into the FP High speed counter function Encoder output is input to the high speed counter FP gt _ The high speed counter function counts external inputs such as those from sensors or encoders When the count reaches the target value this function turns on off the desired output Roller Motor Encoder QR Inverter START STOP signal Cutter blade control signal Cutter Tape lead wire Figure 59 FPx High speed counter function Pulse output function Stepping motor Servo motor FP gt Pulse output CW Combined with a commercially available Motor A motor driver the function enables position driver 1 RE ing control With the exclusive instruction you can perform trapezoidal control home return and JOG operation Pulse output CW Pulse output CCW d r Figure 60 FPx Pulse output function Stepping motor Servo motor PWM output function When you increase the pulse width AM B
205. ot used for two or more OT instructions and KP in structions Or set the duplicated output to enable in system register 20 Not paired error For instructions which must be used in a pair such as jump JP and LBL one instruction is either missing or in an incorrect position Change to PROG mode and enter the two instructions which must be used in a pair in the correct positions Parameter mismatch error An instruction has been written which does not agree with system register settings For example the number setting in a program does not agree with the timer counter range setting Change to PROG mode check the system register settings and change so that the settings and the instruction agree Program area error An instruction which must be written to a specific area main pro gram area or subprogram area has been written to a different area for example a subroutine SUB to RET is placed before an ED instruction Change to PROG mode and enter the instruction into the cor rect area High level instruction operand com bination error There is an incorrect operand in an instruction which requires a specific combination operands for example the operands must all be of a certain type Enter the correct combination of operands 12 42 FPS 12 7 Table of Error Cords 12 7 2 Table of Self Diagnostic Error Error code Name Interrupt error 1 Description and steps
206. output CW Pulse output CCW Motor driver side 8000 pulses AAAA ANNAA Figure 110 FP Sample program relative value positioning operation direction Program x9 R903A R22 R20 HDF R20 Positioning operation running i R21 DF l R21 Positioning operation start Positioning data table DT100 ko DT104 A M H Acceleration time 300 msec F1DMv K300 DT 106 DT108 1 DT109 Target value Movement amount 8 000 pulses DT110 DT111 Pulse stop Fi Dmv K 8000 DT108 F1DMV KO DT 110 Control code Duty 1 4 25 48 Hz to 100 kHz Incremental CW and CCW H11 00 T LILILILILILI F171 SPDH DT 100 The data table headed by DT100 is used Pulses are output from CHO R903A R20 TO R22 HDF HH R22 Pulse output instruction table shaped control The data table headed by DT100 is used and pulses are output from CHO Positioning done pulse 1 second 0 1 s type timer Setting K10 and using it as a 1 second timer Figure 111 FP amp Sample program relative value positioning operation program TMX 0 K10 5 38 FPS 5 4 Pulse Output Function Pulse output diagram 6 000 Hz 8 000 pulses 1 000 Hz OHz Figure 112 FPX Sample program pulse output diagram High speed Counter and Pulse Output Functions FP Absolute value positioning operation
207. pansion units or FPO intelligent units can be connected to the FP control unit There are no restrictions on the type and the order in which expansion units are installed A combination of relay output types and transistor output types is also possible 1 3 2 Controllable I O Points No of I O points in control unit No of expansion I O points 32 points Max 128 points Functions and Restrictions of the Unit FPx 1 4 Programming Tools This section explains about the programming tools for FP2 1 4 1 Tools Needed for Programmin Programming tool software 1 Programming tool software The tool software can also be used with the FP series The FPWIN GR Ver 2 Windows software is used with a the FPx The earlier FPWIN GR Ver 1x NPST GR and FP Pro grammer cannot be used Computer PC connection cable 2 PC connection cable This cable needed for connection between the FP and the computer When connecting to a computer IBM PC AT or 100 compatible use a commercially available adapter Figure 7 Programming tools 1 4 2 Software Environment and Suitable Cable Type and environment for software Type of software OS Operating system Hard disk capacity Type of computer and suitable cable IBM PC AT or Commercially available 9 pin 25 pin conversion Part No AFC8513 adapter e g AT 925S by Data Spec its compatible mach
208. pe general purpose serial communication RS CS control is possible FPG COM1 This communication cassette is a 2 channel unit with a FP Communication cassette three wire RS232C port It supports 1 1 computer links 2 channel RS232C type and general purpose serial communication Communica tion with two external devices is possible FPG COM2 FPZ 8 3 Connection Example with External Devices Setting of system register In the default settings the COM port is set to the computer link mode To carry out 1 1 communication using general purpose serial communication the system registers should be set as shown below Communication format setting for FP e Settings when using the COM port 1 No Name Set value Communication mode General communication Communication format Header STX not exist Baud rate 9600 bit s Starting address for data received DT200 Buffer capacity setting for data received 100 byte e Settings when using the COM port 2 No Name Set value Communication mode General communication Communication format Header STX not exist Baud rate 9600 bit s Starting address for data received DT200 Buffer capacity setting for data received 100 byte Communication Function 2 General purpose Serial Communication FP Communication format setting for Micro Imagechecker To set the communication mode and transmission format
209. pecified for the header start code in system register 413 or 414 do not add the header start code to the transmission data The header start code is added automatically When using the 1 ch RS232C type communication cassette transmission does not take place until CS Clear to Send turns on If you are not going to connect to the other device connect to RS Request to Send The maximum number of transmission bytes n is 2048 S Contact numbers in parentheses indicate COM port 2 contacts A Communication Function 2 General purpose Serial Communication FP 8 2 2 Receiving Data from External Device Overview of data reception Data register DT Data receiving _ Device with RS232C port Reception done flag on FPZ Figure 176 FPx Data reception Data input from the COM port is stored in the received buffer specified by the system register and the Reception done flag goes on If the Reception done flag is off data can be received at any time Sample program for data reception Data 10 byte received in the received buffer through the COM 1 port is read to DTO R9038 R10 Ho J R10 H FioBkMv DT201 DT204 DTO The contents of the four words from DT201 to DT204 are written to data registers DTO to DT4 Reception done detection The internal relay R10 is turned on at the Reception done R9038 timing Retrieving
210. ported 1 channel Max 100 kHz 2 channel Max 60 kHz Mortor FPd Pulse output TUUU Mortor driver Pulse output JUUUL Mortor driver Figure 5 Features Pulse output 1 4 FP 1 1 Features and Functions of the Unit Analog control supported An analog potentiometer volume dial is provided as a standard feature This can be used in applications such as analog timers without using the programming tools An analog unit is also available as the intelligent unit Functions and Restrictions of the Unit FPx 1 2 Unit Types This section explains the type of unit used with the FP and about the optional communication cassette 1 2 1 FP gt Control Unit FP Control unit FPG C32T 1 2 2 Expansion Unit Power Supply Unit and Intelligent Unit The expansion unit power supply unit and intelligent unit used with the FP can also be used with the earlier FPO series 1 2 3 Communication Cassette A detachable communication cassette optional should be used when using the various functions such as the computer link serial data communication and PLC link functions Description Part No This communication cassette is a 1 channel unit with a FPx Communication cassette five wire RS232C port It supports 1 1 computer links and EPG COM1 1 channel RS232C type general purpose serial communication RS CS control is possible This communication cassette is a 2 channe
211. pose serial communication 6 4 8 3 Grounding 4 11 4 19 H High level instructions 12 51 High speed counter control flag erea DT90052 5 14 5 34 High speed counter control instruction FO 5 13 High speed counter function 5 3 5 9 High speed counter function specifica tions 5 5 12 7 Home return 5 25 Home return operation 5 42 Home return operation modes 5 32 I O allocation 3 3 5 12 5 22 12 10 Incremental 5 25 Incremental and decremental input mode 5 10 Incremental input mode 5 9 Individual input mode 5 10 Inductive loads 4 15 Input modes 5 9 Input specifications 2 7 Input wiring 4 12 Installation 4 3 Installation environment 4 3 Installation method 4 6 Installation space 4 5 Instructions 12 44 Interlock circuit 4 19 Internal circuit diagram 2 8 2 10 J JOG operation 5 25 5 46 L LED equipped lead switch 4 13 LED equipped limit switch 4 14 Lifetime of backup battery 4 23 Link area 9 12 Link area allocation 9 9 Memory areas 12 12 Min input pulse width 5 11 Momentary power failures 4 20 O Operation on error 11 4 Optional mounting plate 4 7 Output specifications 2 9 Output wiring 4 15 P Password function 11 10 Performance specifications 12 5 Photoelectric sensor 4 12 PLC link 6 5 9 3 PLC link function specifications 6 9 12 9 Position
212. pull down menu 7 1 6 Restriction Either the computer link mode or the general purpose serial communication mode can be used for the communication cassette COM port There are no restrictions when multiple ports are used 7 10 FP 7 2 Connection Example with External Device 7 2 Connection Example with External Device This section contains the connection example with external device for computer link 7 2 1 Connection Example with External Device 1 1 communication with computer Outline To use a 1 1 computer link with a computer an RS232C cable is used to set up a 1 1 connection between the FP and the computer Communication is carried out by the PLC sending responses to commands sent from the computer side Computer Command message Response message RS232C Figure 149 FP Computer link connection example computer Communication cassette used for 1 1 communication The following types of communication cassettes can be used for 1 1 computer link communication Description This communication cassette is a 1 channel unit with a FP Communication cassette five wire RS232C port It supports 1 1 computer links and EPG COM1 1 channel RS232C type general purpose serial communication RS CS control is possible This communication cassette is a 2 channel unit with a FPx Communication cassette three wire RS232C port It supports 1 1 compute
213. put type sensor FP 4 3 Wiring of Input and Output Precaution when using LED equipped lead switch When a LED is connected in series to an input contact such as LED equipped lead switch make sure that the on voltage applied to the PLC input terminal is greater than 19 2 V DC In particular take care when connecting a number of switches in series LED equipped lead switch Figure 43 FP Precaution when using LED equipped lead switch Precaution when using two wire type sensor If the input of 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 Two wire Bleeder FP type sensor A resistor Figure 44 FPx Precaution when using two wire type sensor The off voltage of the input is 2 4 V therefore select the value of bleeder resistor R so that the voltage between the COM terminal and the input terminal will be less than 2 4 V The input impedance is 5 6 kQ I Sensor s leakage current mA 13 44 i istor is R Ke The resistance R of the bleeder resistor is R 56x1 2 4 kQ The formula is based on an input impedance of 5 6 kQ The input impedance varies depend ing on the input terminal number The wattage W of the resistor is w Power supply voltage R In the actual selection use a value that is 3 to 5 times the value of W Installation and Wi
214. r Use an exclusive ground for each device Installation and Wiring FPx 4 5 2___ Momentary Power Failures Operation of momentary power failures If the duration of the power failure is less than 4 ms the FP continues to operate If the power is off for 4 ms or longer operation changes depending on the combination of units the power supply voltage and other factors In some cases operation may be the same as that for a power supply reset 4 5 3 Protection of Power Supply and Output Sections Power supply An insulated power supply with an internal protective circuit should be used The power supply for the control unit operation is a non insulated circuit so if an incorrect voltage is directly applied the internal circuit may be damaged or destroyed If using a power supply without a protective circuit power should be supplied through a protective element such as a fuse Protection of output If current exceeding the rated control capacity is being supplied in the form of a motor lock current or a coil shorting in an electromagnetic device a protective element such as a fuse should be attached externally FPZ 4 6 Backup Battery 4 6 Backup Battery This section explains installation lifetime of backup battery and battery alarm error function setting 4 6 1 Installation of Backup Battery Installing a backup battery in the FP makes it possible to access clock calendar functions for use in addition to backing
215. r links and EPG COM2 2 channel RS232C type general purpose serial communication Communication with two external devices is possible Communication Function 1 Computer Link FP Setting of system register To carry out 1 1 communication using a computer link the system registers should be set as shown below Settings when using the COM 1 port No Name Set value Unit No for COM 1 port 1 Communication mode for COM 1 port Computer link Communication format for COM 1 port Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting for COM 1 port 9600 bits s to 115 2 k bits s Settings when using the COM 2 port Unit No for COM 2 port Communication mode for COM 2 port Communication format for COM 2 port Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting for COM 2 port 9600 bits s to 115 2 k bits s e The communication format and baud rate communication speed should be set to match the connected computer e For information on setting the system registers to use a computer link please refer to page 7 10 FPZ 7 2 Connection Example with External Device Connection example with computer When using the 1 channel RS232C type of communication cassette Computer side FP side 5 pin D SUB 9 pin RD Received Daa RD 0s certo Send cs fa e
216. range 21 6 to 26 4 V DC Allowed momentary power off time 4 ms at 21 6 V 7 ms at 24 V 10 ms at 26 4 V Ambient temperature 0 to 55 C 32 to 131 F Storage temperature 20 to 70 C 4 to 158 F Ambient humidity 30 to 85 RH non condensing Storage humidity 30 to 85 RH non condensing Breakdown voltage 500 V AC for 1 minute between input output terminals and power supply ground terminal 500 V AC for 1 minute between input and output terminals Insulation resistance Min 100 MQ measured with a 500 V AC megger between input output terminals and power supply ground terminals Min 100 MQ measured with a 500 V AC megger between input and output terminals Vibration resistance 10 to 55 Hz 1 cycle min double amplitude of 0 75 mm 0 030 in 10 min on 3 axes Shock resistance Shock of 98 m s or more 4 times on 3 axes Noise immunity 1 000 Vp p with pulse widths 50 ns and 1 us based on in house measurements Operating condition Weight Free from corrosive gases and excessive dust Unit type Part No Weight Control unit C32T Approx 120 g 4 24 oz Expansion unit E8R E8YR Approx 90 g 3 17 oz E8X E8YT E8YP Approx 65 g 2 29 oz E16R Approx 105 g 3 70 oz E16T E16P E16X E16YT E16YP Approx 70 9 2 47 oz E32T E32P Approx 85 g 3 00 oz 12 3 Specifications FPS Current consumption Unit type Part N
217. ration signal Positioning operation running 0 5000 Number of pulse Positioning operation start Positioning done pulse vol LH High speed counter CHO control flag Figure 80 FP High speed counter function sample program 1 operation chart FPx 5 3 High speed Counter Function Program When X5 is turned on YO turns on and the conveyor begins moving When the elapsed value DT90044 and DT90045 reaches K5000 YO turns off and the conveyor stops X5 R903A R102 R100 a DF Positioning operations running 100 100 R101 PE A SICA SDI g e DF C Positioning operations start R101 Resets elapsed value of high speed counter H FibDmv Ko DT 90044 H aati F167 HC1R_KO K 5000 YO Sets high speed counter CHO When elapsed value reaches 5 000 Target value match off instruction YO goes off when elapsed value of high speed counter CHO reaches 5 000 pulses YO goes off R101 YO _ __________________ S Set the inverter operation signal YO R903A R100 TO R102 DF Posotioning done pulse 0 5 s R102 TMX 0 K5 0 1 s type timer Setting K5 and using it as a 0 5 s timer JU LJ Figure 81 FP High speed counter function sample program 1 program High speed Counter and Pulse Output Functions FP Positioning operations with a double speed inverter Wiring example FP I
218. re 186 FP amp Sample program for micro imagechecker The various buffer statuses The following shows the statuses of the send and received buffers when the sample program is run Transmission buffer Reception buffer DT100 K2 Number of DT200 Received bytes to be number of DT101 H53 S H25 transmitted DT201 bytes Condition before DT202 transmission Received data is stored in order from the lower order byte DT203 DT204 Condition when reception is completed Figure 187 FP Various buffer statuses Communication Function 2 General purpose Serial Communication FP 8 3 2 Connection Example with External Device 1 1 communication with FP series PLC Outline Connect the FP2 and the other FP series PLC using the RS232C interface and carry out communication using the MEWTOCOL COM communication protocol Communication mode Communication General Communication mode Computer link Data area read command 01 RDDO0000 00001 CR transmission Value of specified data register Figure 188 FP amp Connection example with external device FP series PLC FP series PLC When the data area read command 01 RDD00000 00001 Cpg is sent from the FP side the values of the data register of the P
219. re connected internally Specifications and Functions of the Unit FPx Chapter 3 I O Allocation and Expansion Method 3T VO AIOCATON cisco aed i when nb ben aii Bena EEEE 3 3 3 1 1 VO Number of FPx Control Unit 3 3 3 1 2 VO Number of FPO Expansion Unit 3 3 3 1 3 VO Number of FPO Analog I O Unit 3 4 3 1 4 VO Number of FPO A D Conversion Unit 3 4 3 1 5 VO Number of FPO I O Link Unit 3 4 3 2 Adding Expansion Units 00c cece eee ee 3 6 3 2 1 Expansion Method 02 0000eees 3 6 I O Allocation and Expansion Method FPZ FP 3 1 I O Allocation 3 1 VO Allocation This section explains about the I O allocation of FP 12 oo0o0000 oooooooo a doootooo dobotooo dodobooo 1 TEL HETT o pa a dobobooo ooo a Pim dobobooo 1 dobobooo m oo gt Le a m o mo r 00000000 00000000 9 oo l aaa aL Nj EE lgl o Gobododo ooo op Fal FEASA co fa io _cododooo ooo l aaa aL LIF aaa l o Godotodo Bo a nace Bo a do doi do FP C32T Maximum possible expansion is with a total of 3 units Control unit
220. re fed back to all of the other PLCs connected to the network so control of data that needs to be consistent throughout the network such as target production values and type codes can easily be implemented to coordinate the data and all of the units are booted at the same timing Link relay When the link relay LO of the master station No 1 is turned on that signal is converted by the ladder programs of the other stations and the YO of the other stations are output RS485 No 2 Link register LDO ipa No 3 Link register LDO Tol No 4 Link register gt LDO 100 RO _ H Fo MV K100 LDO No 1 Link register x LD 0 100 Link register If a constant of 100 is written to LDO of the master station No 1 the contents of LDO in the other station No 2 are also changed to a constant of 100 Figure 130 FP PLC link function Applicable communication cassette For 1 N communication 1 channel RS485 type Part No FRG COM3 Communication Cassette FP 6 2 Communication Cassette This section explains about the optional communication cassette for FP 6 2 1 Type of Communication Cassette The communication cassette contains the following three types which can be selected based on the application involved 1 channel RS232C type Part No FPG COM1
221. received data The received data in the received buffer is read from the area in which it is stored from DT201 and sent to DTO R10 F159 MTRN DT100 KO K1 Preparing to receive the next data z To prepare to receive the next data the F159 instruction resets the buffer writing point and turns off the Reception Done R9038 contact based on the empty data the contents of 0 bytes are sent to the COM K1 port Figure 177 FP Sample program for data reception The program described above is executed in the following sequence 1 Data is received from the RS232C device to the received buffer 2 The Reception done R9038 R9048 contact is turned on 3 The received data is sent from the received buffer to the area starting with the data register DTO 4 The F159 MTRN instruction based on the empty data is executed which resets the buffer writing point and turns off the Reception Done R9038 R9048 contact The system is then ready to receive the next data FPx 8 2 Overview of Communication with External Devices Explanatory diagram Data register DT Data reading Received H4142434445464748 a buffer Data receiving Reception done R9038 ON Reception ready R9038 OFF Device with RS232 port Figure 178 FPX Data reception explanatory diagram Data table for reception received buffer This shows the status of the data table when the above program is ru
222. ribed below Setting using FPWIN GR 1 Press the CTRL and F2 keys at the same time to switch to the Online screen 2 Select Set PLC Date amp Time under Tool on the menu bar Set PLC Date and Time dialog box x Set PLC Date and Time Untitlel The above steps display the Set PLC Date and Time dialog box shown at the left Input the date and time and click on the OK button PLC Home Date tyy mm dd I a a E al Cancel Time hh mm ss Help fo fs Par Figure 226 FPWIN GR Set PLC Date and Time dialog box FP 10 2 Clock Calendar Function Setting and changing using program 1 The values written to the special data registers DT90054 to DT90057 which are allocated as the clock calendar setting area are sent 2 A value of H8000 is written to DT90058 se Note The value can be sent using the differential instruction DF or by changing H8000 to H0000 Example showing the date and time being written Set the time to 12 00 00 on the 5th day when the XO turns on X0 HDF Fo MV HO DT90054 Inputs 0 minutes and 0 seconds Fo MV H512 DT 90055 Fo Mv H8000 DT 90058 Inputs 12th hour 5th day JU Set the time Figure 227 FP Sample program of clock calendar function 10 2 3 Precautions Concerning Backup of Clock Calendar Data The clock calendar values are backed up using a battery Ple
223. right shift register Control instructions Master control relay M F119 LRSR4 D1 D2 H c nH Master control relay end J Master control area A y a MCE n Shifts one bit of 16 bit data range specified by D1 and D2 to the left or to the right Starts the master control program Ends the master control program Jump Label O P nH LBL nH The program jumps to the label instruction and continues from there 12 46 FP 12 8 Table of Instructions zone Steps Loop The program jumps to the label instruction and continues from there the number of jumps is set I oor n s H in S LBL nH Label End The operation of program is ended Indicates the D end of a main program Conditional H enoe The operation of program is ended when the trig end ger turns on se Note When relay R1120 or higher or timer T256 or higher or counter C256 or higher is used the number of steps is the number in parentheses 12 47 Specifications FPS Symbol Description Steps Step ladder instructions Start step SSTP n The start of program n for process control Next step H AANSTL_ nH Start the specified process n and clear the pro cess currently operated Scan execution type NSTP Start the specified proce
224. ring FPx Precaution when using LED equipped limit switch If the input of PLC does not turn off because of the leakage current from the LED equipped limit switch the use of a bleeder resistor is recommended as shown below LED Bleeder equipped X resistor limit switch Power supply for input r Internal resistor of limit switch kW Figure 45 FPX Precaution when using LED equipped limit switch The off voltage of input is 2 4 V therefore when the power supply voltage is 24 V select the bleeder resistor R so that the current will be greater than 24 24 r The resistance R of the bleeder resistor is R S 1344 _ kQ w eaa A Oe 2 The wattage W of the resistor is W ower supe voltage In the actual selection use a value that is 3 to 5 times the value of W FP 4 3 Wiring of Input and Output 4 3 2 Output Wiring Protective circuit for inductive loads With an inductive load a protective circuit should be installed in parallel with the load Diode gt Output FPX terminal Load COM Figure 46 FPx Protective circuit for inductive load Precautions when using capacitive loads When connecting loads with large in rush currents to minimize their effect connect a protection circuit as shown below Resistor o Inductor Output AN Load utput Pn Load terminal terminal i FP x FPX COM COM
225. rors using horizontal parity The BCC starts from the start code and checks each character in sequence using the exclusive OR operation and replaces the final result with character text 5 End code Terminator There is always a Cp ASCII code HOD at the end of the message se Notes Precautions when reading data If no response is returned the command may not have arrived at the PLC or the PLC may not be functioning Check to make sure all of the communication specifications such as the communication speed data length and parity match between the computer and the PLC If the received response contains a instead of a the command was not processed successfully The response will contain a communication error code so confirm the content of the error The unit number and command name will be the same for a command and its corresponding response as shown in the figure below This makes the correspondence between the command and the response clear Same gt Same m _ rero a oy e re Figure 147 FPX Command amp response message note Communication Function 1 Computer Link FPZ 7 1 4 Types of Commands that Can Be Used Read contact area Reads the on and off status of contacts Specifies only one point Specifies multiple contacts Specifies a range in word units Write contact area Turns contacts on and off Specifies only one point Spec
226. rotocol that matches the external unit the F159 MTRN instruction is used to send and receive data FPS Data register DT S S Z Data transmission using F159 MTRN instruction Received data Data is received into received buffer Data is sent and received through the data registers Figure 197 FP General purpose serial communication 1 N communication 8 5 2 Communication Cassette Used with 1 N Communication The following types of communication cassettes can be used with 1 N general purpose serial communication Name Description Part No This communication cassette is a 1 channel unit with a FP Communication cassette two wire RS485 port It supports 1 N computer links C 1 channel RS485 type NET general purpose serial communication and a PLC link FPG COM3 Communication Function 2 General purpose Serial Communication FP 8 5 3 Setting of System Register The following types of communication cassettes can be used with 1 N general purpose serial communication Settings when using the COM 1 port No Name Set value No 410 Unit No Communication mode for COM 1 port 1 to 32 Set the desired unit No General communication Communication format for COM 1 port Parity check Odd Stop bit 1 bit Header STX not exist Baud rate setting 9600 bits s Starting address for data received
227. rs and stops operation if necessary eae aH S When an error occurs the status of the status indicator oe profes e SE LEDs on the control unit vary as shown in the table fee e above RUN HHH H o5 YO Yer Figure 229 FP Status indicator LED 11 3 Self Diagnostic and Troubleshooting FPx 11 1 2 Operation on Error Normally when an error occurs the operation stops The user may select whether operation is to be continued or stopped when a duplicated output error or operation error occurs by setting the system registers You can set the error which operation is to be continued or stopped using the programming tool software as shown below PLC Configuration setting menu on programming tool software FPWIN GR To specify the steps to be taken by the FPWIN GR if a PLC error occurs select PLC Configuration under Option on the menu bar and click on the Action on Error tab The screen shown below is displayed PLC Configuration p0 8p FP High Speed Counter Interrupt Input Tool Port COMI Port COM2 Port Hold Non hold 1 Hold Non hold2 Action on Error Time Link Cancel Read PLC Initialize Help IV No 23 Stop when an 1 0 verification error occurs IV No 26 Stop when an operation error occurs T No 4 Alarm Battery Error Figure 230 FPWIN GR PLC Configuration setting screen A Example 1 Allowing duplicated output
228. rs have occurred No of times procedural errors have occurred No of times overlapping parent units have occurred DT90180 to DT90189 DT90190 High speed counter control flag monitor for chO DT90191 High speed counter control flag monitor for ch1 DT90192 High speed counter control flag monitor for ch2 DT90193 High speed counter control flag monitor for ch3 This monitors the data specified in DT90052 43210 Home near input 0 Invalid 1 Valid High speed counter instruction 0 Continue 1 Clear Pulse output 0 Continue 1 Stop Hardware reset 0 Enable 1 Disable Count 0 Enable 1 Disable Software reset 0 No 1 Yes DT90194 to DT90199 Not used DT90200 DT90201 High speed For ch2 counter elapsed value The elapsed value 32 bit data for the high speed counter is stored here The value can be read and written by executing F1 DMV instruction DT90202 DT90203 High speed For ch2 counter target value The target value 32 bit data of the high speed counter specified by the high speed counter instruction is stored here Target values have been preset for the various instructions to be used when the high speed counter related instruction F166 F167 and F171 to F173 is executed The value can be read by executing F1 DMV instruction DT90204 DT90205 High speed For ch3 counter elapsed value The elapsed
229. s of the Unit FPx Status indicator LEDs These LEDs display the current mode of operation or the occurrence of an error LED and operation status RUN green Lights when in the RUN mode and indicates that the program is being executed It flashes during forced input output The RUN and PROG LEDs flash alternately PROG green Lights when in the PROG mode and indicates that operation has stopped It flashes during forced input output The RUN and PROG LEDs flash alternately ERROR ALARM red Flashes when an error is detected during the self diagnostic function Lights if a hardware error occurs or if operation slows because of the program and the watchdog timer is activated 2 RUN PROG mode switch This switch is used to change the operation mode of the PLC Switch position Operation mode RUN upward This sets the RUN mode The program is executed and operation begins PROG downward This sets the PROG mode The operation stops In this mode programming can be done using tools When performing remote switching from the programming tool the position of the mode switch and the actual mode of operation may differ Verify the mode with the status indicator LED Otherwise restart the FPE and change the mode of operation with the RUN PROG mode switch 3 Communication status LEDs These display the communication status of the COM 1 and COM 2 ports LED and communication status
230. s s baud rate Number of units Maximum 16 units Note 2 PLC link capacity Link relay 1 024 points Link register 128 words Interface Conforming to RS485 connected via the terminal block lt Notes 1 A communication cassette RS485 type is required in order to use the PLC link function 2 Unit numbers are specified using the switches on the control unit and the system registers 12 9 Specifications FPS 12 2 I O No Allocation FP Control unit The allocation of the FP control unit is fixed Type of control unit 1 0 No FPG C32T Input 16 points XO to XF output 16 points YO to YF I O No of FPO expansion unit I O numbers do not need to be set as I O allocation is performed automatically by the PLC when an expansion I O unit is added The I O allocation of expansion unit is determined by the installation location Type of expansion unit 1 0 No First Second Third expansion expansion expansion E8X Input 8 points X20 to X27 X40 to X47 X60 to X67 E8R Input 4 points X20 to X23 X40 to X43 X60 to X63 Output 4 points Y20 to Y23 Y40 to Y43 Y60 to Y63 E8YT E8YR E8YP Output 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67 E16X Input 16 points X20 to X2F X40 to X4F X60 to X6F E16R E16T E16P Input 8 points X20 to X27 X40 to X47 X60 to X67 Output 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67 E16YT E16YP Output 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F E32T E32P Input 16 points X20 to X2F X40 to
231. se Notes 1 The RS485 type of communication cassette is necessary in order to use the serial communication function 1 N communication 2 The transmission speed baud rate and transmission format are specified using the system registers 3 Unit Station numbers are specified using the system registers Up to 31 units stations can be specified using the switches FPX 6 2 Communication Cassette PLC link function specifications Note 1 Communication method Token bus Transmission method Floating master Transmission line Twisted pair cable Transmission distance Total length 800 m 2 625 ft Transmission speed Baud rate 115 2 kbps Number of units stations Max 16 units stations Note 2 PLC link capacity Link relay 1 024 points Link register 128 words Interface Conforming to RS485 Connection using terminal block 1 Notes 1 The RS485 type of communication cassette is necessary in order to use the PLC link function 2 Unit Station numbers are specified using the switches or the system registers Communication Cassette FPx 6 3 Attachment of Communication Cassette This section explains about the attachment procedure of optional communication cassette 6 3 1 Attachment Procedure 1 Insert a screwdriver under the cover to remove it Figure 134 FPX Communication cassette attachment procedure 1 2 Install the communication cassette Commun
232. sed time between the two points DT90020 Not used DT90021 Not used DT90022 Scan time current value The current scan time is stored here Note Scan time is calculated using the formula Scan time ms stored data decimal x 0 1ms Example K50 indicates 5ms 12 28 FPx 12 6 Table of Special Data Registers A Available N A Not available Name Description Reading Writing DT90023 Scan time minimum The minimum scan time is stored here Scan time value Note is calculated using the formula Scan time ms stored data decimal x 0 1ms Example K50 indicates 5ms DT90024 Scan time maximum The maximum scan time is stored here Scan time value Note is calculated using the formula Scan time ms stored data decimal x 0 1ms Example K125 indicates 12 5ms S Note Scan time display is only possible in RUN mode and shows the operation cycle time In the PROG mode the scan time for the operation is not displayed The maximum and minimum values are cleared when each the mode is switched between RUN mode and PROG mode 12 29 Specifications FPS DT90025 Mask condition monitoring register for interrupts INT 0 to 7 A Available N A Not available The mask conditions of interrupts using ICTL instruction can be stored here Monitor using binary display 15 11 7 3 T T 1 23 19 0 Bit No 16 INT No 0
233. ses of the link relays and link registers for one PLC are automatically fed back to other PLCs on the same network so data that needs to be consistent among all the PLCs on the network such as the target production values and product codes can be easily shared Also this allows easy control of processes that need to be booted at the same timing The PLC link is not set to be used in the default settings so the setting of system register No 412 should be changed to PLC Link in order to use the function The various PLC units and link areas are allocated using the system registers For more detailed information please see page 9 5 Communication Parameter Settings When Using a PLC Link FP FPS FP FPX Unit No 1 Unit No 2 Unit No 3 Unit No 4 Transmitted No 1 area gt Received No 2 area e Received Received area Received Transmitted area The link relays and link registers of the various PLCs contain areas where data is sent and areas where data is received and these are used to share data among the PLCs Figure 202 FP PLC link function overview Communication Function 3 PLC Link Function FPx Overview of PLC link operation Link relay Turning on a link relay contact in one PLC turns on the same link relay in all of the other PLCs on the same network Link register If the contents of a link register in one PLC are changed the values of the same link register are changed
234. settings for the Micro Imagechecker select 5 Communication under 5 ENVIRONMENT and set the following items No Name Set value Communication mode Normal Mode RS232C Serial communication setting for Micro Imagechecker To enter settings relating to serial communication for the Micro lmagechecker select 53 Serial Output under 5 Communication and set the following items Serial Output Invalid Digit S Process End Numerical Calculation Output Judgment Output Tip N 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 device numerical calculation is required so Out should be specified for the Numerical calculation parameter When the above settings are specified data with the contents shown below will be output from the Micro Imagechecker 1012345 Cp Terminator End code Results of numerical calculation No 1 Judgment output No 2 0 NG C Judgment output No 1 1 OK A FPZ 8 3 Connection Example with External Devices Connection example with Micro Imagechecker A200 A100 e When using the RS232C 1 channel type of communication cassette Micro Imagechecker side FP side 5 pin RD
235. special internal register DT90040 that corresponds to the analog potentiometer VO is sent to the setting value area SVO of TMXO to set the time for the clock R9010 H FO mv DT 90040 svo _ RO C TMX K999 Figure 225 Program example of analog potentiometer The value of special data register DT90040 is Data transmission instruction sent to the setting value area 0 1 second clock K999 is set as a dummy value Ly Other Functions FP 10 2 Clock Calendar Function This section contains the clock calendar function 10 2 1 Area for Clock Calendar Function If a backup battery is installed in the FP the clock calendar function can be used With the clock calendar function data indicating the hour minute second day year and other information stored in the special data registers DT90053 to DT90057 can be read using the transmission instruction and used in sequence programs Special data ro Upper byte Lower byte Reading Writing Hour data Minute data Available Not available HOO to H23 HOO to H59 Minute data Second data Available Available HOO to H59 HOO to H59 Day data Hour data Available Available H01 to H31 H00 to H23 Year data Month data Available Available HOO to H99 H01 to H12 Day of the week data Available Available HOO to H06 10 2 2 Setting of Clock Calendar Function There are two ways to set the clock calendar function as desc
236. ss n and clear the pro cess currently operated Pulse execution type Clear step CSTP n Resets the currently operated process n Step end STE End of step ladder area Clear multi ple steps Subroutine call H HESCLR nt n2 JH H ca n Resets the currently operated processes n1 to AD Executes the specified subroutine When return ing to the main program outputs in the subrou tine program are maintained Subroutine entry Subroutine return Interrupt H suw n A wes Interrupt return H nr n wa We IRET Indicates the start of the subroutine program n Ends the subroutine program Indicates the start of the interrupt program n Ends the interrupt program Interrupt control 16 bit data comparison Start H H oF ict s1 s2 Data comparison instructions ST Select interrupt enable disable or clear in S1 and S2 and execute Begins a logic operation by comparing two 16 bit data in the comparative condition S1 S2 Begins a logic operation by comparing two 16 bit data in the comparative condition S1 S2 Begins a logic operation by comparing two 16 bit data in the comparative condition S1 gt S2 Begins a logic operation by comparing two 16 bit data in the comparative condition S1 2 S2 Begins a logic operat
237. stic Function 11 1 1 11 1 2 LED Display for Status Condition Operation on Error 0c cee cece neee Troubleshooting i335 bok eeeb eee eee else eee ee Sy BER 11 2 1 11 2 2 11 2 3 11 2 4 11 2 5 11 2 6 11 2 7 If the ERROR ALARM LED Flashes If the ERROR ALARM LED Lights If None of the LEDs Light If Outputting does not Occur as Desired If a Protect Error Message Appears If the Program Mode does not Change t RUN ee E a i If a Transmission Error has Occurred Self Diagnostic and Troubleshooting FPx 11 2 FP 11 1 Self Diagnostic Function 11 1 Self Diagnostic Function This section explains the self diagnostic function of FP 11 1 1 LED Display for Status Condition Status indicator LEDs on control unit LED status Description Operation status RUN ERROR ALARM Normal Light on Off Off Normal operation Operation concition on Light on PROG mode Stop Flashes Flashes Off Forcing on off in Run Operation mode Abnormal Off Off Flashes When a self diagnostic Operation condition error occurs Off Light on Flashes When a self diagnostic Stop error occurs Varies Varies Light on System watchdog timer Stop has been activated The control unit has a self diagnostic function which A aye 5 a X0 7 X8 F identifies erro
238. struction F166 5 15 Terminal layout diagram 2 11 Terminal station 7 22 Tool port 2 6 Transmission error 11 11 Troubleshooting 11 5 Two phase input mode 5 10 Two wire type sensor 4 13 Type home return 5 32 Type Il home return 5 32 U Unit station number setting switch 2 5 Unit no 7 19 9 6 Unit types 1 6 W Weight 12 3 Wiring of communication cassette 6 11 Wiring of MIL connector type 4 16 Wiring of power supply 4 9 Index FPE FP Record of changes Record of changes Manual No Date ARCT1F333E AUG 2001 First edition ACG M333E Description of changes Record of changes FPX GLOBAL NETWORK mA http www mew europe com E Germany Matsushita Electric Works Europe AG Rudolf Diesel Ring 2 D 83607 Holzkirchen Germany Tel 49 8024 648 0 Germany Matsushita Electric Works Deutschland G m b H United Kingdom Matsushita Electric Works UK Ltd e Ireland Matsushita Electric Works UK Ltd Irish Branch Office Austria Matsushita Electric Works Austria G m b H Switzerland Matsushita Electric Works Schweiz AG France Matsushita Electric Works France S A R L Italy Matsushita Electric Works Italia s r l Benelux Matsushita Electric Works Benelux B V North amp South America http www aromat com Spain Matsushita Electric Works Espa a S A HUSA Aromat Corporation Portugal Mai sushita E ectric Works Espa a S A Portuguese
239. sword note it in the specifications manual or in another safe location in case it is forgotten at some point Programming Tool Restrictions FPZ Programming Tool Restrictions Type of programming tool Instruction used function restrictions FPWIN GR Ver 2 All instructions and functions can be used Software for Windows FPWIN GR Ver 1 Not used NPST GR Ver 4 Software for MS DOS Not used NPST GR Ver 3 AFP1114V2 Handy programming AFP1114 Not used unit FP programmer AFP1112A AFP1112 se Note Precautions concerning programming tools Programming tools used with the FP2 require Ver 2 or a subsequent version of the FPWIN GR Please be aware that other tools cannot be used Chapter 1 Functions and Restrictions of the Unit 1 1 1 2 1 3 1 4 Features and Functions of the Unit 1 3 Unit TV DOS 2 sien gh ia En ema Gare ee eee eel ang 1 6 1 2 1 FPX Control Unit o sanee hate G cath eats 1 6 1 2 2 Expansion Unit Power Supply Unit and Intelligent Unit os2 sexes cates eee ees 1 6 1 2 3 Communication Cassette 1 6 Restrictions on Unit Combinations 1 7 1 3 1 Restrictions on the Number of Expansion UNIS aia Sc ene b oed ese w hes 1 7 1 3 2 Controllable I O Points 04 1 7 Programming ToolS a5 sa sr s c2 wale Ros oe ee ad ene eae 1 8 1 4 1 Tools Needed for Programming 1 8 1 4 2 Software Environment
240. t value S x 0 01 sec Data transfer instructions Three 16 bit data move gt D 1 S3 gt D 2 Three 32 bit data move Logic operation instructions 32 bit data AND S1 1 S1 gt S3 1 S3 gt D 1 D S2 1 S2 D 5 D 4 D 3 D 2 S1 1 S1 a S2 1 S2 gt D 1 D 32 bit data OR S1 1 S1 y S2 1 S2 D 1 D 32 bit data XOR S1 1 S1 A S2 1 S2 V S1 1 S1 A S2 1 S2 32 bit data XNR gt D 1 D S1 1 S1 A S2 1 S2 V S14 1 S1 S2 gt D 1 D A S241 Double word 32 bit data unites se Note S1 1 S1 A S341 S3 v S2 1 S2 gt D 1 D 83 1 53 The elapsed value area varies depending on the channel being used 12 59 Specifications FPS No Name Boolean Operand Description Data conversion instructions 16 bit binary data gt Gray code conversion Converts the 16 bit binary data of S to gray codes and the converted result is stored in the D 32 bit binary data gt Gray code conversion Converts the 32 bit binary data of S 1 S to gray code and the converted result is stored in the D 1 D 16 bit gray code gt binary data conversion Converts the gray codes of S to binary data and the converted result is stored in the D 32 bit gray code gt binary data conversion Converts the gray code of S 1
241. ta 32 bits specified by D 1 D to the right together with carry flag R9009 data 32 bit data left rotation with carry flag data 16 bit data bit set Rotate the number of bits specified by n of the double words data 32 bits specified by D 1 D to the left together with carry flag R9009 data Set the value of bit position n of the data of D to 1 16 bit data bit reset Set the value of bit position n of the data of D to 0 16 bit data bit invert Invert the value of bit position n of the data of D 16 bit data bit test Test the value of bit position n of the data of D and output the result to R900B Number of on 1 bits in 16 bit data Store the number of on 1 bits in the data of S in D Number of on 1 bits in 32 bit data Basic function instruction F137 Auxiliary timer 16 bit STMR S D Store the number of on 1 bits in the data of S 1 S in D Turn on the specified output and R900D after set value S x 0 01 sec 12 57 Specifications FPS No Name Boolean Operand Description Special instructions Hours minutes Converts the hour minute and second data of S 1 S and seconds to seconds data and the converted data is stored in data to seconds D 1 D data Seconds data to Converts the seconds data of S 1 S to hour minute hours minutes an
242. ta communication mode g seed No 417 Buffer capacity setting for data received of poas 10 20481 serial data communication mode Figure 167 FPWIN GR PLC Configuration setting dialog box No 412 Communication mode Select the COM port operation mode Click on the button and select General Communication from the displayed pull down menu No 413 for COM 1 port No 414 for COM 2 port Communication format setting The default settings for the communication 7 Character Bit 8 Bits format are as shown at the right To change the communication format to i ae es ae match the external device connected to the Stop bit 1 COM port enter the appropriate settings for Terminator CR the various items FP 8 1 General purpose Serial Communication No 415 Baud rate setting The default setting for the baud rates for the ports is 9600 bit s Set the baud rate to match the external device connected to the COM port Click on the button and select one of the values from 2400 bit s 4800 bit s 9600 bit s 19200 bit s 38400 bit s 57600 bit s 115200 bit s on the displayed pull down menu No 416 for COM 1 port No 418 for COM 2 port Starting address for data received No 417 for COM 1 port No 419 for COM 2 port Buffer capacity setting for data received To use general purpose serial communication the received buffer must be specified In the default setting the en
243. tion of power supply and output 4 5 1 Safety Measures Precautions regarding system design In certain applications malfunction may occur for the following reasons e Power on timing differences between the PLC system and input output or mechanical power apparatus e Responce time lag when a momentary power drop occurs e Abnormality in the PLC unit external power supply or other devices In order to prevent a malfunction resulting in system shutdown choose the adequates safety measures listed in the following Interlock circuit When a motor clockwise counter clockwise operation is controlled provide an interlock circuit externally Emergency stop circuit Add an emergency stop circuit externally to controlled devices in order to prevent a system shutdown or an irreparable accident when malfunction occurs Start up sequence The PLC should be operated after all of the outside devices are energized To keep this sequence the following measures are recommended e Turn on the PLC with the mode selector set to the PROG mode and then switch to the RUN mode e Program the PLC so as to disregard the inputs and outputs until the outside devices are energized lt Note When stopping the operation of the PLC also have the input output devices turned off after the PLC has stopped operating Grounding When installing the PLC next to devices that generate high voltages from switching such as inverters do not ground them togethe
244. tions counter Pulse orsign counter input home flag value value channel output output clear input area area no output DT90052 DT90044 DT90046 Using FO MV lt bit4 gt to to one channel F1 DT90045 DT90047 Max 100 kHz DMV x1 channel F171 DT90052 DT90200 DT90202 Using lira lt bit4 gt to to two channels DT90201 DT90203 Max 60 kHz PLSH x2 channel PWM output function specifications Built in Output contact Memory area Output frequency Related high speed number being used being used duty instructions counter channel no Control flag When the resolution is 1000 1 5 to 12 5 kHz 0 0 to 99 9 FO MV i F1 DMV When the resolution F173 PWMH is 100 15 6 to 41 7 kHz 0 to 99 FPx 5 2 Function Specifications and Restricted Items 5 2 2 Function being Used and Restrictions Channel The same channel cannot be used by more than one function Function Channel High speed counter function High speed counter being used When using single phase input mode function When using two Pulse output CHO function CH2 phase input mode Restrictions on I O allocations CHO CH2 CHO CH2 The inputs and outputs allocated to the various functions listed in the table in the previous section 5 2 1 cannot be allocated to more than one function A Available N A Not
245. tire data register area is specified for use as the received buffer To change the data register area used as the received buffer specify the starting area using system register No 416 No 418 for the COM port 2 and the volume number of words using No 417 No 419 for the COM port 2 The received buffer layout is as shown below Reception buffer Starting area specified by The number of No 416 No 418 received bytes is stored here The number of words is specified using No 417 No 419 Received data The system register number in storage area parentheses indicates the number for the COM port 2 Figure 168 FPx Reception buffer Communication Function 2 General purpose Serial Communication FP 8 2 Overview of Communication with External Devices This section contains overview of communication data transmission and data reception with external devices Communication with external device is handled through the data register 8 2 1 Data Transmission to External Device Overview of data transmission Data phat Bl DT Data transmission using F159 MTRN instruction 4 Device with RS232C port Data writing vm Received data Data to be output is stored in the data register used as the transmission buffer DT and when the F159 MTRN instruction is executed the data is output from the COM port Figure 169 FPX Overview of data transmission Data table for transm
246. to take An interrupt occurred without an interrupt request A hardware problem or error due to noise is possible Turn off the power and check the noise conditions Interrupt error 2 An interrupt occurred without an interrupt request A hardware problem or error due to noise is possible Turn off the power and check the noise conditions There is no interrupt program for an interrupt which occurred Check the number of the interrupt program and change it to agree with the interrupt request Operation error Selectable Operation became impossible when a high level instruction was executed The causes of calculation errors vary depending on the instruction Set the operation status using system register 26 to continue operation E100 to E299 Self diag nostic error set by F148 Stops ERR instruction Continues The self diagnostic error specified by the F148 ERR instruction is occurred Take steps to clear the error condition according to the specification you chose 12 43 Specifications FPS 12 8 Table of Instructions Table of Basic Instructions Name Boolean Symbol Description Steps Note Sequence basic instructions Start X Y R L T C Begins a logic operation with a Form A normally open contact Start Not YRLT Begins a logic operation with a Form B normally closed contact Out OR Outputs the operated result
247. to the computer from the PLC are called responses When the PLC receives a command it processes the command regardless of the sequence program and sends a response back to the computer The computer uses the response to confirm the results of the command being executed MEWTOCOL COM sketch Communication is carried out in a conversational format based on the MEWTOCOL COM communication procedures Data is sent in ASCII format The computer has the first right of transmission The right of transmission shifts back and forth between the computer and PLC each time a message is sent Computer Transmission program C Reception processing program ESA Command messages sent from the PLC should contain the follow ing content The unit number of the PLC that Command message sent the response Start Destina Text Check End code tion O code code Confirmation of whether or not the Command messages should err was carried out suc contain the following content cesstuty when sent The type of command processed The unit number of the PLC If the command was used to read to which the command is data the data that was read being sent If an error occurred and the com The type of command mand could not be processed suc Any settings and data re cessfully the content of the error quired in order to execute the command v v A response is retur
248. to the specified output Not Inverts the operated result up to this instruction AND XY R LT C Connects a Form A normally open contact serially AND Not ee Connects a Form B normally closed contact serially OR UVALE Connects a Form A normally open contact in ape parallel OR Not Connects a Form B normally closed contact in yi parallel Alternative R Inverts the output condition on off each time the out leading edge of the trigger is detected AND stack Connects the multiple instruction blocks serially OR stack Connects the multiple instruction blocks in parallel Push stack Stores the operated result up to this instruction Read stack Reads the operated result stored by the PSHS instruction Pop stack Reads and clears the operated result stored by the PSHS instruction Leading Turns on the contact for only one scan when the edge leading edge of the trigger is detected differential Trailing Turns on the contact for only one scan when the edge trailing edge of the trigger is detected differential 12 44 FP 12 8 Table of Instructions nee Steps Leading Turns on the contact for only one scan when the edge differ leading edge of the trigger is detected The leading ential initial edge detection is possible on the first scan execution type Set R Output is set to
249. tored in D 2 Total and mean values word data 16 bit 1 2 D The total value and the mean value of the word data with sign from the area selected with S1 to the S2 are stored in the D Total and mean values double word data 32 bit 1 2 D The total value and the mean value of the double word data with sign from the area selected with S1 to S2 are stored in the D Sort word data 16 bit 1 S2 S3 The word data with sign from the area specified by S1 to S2 are sorted in ascending order the smallest word is first or descending order the largest word is first Sort double word data 32 bit S1 S2 S3 The double word data with sign from the area specified by S1 to S2 are sorted in ascending order the smallest word is first or descending order the largest word is first Scaling of 16 bit data These instructions search for a specified character in a character string and carry out scaling Scaling of 32 bit data These instructions search for a specified character in a character string and carry out scaling 16 bit data upper and lower limit control When S1 gt S3 S1 gt D When S2 lt S3 S2 gt D When S1 lt S3 lt S2 S3 gt D 32 bit data upper and lower limit control When S1 1 S1 gt S3 1 3 S1 1 S1 gt D 1 D When S2 1 S2 lt S341 S3 S2 1 S2
250. truction is used only with the FP and is an updated version of the earlier F144 TRNS instruction that allows multiple communication ports to be accommodated Please be aware that the earlier F144 TRNS instruction cannot be used with the FP F159 MTRN instruction Data is sent to and received from an external device through the specified COM port RO S n D H F159 MTRN DT 100 8 Ki Serial data communication Starting from DT100 the contents of 8 bytes are sent to the COM 1 K1 port Devices that can be specified for S Only data registers DT can be specified as the transmission buffer Devices that can be specified by n WX WY WR WL SV EV DT LD I 10 to ID K H Devices that can be specified by D Only the K constants only K1 and K2 Figure 166 FP F159 MTRN instruction program Transmission of data The amount of data specified by n is sent to the external device from among the data stored in the data table starting with the area specified by S through the COM port specified by D Data can be sent with the start code and end code automatically attached A maximum of 2 048 bytes can be sent When the above program is run the eight bytes of data contained in DT101 to DT104 stored in the transmission buffer starting from DT100 are sent from the COM port 1 Reception of data Reception of data is controlled by turning the Reception done R9038 or R
251. type mounting plate An unit with an attached flat type mounting plate can also be installed sideways on a DIN rail Figure 34 FPx Installation on DIN rail using flat type mounting plate se Note The flat type mounting plate AFP0804 cannot be used for an expansion unit FP 4 2 Wiring of Power Supply 4 2 Wiring of Power Suppl This section explains power supply wiring of FP 4 2 1 Wiring of Power Suppl Use the power supply cable provided as an accessory to supply power to the unit supply cable AFP0581 Green Function earth Blue 0 V Be Power supply cable Figure 35 FPx Wiring of power supply Power supply wiring for the unit Use the power supply cable Part No AFP0581 that comes with the unit to connect the power supply Brown 24 V DC Blue OV Green Function earth Power supply wire To minimize adverse effects from noise twist the brown and blue wires of the power supply cable Power supply type To protect the system against erroneous voltage 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 power is supplied to the unit through a protective element such as a fuse Power supply voltage Rated voltage 24V DC Operating voltage range 21 6 to 26 4 V DC
252. up data registers and other data 4 Using a screwdriver or similar tool open the battery cover Figure 55 FP Backup battery installation procedure 1 2 Connect the connector and place the battery so that the battery terminal fits between the two tabs Figure 56 FPx Backup battery installation procedure 2 3 Insert the battery cover from above Figure 57 FP Backup battery installation procedure 3 Installation and Wiring FPx 4 6 2 __ System Register Setting Setting the battery error alarm In the system register default settings No 4 Alarm Battery Error is set to Off When using the battery set system register No 4 of the control unit so that the battery error alarm is turned on Setting procedure using FPWIN GR 1 Select PLC Configuration on the Option menu and click on Action on Error tab 2 Turn on No 4 Alarm Battery Error check box PLC Configuration setting dialog box PLC Configuration p08p FP High Speed Counter Interrupt Input Tool Port COMI Port COM2 Port Hold Non hold 1 Hold Non hold2 Action on Error Time Link IV No 20 Disable settings for duplicated output faze PLB IV No 23 Stop when an 1 0 verification error occurs os Initialize Help IV No 26 Stop when an operation error occurs Figure 58 FPWIN GR PLC Configuration setting dialog box Specifying the hold area In order to use backup fu
253. value in the register x 2 5ms The number of times the sending operation is performed The current interval between two sending operations value in the register x 2 5ms The minimum interval between two sending operations value in the register x 2 5ms The maximum interval between two sending operations value in the register x 2 5ms DT90148 to DT90155 Not used DT90156 MEWNET WO PLC link status Area used for measurement of receiving interval Area used for measurement of sending interval DT90157 DT90158 DT90159 Not used DT90160 MEWNET WO PLC link unit No Stores the unit No of PLC link DT90161 MEWNET WO PLC link error flag Stores the error contents of PLC link DT90162 to DT90169 Not used 12 37 Specificatio ns FPZ Address DT90172 DT90174 DT90175 DT90176 DT90177 77 DT90179 MEWNET W0 PLC link status A Available N A Not available Name Description Reading Writing Duplicated destination for PLC inter link address Counts how many times a token is lost Counts how many times two or more tokens are detected Counts how many times a signal is lost No of times undefined commands have been received No of times sum check errors have occurred during reception No of times format errors have occurred in re ceived data No of times transmission erro
254. y using the exclusive instruction the Healing increases PWM output function enables a pulse 9 output of the desired duty ratio When you decrease it JLILIL Figure 61 FPX PWM output function Heating decreases High speed Counter and Pulse Output Functions FP 5 1 2 Performance of Built in High speed Counter Number of channel There are four channels for the built in high speed counter The channel number allocated for the high speed counter will change depending on the function being used Counting range K 2 147 483 648 to K2 147 483 647 Coded 32 bit binary The built in high speed counter is a ring counter Consequently if the counted value exceeds the maximum value it returns to the minimum value Similarly if the counted value drops below the minimum value it goes back to the maximum value and continues counting from there Max value 2 147 483 647 2 147 483 646 2 147 483 645 2 147 483 646 2 147 483 647 Min value 2 147 483 648 cit Figure 62 Counting range of high speed counter FPx 5 2 Function Specifications and Restricted Items 5 2 Function Specifications and Restricted Items This section contains specifications and restriction of functions 5 2 1 Table of Specifications High speed counter function specifications Input output contact Built in Memory area being used Performance Related number being used high specifications instruc

Download Pdf Manuals

image

Related Search

Related Contents

Manual - Nintendo of Europe  MA NU A L OP ERA CION A L  RNAscope® VS Reagent Kit (BROWN) User Manual  ULTIMATE WB200  Manual de Instrucciones  EA538AS-2 (圧着ペンチ) 裸端子用 スチール製(メッキ加工) 適合  T。s。  Orden del día Quinta sesión ordinaria 26 de octubre de 2010 13:30  Canon BJ/BJ139 User's Manual  U-1 Pro  

Copyright © All rights reserved.
Failed to retrieve file