Home

FP0R User`s Manual

image

Contents

1. a i a OO IE o Oa E FO 8 EF a D djo o S a jo o djo o p d to qg qg OQ C16 C32 T32 F32 X0 x1 XO x1 H oN rO HERM O HHO ON pa 7 3 A a y1 HHHH 5 2 YO 8 Et ud Y9 GENC Yo NAE H O kH TE HIH E tO g q qm _ _ Terminal block type MIL connector type Right side view common to all CPU types Operation status LEDs Display the current operation mode or the occurrence of an error 18 FPOR User s Manual 3 1 Parts and Functions CPU Lights when in RUN mode and indicates that the program is being executed Flashes during forced input output RUN and PROG LEDs flash alternately Lights when in PROG mode and indicates that operation has stopped Flashes during forced input output RUN and PROG LEDs flash alternately Flashes when an error is detected by the self diagnostic function ERROR ERROR ALARM red Lights if a hardware error occurs or if operation slows because of the program and the watchdog timer is activated ALARM Operation mode selector Used to change the operation mode of the PLC Switch position Operation mode RUN upward Sets RUN mode The program is executed and operation beg
2. oc FG CD 1 1 SG RXD 2 2 SD TXD 3 3 RD DTR 4 o4 GND 5 o5 DSR 6 RTS 7 CTS 8 oa RI 90 Left computer right FPOR Using the COM port CD 1 SD RXD 2 RD TXD 3 O RS DTR 4 o CS GND 5 SG DSR 6 RTS 7 CTS RI Left soe 90 computer right FPOR 105 Communication FPOR User s Manual 7 5 5 2 1 1 Communication with GT Series Programmable Displays For a 1 1 MEWTOCOL COM connection between the FPOR and a programmable display of the GT series an RS232C cable is needed Communication is performed via commands from the programmable display and responses from the PLC No program is required for communication Simply set the mutual communication settings to operate the PLC via the programmable display It is recommended to connect the computer to the TOOL port of the FPOR A connection cable order no AFC8513D with a 5 pin mini DIN connector and a 9 pin Sub D connector is available MEWTOCOL COM connection between a programmable display of the GT series and the FPOR NOTE A USB cable cannot be used e Using the TOOL port SD 10 1 SG RD 2 2 SD RS 3 O 3 RD CS 4 O O4 SG 5 O o5 Left GT terminal right FPOR e Using the COM port SD 1 SD a S RS 3 O 0 CS 4 O O SG 5 9 8G Left GT terminal right FPOR REFERENCE Please refer to the GT Series Technical Manual for more information FPOR User s Manual 7 5 MEWTOCOL COM 7 5 6 1 N Slave Communicatio
3. 74 FPOR User s Manual 6 6 Wiring the MIL Connector 6 6 Wiring the MIL Connector The connector indicated below is supplied with the unit Suitable wire AWG22 0 3 AWG24 0 2 Supplied connector Product no Type AFP0807 10 pin type Optional cables Size Cross sectional area mm7 Insulation thickness mm Rated current Description Product no I O cable with 10 pin MIL connector 2pcs 1 x 10 blue 1 x 10 white wires 1m AFP0521D I O cable with 10 pin MIL connector 2pcs 1 x 10 blue 1 x 10 white wires 3m AFP0523D I O cable with 10 pin MIL connector 2pcs 2 x 10 blue wires 1m AFP0521BLUED I O cable with 10 pin MIL connector 2pcs 2 x 10 blue wires 3m AFP0523BLUED I O cable with 10 pin MIL connector 2pcs 2 x 10 colored wires 1m AFP0521COLD I O cable with 10 pin MIL connector 2pcs 2 x 10 colored wires 3m AFP0523COLD I O cable with 40 pin MIL connector blue wires 1m AYT58403BLUED I O cable with 40 pin MIL connector blue wires 3m AYT58406BLUED I O cable with 40 pin MIL connector colored wires according to DIN 47100 3m AYT58406COLD 75 Installation and Wiring FPOR User s Manual 6 7 Wiring the Terminal Block Screw type terminal blocks are used The suitable wires are given below e When removing the wire s insulation be careful not to scratch the core wire e Do not twist the wires to
4. ceceeeeeeeeeeees 209 Output connector cesses 18 41 Output Specifications CPU 5 24 Output Specifications Expansion Units 44 Output WING eea a 73 OVGEWIEW swine ahaa dette tien 5 158 P Partial Use of Link Areas 00 00 142 Parts and Functions CPU 18 Parts and Functions Expansion Units 41 Password protection ccccccccseceeeees 204 Password Protection Error Message 220 Performance Specifications 225 PLC LINK aye eean eee ait cesta 84 135 PLC Link 0 and 1 Allocation Setting 144 PLC Link Response Time 146 PLC Protection Password Protection 204 Ports Names and Principle Applications 86 Positioning Operations with a Double Speed Inverter 177 Positioning Operations with a Single Speed Inverter ceeeeeeeees 176 POU nestle Aa anand iv Power Supply 0 ceeeseeeeceeeeeeeeeeeeees 2 41 Power Supply Unit ee 10 236 Precautions for Allocating Link Areas 143 Precautions When Setting System Registers asssieiirrnierriisiirnesrnnninns 241 PROG Mode does not Change to RUN 221 Program Controlled Communication 83 110 Programming Conventions 0 05 iv Programming Tools a 13 Protective Circuit for Capacitive Loads 74 Protective Circuit for Inductive Loads 73 Pulse Output Function 161 179 Pulse Out
5. M EXAMPLE Link relay LO for station 1 turns to TRUE The status change is fed back to the programs of the other stations and YO of the other stations is set to TRUE A constant of 100 is written to link register LDO of station 1 The contents of LDO in the other stations are also changed to a constant of 100 RO LO HHH 1 LD 0 PLC Link connection between four FPOR units REFERENCE For detailed information on the PLC Link communication mode see PLC Link on page 135 84 FPOR User s Manual 7 1 Communication Modes 7 1 5 Modbus RTU Master Slave This communication mode uses the Modbus RTU protocol to exchange data between a master and one or more slaves This is called 1 1 or 1 N communication Sa TESS B Modbus RTU connection between the FPOR and an external device There is a Modbus RTU master function and a Modbus RTU slave function The side that issues commands is called master The slave receives the commands executes the process and sends back responses The slave answers automatically to the commands received from the master so no program is necessary on the slave The Modbus protocol supports both ASCII mode and RTU binary mode However the PLCs of the FP Series only support the RTU binary mode REFERENCE For detailed information on the Modbus RTU communication mode see Modbus RTU Communication on pa
6. pA ar o FUUUUL SOUU Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with TRUE FALSE signals In this mode forward rotation is carried out when the rotation direction signal is TRUE Relative value control Pulse output YO Y2 Direction output Y1 Y3 Incremental counting Decremental counting The number of pulses set with the target value is output Positive values result in a positive rotation negative values in a negative rotation y EXAMPLE With a current position of 5000 and a target value of 1000 1000 pulses are output from CW to reach the new position at 6000 180 FPOR User s Manual 8 4 Pulse Output Function Absolute value control A number of pulses equal to the difference between the set target value and the current value are output Values greater than the current value result in a positive rotation values smaller than the current value result in a negative rotation a EXAMPLE With a current position of 5000 and a target value of 1000 4000 pulses are output from CCW to reach the new position at 1000 The following outputs are TRUE or FALSE depending on the selected pulse output method and position control mode Target value Pulse output method pulse iti i HES OLA NO output Positive value Negative value gt current value lt current value CW CCW CCW FALSE TRUE Forward TR
7. 0 continue 1 stop Group I Count bit 1 0 permit Reset elapsed value to 0 bit 0 Example 16 2109 Group Value Description i 1 prohibit Channel number 2 fixed Position control start request disabled Decelerated stop request disabled Near home input FALSE Pulse output stop bit 3 Clear pulse output control bit 2 o Count permit bit 1 Jo Em Reset elapsed value to 0 yes bit 0 1 7 Hex 9 corresponds to binary 1001 187 High Speed Counter and Pulse Output FPOR User s Manual NOTE e Performing a forced stop may cause the elapsed value at the PLC output side to differ from the elapsed value at the motor input side Therefore you must execute a home return after pulse output has stopped e Setting the near home input is not possible if counting is prohibited or if a software reset is performed REFERENCE Please refer to the FPWIN Pro online help for programming examples 8 4 3 2 Writing and Reading the Elapsed Value of the Pulse Output The elapsed value is stored as a double word in the special data registers Access the special data registers using the system variable sys_diHscChannelxElapsedValue where x channel number System variables for memory areas used o sys_diPulseChannel0ElapsedValue DDT90400 Pulse output elapsed value sys_diPulseChannel1ElapsedValue DDT90410 for channel sys_diPulseChannel2ElapsedValue DDT90420
8. 7 7 2 2 Example for PLC link 1 Set system register 46 to Reverse to use PLC link 1 See PLC Link 0 and 1 Allocation Setting on page 144 Link relay allocation 1 2 3 4 WL64 g1 L64 gaV L64 q WL64 Ea am 83 83 84 84 2 2 2 103 103 3 104 104 3 lt j Sa 127 127 127 127 sewers LJ ovea fe sonras 140 FPOR User s Manual 7 7 PLC Link System register settings ape fe a Link relays Send receive area Number of words shared by all linked PLCs Link relays Send area Start sending from this word address Link relays Send area Number of words to send 20 20 24 o 1 The value of this system register must be identical for all stations Link register allocation 1 2 3 4 LD128 H LD128 LD128 1 LD128 167 167 168 2 168 2 2 207 207 3 208 3 208 3 255 255 255 255 System register settings meme EE Link registers Send receive area Number of words shared by all linked PLCs Link registers Send area Start sending from this word address Link registers Send area Number of words to send 40 40 48 o 1 The value of this system register must be identical for all stations When link areas are allocated as shown above the send area of station no 1 can be transmitted to the receive areas of stations no 2 3 and 4 Also the receive area of station no 1 can receive data from the send areas of stations no 2 and 3 Station no 4 is allocated
9. Poe f AFPORC32T EE A AFPORC32P C32 ak EN ce i AFPORC32CT Transistor 24V DC PNP 0 24 AFPORC32CP 32 16 16 24V DC COM MIL connector T32 terminal ET AFPORT32CT AFPORT32CP Transistor PNP 0 2A Transistor NPN 0 2A Transistor PNP 0 2A AFPORF32CT AFPORF32CP Total number input points output points 2 RS232 C interface X Available FPOR User s Manual 2 2 Unit Types 2 2 2 FPO I O Expansion Units Number of Power Type I O points supply Input Output Connection Product no 24V DC 8 8 COM terminal MIL connector FPO E8X 24V DC F 8 4 4 24V DC COM terminal Relay 2A Terminal block FPO E8RS Expansion unit E8 8 8 24V DC Relay 2A Terminal block FPO E8YRS Transistor 8 8 NPN 0 1A MIL connector FPO E8YT Transistor 8 8 PNP 0 14 MIL connector FPO E8YP 24V DC 16 16 COM terminal MIL connector FPO E16X 16 8 8 24V DC Oe Rectal Relay 2A Terminal block FP0 E16RS 24V DC Transistor Expansion 16 8 8 COM terminal NPN 0 1A MIL connector FPO E16T uni 16 8 8 z ee Transistor MIL connector FP0 E16P COM terminal PNP 0 1A Transistor 16 16 NPN 0 1A MIL connector FPRO E16YT Transistor 16 16 PNP 0 14 MIL connector FPO E16YP 24V DC Transistor Expander 32 16 16 COM terminal NPN 0 1A MIL connector FPO E32
10. RS232C port PLC The start and end codes specified in the system registers are automatically added to the data sent The maximum volume of data that can be sent is 2048 bytes Receiving data Data is automatically received in the receive buffer defined in the system registers Receiving includes processing the data in the receive buffer and preparing the system to receive further 110 FPOR User s Manual 7 6 Program Controlled Communication data See also Receiving Data from External Devices on page 117 Reception can be controlled by the reception done flag or by directly evaluating the receive buffer See also Flag Operation on page 121 Data registers DT CC Y Send buffer Receiving data Device with RS232C port No end code is included in the data stored The maximum volume of data that can be received is 4094 bytes PLC Reception done flag is turned on NOTE In the FPO compatibility mode F159_MTRN is automatically translated into F144 _TRNS 7 6 1 Setting Communication Parameters Make the following settings for the communication port e communication mode Program controlled e baud rate e communication format e receive buffer For details on setting the communication parameters see Setting System Registers in PROG Mode on page 94 NOTE Program controlled mode is also available via the TOOL port 111 Communication FPOR User s Manual Speci
11. 5 0 131 Communication FPOR User s Manual LD Body vs Sai Fone ee ee eee ee ee 6 pSendData P Prepare and send start command S for image checker bSendData bSendData eSendData Pa sSendData bSendData awSendBuffer 0 PARNER Get receive data blsReceptionDone DT200_awReceiveBuffer 1 DT200_awReceiveBuffer 4 ry Clear the receive buffer blsReceptionDone ST Body if DF bSendDataCommand then Prepare and send start command 5 for image checker sSendData 5 F10_BKMV s1_Start Adr_Of VarOffs Var sSendData Offs 2 s2_End AdrLast_Of Var sSendData qa_Start gt awsendBuffer 1 FiS59_NTRN s_ Start awSendBuffer 0 n Number LEN sSendData d_Port 1 end if if DF IsReceptionDone Port 1 then Get receive data FiO BKMV si_Start DTZ200_awReceiveBuffer 1 s2_End DT200_awReceiveBuffer 4 B Start gt awReceiveData 0 Clear the receive buffer FisS9_NTRN s_ Start wDummy n Number 0 d_Port 1 end_if 132 FPOR User s Manual 7 6 Program Controlled Communication The status of the reception done flag may change while a scan is being carried out For example if the flag is used more than once as an input condition different statuses may exist within one scan To ensure proper execution of the program the status of the special internal relay should be copied to a variable at the beg
12. Home input X4 Position control trigger types only input X0 e PWM output YO e Pulse output Y2 Y3 Pulse output e Pulse output Y2 Y3 Home input X5 Channel 1 transistor Unused e Pulse output Y2 Y3 Home input X5 Position control trigger types only input X1 e PWM output Y2 e Pulse output Y4 Y5 Pulse output e Pulse output Y4 Y5 Home input X6 Channel 2 transistor Unused Pulse output Y4 Y5 Home input X6 Position control trigger types only input X2 e PWM output Y4 e Pulse output Y6 Y7 Pulse output e Pulse output Y6 Y7 Home input X7 Channel 3 transistor Unused e Pulse output Y6 Y7 Home input X7 Position control trigger types only input X3 e PWM output Y6 Pulse catch input XO Disable Enable 245 Appendix FPOR User s Manual Pulse catch input X5 Disable Enable Pulse catch input X6 Disable Enable Pulse catch input X7 Disable Enable 5 i a i 5 ae If the same input has been set as high speed counter input pulse catch input or interrupt input the following order of precedence is effective High speed counter Pulse catch gt Interrupt i e If reset input settings overlap for channel 0 and channel 1 the channel 1 setting takes precedence If reset input settings overlap for channel 2 and channel 3 the channel 3 setting takes precedence e The input modes two phase incremental decremenital or incremental decre
13. Two phase Incremental decremental Incremental decremental control For details on the different input modes see page 166 2 Reset input X2 can be set to either channel 0 or channel 1 Reset input X5 can be set to either channel 2 or channel 3 3 Channel 4 and channel 5 are not available for the C10 type Performance Ca Minimum input pulse width No of channels Maximum counting speed 1 tus SE 50x7 sd 25us 2 15kHz x2 channels For information on the minimum input pulse width see page 168 The maximum counting speed may be lower than the values indicated in the table when the pulse output speed is changed or when a cam control target value match on off or other interrupt program is executed simultaneously 2 Control flags and memory areas The high speed counter operating status counting values and control code are stored in special internal relays and special data registers The control code contains the counter settings To access special data registers and special internal relays use the PLC independent system variables You can insert system variables directly into the POU body Use the Variables dialog without entering a declaration in the POU header See Instructions and System Variables on page 169 160 FPOR User s Manual 8 2 Function Specifications and Restrictions Related instructions F165_HighSpeedCounter_Cam Cam control F166_HighSpeedCounter_Set Target value matc
14. Twt Tis Tso Tlk link addition processing time Tic link addition command sending time Twt addition waiting time Tis link error stop command sending time Tso master station scan time With the SYS1 instruction the link addition waiting time Twt in the above formula can be reduced Thus SYS1 can be used to minimize the increase in the transmission cycle time y EXAMPLE Set SYS1 to change the waiting time for a link to be added to the PLC link from the default value of 400ms to 100ms 149 Communication FPOR User s Manual LD Body 4 sys_blsFirstSean SY S1 B EN ENO PC K1TO 100 s i NOTE e If there are any stations that have not been added to the link the setting should not be changed as long as a longer link transmission cycle time does not cause any problems e The SYS1 instruction should be executed at the beginning of the program at the rise of R9014 The same waiting time should be set for all linked PLCs e The waiting time should be set to a value of at least twice the maximum scan time for any of the PLCs connected to the link e Ifa short waiting time has been set there may be PLCs that cannot be added to the link even if their power supply is on The shortest time that can be set is 10ms 7 7 6 2 Error Detection Time for Transmission Assurance Relays If the power supply of any given PLC fails or is turned off it takes as a default value 6
15. gt Austria gt Benelux gt Czech Republic gt France gt Germany gt Hungary gt Ireland gt Italy gt Nordic Countries gt Poland gt Portugal gt Spain gt Switzerland gt United Kingdom Panasonic Electric Works Europe AG Panasonic Electric Works Austria GmbH PEW Electronic Materials Europe GmbH Panasonic Electric Works Sales Western Europe B V Panasonic Electric Works Czech s r o Panasonic Electric Works Sales Western Europe B V Panasonic Electric Works Europe AG Panasonic Electric Works Europe AG Panasonic Electric Works UK Ltd Panasonic Electric Works Italia s r l Panasonic Electric Works Nordic AB PEW Fire amp Security Technology Europe AB Panasonic Electric Works Polska sp z 0 0 Panasonic Electric Works Espa a S A Panasonic Electric Works Espa a S A Panasonic Electric Works Schweiz AG Panasonic Electric Works UK Ltd Rudolf Diesel Ring 2 83607 Holzkirchen Tel 49 0 8024 648 0 Fax 49 0 8024 648 111 www panasonic electric works com Rep of PEWDE Josef Madersperger Str 2 2362 Biedermannsdorf Tel 43 0 2236 26846 Fax 43 0 2236 46133 www panasonic electric works at Ennshafenstrake 30 4470 Enns Tel 43 0 7223 883 Fax 43 0 7223 88333 www panasonic electronic materials com De Rijn 4 Postbus 211 5684 PJ Best 5680 AE Best Netherlands Tel 31 0 499 372727 Fax 31 0 499 372185 www panasonic electric works nl Prumtyslova 1
16. 12 2 2 C16 CPU MIL Connector ccccecccceeeeeeeeeeeceeeeeeeeeceneaeeeeeeeeetensetaeees 233 12 2 3 C32 CPU MIL Connector cccccceceeeeeeeeeeeceeeeeeeeeeenaeeeeeeeeeteeseeaeees 235 12 2 4 Power Supp UE a E A e A A EEEE 236 12 2 5 VO LinKk Umit iini ie ad eden 236 12 2 6 Using DIN Rails tnia a eda i edh 237 xi Table of Contents FPOR User s Manual 13 12 3 Relays and Memory Areas for FPOR ccceeeeeeeeeeeeeeeeeeeeeeeeteneeeeeeeeees 238 12 4 System REGISUSNS sroine aonn a a iA tone 241 12 4 1 Precautions When Setting System Registers 0 000 cceeeeeeeeteeeeeeees 241 12 4 2 Types of Systemi Registers eisernen enii 241 12 4 3 Checking and Changing System Registers cccceeeeeeeeeeeetteeeeeeees 242 12 4 4 Table of System Registers 0 ec ceeeceeeeeeeeeeeeeeneeeeeeeeeeeeeenaeeeeeenaeeeeeeaas 243 12 5 Error GC OASS se brssesuscrabadtersdena cutianct i Sact haat a a EE s e aiie 249 12 5 1 Error Codes ET O E8 etic el en ie de 249 12 5 2 Self Diagnostic Error COdeS 0 ccccceeeeeteeeeeeneeeeeeeeeeeeeeenaeeeeeenaeeeeeeaas 250 12 5 3 MEWTOCOL COM Error Codes ccececeeeeececeeeeeeeeeeeeeeeseeeesneeeeaees 250 12 6 MEWTOCOL COM Communication Commands ceeeeereeteeeees 252 Wet Data EY DOS saena aaen ava id etu tee atin ahd duseed onal Se ant bean EAA tA 253 12 8 Hexadecimal Binary BCD eccceeceeccceeeeeeeeeeeeseeeeeeneeeeessnseeeeeeeeeeeees 254 12 9 ASCll
17. 3 5 Backup and Clock Calendar Functions cccccccccceesesseeeeeeeeeseaseeeeeees 31 3 5 1 Backup FUnCHONiit7 etnies Reet iki i Ree tee eae 32 3 5 2 Clock Calendar Function cccccccccccceccecceceeeeeeeeeceeeeeeeeeseeencaeeeeeeeeteees 33 3 5 2 1 Memory Area for Clock Calendar Function 0 cecccceeeeeetreeeeeees 33 3 5 2 2 Settings for Clock Calendar FUNCTION cceceeeeesteeeeetteeeeeeaes 34 3 5 2 3 Sample Program for Fixed Schedule and Automatic Start 35 3 5 2 4 Sample Program for 30 Second Compensation ce 35 EX DANS LOIN ic atl cates Sa sete aad dete eed acca barnes 39 4 1 Expansion Method ccccccecceececeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeneeeeseeeneeess 40 4 2 Parts and Functions Expansion Units cccccccssseesseceeeeeeseaeaeeseeeeees 41 4 3 Input Specifications Expansion Units cecceeeeeee sees eeeeteeeeeeeeeeees 43 4 4 Output Specifications Expansion Units ccc cece ee eeee sees eeeeeeeeeeeees 44 4 5 Terminal Layouts iecicscccesesvesuects conthpenieg iiinis neina Ea aa Eek AAEE Siaa 46 VO Allocation wens cscsestde iihcecericecss teresa ecdeccdecbbaoieetaeatencteeuticass 49 Sel General ss2ieei esl ieee ei E id oaids os ede ol alas Wee AA 50 52 VOR Uh wessiiosveseranavenndieretestedeantteadendntean nal a A a a aN 51 5 3 FPO Expansion Units E E E EA E A AAT 52 Installation and WiITiNG c
18. 5 198 44ms Calculation example 3 Conditions All but one station have been added to a 16 unit link Highest station number 16 Relays and registers have been evenly allocated Scan time for each PLC 5ms Ttx 0 096 Ts per station 5 6 82 11 82ms Tit 0 096 x 13 2 x 15 4 31ms Tik 0 96 400 0 67 5 407ms Note The default value for the addition waiting time is 400ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 11 82 x 15 4 13 5 407 593 43ms Calculation example 4 Conditions All stations have been added to an 8 unit link Highest station number 8 Relays and registers have been evenly allocated Scan time for each PLC 5ms Ttx 0 096 Pcm per station 23 8 16 x 4 119 Tpc Ttx x Pem 0 096 x 119 11 43ms Ts per station 5 11 43ms 16 43ms Tit 0 096 x 13 2 x 8 2 79ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 16 43 x 8 2 79 5 139 23ms Calculation example 5 Conditions All stations have been added to a 2 unit link Highest station number 2 Relays and registers have been evenly allocated Scan time for each PLC 5ms Ttx 0 096 Pcm per station 23 32 64 x 4 407 Tpc Ttx x Pem 0 096 x 407 39 072ms Ts per station 5 39 072 44 072ms Tit 0 096 x 13 2 x 2 1 632ms Given the above conditions the m
19. 7 7 5 Monitoring When using a PLC link the operation status of the links can be monitored using the relays below In FPWIN Pro choose Monitor gt Special Relays and Registers PLC Link Status to view the status of each relay To monitor other PLC link status items such as the transmission cycle time and the number of times that errors have occurred choose Monitor PLC Link Status in FPWIN Pro Remote programming of other linked PLCs is not possible NOTE To access special data registers and special internal relays use the PLC independent system variables Transmission assurance relays e For PLC link 0 R9060 to R906F correspond to station no 1 to 16 e For PLC link 1 R9080 to R908F correspond to station no 1 to 16 Before using the data from a different station in the network check to make sure the transmission assurance relay for this station is TRUE Relayno Stationne System variable name Conditions tor TRUETFALSE Operation mode relays e For PLC link 0 R9070 to R907F correspond to station nos 1 to 16 e For PLC link 1 R9090 to R909F correspond to station nos 1 to 16 The operation modes RUN PROG can be checked for any given PLC 145 Communication FPOR User s Manual Relayno Station no _ System variable name Conditions for TRUETFALSE Reor se ove lePeLinkoStatondinRuntode Reor o sy ePeLinkStatondinRunMode PLC link transmission error relay R905
20. COM port 1 baud rate 2400 1 15200bit s ica NOTE The communication format and baud rate of the PLC should be set to match the connected device Programming For MEWTOCOL COM communication a program must be created that allows command messages to be sent and response messages to be received on the computer side There is no programming required on the slave Only the station number and the communication parameters must be set in the system registers The program for the master side must send and receive commands according to the MEWTOCOL COM protocol MEWTOCOL COM contains the commands used to control and monitor the slave operation If a software program such as PCWAY is used on the computer side PLC data can easily be read and written without having to think about the MEWTOCOL COM protocol 104 FPOR User s Manual 7 5 MEWTOCOL COM 7 5 5 1 1 1 Communication with a Computer For a 1 1 MEWTOCOL COM connection between the FPOR and a computer an RS232C cable is needed Communication is performed via commands from the computer and responses from the PLC 1 1 MEWTOCOL COM connection between a computer and the FPOR SSS It is recommended to connect the computer to the TOOL port of the FPOR A connection cable order no AFC8513D with a 5 pin mini DIN connector and a 9 pin Sub D connector is available Using the TOOL port FG O mi
21. Fixed 0 256 e Data register hold area start address suet Fixed 0 32763 70 Tink relay hold area siant adress tor PLG Urko Gn word unis 64 reo Link relay hola area siart adaress for PLG Link 1 Gn word unis 128 Frears 12 Link resiserhod area siart address tor PLC Lo 1s Freno Fixed or Step ladder hold non hold Non hold Hold Non hold3 1 FPOR T32 If the battery is empty and additional hold areas have been defined the hold non hold operation becomes unstable The data value will become indefinite It is cleared to 0 the next time the power is turned on 2 Depending on PLC type 16k 32k type d Depending on PLC type Fixed for C10 C14 C16 C32 variable for T32 F32 Act on Error DF P fu ction leading falling edge Holds result Holds result disregards result detection 23 I O verification error Stop Continue Time Out e ee O 31 Multi frame communication time 6500 0ms_ 10 0 81900 0ms Timeout value for the communication functions based on F145 F146 F152 10000 0ms 10 0 81900 0ms F153 0 0 600 0ms Constant scan time 0 0ms 0 0 Normal scan non constant 243 Appendix FPOR User s Manual PLC Link PLC Link 0 and 1 allocation setting Normal Reverse 47 PLC link 0 Highest station number in network 16 1 16 PLC link 0 Link relays Send receive area Number of words shared by all linked PLCs 0 64 words 0 64 words PLC link 0 Link relays Send area Sta
22. High Speed Counter and Pulse Output FPOR User s Manual registers The pulse output status is stored in special internal relays To access special data registers and special internal relays use the PLC independent system variables You can insert system variables directly into the POU body Use the Variables dialog without entering a declaration in the POU header See Instructions and System Variables on page 183 Related instructions F166_PulseOutput_Set Target value match ON pulse output F167_PulseOutput_Reset Target value match OFF pulse output F171_PulseOutput_Trapezoidal Trapezoidal control F171_PulseOutput_Jog_ Positioning JOG operation and positioning F172_PulseOutput_Jog JOG operation F174_PulseOutput_DataTable Data table control F175_PulseOutput_Linear Linear interpolation control F177_PulseOutput_Home Home return 8 2 3 PWM Output Function For the pulse width modulation output function there are two designated channels and outputs NOTE The PWM output function is only available with the transistor output type Output numbers Channel no PWM output 0 Yo 1 Y2 2 Y4 3 Y6 Performance Resolution Output frequency duty ratio 1000 6Hz 4 8kHz 0 0 99 9 Control flags The PWM output status is stored in special internal relays To access special data registers and special internal relays use the PLC independent system variables You can insert system varia
23. No Item Name Data Dim 412 COM port 1 communication mode COM port 1 station number 1 COM port 1 baud rate 9600 baud 13 COM port 1 sending data length 8 bits H3 COM port 1 sending parity check With Odd 413 COM port 1 sending stop bit 1 bit H3 COM port 1 sending start code _No STX COM port 1 sending end codejreception done condition CR 5 COM port 1 receive buffer starting address 200 COM port 1 receive buffer capacity 5 COM port 1 modem connection Disable In order to use the data in the receive buffer define a global variable having the same starting address and capacity In this example the starting address is 200 VAR_GLOBAL ReceivedData and the receive buffer capacity is 5 ARRAY 0 4 OF WORD GVL Class Identifier FP A IEC Addr Type Initial O VAR GLOBAL DT200_awReceiveBuffer DT200 MWS5 200 ARRAY 0 4 OF WORD _ 5 0 POU Header and LD Body Identifier Type Initial Comment l WORD o VAR ReceptionDone BOOL FALSE VAR_EXTERNAL DT200_awReceiveBuffer ARRAY 0 4 OF WORD 5 0 WAR _awReceiveData ARRAY O 3 0F WORD 4 0 ee Y ai a lt ReceptionDone P gt g ReceptionDone DT200_awReceiveBuffer 1 DT200_awReceiveBuffer 4 ReceptionDone ST Body if sys_bIsComPortiReceptionDone then F10 BKMV si_ Start DT2Z00 awReceiveBuffer 1 s2_End DT2Z00_awReceiveBuffer 4 da Start gt awReceiveData Q F159 NTRN s_ Start wDummy
24. Response time gt 100 000 operations switching frequency at nominal switching Electrical lifetime capacity 20 operations min Surge absorber Operation mode indicator LEDs Internal circuit diagram Internal circuit 26 FPOR User s Manual 3 4 Terminal Layout 3 4 Terminal Layout 3 4 1 C10 CPU C10RS C10CRS C10RM C10CRM x lt 2 a x lt amp a R s ia Ean Power supply 27 CPU Types FPOR User s Manual 3 4 2 C14CPU C14RS C14CRS C14RM C14CRM X0 7 XO Oo X1 O X2 o o0 X3 o o X4 o o o X5 o o X6 O o0 X7 o o COM ju H x HE Power supply 28 FPOR User s Manual 3 4 Terminal Layout 3 4 3 C16 CPU C16T C16CT XO X1 Y0 7 C16P C16CP X0 7 o x0 x1 50 x2 x3 5 0
25. The unit s comment memory area is separate from the program area and can store I O comments for 100 000 points Program management and maintenance is easy Thanks to the separate comment area programs can now be developed without concern for comment memory capacity Positioning control using high speed counter and pulse output see page 160 A high speed counter and a pulse output function are provided as standard features e Target speed change Target speed change of e JOG operation JOG operation Total movement amount pulses Position control trigger input of Decelerated stop Trigger for decelerated stop Total movement amount pulses of FPOR User s Manual 2 1 Features Individual setting for acceleration deceleration time Acceleration time Deceleration time lt lt _ _ _ _ gt Additional unit with battery free backup function F32 type see page 32 The F32 type offers a battery free automatic backup function for all operation memories internal relays data registers timers counters Maintainability has been significantly improved as there is no need to change a battery Full range of communication functions see page 81 e PLC Link supports MEWNET W0 e MEWTOCOL COM Master Slave e MODBUS RTU Master Slave e Program controlled communication via TOOL or COM port RS232C Extended online editing functions Additional func
26. WX2 X20 X2F FPO analog I O unit Kout WX3 FP0 A21 P X30 X3F WY2 FPO A D conversion unit WX2 FP0 A80 and input 0 2 4 6 X20 X2F FPO thermocouple unit WX3 FPO TC4 Input 1 3 5 7 X30 X3F FPO TC8 T WX2 X20 X2F FPO D A conversion unit wy FPO A04I WY3 Input input WX4 WX6 X40 X4F X60 X6F WX5 WX7 X50 X5F X70 X7F WY4 WY6 Y40 Y4F Y60 Y6F WX4 WX6 X40 X4F X60 X6F WX5 WX7 X50 X5F X70 X7F WX4 WX6 X40 X4F X60 X6F WY4 WY6 Y40 Y4F Y60 Y6F WY5 WY7 Y50 Y5F Y70 Y7F 229 Appendix FPOR User s Manual Number Unit number installation location Type of unit of I O Channel WX2 wx4 WX6 oaren ouoxar ooren FPO RTD unit A T ae WX3 WX5 WX7 FPO RTD6 p X30 X3F X50 X5F X70 X7F wy2 wy4 WY6 poe ow o Y20 Y2F Y40 Y4F Y60 Y6F FPO IOL Output 32 Y20 Y3F Y40 Y5F Y60 Y7F NOTE e The data for each channel of the A D and D A conversion units FP0 A80 FP0 TC4 TC8 FP0 A04V I and FPO RTD6 is converted and loaded with a user program that includes a switching flag to convert the data in 16 bit words see corresponding manuals 230 FPOR User s Manual 12 2 Dimensions 12 2 Dimensions 12 2 1 C10 C14 CPU Terminal Block FPORC10CRS 14CRS FPORC10RS 14RS The same dimensions apply to the following FPO expansion units e FPO E8RS e FPO E16RS FPORC10CRS 14CRS FPORC10RS 14RS 231 Ap
27. a syntax error or a self diagnostic error that caused operation to stop has occurred e Check to see if the ERROR ALARM LED is flashing See ERROR ALARM LED is Flashing on page 216 e Locate the syntax error by executing Monitor PLC Status 221 Chapter 12 Appendix Appendix FPOR User s Manual 12 1 Specifications 12 1 1 General Specifications Item Description o Rated operating voltage 24V DC Operating voltage range 20 4 28 8V DC C10 C14 5ms at 20 4V 10ms at 21 6V Momentary power C16 off time C32 T32 10ms at 20 4V F32 Built in cannot be replaced Ambient temperature 0 55 C Storage temperature 40 70 C T32 20 70 C Ambient humidity 10 95 RH at 25 C non condensing Storage humidity 10 95 RH at 25 C non condensing Transistor types Relay types Input terminals Output terminals 500V AC for 1min 1500V AC for 1min Output terminals Output terminals of different COM terminals bo i TRO AG for Imin Breakdown voltage In put terminals Power supply i f cutoff current 5mA terminal Eunction earth 500V AC for 1min 500V AC for 1min Output terminals Power supply sqgy AC for 1min 1500V AC for 1min terminal Function earth Function earth lt Power supply 500V AC for 1min 500V AC for 1min terminal Input terminals Output terminals Min 100Q Min 1009 Output terminals Output terminals of different COM terminals Insulation resistance Inpu
28. communication format Stop bit 1 bit 2 bits End code CR CR LF None ETX Start code No STX STX COM port 1 baud rate 2400 115200bit s COM port 1 receive buffer starting address 0 32762 factory setting 0 see note COM port 1 COM port 2 0 2048 words factory setting 2048 words The setting must match the external device connected to the communication port 7 6 8 Setting Communication Parameters Make sure that the PLC type selected in FPWIN Pro is FPO In the FPO compatibility mode the instruction F144_TRNS is used instead of F159_MTRN REFERENCE For details on the instruction F144_TRNS please refer to the online help of FPWIN Pro 134 FPOR User s Manual 7 7 PLC Link 7 7 PLC Link PLC Link is an economic way of linking PLCs using a twisted pair cable and the MEWNET protocol Data is shared with all PLCs by means of dedicated internal relays called link relays L and data registers called link registers LD The statuses of the link relays and link registers of one PLC are automatically fed back to the other PLCs on the same network The link relays and link registers of the PLCs contain areas for sending and areas for receiving data Station numbers and link areas are allocated using the system registers Sharing of data in a PLC link using dedicated send and receive areas 135 Communication FPOR User s Manual y EXAMPLE Link rel
29. n Number 0 d Port 1 end_ if Data can be received when the reception done flag is FALSE The reception done flag is evaluated by the system variable sys_blsComPort1ReceptionDone When the reception of the 119 Communication FPOR User s Manual data is complete the end code has been received the reception done flag turns to TRUE and subsequently receiving data is prohibited To prepare the system to receive the next data without immediately sending further data the receive buffer is reset by executing F159 _MTRN with n_Number 0 NOTE e The status of the reception done flag may change while a scan is being carried out For example if the flag is used more than once as an input condition different statuses may exist within one scan To ensure proper execution of the program the status of the special internal relay should be copied to a variable at the beginning of the program e The start code STX resets the receive buffer Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and moves the write pointer back to offset 1 Subsequent data will be stored in the receive buffer starting at offset 1 e For details on the format of the data in the send buffer and in the receive buffer please see Data Format on page 120 7 6 4 Data Format Remember the following when accessing data in the send and receive buffers e The format of the data in the send buffer depends on
30. type a 30 type mounting plate Eor vertical mounting of the FPOR C32 T32 F32 CPU AFP0811 ee type mounting plate 10 For vertical mounting of FPO expansion units AFP0803 Flat type mounting plate 10 pcs For horizontal mounting of the CPU AFP0804 For reading writing Data clear type AFP8670 FP Memory Loader y programs from to PLC Data hold type AFP8671 11 Overview FPOR User s Manual 2 3 Restrictions on Unit Combinations By adding expansion units the number of I O points can be increased However the maximum number of expansion units per CPU is limited A maximum of three expansion units can be connected on the right side of the FPOR CPU these expansion units being either I O expansion units or intelligent units A combination of relay output types and transistor output types is also possible o f QOSO00O0 Gooooooo fooooooo donano meee eee ape eee aon l T k I HENI i I Heny H TOOOOOOO do ododo GononoN dododo COSOR0Oo dododano dododo oooooooo EF bo FPOR CPU Maximum expansion 3 units Expansion unit 1 Expansion unit 2 Expansion unit 3 Se
31. 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 0000 0000 1111 0010 0111 0000 1111 0000 0000 0110 0011 0000 0010 0101 0101 1001 1001 1001 1001 254 FPOR User s Manual 12 9 ASCII Codes 12 9 ASCII Codes gt b7 gt b6 0 0 0 0 1 1 1 1 gt b5 olaola ilolo ola 1 0 1 0 1 0 1 0 1 Most significant digit 1 2 4 DEL SP ACE lolala 1 1 1 A sQti atlq 0 0 1 0 2 7 2 B R b r olokada 3 3 c S5 c s l iio e 4 4 dD T ada t D OMO a S 5 El lU e u T oao 3 fe amp lelFivifiv o ial iai a Bz 71G wigIJw 1 lolololgis 3a fH x h x aa 1 o o 4 9 o 4tytyyY ity 1 0 1 0 A J Z j z ifol a a B l IK k I ilalolo PES aa a a E E i 1 ilolla D My14 my 3 1 afaido E gt A on x 1 aa 4 F o _ o DEL 255 Index 1 1 Communication ccccee 85 126 Communication with a Comp
32. 34815 Plana Tel 420 374799990 Fax 420 374799999 www panasonic electric works cz Succursale francaise 10 rue des petits ruisseaux 91371 Verri res le Buisson T l 33 0 1 6013 5757 Fax 33 0 1 6013 5758 www panasonic electric works fr Rudolf Diesel Ring 2 83607 Holzkirchen Tel 49 0 8024 648 0 Fax 49 0 8024 648 111 www panasonic electric works de Magyarorsz gi K zvetlen Kereskedelmi K pviselet 1117 Budapest Neumann Janos u 1 Tel 36 0 1482 9258 Fax 36 0 1482 9259 www panasonic electric works hu Dublin Tel 353 0 14600969 Fax 353 0 14601131 www panasonic electric works co uk Via del Commercio 3 5 Z I Ferlina 37012 Bussolengo VR Tel 39 0 456752711 Fax 39 0 456700444 www panasonic electric works it Sjdangsvagen 10 19272 Sollentuna Sweden Tel 46 859476680 Fax 46 859476690 www panasonic electric works se Jungmansgatan 12 21119 Malm Tel 46 40697 7000 Fax 46 40697 7099 www panasonic fire security com Al Krakowska 4 6 02 284 Warszawa Tel 48 0 22 338 11 33 Fax 48 0 22 338 12 00 www panasonic electric works pl Portuguese Branch Office Avda Adelino Amaro da Costa 728 R C J 2750 277 Cascais Tel 351 214812520 Fax 351 214812529 Barajas Park San Severo 20 28042 Madrid Tel 34 913293875 Fax 34 913292976 www panasonic electric works es Grundstrasse 8 6343 Rotkreuz Tel 41 0 417997050 Fax 41 0 417997055 www panasonic electric works ch Sunr
33. Busierror Processing of command received is not possible because of multiple frame y processing or because command being processed is congested Parameter error Content of specified parameter does not exist or cannot be used There was a mistake in the contact data area data number designation size designation range or format designation Operation was done when number of registrations was exceeded or when Registration over error y there was no registration 163 PCmodeerror PC command that cannot be processed was executed during RUN mode An abnormality occurred when loading RAM to ROM IC memory card There may be a problem with the ROM or IC memory card When loading the specified contents exceeded the capacity Write error occurs Link setting error Data error External memory error e ROM or IC memory card is not installed e ROM or IC memory card does not conform to specifications A program or system register write operation was executed when the protect Protect error mode password setting or DIP switch etc or ROM operation mode was being used There was an error in the code format of the address data Also when Address error exceeded or insufficient address data there was a mistake in the range designation 167 No program error and Cannot be read because there is no program in the program area or the gt no data error memory contains an error Or reading of non registered data was attempted Rewrite d
34. Code 170 8 3 4 2 Writing and Reading the Elapsed Value for the High Speed Counter ea e si cgenend ctesttinneeeetiens 173 8 3 4 3 F166_HighSpeedCounter_Set Target Value Match ON 173 8 3 4 4 F167_HighSpeedCounter_Reset Target Value Match OFF 174 8 3 4 5 F178_HighSpeedCounter_Measure Input Pulse Measurement 175 3 5 Sampe Programs eaa E AE eave eee 175 8 3 5 1 Positioning Operations with a Single Speed Inverter 0 176 Table of Contents FPOR User s Manual 8 3 5 2 Positioning Operations with a Double Speed Inverter 177 8 4 Pulse Output FUNCTION 0 0 cece cceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeseeeseeeeeeeeeees 179 8 4 1 Pulse Output Methods and Position Control Modes cceee 179 8 42 O Allocationi ccss08 ste teirlic ee hae Ma 182 8 4 3 Instructions and System Variables eee ceeeceeeeeneeeeeeeteeeeeeneeeeneaes 183 8 4 3 1 Writing the Pulse Output Control Code eeeeeeteeeeeeeeeeeeees 185 8 4 3 2 Writing and Reading the Elapsed Value of the Pulse Output 188 8 4 3 3 F166 PulseOutput_Set Target Value Match ON 08 189 8 4 3 4 F167 _PulseOutput_Reset Target Value Match OFF 190 8 4 3 5 F171 _PulseOutput_Trapezoidal Trapezoidal Control 191 8 4 3 6 F171 _PulseOutput_Jog_ Positioning JOG Operation and POSIWOMING rT halite T iain cart eeiettes 192 8 4 3 7 F172_
35. CodeSit aca incase ail eave akira aria rye hate 255 Lae Ge eene E E ee Sanne Renee enon E 257 xii Chapter 1 Safety Measures Safety Measures FPOR User s Manual 1 1 Safety Measures Operating environment After installing the unit make sure to use it within the range of the general specifications Ambient temperature 0 C 55 C Ambient humidity 10 95 RH at 25 C non condensing Pollution level 2 Do not use the unit in the following environments Direct sunlight 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 Direct vibration shock or direct drop of water Influence from power transmission lines high voltage equipment power cables power equipment radio transmitters or any other equipment that would generate high switching surges Maintain at least 100mm of space between these devices and the unit Static electricity Before touching the unit or equipment always touch some grounded metal to discharge any static electricity you may have generated especially in dry locations The discharge of static electricity can damage parts and equipment Protection of power supply Use a twisted power supply wire Isolate the wiring systems to the CPU input output devices and mechanical
36. Description and steps to take PLC User s ROM error Probably a hardware problem Please contact your dealer The number of installed units exceeds the limit Turn off the Ynitainstalaton error power supply and check the restrictions on unit combinations Probably an error in the system registers Check the system System register error register settings Interrupt error 0 Probably a hardware problem Please contact your dealer An interrupt occurred without an interrupt request A hardware Interrupt error 1 problem or error due to noise is possible Turn off the power and check the noise conditions 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 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 I O status error Stops A faulty unit is installed Replace the unit with a new one The connection condition of an I O unit has changed compared to that at the time of power up Check the error I O unit verify error Selectable using sys_wVerifyErrorUnit_0_15 and locate the faulty I O unit Set the operation status using system register 23 to continue operation Operation became impossible when a high level instruction was executed The causes of calculation errors vary de
37. FPOR User s Manual e Lower baud rates of 300 600 and 1200bit s can be specified using the SYS1 instruction However this will not change the setting value of the system register Programming There is no programming required on the slave Only the station number and the communication parameters must be set in the system registers The program for the master side must send and receive commands according to the MEWTOCOL COM protocol MEWTOCOL COM contains the commands used to control and monitor the slave operation If a software program such as PCWAY is used on the computer side PLC data can easily be read and written without having to think about the MEWTOCOL COM protocol 7 5 7 Sample Program for Master Communication Use the F145 WRITE and F146_READ instructions for the MEWTOCOL COM master function Be sure to set the COM port used in the program to MEWTOCOL COM Master Slave in the system registers GVL Class Identifier FP Address IEC Address Type QO VAR_GLOBAL Slave2_g dicounter DDT100 MD5 100 DINT POU Header class Identifier Type Initial 0O V AR_EXTERNAL Slave2_g_diCounter DINT 0 1 VAR diCounter DINT 0 fa as VAR diCounterFromSlave2 DINT 1 3 VAR bWriteToSlave2 BOOL TRUE 4 VAR bReadFromSlave2 BOOL FALSE In order to have consistent data in the master project and in the slave project the common data should be kept in the GVL of a common library 108 FPOR User s Manual 7 5 MEWTOCO
38. Fie Action View Help 2 S4 MATSUSHI SOP91Q Computer Disk drives 2 Display adapters 2 DVD CD ROM drives Floppy disk controllers 3 Floppy disk drives E IDE ATAJATAPI controllers i Keyboards Mice and other pointing devices 2 Monitors E9 Network adapters 4 Other devices Gy CP2101 USB to UART Bridge Controller AY Ports COM amp LPT Sound video and game controllers System devices 2 Universal Serial Bus controllers Also reinstall the driver if the USB connection does not work well 91 Communication FPOR User s Manual Reinstalling the USB driver A oe Procedure 3 1 Right click CP210X USB to UART Bridge Controller 2 Select Delete 3 Reinstall the USB driver see page 89 92 FPOR User s Manual 7 3 Communication Specifications 7 3 Communication Specifications TOOL port mem Soes Data length 7 bits 8 bits Parity None Odd Even Communication format Stop bit 1 bit 2 bits End code CR CR LF None ETX Start code No STX STX MEWTOCOL COM Slave Communication mode Modem initialization Program controlled in RUN mode only USB port item Description o O Standard baud rate USB2 0 Fullspeed COM port mem Soes Data length 7 bits 8 bits Parity None Odd Even Communication format Stop bit 1 bit 2 bits End code CR CR LF None ETX Start code No STX STX Data transmissio
39. Insulated DC power supply Power supply sequence e Make sure the power supply of the CPU turns off before the power supply for input and output If the power supply for input and output is turned off first the CPU will detect the input fluctuations and may begin an unexpected operation e Be sure to supply power to a CPU and an expansion unit from the same power supply and turn the power on and off simultaneously for both 67 Installation and Wiring FPOR User s Manual 6 4 1 Grounding If necessary ground the instrument to increase the noise resistance NOTE e For grounding purposes use wiring with a minimum of 2mm The grounding connection should have a resistance of less than 1000 e The point of grounding should be as close to the PLC as possible The ground wire should be as short as possible e If two devices share a single ground point it may produce an adverse effect Always use an exclusive ground for each device II CSE PLC Other device inverter etc Risk of short circuits Depending on the surroundings in which the equipment is used grounding may cause problems Example 1 Since the power supply line of the FPO expansion unit 24V DC and OV terminal is connected to the function earth through a varistor the varistor may be shorted if there is an irregular potential between the power supply line and function earth The power supply line of the FPOR is connected to functi
40. PLC may be changed under certain conditions Security setting on FP Memory Loader Password setting on target PLC after download No password set 8 digit password set Allow download to PLC only if password in the PLC is the same setting disabled 8 digit password set Allow download to PLC only if Password will be cleared Password will be overwritten with new 8 digit password password in the PLC is the same setting enabled Password will not be changed no download possible 207 Chapter 10 Other Functions Other Functions FPOR User s Manual 10 1 F ROM Backup P13_EPWT Data registers of 32765 words can be written to the built in F ROM of the FPOR CPU using the instruction P13_EPWT Writing can be performed up to 10000 times After that the correct operation cannot be guaranteed If the power supply turns off while the instruction P13_EPWT is being executed or during online editing data in the hold area may be lost REFERENCE For details please refer to the FPWIN Pro Programming Manual or to the FPWIN Pro online help 210 FPOR User s Manual 10 2 Sampling Trace 10 2 Sampling Trace Using the sampling trace function the current contact conditions and or the variable values can be displayed on a time axis After data recording in the PLC has been completed the data is loaded into FPWIN Pro Sampling parameters such as the sampling time and trigger conditions can be set i
41. Terminal Layout E8X E16T E8YT X0 x1 The COM terminals of the input circuits are connected internally Output no output for E8X Input no input for E8YT Connector front view E16X E32T E16YT X0 7 X8 F eo o xo x1 o o o X8 X9 oo X2 X3 o t 5D o XA XB oo X4 X5 comme oo XC XD oO X6 X7 oO o o XE XF COM COM je COM COM i Pr Yo N2 Y4 Y6 Y8 F Pi ys YA YC YE Y9 YB YD YF The terminals as well as the terminals of the output circuits are connected internally Input no input for E16YT Output no output for E16X Connector front view 47 Expansion FPOR User s Manual E16P E8YP e Yo Yi L Ny L Y2 Y3 IE o _L Y4 Y5 pole o t Y6 Y7 L A at The COM terminals of the input circuits are
42. Time constant ofinptxC CS asa Time consantet ino 4997 Time constntofinputxE C 4997 Tine constntofinputxF i 1 32k types only TOOL Port MEWTOCOL COM MEWTOCOL COM Slave Program Slave controlled 115200 57600 3840 TOOL port baud rate 115200 baud 0 19200 9600 4800 2400 baud 413 TOOL port sending data length 7 bits 8 bits F None With TOOL port sending parity check With Odd Odd With Even TOOL port sending stop bit 1 bit 2 bits TOOL port sending start code No STX No STX STX TOOL port communication mode 0 2048 m TOOL port sending end code reception done condition Serer enn 0 12312 16k type TOOL port receive buffer starting address 0 32762 32k type TOOL port receive buffer capacity 247 Appendix FPOR User s Manual a2 TOOL port modem connection Disable Enable COM Port MEWTOCOL COM Master Slave Progra m controlled PLC Link Modbus RTU Master Slave 115200 57600 3840 COM port 1 baud rate 9600 baud 0 19200 9600 4800 2400 baud 413 COM port 1 sending data length 7 bits 8 bits MEWTOCOL COM COM port 1 communication mode Master Slave F 1 2 None With a COM port 1 sending parity check With Odd Odd With Even COM port 1 sending stop bit 1 bit 2 bits COM port 1 sending start code No STX No STX STX COM port 1 sending end code reception done CR CR CR LF ETX Non condition e i 0 12312 16k type COM port
43. YAR O Y O i TP ps VAR_EXTERNAL YO_bOutputPulse BOOL FALSE sea a ee ee eee ee de ee tee tre ae Bee ee Biss es ae ee ae coke ks Y O bOutputPulse sys_wClockCalendarHourMin gt a ae 1640830 THs Pa a A ee FP Address IEC Address Type YO QXOO BOOL FALSE Initial LD Body 3 5 2 4 Sample Program for 30 Second Compensation This is a program to perform the compensation for 30 seconds when RO turns to TRUE If the 30 second compensation is required use this program 35 CPU Types FPOR User s Manual POU Header _ Read the current time from the RTC bStartCompensatian sys wClockCalendarMinSec dtbcdCurrent MinSec sys_wClockCalendarDayHour dtbcdCurrent DayHour dtbcdCurrent earMonth sys wGlockCalendary earMonth Decide whether to round down seconds lt 30 or to round up seconds gt 30 A bStartCompensation ee 3 sos os ss cbRoundUp dtbcdCurrent MinSec oss 46800FF To round up 1 minute 164100 is added to the current time J bRoundUp 164100 Set the seconds to zero y bStatCompensation dtbcdCurrent MinSec dtbcdCurrent MinSec SOOT Write the current time into the RTC and set the RTC using sys_wClockCalendarSet bStartCompensatian dtbcdCurrent MinSec sys_wClockCalendarMinSec dtbedCurrent DayHour sys_wClockCalendarDayHour dtbedCurrent YearM
44. and bit 4 of the special data register storing the pulse output control code sys_wHscOrPulseControlCode must be set to TRUE and back to FALSE again REFERENCE The input output numbers are indicated by channel in the specifications See Pulse Output Function on page 161 Double pulse input driver CW CCW pulse output method Two output contacts are used as a pulse output for CW CCW Set the control code for F171 to CW CCW Using cnan Joje NOTE Any input that is not used for other applications can be used as the near home input Single pulse input driver pulse and direction output method One output point is used as the pulse output and the other output is used as the direction output Set the control code for F171 to pulse and direction 182 FPOR User s Manual 8 4 Pulse Output Function Up to two driver systems can be connected Using channel Jo a Motor driver pome NOTE Any input that is not used for other applications can be used as the near home input 8 4 3 Instructions and System Variables Use the following instructions to perform various positioning tasks Type of control Instruction Description Target value If the elapsed value matches the target value of match ON pulse F166_PulseOutput_Set the selected pulse output channel the specified output output immediately turns to TRUE Target
45. areas are reset C10 C14 C16 C32 The hold type and non hold type areas are fixed For information on the size of each area refer to the performance specifications T32 F32 The settings of the hold type areas and non hold type areas can be changed using the system registers T32 f the battery is empty and additional hold areas have been defined the hold non hold operation becomes unstable The data value will become indefinite It is cleared to 0 the next time the power is turned on See 239 Appendix FPOR User s Manual Backup and Clock Calendar Functions on page 31 3 The number of points for timer and counter relays can be changed using system register 5 The numbers in the table are the default settings 240 FPOR User s Manual 12 4 System Registers 12 4 System Registers System registers are used to set values parameters which determine operation ranges and functions used Set values based on the use and specifications of your program There is no need to set system registers for functions which will not be used 12 4 1 Precautions When Setting System Registers System register settings are effective from the time they are set However MEWNET W0 PLC link settings input settings TOOL and COM port 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
46. as a receive area only and can receive data from stations no 1 2 and 3 but cannot send data to other stations 141 Communication FPOR User s Manual 7 7 2 3 Partial Use of Link Areas In the link areas available for PLC link link relays with a total of 1024 points 64 words and link registers with a total of 128 words can be used This does not mean however that it is necessary to reserve the entire area Parts of the area which have not been reserved can be used as internal relays and internal registers Link relay allocation Send area Receive area LI Area for internal relays N Used for link relays O Not used for link relays WH System register settings Link relays Send receive area Number of words shared by all linked PLCs Link relays Send area Start sending from this word address Link relays Send area Number of words to send With the above settings for station number 1 the 14 words 224 points consisting of WL50 to WL63 can be used as internal relays Link register allocation Send area Receive area Area for internal relays Used for link relays Not used for link relays Md Link registers Send receive area Number of words shared by all linked PLCs Link registers Send area Start sending from this word address Link registers Send area Number of words to send 142 FPOR User s Manual 7 7 PLC Link Wi
47. connect them e Do not solder the wires to connect them The solder may break due to vibration e After wiring make sure stress is not applied to the wire e If the socket in the terminal block closes upon counter clockwise rotation the connection is wrong Disconnect the wire check the terminal hole and then re connect the wire 5 Terminal block tem id Description Number of pins 9 Manufacturer Phoenix Contact Co Model MC1 5 9 ST 3 5 Product no 1840434 Suitable wire 0 3 AWG22 AWG24 16 0 2 1 25 76 FPOR User s Manual 6 7 Wiring the Terminal Block Pole terminals with compatible insulation sleeve For pole terminals please consider the following specifications Cross sectional area mm AWG The tightening torque should be 0 22 0 25Nm or less Use a screwdriver with a blade size of 0 4 x 2 5 Wiring method A Mg Procedure 3 1 Remove a portion of the wire s insulation 7mm 2 Insert the wire into the terminal block until it contacts the back of the socket 3 Turn the screw clockwise to fix the wire in place 77 Installation and Wiring FPOR User s Manual 6 8 Wiring the COM Port A screw down connection type is used for the COM port RS232C port The suitable wires are given below Signal Ground Receive Data Input Send Data Output NOTE e When removing
48. connected internally Input no input for E8YT Output Power supply E32P E16YP X0 7 X8 F o_o x0 x1 5 3 e 5 ox X9 5 de o_o X2 X3 o_O 0 XA XB o oo X4 X5 o o o_o XC XD o_ 3 5 o _ x6 x7 5 3 5o XE xF oo COM COM e t COM COM YO 7 Y8 F gt vo Yi gt v8 Y9 Y2 Y3 YA YB Y4 Y5 YC YD Y6 YT YE YF L The terminals as well as the terminals of the output circuits are connected internally Input no input for E16YP Output Connector front view 48 Chapter 5 I O Allocation I O Allocation FPOR User s Manual 5 1 General I O allocation is performed automatically when an expansion unit is added and is determined by the installation location The I O allocation of the FPOR CPU is fixed or yor e oo o0 no oo oo oo oo ry B H HIS E Yor Yer ooo000000 oo0000000 _o0000000_ 00000000 I I I wg e aN ag gt ot aa muhae dododo oo000000 mo000000_00000000 Mono Wah eh we ema ahaha ae Og000000 _ o0000000 go000000 00000000 Mogo Lar MMO Vora ae Og000000_ 00000000 go000000_00000000 X0 XF 1 X20 X3F Y20 Y3F 3 X60 X7F Y60 Y7F NOTE e The inpu
49. gt 100 000 operations switching frequency at nominal switching capacity 20 operations min Surge absorber Operation mode indicator LEDs 44 FPOR User s Manual 4 4 Output Specifications Expansion Units Transistor output specifications NPN output type E8YT E16YT E16T E32T PNP output type E8YP E16YP E16P E32P a 4 75 26 4V DC 21 6 26 4V DC 0 1A point max 1A common E16T E8Y 8 Output points per common E32 E16Y 16 OFF state leakage current lt 100uA ON state voltage drop lt 1 5V k FALSE TRUE lt 1ms Response time TRUE FALSE lt 1ms External power Voltage 21 6 26 4V DC supply for driving f internal circuit Current 3mA point Surge absorber Zener diode Operation mode indicator LEDs 45 Expansion FPOR User s Manual 4 5 Terminal Layout E8RS E8RM x lt o Y0 3 YO L Y1 L o w Y2 L 9 I Y3 L NC NC NC NC COM O E16R E8YRS E32RS Yo X0 7 XO 5 3 i z z z pail Power supply 46 FPOR User s Manual 4 5
50. high speed counter instructions The FPWIN Pro projects in LD and ST code can be downloaded from the Panasonic Web site http www panasonic electric works com peweu en html 22164 php The programming examples for this chapter can be found in pe_63403 0001 sample_high_speed zip These examples can be used with different PLC types Therefore you have to adapt the PLC type in the FPWIN Pro Navigator After you have changed the PLC type a message appears Adapt System Registers and Compile Options Select Adapt automatically so that you do not lose the system register settings set in the programming example 175 High Speed Counter and Pulse Output FPOR User s Manual 8 3 5 1 Positioning Operations with a Single Speed Inverter Wiring example Le Input terminal Encoder input Operation start Output terminal YO Inverter operation Encoder Motor Conveyor When X5 turns to TRUE YO turns to TRUE and the conveyor starts to move When the elapsed value sys_diHscChannel0ElapsedValue reaches 5000 YO turns to FALSE and the conveyor stops Operation chart x Number of pulses y Speed 176 FPOR User s Manual 8 3 High Speed Counter Function System register settings No Item Name Data 400 High speed counter Channel 0 fincremental input x0 REFERENCE For POU Header and POU Body please see the programming examples i
51. in the receive buffer starting at offset 1 7 6 5 2 Start Code STX End Code ETX Receiving data DHAPHB PAP RYDE EDF G HET a TRUE a T FALSE o TRUE FALSE Y 1 y A A A A e D D D D G G j H H l B B B B te E E E Eh E E je E je je C Cc C C j C e C C C C C 6 lt 1 gt lt 2 gt lt 3 gt lt 0 gt lt 1 gt lt 2 gt lt 2 gt lt 0 gt lt 1 gt lt 0 gt lt 1 gt lt 1 gt Data received from external device Receive buffer Reception done flag Number of bytes received F159_MTRN execution Write pointer When receiving data operation is as follows 1 Characters A B and C received from the external device are stored in the receive buffer 2 The start code STX resets the receive buffer 124 FPOR User s Manual 7 6 Program Controlled Communication Characters D and E received from the external device are stored in the receive buffer 4 When the end code is received the reception done flag turns to TRUE Reception of any further data is prohibited Character F is not stored 5 When F159 _MTRN is executed The number of bytes received is set to 0 in offset 0 of the receive buffer The reception done flag turns to FALSE The number of bytes received is set to 0 in offset 0 of the receive bu
52. in the system registers ja REFERENCE te Please refer to the FPWIN Pro online help for programming examples FPOR User s Manual 8 3 High Speed Counter Function 8 3 4 2 Writing and Reading the Elapsed Value for the High Speed Counter The elapsed value is stored as a double word in the special data registers Access the special data registers using the system variable sys_diHscChannelxElapsedValue where x channel number System variables for memory areas used o sys_diHscChannel0ElapsedValue DDT90300 sys_diHscChannel1ElapsedValue DDT90304 REFERENCE Please refer to the FPWIN Pro online help for programming examples 8 3 4 3 F166_HighSpeedCounter_Set Target Value Match ON If the elapsed value of the high speed counter matches the target value an interrupt process immediately turns the specified output to TRUE Characteristics of target value match ON conirol 10000 Target value Elapsed value of high speed counter Execution condition High speed counter control flag PLC output 173 High Speed Counter and Pulse Output FPOR User s Manual The PLC output turns to TRUE when the elapsed value matches the target value In addition the high speed counter control flag turns to FALSE and the instruction is deactivated REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 8 3 4 4 F167_HighSpeedCounter_Reset Targe
53. port number A COM port number is necessary for communication with the programming tool A A me Procedure 3 1 Display Device Manager For Windows xXP My computer View system information Hardware tab gt Device Manager For Windows 2000 My computer Control panel System Hardware tab Device manager View Device by type 89 Communication FPOR User s Manual For Windows 98 Second Edition Windows Me My computer gt Control panel System Device manager tab View devices by type Device Manager Ee File Action View Help H amp e2 MATSUSHI SOP910 1y Computer Se Disk drives a Display adapters lt 2 DVD CD ROM drives amp Floppy disk controllers J Floppy disk drives E IDE ATA ATAPI controllers 5 gt Keyboards Mice and other pointing devices g Monitors E9 Network adapters ay Ports COM amp LPT Sound video and game controllers System devices Universal Serial Bus controllers 2 Double click Ports COM amp LPT 3 Confirm the COM port no CP210x USB to UART Bridge Controller COM n is the COM port allocated COMS is allocated in the following display Device Manager TEE Fie Action View Help gt MfS AZRA By MATSUSHI 50P91Q Computer S Disk drives Display adapters 4b DVD CD ROM drives Floppy disk controllers J Floppy disk drives IDE ATA ATAPI controllers gt Keyboards Mice and other p
54. registers and special internal relays use the PLC independent system variables You can insert system variables directly into the POU body Use the Variables dialog without entering 183 High Speed Counter and Pulse Output FPOR User s Manual a declaration in the POU header Please refer to the FPWIN Pro online help for detailed information on using system variables Using the pulse output control flag The relay is TRUE if a pulse output instruction is being executed Use this flag to prohibit the simultaneous execution of other pulse output instructions on the specified channel and to verify completion of the execution NOTE The status of the high speed counter control flag or pulse output control flag may change while a scan is being carried out For example if the flag is used more than once as an input condition different statuses may exist within one scan To ensure proper execution of the program the status of the special internal relay should be copied to a variable at the beginning of the program Channel and pulse output numbers i i Pulse output method Channel no Interpolation axis Pulse p a Pulse direction Direction Direction Direction Direction D For F175_PulseOutput_Linear NOTE For interpolation channel 0 and 1 or channel 2 and 3 are used as pairs You may only specify 0 or 2 for C14T 0 only System variables for memory areas used o sys_blsPulseChannel0Activ
55. specifications and change the programs as necessary 1 P13_EPWT EEPROM write instruction The execution times for this instruction will vary depending on the number of write blocks eee ae a eee OO e eee 14 FPOR User s Manual 2 5 FPO Program Compatibility No of write blocks words FPO ms FPO compatibility mode ms 2 F170_PulseOutput_PWM PWM output instruction The frequency settings differ In particular the setting for the low frequency band cannot be defined CO peo o FPO companibiiy moas E k Frequency iHz Period ims Frequency Ha Perioa Ims we fos feer ep fe Cid apa for fs as E a OOSC C z fes es o fo Ge fe o o S ofe fe e fs po fo fo oS Ps a0 fo o SSS p fs o s y wfo fo o po afma fa q e K E E E 3 Data size differs for elapsed value and target value FPO 24 bits FPO compatibility mode 32 bits 4 F144_TRNS serial data communication When sending data note the following differences Send buffer The send buffer stores the number The number of bytes to be sent processing of bytes to be sent This number is remains unchanged during decremented after every 1 byte transmission After transmission has transmission been completed 0 is written to the send buffer Restrictions on the None 2048 bytes number of bytes to be sent 5 F169 PulseOutput_Jog JOG operation There are two differences between the FPO
56. sure to use it within the range of the general specifications Ambient temperature 0 55 C Ambient humidity 10 95 RH at 25 C non condensing Pollution level 2 Do not use the unit in the following environments Direct sunlight 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 Direct vibration shock or direct drop of water Influence from power transmission lines high voltage equipment power cables power equipment radio transmitters or any other equipment that would generate high switching surges Maintain at least 100mm of space between these devices and the unit Static electricity Before touching the unit or equipment always touch some grounded metal to discharge any static electricity you may have generated especially in dry locations The discharge of static electricity can damage parts and equipment Measures regarding heat discharge Always install the CPU orientated with the TOOL port facing outward on the bottom in order to prevent the generation of heat 56 FPOR User s Manual 6 1 Installation e Do NOT install the CPU as shown below Upside down Upside down Input and output connectors face down Input and output connectors on top Horizontal installation of the unit e Do no
57. sys_diPulseChannel3ElapsedValue DDT90430 REFERENCE Please refer to the FPWIN Pro online help for programming examples 188 FPOR User s Manual 8 4 Pulse Output Function 8 4 3 3 F166 _PulseOutput_Set Target Value Match ON If the elapsed value matches the target value of the selected pulse output channel the specified output immediately turns to TRUE Pulse output characteristics 10000 Target value Elapsed value of high speed counter Execution condition Output control active flag PLC output The PLC output turns to TRUE when the elapsed value matches the target value In addition the Output control active flag turns to FALSE and the instruction is deactivated REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 189 High Speed Counter and Pulse Output FPOR User s Manual 8 4 3 4 F167_PulseOutput_Reset Target Value Match OFF If the elapsed value matches the target value of the pulse output channel the specified output immediately turns to FALSE Pulse output characteristics PLC output The PLC output turns to FALSE when the elapsed value matches the target value In addition the Output control active flag turns to FALSE and the instruction is deactivated REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 190 FPOR User s Manual 8 4 Pulse Output Func
58. the PLC independent system variables You can insert system variables directly into the POU body Use the Variables dialog without entering a declaration in the POU header Please refer to the FPWIN Pro online help for detailed information on using system variables SES RO 0 T oys aiHscChanneoEapsedvae Doros 0 T oys dHscChanne0ConroiTargeivaus ooToosne fo T oys wtscchaneiocontlcode orero D O o e sys_wHscChannel5ControlCode sys_wHscChannel5ControlCode DT90375 High peed counter or pulse sys_wHscOrPulseControlCode DT90052 output control code 169 High Speed Counter and Pulse Output FPOR User s Manual 8 3 4 1 Writing the High Speed Counter Control Code The special data register where the high speed counter and pulse output control code are stored can be accessed with the system variable sys_wHscOrPulseControlCode The system variable sys_wHscOrPulseControlCode corresponds to special data register DT90052 The control code settings for each channel can be monitored using the system variables sys_wHscChannelxControlCode or sys_wPulseChannelxControlCode where x channel number The settings of this system variable remain unchanged until another setting operation is executed Operations performed by the high speed counter control code e Clearing high speed counter instructions bit 3 e Enabling disabling the reset input hardware reset of the high speed counter bit 2 e
59. the data type of the transmission data e g STRING and on the conversion function used in the PLC program e g F95_ ASC There is no conversion when data in the send buffer is sent e The start and end codes specified in the system registers are automatically added to the data sent The start code is added at the beginning the end code at the end of the send string Do not include start or end codes in the send string e The format of the data in the receive buffer depends on the data format used by the external device Use a conversion function to convert the data into the desired format e g F27_AHEX e Start and end codes in the data received are recognized if the corresponding start and end codes have been specified in the system registers Start and end codes are not stored in the receive buffer The end code serves as a reception done condition i e the reception done flag turns to TRUE when the end code is received The start code resets the receive buffer e f None is selected for the start code a start code is not added to the data sent and is not recognized in the data received Without start code the receive buffer can only be reset by executing F159_MTRN e If None is selected for the end code an end code is not added to the data sent and is not recognized in the data received Without end code the reception done flag does not turn to TRUE The end of reception can only be determined by a time out using the IsRec
60. time TRUE FALSE Operation mode indicator lt 20us see note An input time constant 0 1ms 64ms can be set using the system registers LEDs NOTE This specification applies when the rated input voltage is 24V DC and the temperature is 25 C Limitations on the number of input points that are TRUE simultaneously Keep the number of input points per common which are simultaneously TRUE within the following range as determined by the ambient temperature T32 y 4 ARRAS AAR ANAE RRR ARIA RRS AAR x 4243 55 x Ambient temperature C y Number of points per common which are simultaneously TRUE At24v DC At 26 4V DC 22 FPOR User s Manual 3 2 Input Specifications CPU Internal circuit diagram Xn tt R2 i COM Internal circuit 9 1kQ 1kQ 23 CPU Types FPOR User s Manual 3 3 Output Specifications CPU Transistor types These output specifications apply to the CPU types C32 and C28 C C16 8 Output points per common C32 T32 F32 16 ON state voltage drop lt 0 2V DC lt 20us Load current gt 5mA FALSE TRUE lt 0 1ms Load current gt 0 5mA Response time lt 40us Load current gt 5mA TRUE FALSE lt 0 2ms Load current gt 0 5mA External power Voltage 21 6 26 4V DC supply for driving 7 7 internal circuit caren C16 lt 30mA C16 lt 35mA and terminals C32 T32 F32 lt 60mA C32 T32 F32 lt 70mA Surge absorbe
61. to connect devices via RS232C to enable data input output Signal Ground Receive Data Input Send Data Output 7 2 3 USB Port The USB port can be used to connect a programming tool Panasonic s USB cable CABMINIUSBSD or a commercial USB2 0 AB type cable can be used o0000000 000 o o o o o To use the USB port you must install the USB driver see page 87 Specifications tem foesol Standard baud rate USB2 0 Fullspeed 87 Communication FPOR User s Manual AA LY CAUTION Install the programming tool before connecting the FPOR with a PC If you connect the FPOR to a PC with the USB cable before the programming tool is installed or during installation the USB driver will not be installed correctly USB port settings The settings for the USB port are fixed and cannot be changed Connecting the PLCs with a personal computer using a USB cable enables communication with our programming software This communication method uses the USB as a virtual serial port i e the FPOR connected via USB is treated by the PC as if connected via the COM port The COM port number of the COM port allocated for the USB is fixed unless you change the number You need only perform the connection procedure the first time you establish the USB connection However you must change the communication setting when switching betwe
62. together 6 5 1 Input Wiring For connecting input devices see the diagrams and recommendations given below Relay output type NPN input PNP input A B A B Internal circuit Input terminal 70 FPOR User s Manual 6 5 Input and Output Wiring Open collector output type NPN output Sensor FPOR Internal circuit Sensor FPOR Internal circuit E Oel FPOR Internal circuit PNP output Power supply for input Input terminal 71 Installation and Wiring FPOR User s Manual Precaution when using an LED equipped Reed switch When an LED is connected in series to an input contact such as an LED equipped Reed switch make sure that the ON voltage applied to the PLC input terminal is greater than 21 6V DC In particular take care when connecting a number of switches in series A B LED equipped Reed switch Contact FPOR Q gt 21 6V LED Input terminal Precaution when using a two wire type sensor If the input of the PLC does not turn off because of leakage current from the two wire type sensor photoelectric sensor or proximity sensor the use of a bleeder resistor is recommended as shown below A S OZR Two wire type sensor Bleeder resistor O merar dC The formula is based on
63. used for the function 241 Appendix FPOR User s Manual Time Constants system registers 430 433 Set a time constant for the CPU inputs These time constants can be useful to negate the effects of noise or bouncing e g for a switching device TOOL Port COM Port system registers 410 421 Set these registers when the TOOL port and COM ports 1 and 2 ports are to be used for MEWTOCOL COM Master Slave connections program controlled communication PLC link and modem communication Note that the default setting is MEWTOCOL COM Master Slave 12 4 3 Checking and Changing System Registers AA ewe Procedure 3 1 Double click PLC in the navigator 2 Double click System Registers 3 To change a value write the new value into the system register table E 5 Online Download Program Code and PLC Configuration 4 Online gt Online Mode or This downloads the project and system registers To download system registers only 6 Online PLC Configuration 7 Select System Registers 8 Choose Download to PLC 242 FPOR User s Manual 12 4 System Registers 12 4 4 Table of System Registers Memory Size jo Sequence program area size 12 16 32 kwords Depending on PLC type 12k 16k or 32k type Hold On Off 5 Counter start address 1008 0 1024 6 Timer Counter hold area start address 1008 Fixed 0 1024 Internal relay hold area start address in word units
64. used with a stand alone CPU It should not be used if an expansion unit is attached to the CPU A 0 i g g Le g 4up E 90 0mm 60 0mm AFP0804 6 2mm 30mm _ lt _ gt 60 0mm te 60 FPOR User s Manual 6 1 Installation Installation 1443 noo i oo oo v4 1943 NA Procedure 3 1 Raise expansion hooks on top and bottom of the unit 2 Press unit on mounting plate and align expansion hooks with plate 3 Push expansion hooks back into place Removal AA Procedure 3 1 Raise expansion hooks on top and bottom of the unit 2 Remove unit from mounting plate 61 Installation and Wiring FPOR User s Manual Attachment to DIN rail A unit with an attached flat type mounting plate can also be installed sideways on a DIN rail DIN rail 62 FPOR User s Manual 6 2 Connecting FPO Expansion Units 6 2 Connecting FPO Expansion Units The expansion units are connected to the right side of the CPU Use the expansion connector and the expansion hooks on the side of the unit A A em Procedure 3 1 Peel seal on right side of the unit to expose expansion connector O L R N7 AA f
65. value If the elapsed value matches the target value of match OFF pulse F167_PulseOutput_Reset the pulse output channel the specified output output immediately turns to FALSE This instruction automatically performs F171_PulseOutput_Trapezoidal trapezoidal control according to the parameters in the specified DUT This instruction performs a home return according to the parameters in the specified DUT Trapezoidal control Home return F177_PulseOutput_Home JOG operation F172_PulseOutput_Jog This instruction is used for JOG operation The specified number of pulses is output after the position control trigger input has turned to TRUE A deceleration is performed before the target value is reached and pulse output stops JOG operation input controlled F171_PulseOutput_Jog_Positioning This instruction performs rectangular control according to the parameters in the specified DUT with an arbitrary number of different speeds and target values Data table control F174 _PulseOutput_DataTable Pulses are output from two channels in accordance with the parameters in the specified DUT so that the path to the target position forms a straight line Linear interpolation control F175_PulseOutput_Linear Counter and pulse output settings as well as elapsed values are stored in special data registers The pulse output status is stored in special internal relays To access special data
66. 0 This relay turns to TRUE if a problem is detected during transmission Relay no Station no System variable name Conditions for TRUE FALSE TRUE e if a transmission error has occurred in the PLC link or e if an error has occurred in the R9050 1 16 sys_blsPlcLinkOTransmissionError setting of the PLC link area FALSE e if there are no transmission errors 7 7 6 PLC Link Response Time The maximum value for the transmission time T of one cycle can be calculated using the following formula T max Ts1 Ts2 e e e Tsn Tit Tso Tik L OTs transmission time per station Ts scan time Tpc Tpc Ttx x Pem 146 FPOR User s Manual 7 7 PLC Link Ttx 1 transmission speed x 1000 x 11ms 0 096ms at 115200bit s Pcm 23 number of relay words number of register words x 4 Tpc PLC link sending time Ttx sending time per byte Pcm PLC link sending size Tit link table sending time Tit Ttx x Ltm Ttx 1 transmission speed 1000 11ms 0 096ms at 115200bit s Litm 13 2xn Ttx sending time per byte Ltm link table sending size n number of stations being added Tso master station scan time The master station scan time should be confirmed using the programming tool Tik link addition processing time If no stations are being added Tik 0 Tik Tic Twt Tls Tso Tic 10 x Ttx Ttx 1 transmission speed x 1000 x 11ms 0 096ms at 11
67. 00 16 06 clock calendar setting Bit O TRUE 16 0 sets seconds to 0 33 CPU Types FPOR User s Manual 3 5 2 2 Settings for Clock Calendar Function The clock calendar values are backed up using a battery Therefore the clock calendar function cannot be used unless a battery has been installed There are no default clock calendar settings so the programming tool or another means must be used to specify these values There are two ways to set the clock calendar function Using the programming software Ej 2 Monitor gt Display Special Registers gt Calendar Functions 1 Online Online Mode or 3 Enter the desired date and time values Confirm each value with Enter A Calendar Functions db SyS W RTC HourMin TO nina alendartimer monitor hour and minute IDT90054 Calendar timer monitor and setting minute and second sys_w_RTC_MinSec IDT90055 Calendar timer monitor and setting day and hour sys_w_RTC_DayHour IDTS0056 Calendar timer monitor and setting year and month sys_w_RTC_YearMonth IDT90057 a Calendar timer monitor and setting day of the week sys_w_RTC_DayOfWeek IDT90058 pead Calendar timer set the values Bit 15 or 30s adjustment Bit 0 sys_w_RTC_Set Using a program 1 The date time values are written to special data registers DT90054 to DT90057 2 A value of 16 8000 is written to DT90058 NOTE e The v
68. 00 00 DATE Seconds after DT 2001 01 01 STRING Header with maximum and current number of characters followed by the characters User defined data types We differentiate between array and Data Unit Types DUT An array consists of several elementary data types which are all of the same type A DUT consists of several elementary data types of different types Each represents a new data type 253 Appendix FPOR User s Manual 12 8 Hexadecimal Binary BCD Decimal 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 Binary Coded Decimal 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 OO NOOBRWN 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 0000 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
69. 1 receive buffer starting address 0 32762 32k type i oss COM port 1 receive buffer capacity 0 2048 COM port 1 modem connection Disable Enable For PLC Link the communication format and baud rate settings are fixed 1 Data length 8 bits Parity Odd Stop bit 1 bit End code CR Start code No STX Other system register settings will be ignored 248 FPOR User s Manual 12 5 Error Codes 12 5 Error Codes 12 5 1 Error Codes E1 to E8 Error code E1 see note Syntax error Operation status of PLC Description and steps to take A program with a syntax error has been written Change to PROG mode and correct the error E2 see note Duplicated output error Two or more operation results are output to the same relay This error also occurs if the same timer counter number is being used Change to PROG mode and correct the error This error is also detected during online editing No changes will be downloaded and operation will continue 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 correct the error E4 see note Parameter mismatch error An instruction has been written which does not agree with system register settings For example the timer counter number setting in a program does not agree with the timer counter range setti
70. 1023 Code for specifying 16 external input points as one word 16 bits of data Code for specifying 16 external output points as one word 16 bits of data Code for specifying 16 internal relays as one word 16 bits of data Code for specifying 16 link relays as one word 16 bits of data Data memory used in a program Data is handled in 16 bit units one word Data memory shared by multiple PLCs connected using PLC link Data is handled in 16 bit units one word Data memory for storing the set values of timers or counters The values are stored by timer counter number 238 FPOR User s Manual 12 3 Relays and Memory Areas for FPOR Timer counter elapsed value area 7 rye Mamery ee address area size EC 1024 EV0O EV1023 MW4 0 MW4 1023 Data memory for storing the elapsed values during operation of timers or counters The values are stored by timer counter number DT90000 MW5 90000 Data memory for storing Special data registers DT90439 MW5 90439 settings and error codes Memory area double words aj ilabl r r ee O eeen eaaeo Function External input relays External output relays Internal relays Link Data registers Link Timer counter set value area Timer counter elapsed value area 7 DO D108 MD7 0 DWLO DWL126 MD7 126 C10 C14 6157 DDTO MD5 0 C16 DDT12311 MD5 12311 2 C32 T32 16
71. 2 FPOR User s Manual 7 6 Program Controlled Communication For details on setting the communication parameters see page 94 NOTE The end code setting must always be CR and the start code setting must be No STX 7 6 2 Sending Data to External Devices Steps for sending data to external devices 1 Setting the communication parameters to match the external device 2 Generating the data in the send buffer 3 Sending the data using the instruction F159 MTRN NOTE F159_MTRN allows multiple communication ports to be accommodated This instruction is an updated version of F144_TRNS Both instructions are compatible with all PLCs PLCs with multiple communication ports will compile F144 _TRNS s n to F159 _MTRNs Start n_Number d_Port 1 PLCs with only one communication port will compile F159_MTRN to F144_TRNS s n 1 Setting the communication parameters see Setting Communication Parameters on page 111 2 Generating the data in the send buffer To generate the data in the send buffer define a variable in the program and copy the data to the send buffer using a transfer instruction e g F10_BKMV The storage area for the data to be sent starts with the second word of the send buffer offset 1 Offset 0 contains the number of bytes to be sent Offset Storage area for the number of bytes to be sent 0 lt 0 Storage area for the data to be sent Bold numbers indicate the order of transmiss
72. 3 40 FPOR User s Manual 4 2 Parts and Functions Expansion Units 4 2 Parts and Functions Expansion Units E8RS E16RS E8RM E16RM E16 E32 A x0 dae Cad X o EH o i EJO vo 2 Ht F H o if ote Obes E8Y E16Y E8X E16X EXPANSION CONNECTOR W ooooonon ooononoo aonooono ononon Terminal block type MIL connector type Right side view common to all expansion units Power supply connector 24V DC Use the power supply cable provided Product no AFP0581 41 Expansion FPOR User s Manual Input connector Input status LEDs Output connector Output status LEDs Expansion hook Used to secure an expansion unit Connector for FPO expansion units Connects an FPO expansion unit to the internal circuit The connector is located under the seal DIN rail attachment lever Used for easy attachment to a DIN rail The lever is also used for installation on a slim type mounting plate See Slim Type Mounting Plate on page 59 42 FPOR User s Manual 4 3 Input Specifications Expansion Units 4 3 Input Specifications Expansion Units ttem Description S O Insulation method Optical coupler Rated input voltage 24V DC Rated
73. 3 50 10 21 xX X X xX 50 12 50 10 Channel is being used The numbers are reference numbers for the specifications continued in the next table When combined with pulse output function trapezoidal control no change in speed 50kHz 163 High Speed Counter and Pulse Output FPOR User s Manual Table continued Please use the reference numbers to read the table Maximum counting speed kHz Pulse output 2 channels Pulse output 3 channels Pulse output 4 channels 1 2 3 4 5 6 7 10 10 8 9 8 9 9 8 10 50 10 44 10 30 11 50 10 40 10 28 12 44 10 30 10 25 10 13 35 10 25 10 20 10 14 50 9 35 8 28 8 15 40 9 30 8 25 8 16 50 10 50 10 40 8 17 50 10 45 8 35 7 18 50 9 40 8 30 7 19 50 8 35 8 30 7 20 50 10 50 8 40 8 21 50 9 45 8 35 7 When combined with pulse output function trapezoidal control no change in speed 50kHz 164 FPOR User s Manual 8 2 Function Specifications and Restrictions Maximum output frequency NOTE The maximum output frequency may be lower than the values indicated in the table when the pulse output speed is changed when a target value match on off instruction another pulse I O process or interrupt program is executed simultaneously Using channels independently Even if all channels are used the maximum outp
74. 382 DDTO MD5 0 F32 DDT32761 MD5 32761 DLDO DLD126 DSVO DSV1022 DEVO DEV1022 QD0 QD108 MDO 0 MDO0 254 relays MD8 0 MD8 126 registers 7 MD3 0 MD3 1022 MD4 0 MD4 1022 Code for specifying 32 external input points as a double word 32 bits of data Code for specifying 32 external output points as a double word 32 bits of data Code for specifying 32 internal relay points as a double word 32 bits of data Code for specifying 32 link relay points as a double word 32 bits of data Data memory used ina program Data is handled in 32 bit units double word Data memory shared by multiple PLCs connected using PLC link Data is handled in 32 bit units double word Data memory for storing the set values of timers or counters The values are stored by timer counter number Data memory for storing the elapsed values during operation of timers or counters The values are stored by timer counter number Special data registers DDT90000 MD5 90000 Data memory for storing P g DDT90438 MD5 90438 settings and error codes 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 There are hold and non hold type memory areas When the power supply turns off or the mode is changed from RUN to PROG mode hold type areas are stored and non hold type
75. 4 seconds for the transmission assurance relay of that PLC to be turned off at the other stations This time period can be shortened using the SYS1 instruction a EXAMPLE Set SYS1 to change the time that the PLC link transmission assurance is off from the default value of 6 4s to 100ms LD Body lat sys_blsFirstSean SYS1 fi E EN ENO PCLK1Tt 100 s NOTE e The setting should not be changed as long as a longer transmission assurance relay detection time does not cause any problems 150 FPOR User s Manual 7 7 PLC Link e The SYS1 instruction should be executed at the beginning of the program at the rise of R9014 The same waiting time should be set for all linked PLCs e The time should be set to a value of at least twice the maximum transmission cycle time when all of the PLCs are connected to the link e Ifa short time has been set the transmission assurance relay may not function properly The shortest time that can be set is 100ms 151 Communication FPOR User s Manual 7 8 Modbus RTU Communication The Modbus RTU protocol enables the communication between the FPOR and other devices including the Panasonic FP e PLCs touch terminals of the GT series and KT temperature controllers The master station sends instructions command messages to the slave stations and the slave stations respond send response messages based on the instructions received The master stati
76. 5200bit s Twt Initial value 400ms can be changed using SYS1 instruction Tis 7 x Ttx Ttx 1 transmission speed x 1000 x 11ms 0 096ms at 115200bit s Tic link addition command sending time Twt addition waiting time Ttx sending time per byte Tis link error stop command sending time Tso master station scan time Ttx sending time per byte Tso master station scan time Calculation example 1 Conditions All stations have been added to a 16 unit link Highest station number 16 Relays and registers have been evenly allocated Scan time for each PLC 1ms Ttx 0 096 Pcm per station 23 4 8 x4 71 Tpc Ttx x Pem 0 096 x 71 6 82ms Ts per station 1 6 82 7 82ms Tit 0 096 x 13 2 x 16 4 32ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 7 82 x 16 4 32 1 130 44ms 147 Communication FPOR User s Manual Calculation example 2 Conditions All stations have been added to a 16 unit link Highest station number 16 Relays and registers have been evenly allocated Relays and registers have been evenly allocated Scan time for each PLC 5ms Ttx 0 096 Pcm per station 23 4 8 x4 71 Tpc Ttx x Pem 0 096 x 71 6 82ms Ts per station 5 6 82 11 82ms Tit 0 096 x 13 2 x 16 4 32ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 11 82 x 16 4 32
77. 7 Security Settings in FPWIN Pro 203 Using DIN RalilS ssesseessseee 58 237 Self Diagnostic Error Codes EAEE Asem ayer els 250 Using Optional Mounting Plates NEERA 59 Sending Data to External Devices 113 Setting Communication Parameters 103 Md tds ASA STG 19S Wiring the COM Port 78 Selig Syste Registers In PROS yaaa Wiring the MIL Connector eee 75 Setting the Highest Station Number for a Wiring the Power Supply ceeeee 66 PLO Link stant hain 144 Wiring the Terminal Block 00 0 76 Settings for Clock Calendar Function 34 Writing and Reading the Elapsed Value for Slim Type Mounting Plate ccce 59 MOSER OP OG COUMEN iiaii ATS ae Writing and Reading the Elapsed Value of Specifications ccccceeecesceeseeeeeeees 224 the Pulse Ouni aeaaeai 188 Sidre Cage Writing the High Speed Counter Control No STX Code e e aAa a E ute alan 170 ee SEAT eC cere rate 123 Writing the Pulse Output Control Code 185 260 Record of Changes Manual No Date Description of changes ACGM0475V1EN August 2010 European edition e addition of FPWIN Pro examples and procedures ACGM0475V1 1EN February 2011 Correction of errors Panasonic Electric Works Global Sales Companies Global Network PHPPHHY errrrere verrerrre e errrrrr pees eoeeerrry Tore oere oore POeeeerorrrr eoeeseorrrrry gt Headquarters
78. C and host C NET adapter via C NET using MEWTOCOL COM _ S2 for FPO side Supplied with a 30cm FPO TOOL port cable A power supply is not required ARCTIE96 A 100 OEE RS485 adapter for connecting PLC and host 240v AC 7 P via C NET using MEWTOCOL COM side 24V DC Designed to connect FP series PLCs to the FP Web Server 2 Ethernet to send e mails and present PLC FP WEB2 ARCT1F446 data as HTML pages 2 2 5 Power Supply Unit Product name Specifications Product no Input voltage 85 265V AC FPO power supply FPO PSA2 FP power supply Input voltage 85 265V AC Max output current 2 1A 24V DC FP PS24 050E 10 FPOR User s Manual 2 2 Unit Types 2 2 6 Accessories Name Description Product no AFP0521D 10 pin MIL wire press Cable length 1m AFP0521BLUED socket on one side 2 VO cable pieces blue white or multi AFROS2 COLD colored AFP0523D Cable length 3m AFP0523BLUED FPO power supply cable abee packed Gable length 1m AFP0581 FPOR FPS power supply cable ceo part packed Gable length 1m AFPG805 Terminal block socket Phoenix connector 2 pes maintenance parts packed with relay output type PEROSA 40 pin MIL wire press socket Connector set maintenance parts packed with I O expansion unit AFP2801 2 pieces 10 pin MIL wire press socket MIL connector 2 pcs maintenance parts packed with transistor output AFP0807
79. Enabling disabling counting operations bit 1 e Resetting the elapsed value software reset of the high speed counter to O bit 0 Clearing high speed counter instructions bit 3 To cancel execution of an instruction set bit 3 of the data register storing the high speed counter control code sys_wHscOrPulseControlCode to TRUE The high speed counter control flag then changes to FALSE To reenable execution of the high speed counter instruction reset bit 3 to FALSE Enabling disabling the reset input hardware reset of the high speed counter bit 2 A X0 High speed counter input Elapsed value Bit 2 of high speed counter control code enable disable reset input Elapsed value is reset to 0 Reset not possible When bit 2 of the control code is set to TRUE a hardware reset using the reset input specified in the system registers is not possible Counting will continue even if the reset input has turned to TRUE The hardware reset is disabled until bit 2 is reset to 0 170 FPOR User s Manual 8 3 High Speed Counter Function Enabling disabling counting operations bit 1 A High speed counter input Elapsed value Bit 1 of high speed counter control code count When bit 1 of the control code is
80. FPOR User s Manual 7 6 Program Controlled Communication The first two words of a string contain the string header information maximum number of characters and the current number of characters The string header must not be copied into the buffer Therefore enter an offset of 2 to the starting address of the string before copying the data Make sure that the send buffer is big enough for all the data to be sent To determine its size you must take into account that two characters of the string SendString can be copied into each element of the array SendBuffer SendBuffer 0 is reserved for the total number of bytes to be sent by F159_MTRN 3 Sending the data using the instruction F159 MTRN Execute F159 _MTRN to specify the amount of data to be sent specify the communication port to be used output the data from the communication port to the external device When the execution condition of F159 MTRN turns to TRUE and the transmission done flag is TRUE transmission starts For details on flag operation see page 121 When sending data operation is as follows The number of bytes to be sent is set in offset 0 of the send buffer The transmission done flag turns to FALSE The data in the send buffer is sent starting with the low order byte in offset 1 The start and end codes specified in the system registers are automatically added to the data sent During transmission F159_MTRN cannot be executed again
81. L COM LD Body Ifthe counter read from the slave is equal to the counter written then the counter is incremented by 1 A diCounter diCounterFromSlave2 The counter is written to the slave counter which is defined in the library Slave2 containing all exchange data of the slave bWriteToStave2 sys_blsComPort1F145F146NotActive bWriteToSlave2 bReadFroamSlave2 R G gt Slave2_g_diCounter The slave counter which is defined in the library Slave2 containing all exchange data of the slave is read for verification 4 j i koaia y Saiak bReadFromSlave2 bWriteToSlave2 S diCounterFromSlave2 Slave2_g_ diCounter ST Body If the counter read from the slave is equal to the counter written then the counter is incremented by 1 if diCounter diCounterFromSlave2 then diCounter diCounter 1 end_if if bUriteToSlave2 AND sys_hbIsComPortiFi45Fi46Notactive then The counter is written to the slave counter which is defined in the library Slave2 containing all exchange data of the slave F145 WRITE_DATA Port 1 SlavedAddress 2 MasterData diCounter SlaveData gt Slave2_g diCounter bUriteToSlave2 FALSE bReadFromS lave2 TRUE end_if if bReadFromSlave2 AND sys_bIsComPortiF145Fi46Notactive then The slave counter which is defined in the library Slave2 containing all exchange data of the slave is read for verification Fi46 READ DATA Port 1 SlaveAd
82. LSE Count TRUE FALSE Two phase Decremental input CCW Pe cl Pe 1 Se ee FALSE Oo oP LP EF Le N FALSE Inputs XO X1 X3 X4 TRUF or X4 X7 FALSE Count TRUE Incremental dec FALSE Increasing remental Decreasing Inputs XO X1 X3 X4 bla or X4 X7 FALSE Count TRUE Incremental dec FALSE Increasing remental control Decreasing Inputs XO or X1 X3 or X4 Reset input X2 X5 Count Rising edge count Count for reset disabled elapsed value incremental cleared Falling edge count enabled The reset is executed by the interruption at rising edge and falling edge The reset input can be enabled disabled using bit 2 of Count prohibited sys_wHscOrPulseControlCode see page 170 167 High Speed Counter and Pulse Output FPOR User s Manual 8 3 2 Minimum Input Pulse Width For the period T 1 frequency a minimum input pulse width of T 2 single phase input or T 4 two phase input is required T T Lg tl la l l l l n aa a a I r pi p E 2 2 gt t et TT T T 4 4 4 4 Single phase input Two phase input 8 3 3 W O Allocation The inputs and outputs used will differ depending on the channel number being used See Function Specifications and Restrictions on page 160 The output to be tur
83. ON the PLC with the operation mode selector set to PROG mode and then switch to RUN mode e Program the PLC so as to disregard the inputs and outputs until the field devices are energized 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 together Use an exclusive ground for each device Momentary power failures The FPOR continues to operate normally for a certain period of time in case of a momentary power failure We call this the momentary power off time However if the power failure exceeds this period of time operation depends on the combination of units the power supply voltage etc In some cases operation mirrors a power supply reset For the momentary power off time values see General Specifications on page 224 64 FPOR User s Manual 6 3 Safety Instructions for Wiring Protection of power supply e An insulated power supply with an internal protective circuit should be used FPO PSA2 or FP PS24 050 The power supply for the CPU is a non insulated circuit so if an incorrect voltage is directly applied the internal circuit may be damaged or destroyed e f using a power supply device without an internal protective circuit always make sure power is supplied to the unit through a protective ele
84. Online gt Online Mode 2 Online Clear Program and Reset System Register 3 Choose OK in the confirmation dialog box Request concerning program storage To prevent the accidental loss of programs the user should consider the following measures e Backing up programs 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 Therefore please note the password in a safe location Chapter 2 Overview Overview FPOR User s Manual 2 1 Features The FPOR is an ultra compact PLC programmable logic controller with high speed processing capabilities and a large memory capacity The controller uses the comprehensive FP instruction set and is programmed with FPWIN Pro or FPWIN GR With FPWIN Pro programming according to IEC 61131 3 is possible USB 2 0 TOOL port see page 87 The TOOL port supports USB2 0 full speed and enables ultra high speed communication with programming tools Since large programs with up to 32k steps can now be downloaded in as fast as 5s the USB port enables more efficient program development Separate large capacity comment memory
85. Operation on Error 11 2 Operation on Error The CPU has a self diagnostic function which identifies errors and stops operation if necessary For some errors the user may select whether operation shall continue or stop when the error occurs A A Mg Procedure 3 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click Act on Error Select the desired setting for each type of error y EXAMPLE Operation is to continue even though a calculation error has occurred Set system register no 26 Operation error to Continue Operation errors will be handled as an error but operation will continue 215 Troubleshooting FPOR User s Manual 11 3 ERROR ALARM LED is Flashing Chec the error code using the programming tool me Procedure 3 1 In online mode Monitor PLC Status or Fe The error code is displayed in the Self diagnostic Error section For error codes 20 or higher a self diagnostic error other than a syntax error has occurred There are three ways to clear the error e Choose Clear in the PLC Status dialog box while in PROG mode e Turn the power supply off on while in PROG mode this clears all of the contents of the operation memory except hold type data e Execute the self diagnostic error set instruction F148 ERR NOTE e ifthe mode selector switch has been set to RUN the error is cleared and at the sa
86. POR and Micro Ilmagechecker A100 A200 are connected using an RS232C cable The results of the scan are stored in the data registers of the FPOR Communication mode Program controlled communication Communication mode Normal mode Start command SCp is sent Micro lmagechecker A200 A100 1 1 communication between the FPOR and a Micro lmagechecker After the scan start code S R has been sent from the FPOR side the scan result is returned from the Micro Ilmagechecker as the response Communication format settings for Micro Imagechecker A100 A200 To set the communication mode and transmission format settings for the Micro Imagechecker select 5 Communication under 5 ENVIRONMENT on the main menu and set the following items Communication mode Normal Mode Baud rate 9600bit s Length 8 RS232C Stop bit 1 Parity Odd Flow Control None Output 5 Column Invalid Digit Repl 0 Read End None Process End None Serial Output Numerical Calculation Output Judgment Output ica NOTE e 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 e When outputting data to an external device numerical calculation is required so Out should be specified for the Numerical calculation parameter 127 Communication FPOR Use
87. Panasonic PROGRAMMABLE CONTROLLERS FPOR User s Manual OOo E BEFORE BEGINNING Liability and Copyright for the Hardware This manual and everything described in it are copyrighted You may not copy this manual in whole or part without written consent of Panasonic Electric Works Europe AG PEWEU PEWEU pursues a policy of continuous improvement of the design and performance of its products Therefore we reserve the right to change the manual product without notice In no event will PEWEU be liable for direct special incidental or consequential damage resulting from any defect in the product or its documentation even if advised of the possibility of such damages We invite your comments on this manual Please e mail us at tech doc eu pewg panasonic com Please direct support matters and technical questions to your local Panasonic representative LIMITED WARRANTY If physical defects caused by distribution are found PEWEU will replace repair the product free of charge Exceptions include e When physical defects are due to different usage treatment of the product other than described in the manual e When physical defects are due to defective equipment other than the distributed product e When physical defects are due to modifications repairs by someone other than PEWEU e When physical defects are due to natural disasters Important Symbols One or more of the following symbols may be used in this d
88. Positioning JOG Operation and Positioning The specified number of pulses is output after the position control trigger input has turned to TRUE A deceleration is performed before the target value is reached and pulse output stops Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE Select one of two different operation modes Type 0 The speed can be changed within the range of the specified target speed Type 1 The target speed can be changed once when the position control trigger input turns to TRUE Pulse output characteristics Initial and final speed Deceleration time Target speed Execution condition Target value Position control trigger input Acceleration time Pulse output control flag JOG Operation Type 0 The target speed can be changed during pulse output The speed can be changed within the range of the specified target speed Without changing the target speed With changing the target speed 192 FPOR User s Manual 8 4 Pulse Output Function Initial and final speed Deceleration time Target speed Execution condition Target value Position control trigger input Acceleration time Pulse output control flag JOG Operation Type 1 The target speed can be changed once when the position control trigger input turns to TRUE Tar
89. PulseOutput_Jog JOG Operation 0 ccceeeeeceeeees 194 8 4 3 8 F174 PulseOutput_DataTable Data Table Control 195 8 4 3 9 F175 PulseOutput_Linear Linear Interpolation 08 196 8 4 3 10 F177 _PulseOutput_Home Home Return ceeeeeeeeeeeees 196 8 5 PWM Output Function 00 0 cece eceeeeeeeeeeeeneeeeeeeeeeeeeeeeeeseeeeeesteeeseeseeeees 198 8 5 1 PWM Output Function c cccccceeeeeeececee cece eeeeeecceeaeeeeeeesesennueaeeeeeerees 198 9 Security FUNCOMS aisanana iaiaaeaia anaana iaa 201 9 1 Security Function WYO sarsies inni a A tenant 202 9 2 Security Settings in FPWIN Pro 2 cccceeeeesececeeeeeeeeeeteeeceeeeeeeeeeeeenn 203 921 Upload Protection ennn e a r cae 203 9 2 2 PLC Protection Password Protection eeeeeesseereeeeerrreseerresrrresreen 204 9 3 JEP Memory Eoadetsi nrrainn aa ia ita ieai 205 9 3 1 Upload Protection eniinn anae eet eee 205 9 3 2 Download Protection cccccccceceeeeeeeeeneececeeeeeseceeaeeeeeeeeeseeseenieaeeeeees 206 10 Other FUNCHONS soseen eaaiisiiissoniaaanaaika ianea nana naanadaiso iaaii aaia a a 209 10 1 F ROM Backup P13_EPWT cccccceccceccceecceeeeeeeeeeeeeeeeeteeeneeeteeeneees 210 FPOR User s Manual Table of Contents TO 2 SAMPlING MACE isla th ect ae Sue shen A ae eee caida 211 10 3 Input Time Constants eisene i e a e a 212 11 Troubleshooting ssssssnneennnnnnnnnnnnnnn
90. R T32 CPU is equipped with a secondary battery charging type This battery makes it possible to use e additional hold areas for data registers or other data e the clock calendar function The FPOR F32 CPU has a built in FRAM which allows saving all data without a backup battery The FPOR F32 type does not offer a clock calendar function Charging the battery The built in backup battery is not charged when the unit is shipped Charge the battery sufficiently before use Charging time for full charge 72 hours at an ambient temperature of 25 C The battery will be charged automatically when the DC power is supplied to the CPU The number of days the backup battery remains effective backup time depends on the charging time If the battery has been fully charged 72 hours at an ambient temperature of 25 C the battery will function for approx 50 days 50 100 0 8 16 24 48 72 x x Charging time hours y Backup time days at 25 C The backup time will vary according to the ambient temperature when the battery is charged Ambient temperature when charged Backup time Predicted life of built in backup battery The life of the built in backup battery varies depending on the ambient temperature while the CPU is on energized 31 CPU Types FPOR User s Manual NOTE The temperature when the CPU is off not powered has little influence on the battery life Ambient temperature Lifetime of built in
91. RUN the PLC sends a command to the modem which enables it for reception After an initialization with Online Clear Program and Reset System Register all system register values parameters set will be reset to their default values 12 4 2 Types of System Registers Memory Size system register 0 Set the size of the memory area for the user program Hold On Off system registers 5 8 10 14 Use these system registers to specify the hold area start addresses for relays and registers Hold areas are not cleared to 0 when the PLC is switched to PROG mode or when the power is turned off The memory area for timer relays and counter relays is partitioned using system register no 5 Specify the start address for the counter relays Act on Error system registers 4 20 23 26 Set the operation mode to be chosen after errors such as an operation error a battery error or an I O verification error Time Out system registers 30 32 34 Set the waiting time before an error is output You can also specify a constant scan time PLC Link system registers 40 47 50 55 57 These settings are for using link relays and link registers in MEWNET W0 PLC link communication Note that PLC Link is not the default setting High Speed Counter Pulse Catch Input Interrupt Input System registers 400 405 When using the high speed counter function pulse catch function or interrupt function set the operation mode and the input number to be
92. ReadFromS lave2 FALSE bUriteToS lave2 TRUE end_if REFERENCE For details on Modbus settings and communication using the F145_WRITE and F146_READ commands please refer to the online help of FPWIN Pro 156 Chapter 8 High Speed Counter and Pulse Output High Speed Counter and Pulse Output FPOR User s Manual 8 1 Overview Three built in hardware extensions allow the FPOR to be used for positioning control and measurement high speed counting pulse output and PWM pulse width modulation output High speed counter function The high speed counter function counts external inputs such as those from sensors or encoders When the count reaches the target value this function turns the desired output to TRUE or to FALSE ope f Encoder output is input to the high speed counter f Olo T Start stop signal Cutter blade control signal Ol Taea T Pulse output function By connecting a commercially available motor driver to the PLC positioning control can be performed with the pulse output function Using special instructions trapezoidal control home return or JOG operation is possible PLC CW pulse output Motor driver CCW pulse output Stepping motor servo motor 158 FPOR User s Manual 8 1 Overview PWM output function A special instruction makes it possible to output pulses with a specified duty ratio Ar
93. SE While F159_MTRN is executed no data can be received The transmission done flag can be evaluated using the IsTransmissionDone function Or use the system variable sys_blsComPort1TransmissionDone or sys_blsToolPortTransmissionDone depending on the port Special Port Port s r y internal Rate Lumber sey a Function name System variable name TOOL fo o R903F ae sys_blsToolPortTransmissionDone IsTransmissionDone COM1 R9039 sys_blsComPort1TransmissionDone Communication error flag If the communication error flag turns to TRUE during reception reception continues Execute F159_MTRN to turn the error flag to FALSE and to move the write pointer back to offset 1 The communication error flag can be evaluated using the IsCommunicationError function Or use the system variable sys_blsComPort1CommunicationError or sys_blsToolPortCommunicationError depending on the port Special Port Port 3 P internal Function nam m variable nam me ACEP ae unction name System variable name TOOL a R900E a sys_blsToolPortCommunicationError IsCommunicationError COM1 R9037 sys_blsComPort1CommunicationError 122 FPOR User s Manual 7 6 Program Controlled Communication 7 6 5 1 Start Code No STX End Code CR Receiving and sending data A B C R D E YF YXG TRUE FALSE TRUE FALSE TRUE FALSE 1 2 3 R y y A a
94. Setting Communication Parameters on page 111 2 Receiving the data Data is automatically received in the receive buffer defined in the system registers Reception can be controlled by the reception done flag or by directly evaluating the receive buffer For details on flag operation see page 121 When this flag is FALSE and data is sent to the communication port from an external device operation takes place as follows The reception done flag turns to FALSE after switching to RUN mode e Incoming data is stored in the receive buffer Start and end codes are not stored in the receive buffer The storage area for the data received starts with the second word of the receive buffer offset 1 Offset 0 contains the number of bytes received The initial value of offset 0 is 0 Offset Storage area for the number of bytes received 0 lt Storage area for the data received Bold numbers indicate the order of reception e When the end code is received the reception done flag turns to TRUE Reception of any further data is prohibited The reception done flag only turns to TRUE if an end code e g CR has been selected in the system registers 3 Processing the data in the receive buffer e Verify the end of reception e Copy the data in the receive buffer to a target area defined in the program using a 117 Communication FPOR User s Manual transfer instruction e g F10_BKMV NOTE For details
95. T a m Heater control using the PWM output function Increasing the pulse width increases heating Decreasing the pulse width decreases heating Counting Range The counting range of the built in high speed counter is from 2 147 483 648 to 2 147 483 647 32 bit binary number The high speed counter is a ring counter Consequently if the counted value exceeds the maximum value the counter returns to the minimum value Similarly if the counted value drops below the minimum value the counter goes back to the maximum value and continues counting from there 2 147 483 647 2 147 483 646 2 147 483 645 2 147 483 646 2 147 483 647 2 147 483 648 gt a l Maximum value Minimum value 4 Z O m Using linear interpolation instruction F175_PulseOutput_Linear The target value or the amount of travel must be within the range of 8 388 608 to 8 388 607 24 bit binary number 159 High Speed Counter and Pulse Output FPOR User s Manual 8 2 Function Specifications and Restrictions This section contains the specifications and restrictions of the high speed counter pulse output and PWM output function 8 2 1 High Speed Counter Function For each count input mode there are certain high speed counter channels inputs and memory areas Input sell Input mode No of phases remme na Leu Reset put Reset input Incremental Decremental
96. T unit E32 24V DC Transistor 32 16 16 COM terminal PNP 0 1A MIL connector FPO E32P 2 2 3 FPO Intelligent Units Type Specifications Product no Manual Thermocouple types K J T R Resolution FP0 TC4 0 1 C FPO thermocouple unit ARCT1F366 Thermocouple types K J T R Resolution EPO TC8 0 1 C No of input channels 2 Input range Resolution 1 4000 e Voltage 0 5V 10 10V e Current 0 20mA FPO analog I O unit FPO A21 ARCT1F390 No of output channels 1 Output range Resolution 1 4000 e Voltage 10 10V e Current 0 20mA Overview FPOR User s Manual Max output current 0 7A 24V DC Type Specifications Product no Manual No of input channels 8 f Input range Resolution 1 4000 EPOD conversion P aoa FP0 A80 ARCT1F321 unit e Voltage 0 5V 10 10V 100 100mV e Current 0 20mA No of output channels 4 FP0 A04V i Output range Resolution 1 4000 FPO D A conversion p ge ARCT1F382 unit e Voltage 10 10V FPO A041 e Current 4 20mA Pt100 Pt1000 Ni1000 FPO RTD unit Resolution 0 1 C 0 01 C depending on switch FPO RTD6 ARCT1F445 setting 2 2 4 FP Series Link Units He Sra Power Type Specifications supply Product no Manual r Designed to make the FPO function as a FPO I O link unit MEWNET F slave unit remote I O system 24V DC FPO IOL This manual RS485 adapter for connecting PL
97. The reception done flag turns to FALSE The number of bytes received is set to 0 in offset 0 of the receive buffer Data received is written into the receive buffer When the specified number of bytes has been sent the transmission done flag turns to TRUE The end code is automatically added to the data sent At the end of transmission the value in offset 0 is automatically reset to 0 EXAMPLE Transmit the characters ABCDEFGH to an external device connected to COM port 1 For start code and end code the default settings No STX and CR are selected Offset 0 2 3 4 Transmission data A B C D E FJGI H G Transmission done flag Execution condition F159_MTRN execution Transmission 115 Communication FPOR User s Manual POU Header and LD Body Class Identifier Type Initial Comment vAR___ bSend BOOL FALSE activates Function VAR sSendData STRING 30 ABCDEFGH up to 30 chars ARRAY 0 15 OF WORD 16 0 for 30 chars 1 word 2 VAR awSendBuffer 4 Writing to the send buffer i awSendBuffer 0 sSendData MENM ST Body if DF bSend then Creating the send buffer F10_BKM V s1_Start Adr Of VarOffs Var sSendData Offs 2 s2_End AdrLast_Of Var sSendData d_Start gt awSendBuffer 1 Send contents of the send buffer via the serial interface Fi59_ NTRN s_ Start awSendBuffer 0 n_Number LEN sS
98. UE Forward FALSE Pulse direction rows RE Home return After a drive system has been switched on there is a difference between the internal position value elapsed value and the mechanical position of the axis this difference cannot be predetermined The internal value must be synchronized with the actual position value of the axis This is done by means of a home return during which a position value is registered at a known reference point home During execution of a home return instruction pulses are continuously output until the home input is enabled The I O allocation is determined by the channel used See I O Allocation on page 182 To decelerate movement when near the home position designate a near home input and set bit 4 of the special data register storing the pulse output control code sys_wHscOrPulseControlCode to TRUE and back to FALSE again The deviation counter clear output can be set to TRUE when home return has been completed JOG operation Pulses are output from the specified channel while the trigger for the F172_PulseOutput_Jog instruction is TRUE Direction output and output frequency are specified with this instruction 181 High Speed Counter and Pulse Output FPOR User s Manual 8 4 2 W O Allocation The I O allocation of pulse output terminals direction output terminal and home input is determined by the channel used For the near home input the desired contact must be allocated
99. WX2 WX4 WX6 P X20 X2F X40 X4F X60 X6F FPO analog I O unit Input WX3 WX5 WX7 FPO A21 P X30 X3F X50 X5F X70 X7F Output WY2 WY4 WY6 P Y20 Y2F Y40 Y4F Y60 Y6F FPO A D conversion unit aput ut 0 2 4 6 WX2 WX4 WX6 FP0 A80 and aput X20 X2F X40 X4F X60 X6F FPO thermocouple unit FPO TC4 Input 1 3 5 7 a WS Aes FP0 TC8 X30 X3F X50 X5F X70 X7F put t WX2 WX4 WX6 Epo bA i i put X20 X2F X40 X4F X60 X6F conversion uni FP0 A041 Y20 Y2F Y40 Y4F Y60 Y6F Output WY3 WY5 WY7 P Y30 Y3F Y50 Y5F Y70 Y7F input WxX2 WX4 WX6 P X20 X2F X40 X4F X60 X6F FPO RTD unit apt WX3 WX5 WX7 FP0 RTD6 P X30 X3F X50 X5F X70 X7F Output WY2 WY4 WY6 P Y20 Y2F Y40 Y4F Y60 Y6F FPO 1 0 link unit input 32 Xx20 X3F X40 X5F X60 X7F FPO IOL Output E RERA Y20 Y3F Y40 Y5F Y60 Y7F 52 FPOR User s Manual 5 3 FPO Expansion Units NOTE The data for each channel of the A D and D A conversion units FP0 A80 FPO TC4 TC8 FPO A04V I and FPO RTD6 is converted and loaded with a user program that includes a switching flag to convert the data in 16 bit words see corresponding manuals 53 Chapter 6 Installation and Wiring Installation and Wiring FPOR User s Manual 6 1 Installation Please follow the installation instructions carefully to prevent failure or malfunctions 6 1 1 Installation Environment and Space Operating environment After installing the unit make
100. aA AK E E E leB B B B lel F B le C C C C lel G j j lt 1 gt lt 2 gt lt 3 gt Data received fromexternaldevice Data sent to external device Number of bytes received When receiving data operation is as follows 1 Characters A B and C received from the external device are stored in the receive buffer 2 When the end code is received the reception done flag turns to TRUE Reception of any further data is prohibited Character D is not stored 3 F159 MTRN is executed to send response data to the external device When F159 MTRN is executed The receive buffer is reset The reception done flag turns to FALSE The transmission done flag turns to FALSE The communication error flag turns to FALSE Characters 1 2 and 3 are sent to the external device 123 Communication FPOR User s Manual The end code is automatically added to the data sent While F159_MTRN is being executed no data can be received The transmission done flag is FALSE 4 When the specified number of bytes has been sent the transmission done flag turns to TRUE 5 Characters E F and G received from the external device are stored in the receive buffer NOTE Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and moves the write pointer back to offset 1 Subsequent data will be stored
101. abled The I O allocation is determined by the channel used 196 FPOR User s Manual 8 4 Pulse Output Function Select one of two different operation modes e Type 0 The home input is effective regardless of whether or not there is a near home input whether deceleration is taking place or whether deceleration has been completed Without near home input With near home input Home input TRUE t Initial speed Target speed Creep speed Near home input TRUE Home input is effective at any time e Type 1 The home input is effective only after deceleration started by near home input has been completed f Initial speed Near home input TRUE Home input is effective only after deceleration REFERENCE Please refer to the FPWIN Pro online help for details and a programming example Home input TRUE 197 High Speed Counter and Pulse Output FPOR User s Manual 8 5 PWM Output Function 8 5 1 PWM Output Function Use the instruction F173_PulseOutput_PWM This instruction delivers a pulse width modulated output signal according to the specified DUT The PWM output status is stored in special internal relays To access special data registers and special internal relays use the PLC independent system variables You can insert system variables directly into the POU body Use the Variables dialog without entering a declaration in the POU header P
102. aibetodectay date sauces cabeneaes 76 6 8 Wiring the COM Pott sicccciigce Sees ois ivionvadestols eomensia wide edeeeebededelce ends ieee 78 7 Communication ooscceeiccccccceteececccccsctcateceesccccscutcnstcecccancktotes ceeds 81 7 1 Communication Modes a iiied tinct dea rita nteletecnces Gueusaniteandxcadhaeideectcucntennaues 82 7 1 1 Terminology in FPWIN Pro and FPWIN GR eseese 82 7 1 2 MEWTOCOL COM Master Slave ccccccesecceeeeeeeseeeeeeeeeeseaeeesnaeensnees 82 7 1 3 Program Controlled COMMUNICATION 0 00 eee eee eeeeeeeeeteeeeeeeeeeeettaeeeeeeaas 83 ThA PLC IINK is be ec Soe eee os ee et etc ee at fe ei ee 84 7 1 5 Modbus RTU Master Slave cccccccceeeesereeeeecieeeeeenneeeeeesneeeeeeneeeesenaes 85 7 2 Ports Names and Principle Applications cceceeeeeeeeeeeeeeeeeeees 86 F246 TOOL POrts cache davetieee dene eres Se a teeta te hots eet i ee 86 F 2 2 gt COM POM s siete arn a chet in ale 87 T23 USB Ports s caiacte tied eae een eine tees 87 7 2 3 1 Installing the USB Driver eceeeeeeeeeeeeeeeneeeeeeneeeeeeetaeeeeeeaes 89 7 2 3 2 Communication with the Programming Tool 91 7 2 3 3 Reinstalling the USB Driver mesira iaee aE AAAA 91 vii Table of Contents FPOR User s Manual 7 3 7 4 7 5 7 6 7 1 Communication Specifications sseesseeeteee reenn tenn te nn knn rrna n nenn nn annen nrnna 93 Communication Parameters o ssi0 4 sexes ied oon scenesnersince
103. alue indicated in the table 2 The current consumed by the expansion unit power supply connector If a unit is not listed in the table it means that it has no power supply connector 3 The current consumed by the input circuits of the various units The value indicates the current that flows into the input circuit 4 The current consumed by the output circuits of the various units The value indicates the current used to drive the output circuits The value does not include the load current value 228 FPOR User s Manual 12 1 Specifications 12 1 5 I O Allocation FPOR CPUs CPU type Number of I O points I O addresses a fit CEC CSCS Pout S S Cd cn e A E E X0 X7 om input iP e o S C32 T32 F32 FPO expansion units I O allocation is performed automatically when an expansion unit is added and is determined by the installation location Number Unit number installation location Type of unit of I O Channel FPO 1 0 expansion unit FPO 1 0 expansion unit expansion unit eoe rm e xm X40 X47 X60 X67 een npt 4 xox xox x60 x63 Output 4 Y20 v23 Y40 Y43 Y60_Y63 EAT ESE Output Eoaea Y20 Y27 Y40 Y47 Y60 Y67 FPO E16X tw X20 X2F X40 X4F X60 X6F FPO E16R ice Ae ee De x20 x27 _x40 x47 _x6o x67 E16T E16P Output 8 Y20 y27 y40 Y47_ Y60 Ye7 FPO E16YT E16YP Output Pow Y20 Y2F Y40 Y4F Y60 Y6F E32P E32RS Output f Y20 Y2F Y40 Y4F Y60 Y6F
104. alues can be set using the rising edge signal P or by changing 16 8000 to 16 0000 e To access special data registers and special internal relays use the PLC independent system variables You can insert system variables directly into the POU body Use the Variables dialog without entering a declaration in the POU header Please refer to the FPWIN Pro online help for detailed information on using system variables e To set the clock calendar you can also use the instruction SET_RTC_DT Please refer to the FPWIN Pro online help for details and a programming example y EXAMPLE Set the time to 12 00 00 on the 5th day when XO turns to TRUE In this example the values of DT90054 DT90055 and DT90058 are written using system variables 34 FPOR User s Manual 3 5 Backup and Clock Calendar Functions LD Body E Inputs 0 minutes and 0 seconds a ee W RTC_ MinSec Inputs 12thhourSthday wW RTC DayHour Sets the RTC time 1648000 3 5 2 3 Sample Program for Fixed Schedule and Automatic Start In this example 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 special data register DT90053 is used to output the signal at the appointed time The value of DT90053 is written using a system variable GVL class Identifier VAR GLOBAL Y0_bOutputPulse POU Header class Identifier Type
105. ame area as on the sending side Link relay allocation 1 2 3 4 WLO WLO 1 WLO H WLO 19 19 2 20 2 2 39 39 40 40 3 3 3 63 63 63 63 System register settings Se racic 1 2 43 Link relays Send receive area Number of words shared by all linked PLCs a2 Link relays Send area Start sending from this word address o 20 40 o a3 Link relays Send area Number of words to send 20 20 24 0 139 Communication FPOR User s Manual 1 The value of this system register must be identical for all stations Link register allocation 1 2 3 4 LDO 1 LDO 1 LDO H LDO 39 39 40 40 2 2 2 79 79 3 80 80 3 127 127 127 127 Ejem E eee o emona System register settings rae Src ca Link registers Send receive area Number of words shared by all linked PLCs pa Link registers Send area Start sending from this word address CDrArIE a5 Link registers Send area Number of words to send 40 40 48 Jo 1 The value of this system register must be identical for all stations When link areas are allocated as shown above the send area of station no 1 can be transmitted to the receive areas of stations no 2 3 and 4 Also the receive area of station no 1 can receive data from the send areas of stations no 2 and 3 Station no 4 is allocated as a receive area only and can receive data from stations no 1 2 and 3 but cannot send data to other stations
106. an input impedance of 9 1kQ The input impedance varies depending on the input terminal number The off voltage of the input is 2 4V Therefore select a bleeder resistor value R so that the voltage between the COM terminal and the input terminal will be less than 2 4V ges X O1R R 24 Therefore 21 84R i 9 11 2 4 kiy The wattage W of the resistor is Wy W V Power supply voltage 72 FPOR User s Manual 6 5 Input and Output Wiring In the actual selection use a value that is 3 to 5 times the value of W Precaution when using an LED equipped limit switch If the input of the PLC does not turn off because of the leakage current from the LED equipped limit switch the use of a bleeder resistor is recommended as shown below Internal circuit Internal resistor of limit switch KQ Power supply for input R Bleeder resistor kQ The OFF voltage of the input is 2 4V Therefore when the power supply is 24V select the bleeder resistor R so that the current will be greater than the result of this formula 24 24 r The resistance R of the bleeder resistor is 21 84R RS 94 24 The wattage W of the resistor is v R V Power supply voltage In the actual selection use a value that is 3 to 5 times the value of W 6 5 2 Output Wiring There is no fuse in the output circuit It is recommended to install externa
107. and checks each character in sequence using the exclusive OR operation and replaces the final result with character text End code There is always a CR ASCII code 16 0D at the end of the message Data For a read command the data read is stored here _ Command nameerror code Normal processing The command name is stored here Error condition The error code is stored here Response code Normal processing ASCII code 16 24 Error condition ASCII code 16 21 If the response contains an instead of a check the meaning of the error code 101 Communication FPOR User s Manual NOTE If no response is returned the command may not have arrived at the slave or the slave may not be functioning Check to make sure all of the communication specifications e g baud rate data length and parity match between the master and the slave Station number and command name are always identical in a command and its corresponding response see below This makes the correspondence between a command and a response clear M n S o GEC 7 5 3 Commands Command name Code Description Read contact area RC Reads the on and off status of contacts RCS Specifies only one point RCP Specifies multiple contacts RCC Specifies a range in word units Write contact area WC Turns contacts on and off WCS Specifies only one point WCP Specifies m
108. and the FPOR specifications Count mode The FPOR does not support the no counting setting Instead incremental counting is performed with the FPO pulse output instructions set to no 15 Overview FPOR User s Manual counting Pulse width specification In the FPO compatibility mode the duty ratio is fixed at 25 Differing settings in the FPO programs will be ignored F168 PulseOutput_Home Home return In FPO compatibility mode the elapsed value is counted during home return operations With the FPO the elapsed value is indefinite In both cases the elapsed value will be reset to 0 when home return has been completed Real number calculation process Since the accuracy of real number calculation has been improved the calculation results obtained in the FPO compatibility mode may differ from the results obtained in the existing FPO program If the secondary battery installed in the T32 type is out of charge the next power on process will be different FPO The value in the hold area of the data memory will be unstable FPO compatibility mode The value in the hold area of the data memory will be cleared to 0 The sampling trace function is not available in FPO compatibility mode 16 Chapter 3 CPU Types CPU Types FPOR User s Manual 3 1 Parts and Functions CPU C10RS C14RS C10RM C14RM C10CRS C14CRS C10CRM C14CRM
109. ange the setting value of the system register The setting must match the external device connected to the communication port PLC Link The baud rate is fixed at 115200bit s FPO compatibility mode TOOL port 9600 or 19200bit s COM port 300 600 1200 2400 4800 9600 or 19200bit s Communication format setting Default settings Data length 8 bits Parity Odd Stop bit 1 bit End code CR Start code No STX The setting must match the external device connected to the communication port MEWTOCOL COM The end code setting must always be CR and the start code setting must be No Modbus RTU STX PLC Link The communication format settings are fixed Receive buffer For program controlled communication a receive buffer must be specified in the system registers Set a value for receive buffer starting address and receive buffer capacity See Setting Communication Parameters on page 137 95 Communication FPOR User s Manual 7 4 2 Changing Communication Mode in RUN Mode The communication mode of the CPU s communication ports can be changed during RUN mode You can toggle between program controlled mode and MEWTOCOL COM mode by executing F159_MTRN and setting the variable n_Number the number of bytes to be sent to 16 8000 Please refer to the FPWIN Pro online help on F159_ MTRN for a programming example NOTE e When the power is turned on the communication mode selected in the system registers is se
110. ar Linear Interpolation Pulses are output from two channels in accordance with the parameters in the specified DUT so that the path to the target position forms a straight line Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE Pulse output characteristics 2000 5000 x 5000 X axis target value channel 0 2000 Y axis target value channel 1 Pulses are output from the X axis channel 0 and the Y axis channel 1 so that the initial speed is 500Hz the target speed is 5kHz and the acceleration time and deceleration time is 300ms The two axes are controlled so that a linear path is followed to the target position REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 8 4 3 10 F177_PulseOutput_Home Home Return This instruction performs a home return according to the parameters in the specified DUT After a drive system has been switched on there is a difference between the internal position value elapsed value and the mechanical position of the axis this difference cannot be predetermined The internal value must be synchronized with the actual position value of the axis This is done by means of a home return during which a position value is registered at a known reference point home During execution of a home return instruction pulses are continuously output until the home input is en
111. ata with F159 _MTRN Transmission done flag FALSE Reception done flag FALSE Receive buffer reset 8 6 6 9 6 6 6 6 99 130 FPOR User s Manual 7 6 Program Controlled Communication System register settings No Item Name Data Dim 112 COM port 1 communication mode 410 COM port 1 station number 1 15 COM port 1 baud rate 9600 baud H3 COM port 1 sending data length 8 bits COM port 1 sending parity check With Odd 3 COM port 1 sending stop bit 1 bit 13 COM port 1 sending start code No STX 13 COM port 1 sending end code reception done condition CR 116 COM port 1 receive buffer starting address 200 7 COM port 1 receive buffer capacity 5 2 COM port 1 modem connection Disable In order to use the data in the receive buffer define a global variable having the same starting address and capacity In this example the starting address is 200 VAR_GLOBAL awReceiveBuffer and the receive buffer capacity is 5 ARRAY 0 4 OF WORD GVL Class Identifier FP A IEC Addr Type Initial O VAR GLOBAL DT200_awReceiveBuffer DT200 Mw5 200 ARRAY 0 4 OF WORD _ 5 0 POU Header Class Identifier Type Initial VAR bSendDataCommand BOOL FALSE VAR bSendData BOOL FALSE VAR sSendData STRING 2 p VAR awSendBuffer ARRAY 0 1 OF WORD 2 0 VAR blIsReceptionDone BOOL FALSE VAR awReceiveData ARRAY 0 3 OF WORD 40 VAR wDumm WORD a VAR_EXTERNAL DT200_awReceiveBuffer ARRAY 0 4 OF WORD
112. attery status is indicated by the following e Special internal relays R9005 and R9006 will turn to TRUE if the battery voltage drops The relays can be evaluated using the system variables sys_blsBatteryErrorHold and sys_blsBatteryErrorNonHold e The ERROR ALARM LED will flash if the battery voltage drops We recommend adding a program for clearing the data to 0 when the values in the hold areas become indefinite 3 5 2 Clock Calendar Function As the initial clock calendar values are unstable write the values using a programming tool 3 5 2 1 Memory Area for Clock Calendar Function With the clock calendar function clock and calendar data stored in special data registers DT90053 to DT90057 can be read and used in sequence programs To access special data registers and special internal relays use the PLC independent system variables X Available not available Special FPWIN Pro data Upper byte register system variable Lower byte Reading Writing DT90053 sys_w_RTC_HourMin Hour data 16 00 16 23 Minute data 16 00 16 59 DT90054 sys_w_RTC_MinSec Minute data 16 00 16 59 Second data 16 00 16 59 DT90055 sys_w_RTC_DayHour Day data 16 01 16 31 Hour data 16 00 16 23 DT90056 sys_w_RTC_YearMonth Year data 16 00 16 99 Month data 16 01 16 12 DT90057 DT90058 sys_w_RTC_DayOfWeek sys_w_RTC_Set Bit 15 TRUE 16 8000 activates Day of the week data 16
113. aximum value for the transmission time T of one cycle will be T max 44 072 x 2 1 632 5 94 776ms 148 FPOR User s Manual 7 7 PLC Link Calculation example 6 Conditions All stations have been added to a 2 unit link Highest station number 2 32 relays and 2 register words have been evenly allocated Scan time for each PLC 1ms Ttx 0 096 Pcm per station 23 1 1 x 4 31 Tpc Ttx x Pem 0 096 x 31 2 976ms Ts per station 1 2 976 3 976ms Tit 0 096 x 13 2 x 2 1 632ms Given the above conditions the maximum value for the transmission time T of one cycle will be T max 3 976 x 2 1 632 1 10 584ms NOTE e Inthe description stations that have been added refers to stations which are connected between station no 1 and the highest station number and for which the power supply has been turned on e Comparing examples 2 and 3 the transmission cycle time is longer if there is one station that has not been added to the link As a result the PLC link response time is longer e The SYS1 instruction can be used to minimize the transmission cycle time even if there are one or more stations that have not been added to the link 7 7 6 1 Reducing Transmission Cycle Times If there are stations that have not been added to the link the link addition processing time TIk and with this the transmission cycle time will be longer T max 1Ts1 Ts2 eeeeee Tsn Tit Tso Tik Tik Tic
114. ay LO for station 1 turns to TRUE The status change is fed back to the programs of the other stations and YO of the other stations is set to TRUE A constant of 100 is written to link register LDO of station 1 The contents of LDO in the other stations are also changed to a constant of 100 RO TON HHH PLC Link connection between four FPOR units Station number of PLC Link register 136 FPOR User s Manual 7 7 PLC Link 7 7 1 Setting Communication Parameters Make the following settings for the communication port e communication mode PLC Link e station number e link area For details on setting the communication parameters see Setting System Registers in PROG Mode on page 94 For details on setting the link area see Link Area Allocation on page 138 NOTE e PLC Link is only available for COM port 1 e For RS232C connections the maximum number of stations is 2 e For PLC Link the communication format and baud rate settings are fixed Data length 8 bits Parity Odd Stop bit 1 bit End code CR Start code No STX Baud rate 115200bit s Station number setting for a PLC link The station number can be set within a range of 1 to 16 For details on setting station numbers POP RS485 Station number of PLC A maximum of 16 stations can be connected in a PLC link NOTE e Make sure the same station n
115. backup battery 45 C 1200 days 3 years 40 C 2100 days 6 years 35 C 3300 days 9 years The built in backup battery cannot be replaced Precision of clock calendar Ambient temperature Error o 0 C lt 104s month 25 C lt 51s month 55 C lt 155s month 3 5 1 Backup Function Additional hold areas which will be saved with a backup battery FPOR T32 or with the built in FRAM FPOR F32 can be specified for the following memory areas e Timers Counter T C e Internal relays R e Data registers DT e Step ladders Programs and system register settings will be held in the internal ROM regardless of the built in backup battery Specifying hold areas If no settings are made in system registers 6 to 14 the default address ranges will be saved when the PLC is turned off To save additional hold areas follow the procedure below AA me Procedure 3 1 Double click PLC in the navigator 2 Double click System Registers 32 FPOR User s Manual 3 5 Backup and Clock Calendar Functions 3 Double click Hold On Off WA LY CAUTION If the battery is empty and additional hold areas have been defined the hold non hold operation becomes unstable The data value will become indefinite It is cleared to 0 the next time the power is turned on Do not forget to monitor the battery status or to reset the hold areas to the default values if no battery is used An empty b
116. bles directly into the POU body Use the Variables dialog without entering a declaration in the POU header See PWM Output Function on page 198 Related instructions F173 _PWMH PWM output 162 FPOR User s Manual 8 2 Function Specifications and Restrictions 8 2 4 Maximum Counting Speed and Output Frequency The maximum counting speed of the high speed counter function is determined by the number of channels used and the simultaneous use of the pulse output function Use the following simplified chart as a guide NOTE The maximum counting speed may be lower than the values indicated in the table when the pulse output speed is changed or when a cam control target value match on off or other interrupt program is executed simultaneously Maximum counting speed Maximum counting speed frequency kHz Combination of high speed counter channels No pulse output Pulse output 1 channel oc eal aa aa Pana se one 2a a 1 X 2 X X 50 50 3 X X X 50 50 4 X X xX X 50 50 5 X X X X X 50 40 6 X X X X X X 50 40 7 xX 15 14 8 X X 15 10 9 X X X 10 10 10 X X 50 15 50 14 11 xX X xX 50 15 50 14 12 X X xX xX 50 15 50 14 13 X X X X X 50 15 50 14 14 xX X X 50 15 50 10 15 X X X X 50 15 50 10 16 X X 50 15 50 12 17 xX X X 50 13 50 12 18 X X X X 50 12 50 11 19 X X X X X 50 12 50 9 20 X X X 50 1
117. cation modes e MEWTOCOL COM Master Slave e Program controlled e PLC Link MEWNET WO e Modbus RTU Master Slave Communication ports The FPOR is equipped with the following ports e TOOL port RS232C interface e USB port USB 2 0 Fullspeed interface e COM port RS232C interface 7 1 1 Terminology in FPWIN Pro and FPWIN GR Although similar FPWIN Pro and FPWIN GR use slightly different terminology to describe communication modes The following table provides the terminological equivalents for FPWIN GR MEWTOCOL COM Master Slave Computer link Program controlled General purpose serial communication Modbus RTU Master Slave MODBUS RTU PLC Link MEWNET W0 PC PLC link 7 1 2 MEWTOCOL COM Master Slave This communication mode uses the proprietary MEWTOCOL COM protocol to exchange data between a master and one or more slaves This is called 1 1 or 1 N communication A 1 N network is also known as a C NET MEWTOCOL COM connection between a computer and the FPOR There is a MEWTOCOL COM master function and a MEWTOCOL COM slave function The side that issues commands is called master The slave receives the commands executes the 82 FPOR User s Manual 7 1 Communication Modes process and sends back responses The slave answers automatically to the commands received from the master so no program is necessary on the slave REFERENCE For detailed information on the MEWTOCOL COM co
118. cccceecceeeeeeeeeeeeeeneeeeeeeeeeeeeeeeeeees 55 6 1 Installation Ean ERANA ee BAIA aie ana aa 56 6 1 1 Installation Environment and Space cccccccccceececeeeeeeeeeeeneeeeeeeeeeeees 56 6 1 2 Using DIN RailSs sacticcieiiiiesieee nevi elven 58 6 1 3 Using Optional Mounting Plates cc eceeeeeeeeeeeeeeeeeeeeeeeeeeeseeneeeeeeeaaees 59 vi FPOR User s Manual Table of Contents 6 1 3 1 Slim Type Mounting Plate 0 eee ee eeeeeeeeeenteeeeeeeeeeeeenieeeeeeaes 59 6 1 3 2 Flat Type Mounting Plate secota R AR 60 6 2 Connecting FPO Expansion Units eee eeeneeeeeeeeeeeeeteneneeeeeeeeees 63 6 3 Safety Instructions for Wiring as t t0cno2seue sate oecaeeteaneseaved erwptenndyagienannescadvardes 64 6 4 Wiring the Power Supply 22 ccseecccceceeeeeeeeeneeeeneeeeneeeeeesesecceeneeeereeeens 66 GAT GOUNA esien onei atea Oa aA A NENA AEE esenveneeey 68 6 5 Input and Output Wiring eee eee ce cece cece eee eeeeeeeeee tenes eeeeeeeeeeeeeneeeeeeeeeeeeees 70 ESN input WAIN enen E 70 6 5 2 Output Wining oeeie irsi rinier erias iA ENEAN ES ENEA EE Oia 73 6 5 2 1 Protective Circuit for Inductive Loads 0 0 ee ceeeeeeeeteeeeeeeteeeeeeaes 73 6 5 2 2 Protective Circuit for Capacitive Loads cceeeeeceeeeeeeeeeeeeee 74 6 6 Wiring the MIL Connector seessssseieseeeeeeeiirirttreesssrirnnrnrssssrrrrnnnssssseee 75 6 7 Wiring the Terminal Block sccscc cece ienccaasadhaeedin Seve beave
119. ck that the power is properly supplied to the input terminals If the power is properly supplied to the input terminal there is probably an abnormality with the inputs Please contact your dealer _ If the power is not supplied to the input terminal there is probably an abnormality in the input device or input power supply Check the input device and input power supply If the input indicator LEDs are ON Monitor the input condition using FPWIN Pro e If the input monitored is FALSE there is probably an abnormality with the inputs Please contact your dealer e Ifthe input monitored is TRUE check the leakage current at the input devices e g two wire type sensor and check the program again referring to the following Check for duplicate output errors and for outputs having been rewritten by high level instructions Check the program flow when instructions such as MC or JP are used 219 Troubleshooting FPOR User s Manual 11 7 Password Protection Error Message If a protect error message appears a password has been set To access a PLC for which a password has been set a login is required whenever the power is turned on me Procedure 3 1 Online Security Settings 2 Enter your password under PLC Access 3 Choose Login 220 FPOR User s Manual 11 8 PROG Mode does not Change to RUN 11 8 PROG Mode does not Change to RUN If PROG mode does not change to RUN
120. code settings for each channel can be monitored using the system variables sys_wHscChannelxControlCode or sys_wPulseChannelxControlCode where x channel number The settings of this system variable remain unchanged until another setting operation is executed Operations performed by the pulse output control code e Setting resetting near home input e Continuing stopping pulse output forced stop e Enabling disabling counting operations e Resetting the elapsed value software reset of the high speed counter 185 High Speed Counter and Pulse Output FPOR User s Manual e Clearing high speed counter and position control instructions only Setting resetting near home input The near home bit is retained Set this bit to FALSE right after setting it to TRUE to be able to set the near home input a second time during a home return Continuing stopping pulse output forced stop By setting bit 3 of the data register storing the pulse output control code sys_wHscOrPulseControlCode to TRUE pulse output is stopped The possibility of a forced stop should be provided for in every program using pulse output instructions Reset bit 3 to FALSE to continue pulse output Enabling disabling counting operations A Pulse output Elapsed value Bit 1 of pulse output control code count When bit 1 of the control code is set to TRUE coun
121. d 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 PLC and error codes if an error occurs Remote control Switches the operation mode of the PLC Abort Aborts communication 252 FPOR User s Manual 12 7 Data Types 12 7 Data Types FPWIN Pro provides elementary and user defined data types Elementary data types Range UNSIGNED DOUBLE Unsigned double integer 32 3 402823E 1 17549410E REAL REAL Real number 32 bits 0 1 17549410E 3 402823E WORD WORD Bit string of length 16 16 bits 16 0 16 F FFF DOUBLE WORD DWORD Bit string of length 32 32 bits 16 0 16 FFFFFFFF Sian 1291203030 STRING STRING Variable length character string Depending on PLC type ARRAY ARRAY Number obsiinilar data Depending on PLC type elements A data type has to be assigned to each variable Dinternal representation of time and string data types TIME In 10ms units DATE AND TIME Seconds after DT 2001 01 01 00 00 00 TIME OF DAY Seconds after TOD 00
122. dress 2 SlaveData Slave2_g diCounter MasterData gt diCounterFromSlave2 bReadFromS lave2 FALSE bUriteToSlave2 TRUE end_if amp REFERENCE Please refer to the FPWIN Pro online help for detailed information 109 Communication FPOR User s Manual 7 6 Program Controlled Communication With program controlled communication the user generates a program which governs the data transfer between a PLC and one or more external devices connected to the communication port By this any standard or user protocol can be programmed Typically such a user program consists of sending and receiving the data The data to be sent and the data received are stored in data register areas defined as send and receive buffers Image checker Data registers DT c Sending data using F159_MTRN 4 asa 200000 Send buffer ae old at a oe Receiving data Program controlled connection between the FPOR and an external device Sending data Sending includes generating the data for the send buffer and sending it using the instruction F159_MTRN See also Sending Data to External Devices on page 113 Sending can be controlled by the transmission done flag See also Flag Operation on page 121 Data register DT tC i Send buffer Sending data using F159_MTRN Writing data Device with
123. e Com pie port 1 baud rate 413 COM port 1 sending data length am controlled General Purpose 413 COM port 1 sending parity check PLC Link MEWNET W0 Modbus RTU Master Slave Station number The station number must be set for MEWTOCOL COM Master Slave Modbus RTU and for PLC Link MEWTOCOL COM The station number can be set within a range of 1 to 99 In the FPO compatibility mode Modbus RTU the station number can be set within a range of 1 to 32 PLC Link The station number can be set within a range of 1 to 16 94 FPOR User s Manual 7 4 Communication Parameters By default the station number for each communication port is set to 1 in the system register settings There is no need to change this for 1 1 communication but if 1 N communication is used to connect multiple PLCs to the transmission line the station number must be specified to identify the different PLCs The station number is specified either by using A the SYS1 instruction B system register settings in the programming tool The priority for setting the station number is in the above order REFERENCE For details on the SYS1 instruction please refer to your Programming Manual or to the FPWIN Pro online help Baud rate The default baud rate for the various ports is 9600bit s Select a value from 2400 to 115200bit s Lower baud rates of 300 600 and 1200bit s can be specified using the SYS1 instruction However this will not ch
124. e R9120 Pulse output control flag for sys_blsPulseChannel1Active R9121 channel sys_blsPulseChannel2Active R9122 0 T oys diPuseChanneioEiapsedvaue Dorea 184 FPOR User s Manual 8 4 Pulse Output Function o oys dPuseCanneOTaretave DoTeoso2 0 T oys PuiseChanne0corecteditapees oroaoe 0 oys PulseChannel0GonectedFinaSpecs orooaor__ sys_diPulseChannel0AccelerationForbiddenAreaStarting DDT90408 Position 1 sys_diPulseChannel1AccelerationForbiddenAreaStarting DDT90418 Acceleration forbidden area Position starting position for channel i i gp sys_diPulseChannel2AccelerationForbiddenAreaStarting DDT90428 Position A ERR DDT90438 o sys_wPulseChannel0ControlCode DT90380 Pulse output control code sys_wPulseChannel1ControlCode DT90381 monitor for channel a sys_wPulseChannel2ControlCode DT90382 sys_wPulseChannel3Controicode sys_wPulseChannel3ControlCode DT90383 Migh speed COUMEr or pulse sys_wHscOrPulseControlCode DT90052 output control code 1 For F171_PulseOutput_Jog_Positioning F171_PulseOutput_Trapezoidal F172_PulseOutput_Jog 8 4 3 1 Writing the Pulse Output Control Code The special data register where the high speed counter and pulse output control code are stored can be accessed with the system variable sys wHscOrPulseControlCode The system variable sys_wHscOrPulseControlCode corresponds to special data register DT90052 The control
125. e available e PLC program upload protection e password protection e security settings for FP Memory Loader 202 FPOR User s Manual 9 2 Security Settings in FPWIN Pro 9 2 Security Settings in FPWIN Pro In FPWIN Pro Online gt Security Settings opens a dialog that displays the current security settings and enables you to protect your PLC The LEDs in the dialog display the PLC s current protection status To display a tool tip hold the cursor over the LED for approximately 2s REFERENCE For a detailed description of the options in the Security Settings dialog box please refer to the FPWIN Pro online help 9 2 1 Upload Protection When upload protection is enabled you cannot e upload projects or program code to a PC e upload system registers to a PC Data can be lost permanently even if you know the password When using this function be sure to back up your programs The program on your PLC will not be recoverable either by a person knowing the password or by customer support You can cancel the setting for this function using FPWIN Pro However all programs system registers and password information will be deleted If upload protection is enabled you can edit files on the PLC while online using FPWIN Pro However programs will be corrupted if the program in FPWIN Pro and the program on the PLC are not identical NOTE Even if upload protection has been set upload to the FP Memory L
126. e measurement 065 175 Input Specifications CPU 05 22 Input Specifications Expansion Units 43 Input Time Constants 0 eee 212 Input WING airis 70 Installation esirin 56 Installation and Wiring eeeeeeeee 55 Installation Environment and Space 56 Installing the USB Driver 89 258 FPOR User s Manual Instructions and System Variables169 183 Inverter double Speed cccccceeeeeees 177 Inverter single speed 0e ee 176 L LED miaa 18 Input Status ssiri reae 18 41 Operation status cceeeeeee 18 Output Status ec cccccceeeeeees 18 41 LED Display for Status Condition 214 Link Area Allocation 0sceee 138 M Maximum Counting Speed and Output FR QUENCY orrai RERI 163 Memory Area for Clock Calendar Function R AE EEE E E EA 33 MEWTOCOL COM sssesssseseeeneneseeeren 97 MEWTOCOL COM Communication COmMMaAnNdS siia keiini 252 MEWTOCOL COM Error Codes 250 MEWTOCOL COM Master Slave 82 Minimum Input Pulse Width 168 Modbus RTU Communication 152 Modbus RTU Master Slave 0 5 85 MOMIQOPING a e tepder testa etched ts 145 0 Operating environment 2 Operation mode selector 00000 18 Operation on Error ccceeeeeeee 215 Operation Outline for MEWTOCOL COM DIAVE sedis veered a aeaaea 99 Other Functions
127. e range of the rating Be sure to check the fluctuation in the power supply e Disconnect the power supply wiring to the other devices if the power supplied to the CPU is shared with them If the LEDs on the CPU turn on at this moment increase the capacity of the power supply or prepare another power supply for other devices Please contact your dealer for further information 218 FPOR User s Manual 11 6 Diagnosing Output Malfunction 11 6 Diagnosing Output Malfunction If the outputs do not function correctly check the output side first and then the input side If the output indicator LEDs are ON e Check the wiring of the loads e Check if the power is properly supplied to the loads Ifthe 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 with the outputs Please contact your dealer If the output indicator LEDs are OFF e Monitor the output condition using FPWIN Pro If the output monitored is TRUE there is probably a duplicate output error e Set the output to TRUE by force using FPWIN Pro If the output indicator LED is turned ON you must check the input side If the output indicator LED remains OFF there is probably an abnormality with the outputs Please contact your dealer If the input indicator LEDs are OFF e Check the wiring of the input devices e Che
128. eas including timers counters internal relays link relays link registers and data registers can be backed up Areas to be held and not to be held can be specified in the system registers The optional battery has not been charged when it is shipped from the factory It must be charged before you can use it The battery does not have an alarm function when it is running low When it is empty the hold 5 areas will become indefinite However the values will be cleared to 0 the next time the power is turned on We recommend adding a program for clearing the data to 0 when the values in the hold areas become indefinite Precision of calendar timer s At 0 C less than 104 seconds error per month At 25 C less than 51 seconds error per month At 55 C less than 155 seconds error per month 226 FPOR User s Manual 12 1 Specifications 12 1 3 Communication Specifications TOOL port mem Soes Data length 7 bits 8 bits Parity None Odd Even Communication format Stop bit 1 bit 2 bits End code CR CR LF None ETX Start code No STX STX MEWTOCOL COM Slave Communication mode Modem initialization Program controlled in RUN mode only USB port ltem Description S Standard baud rate USB2 0 Fullspeed COM port mem feson Data length 7 bits 8 bits Parity None Odd Even Communication format Stop bit 1 bit 2 bits End code CR CR LF None ETX Start code No STX STX Data transmission order Tra
129. eeeseeseeaeeeeeeeeeeeesnnaeees 146 7 7 6 1 Reducing Transmission Cycle Times 149 7 7 6 2 Error Detection Time for Transmission Assurance Relays 150 7 8 Modbus RTU Communication cvs diss dnacctrzet ees tadbncck ncdeisadas ce dendniecteeey 152 7 8 1 Setting Communication Parameters 0 00 0 cccceeeeeeeeeeeeeeeetteeeeetneeeeeees 155 7 8 2 Sample Program for Master Communication 0 cccceeeeeeeeeeeeeeee 155 8 High Speed Counter and Pulse Output scseeee 157 Bil OVENICW isi een eee ele OO ee es 158 8 2 Function Specifications and Restrictions 0 ceeeeeeeeeeeeeeeeeeeeeees 160 8 2 1 High Speed Counter Function 0 cccccccceeceeeeeeereeeeeeneeeeetnieeeeeeeneeeees 160 8 2 2 Pulse Output FUNCTION 00 cee ce cece cece eeeeeeeeeeeeeceeeeeeesecenaeeeeeeeeeeeesnaeees 161 8 2 3 PWM Output Function 2 cece ce cecceccece eee eeeeeeeeceeeeeeeseeseaeeeeeeeeeseesnaees 162 8 2 4 Maximum Counting Speed and Output Frequency ceeeees 163 8 3 High Speed Counter Function cc c cceeeeeeeeeseeeeceeeeeeeeeseesseceeeeeeeeeens 166 8 3 1 Count Input Modes idres ania e atia at Neta 166 8 3 2 Minimum Input Pulse Width 0 cccccceeeeeeeeeeceeeeeeeeeeeeaeeeeeeeeeeeeseeaees 168 8 3 3 VOAloCatiON iinn ee eee da tee ed 168 8 3 4 Instructions and System Variables cccccceeeeeeeeteeeeeettneeeeetneeeereee 169 8 3 4 1 Writing the High Speed Counter Control
130. eeneeeeeeaae 117 O amp A Data Format arenie ei oie ees 120 POS Fag Operations a e a EAE E EN 121 7 6 5 1 Start Code No STX End Code CR ceesceceeeeeeecesaeeeseeeees 123 7 6 5 2 Start Code STX End Code ETX cccccccccccescssseseeeeeeeeaeseseeeees 124 POG TA COMMUNICATION haaa T A Ea ELAR aE A e aA EARE 126 7 6 6 1 1 1 Communication with Micro Imagechecker cceeceeeeeee 127 7 6 7 EN COMMUNICATION eee eee ette ee ee ente ee ee eaeeeeeeaaeeeeetaeeeeeetaeeeeeeaes 133 7 6 8 Setting Communication Parameters cccceeeeeeeeeeeeetteeeeeeteeeeeenaees 134 PEG LINK EE E ee cha bectstestuncehtacthtegt teat TA 135 7 7 14 Setting Communication Parameters ceccceeeeeeeeeeeeeneeeeeeenteeeeeenaees 137 T2 Link Area Allocation ea eia O dig avtiees eletiatsedee dia abtoeeetedees 138 7 7 2 1 Example for PLC link O 0 0 cceececeeceeceeeeeeeeeeeecnneeeeeeeeeeeteeesnanees 139 0 22 n Example ftor PLCink Titan caesar ida aed 140 viii FPOR User s Manual Table of Contents 7 7 2 3 Partial Use of Link Areas ccceee etter eeeecneeeeeeneeeeeeneeeeeeaaes 142 7 7 2 4 Precautions for Allocating Link Areas 0 ccceeesteeeeeeenteeeeeeaes 143 7 7 3 Setting the Highest Station Number for a PLC Link 144 7 7 4 PLC Link 0 and 1 Allocation Setting cc eieeeeeeeteeeeeetieeeeetnieeeeeeee 144 ES MONMOMING 0555 ste eine E E E A aed anata 145 7 7 6 PLC Link Response Time c ccceceeeeeeceeeeceeeee
131. eld dinak E akr n say Meee eed 8 221 CPU T ieioea a eeoa a a e aa E 8 2 2 2 FPO I O Expansion Units 0 0 0 2 2 ce ceccccecece cece eeeeeeeeeeeeeeeeecenaaeeeeeeeeeeeeeennaees 9 2 2 9 FRO Intelligent Units o cities inte dietuleaieiitt dietitian 9 2 2 4 FP Series Link Units cecececcccce e a endie 10 22 9 Powersupply Unit ci ania siens cee ees ee han el eee ee 10 220 ACCESSONOGS x ates tints ete heehee ola cid ele teats abel oe Ft 11 2 3 Restrictions on Unit Combinations ccccccccccccecccecceeeceeeeeeeeeeeeeeeeteees 12 24 Programming Tool S inae seeds ve ecaealecbeteene eonweevaseanactendstee a ekaiak 13 2 5 FPO Program CompatiB lity iecctrcectesatarsanpoccacerameersutesteetaqutedeersaeneacamvarens 14 Oe CPU TYPOS aras s addaa se eaaa aa etd ere ete el 17 3 1 Parts and Functions CPU a reana ra reie a ne aa aaran an TAn IA EaR ARIAL n aasahan 18 3 2 Input Specifications CPU cc cece eceeeeeee cece eeeeeeee tees eeeeeeeeeeeeeeeeeeeeeeeees 22 3 3 Output Specifications CPU 00 0 0 cece cece cece cece tect eect eeeeeteeeeeeeeeeeeeeeeeeeeeees 24 3 4 Terminal Layout os cesses tha diese tage gente tance tau eae aetna Gus earns 27 34 1 CAQICPUS de ea a Hiei We ee e a aia 27 34 2 A i E E ma DAA awa inet ea Geen Aa E A A 28 Table of Contents FPOR User s Manual SAS ClO CPUs naa enaa st teeta eps teers Jaen ert nate pee 29 3 4 4 CIZ CPU tities a a ier lids ceed eel che bea ae 30
132. en reached Deceleration is performed within the specified deceleration time Decelerated stop 194 FPOR User s Manual 8 4 Pulse Output Function Initial and final speed Pulse output control flag Change of target speed Target value Execution condition Deceleration time REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 8 4 3 8 F174 PulseOutput_DataTable Data Table Control This instruction performs rectangular control according to the parameters in the specified DUT with an arbitrary number of different speeds and target values Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE Pulse output characteristics f Hz 5000 2500 1000 0 1000 3000 8000 10000 X Elapsed value of high speed counter Execution condition Pulse output control flag e Pulses are output at the specified frequency until the target value is reached Then the frequency changes to the second frequency value and pulse output continues until the second target value is reached and so forth 195 High Speed Counter and Pulse Output FPOR User s Manual e Pulse output stops when the last target value is reached REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 8 4 3 9 F175_PulseOutput_Line
133. en the USB and TOOL port connection System requirements e Operating system on the PC Windows 2000 Windows XP Windows vVista e FPWIN Pro version 6 1 or later or FPWIN GR version 2 80 or later e USB cable see page 13 NOTE e A USB hub cannot be used e When multiple FPOR units are connected to one PC with the USB they cannot communicate with the PC simultaneously The PC can communicate with the FPOR that was connected first only and it cannot communicate with the other FPOR 88 FPOR User s Manual 7 2 Ports Names and Principle Applications 7 2 3 1 Installing the USB Driver The following two USB drivers must be installed to recognize the USB e USB driver e USB COM conversion driver The installation procedure may differ depending on the PC s OS NOTE For a PC with more than one connector you may be requested to reinstall these two drivers if the USB connectors positions have changed A me Procedure 3 1 Turn on the power supply of the FPOR 2 Connect the FPOR with a PC using a USB cable es HES oo fies LCE The PC recognizes the USB driver automatically 3 Follow the wizard s instructions Confirming COM Ports The FPOR connected to the PC via USB is treated as if connected via a COM port It depends on your PC environment to which COM port the USB is allocated Therefore it is necessary to confirm the COM
134. endData d_Port 1 end if When the variable bSend is set to TRUE the function F10_BKMV copies the characters of the string sSendData to the buffer awSendBuffer beginning at awSendBuffer 1 Then F159_MTRN sends the data from the first element of the send buffer awSendBuffer 0 as specified by s_ Start The length of the string to be sent 8 bytes is set at n_Number using the function LEN to calculate the number of bytes The data is output from COM port 1 as specified by d_Port NOTE e For details on the operation of the reception done flag the transmission done flag and the communication error flag see page 121 e For details on the format of the data in the send buffer and in the receive buffer please see Data Format on page 120 e Data cannot be sent unless the pin CS Clear to Send is on When connecting to a three wire port short circuit the RS and CS pins 116 FPOR User s Manual 7 6 Program Controlled Communication 7 6 3 Receiving Data from External Devices Steps for receiving data from external devices 1 Setting the communication parameters and specifying the receive buffer 2 Receiving the data 3 Processing the data in the receive buffer 4 Preparing the system to receive subsequent data NOTE Data received via the communication ports of an MCU has to be moved to the CPU receive buffer using the instruction F161_MRCV 1 Setting the communication parameters see
135. eptionDoneByTimeOut function or by evaluating the data in the receive buffer 120 FPOR User s Manual 7 6 Program Controlled Communication Different end code settings for sending and receiving Sometimes you do not want to send an end code but need an end code in the data received to set the reception done flag to TRUE In this case select the desired end code in the system registers and execute F159_MTRN specifying a negative number for n_Number Ava EXAMPLE J Send 4 bytes of data without adding an end code POU Header Class Identifier Type Initial Comment Oo VAR bSendData BOOL FALSE 1 YAR_CONST iMinusBytesToSend INT 6 Negative number No terminator added 2 VAR awSendData ARRAY 0 3 OF WORD 4 0 First word Number of bytes sent 3 VAR Words 1 to 3 6 data bytes to send LD Body me bSendData F159 MTRN Jp ______EN ENO awSendData 0 s_Start iMinusBytesToSend n_Number eose es e 1E ST Body if DF bSendDataj then F159_MTRN s_S5tart awSendData O n Number iMinusBytesToSend d Port end_if 7 6 5 Flag Operation Program controlled communication provides for half duplex communication i e communication is possible in both directions but not simultaneously Sending can be controlled by the transmission done flag Reception can be controlled by the reception done flag or by directly evaluating the receive buffer The flags are spec
136. ffer Character G is stored 6 The start code STX resets the receive buffer Character H is stored 7 F159_MTRN is executed at the same time the end code is received from the external device F159_MTRN turns the reception done flag to FALSE Therefore this flag will not be detected NOTE e Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and moves the write pointer back to offset 1 Subsequent data will be stored in the receive buffer starting at offset 1 e If two start codes are received from the external device data following the second start code overwrites the data in the receive buffer Sending data ETX lt r b r ST d eX ET TRUE Nooo FALSE TRUE FALSE a jej a a a C yt C Cc c Cc b b be b b d d ke d d d le le e e lel e a lt 2 gt lt 1 gt lt 0 gt lt 0 gt lt 3 gt lt 2 gt lt 1 gt lt 0 gt lt 0 gt Data to be sent Send buffer Transmission done flag Number of bytes to be sent F159_MTRN execution Write pointer 125 Communication FPOR User s Manual When sending data operation is as follows F159 _MTRN is executed to send data to the external device When F159_MTRN is executed 1 The transmission done flag turns to FALSE 2 The start code is sent au
137. function cannot be used with the TOOL port or with the USB port 97 Communication FPOR User s Manual e Do not execute the F145 WRITE_DATA and F146_READ_DATA instructions when the unit is used as a slave unit MEWTOCOL COM slave function The slave can be a PLC or any external device which supports the MEWTOCOL COM protocol The slave automatically receives a command processes it and sends back a response To use the built in slave functionality of the PLC select MEWTOCOL COM Master Slave in the system registers For 1 N communication in a C NET the station number must be specified in the system registers of the slave No program is necessary on the slaves The program for the master side must send and receive commands according to the MEWTOCOL COM protocol MEWTOCOL COM contains the commands used to control and monitor the slave operation NOTE Panasonic offers software tools with implemented MEWTOCOL COM Master functionality Control FP Connect connects your Visual Basic application to Panasonic PLCs PCWAY displays PLC data in Excel 98 FPOR User s Manual 7 5 MEWTOCOL COM 7 5 1 Operation Outline for MEWTOCOL COM Slave Instructions issued by the computer to the PLC are called commands Messages sent back to the computer from the PLC are called responses When the PLC receives a command it processes the command regardless of the sequence program and sends a response back t
138. fying a receive buffer For program controlled communication a receive buffer must be specified in the DT memory area The maximum area is 2048 words Specify the starting address and the capacity number of words The receive buffer layout is shown below Offset Starting address B 0 Storage area for the number of bytes received i Storage area for the data received 2 Capacity l l n The receive buffer is specified in the system registers see page 94 4137 COM port 1 sending end code freception done condition CR ECR Sele vI port 1 receive buffer starting address Oto 1657 The 418 COM port 1 receive buffer capacity 9 Oto 1658 DT2C gi COM nart 1 madem cannerctinn Nicahle F isahle Sner NOTE FPWIN Pro In order to use the data in the receive buffer define a global variable having the same starting address and capacity The setting range for the receive buffer starting address is different for the 16k and the 32k type 7 6 1 1 FPO Compatibility Mode Make sure that the PLC type selected in FPWIN Pro is FPO In the FPO compatibility mode only the COM port can be used Make the following settings for the communication port COM port e communication mode e station number e baud rate e communication format e receive buffer starting address e receive buffer capacity Please be aware that the setting ranges of the FPO apply if the FPOR is used in FPO compatibility mode 11
139. g ASCII code 16 2A2A instead of the BCC End code Messages must always end with a R ASCII code 16 0D Target address Address of the target area to be read or written e g internal relay R1 Data area Specification of the number of points to be read or written S 1 point Command name e g RC read contact area Command code 16 23 indicates that this is a command 100 FPOR User s Manual 7 5 MEWTOCOL COM NOTE If there are large numbers of characters to be written they may be divided and sent as several commands If there is a large number of characters in the value that was loaded they may be divided and several responses sent Response message The slave that received the command in the example above sends the processing results to the computer Start code A ASCII code 16 25 or lt ASCII code 16 3C must be at the beginning of a message The response must start with the same start code as the command _ Station number The station number of the slave that processed the command is stored here 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 Check code Hexadecimal block check code BCC for error detection using horizontal parity The BCC starts from the header
140. g Plate Use AFP0803 for mounting CPU types C10 C14 and C16 as well as 25mm type FPO units 4mm 12 5 mm 10 mm oh e 30 mm 30 mm Use AFP0811 for mounting CPU types C32 T32 and F32 as well as 30mm type FPO units 4mm j 17 5mm i 12 5mm 10mm y le oa 1 tor E o 0 dE g r EIP 00 JE Elo HEH amp Ke i oO N g E uh aN WwW Bi q SN 3 of AFP0811 30mm 6mm cD d Total unit length Installation and removal Installation and removal of the unit is similar to the procedure using DIN rails Installation Removal 59 Installation and Wiring FPOR User s Manual Combining mounting plates When combining several mounting plates tighten the screws after joining all of the mounting plates to be connected Tighten all corner screws The following diagram shows the combination of the mounting plates AFP0803 when the maximum number of expansion units is used and the mounting hole dimensions 100 60 0 AFP0803 AFP0803 6 1 3 2 Flat Type Mounting Plate The flat type mounting plate AFP0804 should only be
141. ge 152 85 Communication FPOR User s Manual 7 2 Ports Names and Principle Applications Port name Connector Communication mode e MEWTOCOL COM Slave e Program controlled in RUN mode only TOOL port Mini DIN 5 pin connector USB port USB miniB type MEWTOCOL COM Slave MEWTOCOL COM Master Slave Program controlled Modbus RTU Master Slave PLC Link COM port 3 wire RS232C screw type In PROG mode the TOOL port is automatically set to MEWTOCOL COM mode even if program controlled mode has been selected This way it is always possible to communicate in PROG mode with a programming software like FPWIN Pro 7 2 1 TOOL Port The TOOL port can be used to connect a programming tool A commercial 5 pin mini DIN connector is used for the TOOL port on the CPU Signal name Abbreviation Signal direction Signal Ground Send Data CPU External device Receive Data CPU lt External device Not used 5V CPU External device The factory settings are shown below They can be changed in the system registers Communication parameter Factory settings A T Stop bit Set the station number for the TOOL port in the TOOL port setting area of the system registers 86 FPOR User s Manual 7 2 Ports Names and Principle Applications 7 2 2 COM Port The following CPU types are equipped with a COM port C10CR C14CR C16C C32C T32C F32C This port is used
142. get speed 1 lt target speed 2 Target speed 1 gt target speed 2 Targetspeed1 Deceleration time Targetspeed2 BY Execution condition Position control trigger input rn REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 193 High Speed Counter and Pulse Output FPOR User s Manual 8 4 3 7 F172_PulseOutput_Jog JOG Operation This instruction is used for JOG operation Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE Pulse output characteristics Target speed 1 Pulse output control flag Target speed 2 Execution condition Select one of two different operation modes e Mode with no target value type 0 Pulses are output in accordance with the conditions set in the DUT as long as the execution condition is TRUE A decelerated stop begins whenever the execution condition is FALSE 1 i i SON Pulse output control flag Initial and final speed Change of target speed Execution condition E e Target value match stop mode type 1 Output stops when the target value is reached Set this mode in the control code and specify the target value an absolute value in the DUT A decelerated stop is performed when the target value has be
143. h ON F167 _HighSpeedCounter_Reset Target value match OFF F178 HighSpeedCounter_Measure Input pulse measurement 8 2 2 Pulse Output Function For each pulse output mode and position control mode there are certain designated high speed counter channels inputs and outputs NOTE The pulse output function is only available with the transistor output type Input output numbers CW pulse CCW pulse sea output output viati Channel no p p counter clear Near home Pulse Direction 1 output output o o h vw l ooo o fe e vo i E E E E E E YB Linear Y6 Y8 interpolation B control A a e e e The values in parentheses refer to the CPU type C32 The home return operation of the interpolation axes should be performed for every channel 3 Any input can be specified in the global variable list The near home input is enabled disabled using the pulse output control code See Writing the Pulse Output Control Code on page 185 Performance No of channels Maximum output frequency1 Linear interpolation control 50kHz 1 The maximum output frequency may be lower than the values indicated in the table when the pulse output speed is changed when a target value match on off instruction another pulse I O process or interrupt program is executed simultaneously Control flags and memory areas Counter and pulse output settings as well as elapsed values are stored in special data 161
144. he same message as a command is returned for a single write command A part of a command message 6 bytes from the beginning is returned for a multiple write command Response in abnormal status If a parameter which is to be processed but is disabled is found in a command except for a transmission error ADDRESS FUNCTION 80H ERROR CODE CRC 1 Illegal function ERROR CODE 2 Illegal data address no word address 3 Illegal data value not a multiple of 16 153 Communication FPOR User s Manual Reception done judgment time The process for receiving a message is complete after all data has been received and the time given in this table has been reached Reception done judgment time Supported commands Executable instructions for Goce Name Modbus original Name for FPOR Modbus master decimal Reference Fas WRITE o Preset Single Regier wieoriwoa x w fo ie Modbus references and FPOR addresses Modbus reference 1 7 D FPOR address Name sd Decimal address Hexadecimal address Coll 000001 001760 0000 06DF YO Y109F 002049 006144 0800 17FF RO R255F Input 100001 001760 0000 06DF X0 X109F Holding C10 C14 C16 400001 412316 0000 301B DTO DT12315 register C32 T32 F32 40001 432765 0000 7FFC DT0 DT32765 300001 300128 0000 007F WLO WL127 Input register 302001 302256 07D0 08CF LDO LD255 Beginning with 0 2 Beginning with 1 REFERENCE Fo
145. ial internal relays which turn to TRUE or to FALSE under specific conditions They can be evaluated using special functions or system variables Reception done flag When the end code is received the reception done flag turns to TRUE Reception of any further data is prohibited F159_MTRN turns the reception done flag to FALSE The reception done flag can be evaluated using the IsReceptionDone function Or use the system variable sys_blsComPort1ReceptionDone or sys_blsToolPortReceptionDone depending on the port The end of reception can also be determined by time out using the IsReceptionDoneByTimeOut function or by checking the contents of the receive buffer 121 Communication FPOR User s Manual The status of the reception done flag may change while a scan is being carried out For example if the flag is used more than once as an input condition different statuses may exist within one scan To ensure proper execution of the program the status of the special internal relay should be copied to a variable at the beginning of the program Special Port Port 7 Haren I A vedia Function name System variable name TooL o R903E f sys_blsToolPortReceptionDone IsReceptionDone COM1 R9038 sys_blsComPort1ReceptionDone Transmission done flag When the specified number of bytes has been sent the transmission done flag turns to TRUE New data may be sent or received F159_MTRN turns the transmission done flag to FAL
146. ime will be longer see page 146 If there are fewer than 16 stations linked set the highest station number to reduce the link transmission cycle time The default value is 16 Set the same value for all PLCs in the link The highest station number is set using system register no 47 for PLC link 0 or system register no 57 for PLC link 1 Sample settings Total number of stations 2 Ce Se e Highest station number 1 Same setting for each station 7 7 4 PLC Link 0 and 1 Allocation Setting The default setting of system register 46 PLC Link 0 and 1 allocation setting is Normal This means that the unit which is closest to the CPU uses PLC link O and the unit which is further away uses PLC link 1 To reverse this behavior select Reverse In the example below selecting Reverse for the PLCs in PLC link 1 B has the advantage that the user does not have to make any address conversions between these PLCs and the MCU Instead the same numbers may be used for all PLCs in the link FP2 MCU MCU In the default setting Normal the first half of the link relays and link registers is used WLO WL63 LDO LD127 In the default setting Normal the second half of the link relays and link registers is used WL64 WL127 LD 128 LD225 PLC link 0 PLC link 1 Set system register 46 to Reverse in the PLCs of PLC link 1 O FPOR User s Manual 7 7 PLC Link
147. inning of the program Buffer statuses The following shows the statuses of the send and receive buffers when the sample program is run Status of the send buffer before sending Offset 0 2 1 16 53 S 16 25 At the end of transmission the value in offset 0 is automatically reset to 0 Status of the receive buffer when the reception is completed DT200 7 DT201 16 30 0 16 31 1 DT202 16 32 2 16 31 1 DT203 16 34 4 16 33 3 DT204 16 35 5 The number of bytes received is stored in offset 0 The received data is stored in order from the low order byte 7 6 7 1 N Communication The FPOR and the external units are connected using an RS485 cable Using the protocol that matches the external units the F159_MTRN instruction is used to send and receive data Data registers DT Data to be sent Data is sent using F159_ MTRN Data received Data is received in receive buffer a 1 N communication between the FPOR and several external devices PLC 133 Communication FPOR User s Manual System register settings By default the COM port is set to MEWTOCOL COM mode For 1 N program controlled communication the system registers should be set as shown below e Settings for COM port 1 or TOOL port No Name Set value COM port 1 communication mode Program controlled Data length 7 bits 8 bits Parity None Odd Even COM port 1
148. input current z4 3mA at 24V DC Input impedance 5 6kQ Operating voltage range 21 6 26 4V DC E8X E16P E16T E32RS 8 E32T E16X 16 Input points per common E8R 4 Either the positive or negative pole of the input power supply can be connected to the common terminal Min ON voltage min ON current 19 2V DC 3mA Max OFF voltage max OFF current FALSE gt TRUE Response time lt 2ms TRUE FALSE Operation mode indicator LEDs Limitations on the number of input points that are TRUE simultaneously Keep the number of input points per common which are simultaneously TRUE within the following range as determined by the ambient temperature 2 4V DC 1mA E16R E32RS E8X E16T E16X E32T 34 43 55 x 26 34 55 x 47 55 x x Ambient temperature C y Number of points per common which are simultaneously TRUE At24vDC at26 4v DC 43 Expansion FPOR User s Manual 4 4 Output Specifications Expansion Units Relay output specifications E8RS E8RM E8YRS E16RS E16RM E32RS item Description S O Output type 1a Nominal switching capacity resistive load 2A 250V AC 2A 30V DC lt 4 5A common Output points per common E8R 4 E16R E8YR E32RS 8 FALSE gt TRUE 10ms Response time TRUE FALSE z8ms Mechanical lifetime gt 20 000 000 operations switching frequency 180 operations min Electrical lifetime
149. ins Sets PROG mode Operation stops In this mode programming via the TOOL port is possible PROG downward When performing remote switching with the programming tool the position of the operation mode selector and the actual operation mode may differ Verify the mode with the operation status LED Otherwise restart the FPOR and set the operation mode using the operation mode selector USB port 5 pin Mini B type Used to connect a programming tool Panasonic s USB cable CABMINIUSBSD or a commercial USB2 0 AB type cable can be used oo000000 000 oo I oo To use the USB port you must install the USB driver see page 87 TOOL port RS232C Used to connect a programming tool A commercial 5 pin mini DIN connector is used for the TOOL port on the CPU Pinno Signal name Abbreviation Signal direction Signal Ground Send Data CPU External device Receive Data CPU lt External device Not used 5V CPU External device 19 CPU Types FPOR User s Manual The factory settings are shown below They can be changed in the system registers Communication parameter Factory settings Set the station number for the TOOL port in the TOOL port setting area of the system registers Input connector Input status LEDs Output connector Output status LEDs Power supply connector 24V DC Use the power supply cab
150. ion The maximum volume of data that can be sent is 2048 bytes 113 Communication FPOR User s Manual EXAMPLE Define a send buffer for 30 bytes ARRAY 0 15 OF WORD and copy 8 characters of a string ABCDEF GH into the buffer Send buffer layout Offset 16 42 B 16 41 A 16 44 D 16 43 C 16 46 F 116 45 E 16 48 H 16 47 G The first word of the send buffer offset 0 is reserved for the number of bytes to be sent Therefore copy the data into offset 1 SendBuffer 1 When sending begins the execution condition for F159_MTRN turns to TRUE the value in offset 0 is set to 8 At the end of transmission the value in offset 0 is automatically reset to 0 The data in offset 1 to offset 4 is sent in order from the low order byte POU Header and LD Body Class Identifier Type Initial Comment J bSend BOOL FALSE activates Function VAR sSendData STRING 30 ABCDEFGH up to 30 chars VAR awSendBuffer ARRAY 0 15 OF WORD 16 0 for 30 chars 1 word sSendData sSendData _ ST Body if DF bSend then ji Creating the send buffer F10 BRKMV sl_ Start Adr_ Of VarOffs Var sSendData Offs 2 s2_End AdrLast_Of Var sSendData d_ Start gt awSendBuffer 1 When the variable bSend is set to TRUE the function F10_BKMV copies the characters of the string sSendData to the buffer awSendBuffer beginning at awSendBuffer 1 114
151. is word PLC link 0 address Link relays Send area Number of words to send 4 PLC link 1 i 4 Link registers Send area Start sending from this word address 138 0 64 words 0 128 words Highest station number in network Link relays Send receive area Number of words 0 64 words shared by all linked PLCs Link registers Send receive area Number of words shared by all linked PLCs 5 5 6 0 1 2 Link registers Send area Number of words to send 7 0 1 6 0 128 words 4 FPOR User s Manual 7 7 PLC Link Default value aaress A Link relays Send area Number of words to send fos 0 64 words 5A Link registers Send area Start sending from this 128 128 255 word address Link registers Send area Number of words to send fo 0 128 words Set the same value for all PLCs in the link NOTE Use the SYS2 instruction to set the link area in RUN mode Please refer to the FPWIN Pro online help for detailed information Using PLC link 1 You can either use PLC link 0 or PLC link 1 Set system register 46 to Reverse to use PLC link 1 See PLC Link 0 and 1 Allocation Setting on page 144 7 7 2 1 Example for PLC link 0 The PLC link areas are divided into send and receive areas The link relays and link registers are transmitted from the send area to the receive area of a different PLC The link relays and registers in the receive area on the receiving side must be within the s
152. ise Parkway Linford Wood Milton Keynes MK14 6LF Tel 44 0 1908 231555 44 0 1908 231599 www panasonic electric works co uk North amp South America gt USA PEW Corporation of America 629 Central Avenue New Providence N J 07974 Tel 1 908 464 3550 Fax 1 908 464 8513 www pewa panasonic com Asia Pacific China Japan gt China gt Hong Kong gt Japan gt Singapore Copyright 201 All rights reserved Specifications are subject to change without notice Printed in Europe Panasonic Electric Works China Co Ltd Panasonic Electric Works Hong Kong Co Ltd Panasonic Electric Works Co Ltd Panasonic Electric Works Asia Pacific Pte Ltd Level 2 Tower W3 The Tower Oriental Plaza No 2 East Chang An Ave Dong Cheng District Beijing 100738 Tel 010 5925 5988 Fax 010 5925 5973 www pewc panasonic cn RM1205 9 12 F Tower 2 The Gateway 25 Canton Road Tsimshatsui Kowloon Hong Kong Tel 8520 2956 3118 Fax 0852 2956 0398 1048 Kadoma Kadoma shi Osaka 571 8686 Japan Tel 06 6908 1050 Fax 06 6908 5781 http panasonic electric works net 101 Thomson Road 25 03 05 United Square Singapore 307591 Tel 06255 5473 Fax 06253 5689 ACGMO V EN 1201
153. l fuses in every circuit to reduce the risk of burning out the output circuit when the output is shorted Do not connect a load that exceeds the maximum switching ability of the output terminal 6 5 2 1 Protective Circuit for Inductive Loads With an inductive load a protective circuit should be installed in parallel with the load When switching DC inductive loads with the relay output type be sure to connect a diode across the ends of the load 73 Installation and Wiring FPOR User s Manual Using an AC inductive load relay output type FPOR RC Output terminal M Load n Surge absorber e g resistance R 509 OO capacitance C 0 47 uF COM g A FPOR N Output terminal Oke Load Varistor COM g Using a DC inductive load A gt FPOR Output terminal Load Diode reverse voltage Vp 3 x load voltage average rectified forward current l gt load current or more COM 6 5 2 2 Protective Circuit for Capacitive Loads When connecting loads with large in rush currents connect a protection circuit as shown below to minimize their effect A FPOR Output terminal DC Load Resistor COM C A FPOR Output terminal D e Load P L Inductor COM
154. le provided Product no AFPG805 COM port RS232C C10CR C14CR C16C C32C T32C F32C This port is used to connect devices via RS232C to enable data input output Signal Ground Receive Data Input Send Data Output Expansion hook Used to secure an expansion unit The hook is also used for installation on the flat type mounting plate part no AFP0804 20 FPOR User s Manual 3 1 Parts and Functions CPU O Connector for FPO expansion units Connects an FPO expansion unit to the internal circuit The connector is located under the seal DIN rail attachment lever Used for easy attachment to a DIN rail The lever is also used for installation on a slim type mounting plate See Using Optional Mounting Plates on page 59 21 CPU Types FPOR User s Manual 3 2 Input Specifications CPU The input specifications below apply to all FPOR CPU types item Description S O Insulation method Optical coupler Rated input voltage 24V DC Operating voltage range 21 6 26 4V DC Rated input current 2 6mA Input points per common C10 6 C14 C16 8 C32 T32 F32 16 Either the positive or negative pole of the input power supply can be connected to the common terminal Min ON voltage min ON current 19 2V DC 2mA Max OFF voltage max OFF current 2 4V DC 1 2mA Input impedance 9 1kQ FALSE gt TRUE Response
155. lease refer to the FPWIN Pro online help for detailed information on using system variables Setting system registers When using the PWM output function specify the desired PWM output in the system registers me Procedure 3 1 Double click PLC in the navigator Double click System Registers Double click High Speed Counter Pulse Caich Input Interrupt Input gt Y BM Specify the PWM output for the channel used 401 High speed counter Channel 5 Unused Unused 402 Pulse output Channel 0 Unused Unused 402 Pulse output Channel 1 402 Pulse output Channel 2 402 Pulse output Channel 3 403 Pulse catch input 0 403 Pulse catch input X1 403 Pulse catch input X2 REFERENCE Please refer to the FPWIN Pro online help for details and a programming example Unused Pulse output 0 41 Pulse output 0 1 home input x4 Pulse output O 1 home input x4 position c PWM output Y0 Channel and pulse output numbers o m 198 FPOR User s Manual 8 5 PWM Output Function System variables for memory areas used 0 sys_blsPulseChannelOActive R9120 Pulse output control flag for sys_blsPulseChannel1 Active R9121 channel sys_blsPulseChannel2Active R9122 sys_blsPulseChannel3Active R9123 199 Chapter 9 Security Functions Security Functions FPOR User s Manual 9 1 Security Function Types The following security settings ar
156. me time operation is enabled However the error continues to be displayed unless the cause of the error has been eliminated e When an operation error error code 45 occurs the address at which the error occurred is stored in special data registers DT90017 sys_iOperationErrorStepHold and DT90018 sys_iOperationErrorNonHold If this happens monitor the address at which the error occurred before cancelling the error 216 FPOR User s Manual 11 4 ERROR ALARM LED is ON 11 4 ERROR ALARM LED is ON If the ERROR ALARM LED is on the system watchdog timer has been activated and the operation of the PLC has been stopped There are two ways to remedy the problem Set the mode selector of the PLC from RUN to PROG mode and turn the power off and then on If the ERROR ALARM LED turns on again there is probably an abnormality in the CPU Please contact your dealer Check if the ERROR ALARM LED is flashing See ERROR ALARM LED is Flashing on page 216 Set the mode selector from PROG to RUN mode If the ERROR ALARM LED turns on the program execution time is too long Check if instructions such as JP or LOOP are programmed in such a way that a scan can never finish Make sure that interrupt instructions are executed in succession 217 Troubleshooting FPOR User s Manual 11 5 All LEDs are OFF If all LEDs are OFF try the following e Check the power supply wiring e Check if the power supplied to the CPU is in th
157. ment such as a fuse Protection of output sections If current exceeding the nominal switching capacity is being supplied in the form of a motor lock current or a coil shorting in an electromagnetic device a protective element such as a fuse should be attached externally 65 Installation and Wiring FPOR User s Manual 6 4 Wiring the Power Supply Use the power supply cable provided Attach as shown Power supply cable AFPG805 Brown 24V DC Blue OV Green function earth Specifications Rated voltage 24V DC Operating voltage range 21 6 26 4V DC NOTE e To minimize adverse effects from noise twist the brown and blue wires of the power supply cable e To protect the system against faulty voltages from the power supply line use an insulated power supply with an internal protective circuit e The regulator on the unit is a non insulated type e 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 FPOR User s Manual 6 4 Wiring the Power Supply Isolation of power supply systems Isolate the wiring systems to the CPU input output devices and mechanical power apparatus L1 o i L2 o L3 o c gt o N o ry PE Cie oo ie oe Mechanical power apparatus Input output devices CPU Circuit breaker
158. mental control require a second channel If channel 0 2 or channel 4 has been set to one of these modes the settings for channel 1 3 and 5 respectively will be invalid e The settings for pulse catch inputs and interrupt inputs can only be specified in the system registers Transistor types C16 and higher ea e CPU outputs which have been specified as pulse output or PWM output cannot be used as normal outputs e Input numbers X4 to X7 can be used as home input of pulse output channels 0 to 3 When using the home return function always set the home input In this case X4 to X7 cannot be used as high speed counter inputs e The output numbers for the deviation counter clear signal which can 246 FPOR User s Manual 12 4 System Registers be used with the home return function are fixed for each channel For C16 Channel 0 Y6 channel 1 Y7 For C32 T32 F32 Channel 0 Y8 channel 1 Y9 channel 2 YA channel 3 YB If used for the deviation counter clear signal these outputs are not available as pulse outputs Time Constants No nme foom vss E a0 Time consantet i a30 Time consantotinpu x a30 Time onstantofinpux i 230 Time onstantofinpuXs i a Time onstntofinputxe CS aa Time constant ofinputxs Far Time constntofinputx6 aa Time constant ofinputx7 i 4927 Time consantet i 4927 Time onsintofinpux C 4927 Time consantet iS 4927 Tine consantet i 497
159. mmunication format For details on setting the communication parameters see Setting System Registers in PROG Mode on page 94 NOTE e The end code setting must always be CR and the start code setting must be No STX e The station number can be set within a range of 1 to 99 e With a C NET adapter a maximum of 32 stations can be specified 7 5 4 1 FPO Compatibility Mode Make sure that the PLC type selected in FPWIN Pro is FPO All ports can be used in FPO compatibility mode For the USB port the settings are fixed Make the following settings for the communication port TOOL port e station number e modem connection disable enable e communication format sending data length e baud rate COM port e communication mode e station number e baud rate e communication format e modem connection disable enable 103 Communication FPOR User s Manual For details on setting the communication parameters see page 94 NOTE e The end code setting must always be CR and the start code setting must be No STX 7 5 5 1 1 Slave Communication System register settings For 1 1 MEWTOCOL COM communication the system registers should be set as shown below Name Set value COM port 1 station number 1 COM port 1 communication mode MEWTOCOL COM Master Slave Data length 8 bits Parity Odd COM port 1 communication format Stop bit 1 bit End code CR Start code No STX
160. mmunication mode see MEWTOCOL COM on page 97 7 1 3 Program Controlled Communication With program controlled communication the user generates a program which governs the data transfer between a PLC and one or more external devices connected to the communication port By this any standard or user protocol can be programmed Typically such a user program consists of sending and receiving the data Image checker Data registers DT CO i Send buffer Sending data using F159_MTRN 4 old o al Receiving data Program controlled connection between the FPOR and an external device REFERENCE For detailed information on the program controlled communication mode see Program Controlled Communication on page 110 83 Communication FPOR User s Manual 7 1 4 PLC Link PLC Link is an economic way of linking PLCs using a twisted pair cable and the MEWNET protocol Data is shared with all PLCs by means of dedicated internal relays called link relays L and data registers called link registers LD The statuses of the link relays and link registers of one PLC are automatically fed back to the other PLCs on the same network The link relays and link registers of the PLCs contain areas for sending and areas for receiving data Station numbers and link areas are allocated using the system registers
161. ms that conform to FPOR specifications This allows you to make maximum use of FPOR performance and functions However the following modifications to the FPO program are required 1 Change the PLC type from FPO to FPOR 2 Since the system registers will be initialized wnen the PLC type is changed reconfigure the system registers if necessary 3 Modify the programs according to the FPOR specifications if necessary Executing programs in FPO compatibility mode The FPO compatibility mode allows you to use existing FPO programs as they stand For items such as program capacity operation memory and available instructions the same specifications apply as for the FPO To enter the FPO compatibility mode use your programming tool to download the FPO programs A confirmation message will appear and the mode will automatically change to the FPO compatibility mode The FPO program may either have been uploaded from an FPO or it may have been created on an FPOR in FPO mode PLC type is FPO The FPO compatibility mode is supported by FPWIN Pro V6 10 or higher and FPWIN GR V2 80 or higher For an FPO program to be able to run in FPO compatibility mode the PLC types C10 C14 C16 C32 and T32 must match exactly FPO compatibility mode is not available for the F32 type FPOR In most respects the FPO programs do not need to be modified to be executable in FPO compatibility mode Please note however the following differences between the
162. munication with the Programming TOO shea colini rennin dita 91 Connecting FPO Expansion Units 63 CONN COP nied iets diseases 18 41 Count Input Modes ceeeeeeee 166 CPU aie 8 51 CPW Ty Pes sit tiien AE OA 17 Current Consumption 0 ceee 228 D Data Format seeceeeeeeeeeeeeeeeees 120 Data TYPOS mio aA 253 Diagnosing Output Malfunction 219 Dimensions 2 eeceeeeceeeeeeeeeeeeeeeeees 231 DIN rail attachment lever 18 41 Download Protection ce 206 E Error Codes ipren 249 Error Codes E1 to E8 eeeeees 249 Error Detection Time for Transmission Assurance Relays cceescecees 150 ERROR ALARM LED is Flashing 216 Index FPOR User s Manual ERROR ALARM LED is ON 217 Example for PLC link 0 nasenne 139 Example for PLC link 1 aani 140 Expansion nciiinaeadine inl cniese 39 Expansion hook 0000eseseeeeeees 18 41 Expansion Method eceeeeeeeeeees 40 F F166_HighSpeedCounter_Set Target Value Match ON eeeeeeeeereeees 173 F166 _PulseOutput_Set Target Value Match ON rererere EE ee 189 F167_HighSpeedCounter_Reset Target Value Match OFF seeeeeees 174 F167_PulseOutput_Reset Target Value Match OF F ersin i 190 F171_PulseOutput_Jog_ Positioning JOG Operation and Positioning 192 F171_PulseOutput_Trape
163. n ae AY PEAR X N 4 Insert pins into holes so that there is no gap between units 5 Push expansion hooks back into place eS S E 3 Q WY VX Q oer PSS hy N YW ooa NA AX Q ho x Q NAG r y You can now add up to two more units in the same manner 63 Installation and Wiring FPOR User s Manual 6 3 Safety Instructions for Wiring In certain applications malfunction may occur for the following reasons e Power ON timing differences between the PLC system and input output or motorized devices e A response time lag when a momentary power drop occurs e Abnormality in the PLC external power supply circuit or other devices In order to prevent a malfunction that results in a system shutdown choose the adequate safety measures listed below Interlock circuit When a motor s clockwise counter clockwise operation is controlled provide an interlock circuit that prevents clockwise and counter clockwise signals from being input into the motor at the same time Emergency stop circuit Provide an emergency stop circuit externally to turn off the power supply of controlled devices in order to prevent a system shutdown or an irreparable accident if a malfunction occurs Start up sequence The PLC should be operated only after all of the field devices are energized To ensure this sequence the following measures are recommended e Turn
164. n For a 1 N MEWTOCOL COM connection between a computer and several PLCs the computer and the first PLC are connected through a commercially available RS232C RS485 converter The other PLCs are wired using an RS485 cable The computer and the PLCs communicate via commands and responses The computer sends a command specifying the station number and the PLC with that station number sends a response back to the computer 1 2 3 4 1 N communication between a computer and several PLCs The station number of the PLC to which the command is being sent is included in the command message The station number of the PLC sending a response is included in the response message Commercially available converter Q O Station number of PLC System register settings For 1 N MEWTOCOL COM communication the system registers for COM port 1 should be set as shown below No Name Set value 1 to 99 with C NET adapter a maximum of 32 stations is possible COM port 1 communication mode MEWTOCOL COM Master Slave COM port 1 station number Data length 7 bits 8 bits Parity None Odd Even COM port 1 communication format Stop bit 1 bit 2 bits End code CR Start code No STX COM port 1 baud rate 2400 1 15200bit s NOTE e The communication format and baud rate of the PLC should be set to match the connected device 107 Communication
165. n Panasonic s download area 8 3 5 2 Positioning Operations with a Double Speed Inverter Wiring example LL PLC Input terminal Encoder input Operation start Output terminal Inverter operation Y1 Inverter high speed Operation stop B Inverter Ke Fast slow Encoder Motorr Conveyor When X5 turns to TRUE YO and Y1 turn to TRUE and the conveyor begins to move When the elapsed value sys_diHscChannel0ElapsedValue reaches 4500 Y1 turns to FALSE and the conveyor begins to decelerate When the elapsed value reaches 5000 YO turns to FALSE and the conveyor stops 177 High Speed Counter and Pulse Output FPOR User s Manual Operation chart y x Number of pulses y Speed System register settings No Item Name Data 400 High speed counter Channel 0 incremental input XO REFERENCE For POU Header and POU Body please see the programming examples in Panasonic s download area 178 FPOR User s Manual 8 4 Pulse Output Function 8 4 Pulse Output Function Together with a commercially available pulse string input type motor driver the pulse output function can be used for positioning control NOTE The pulse output function is only available with the transistor output type Setting system registers When using the pulse output function make sure the high
166. n FPWIN Pro A maximum of 16 Boolean variables and three 16 bit variables can be traced per sampling REFERENCE For details please refer to the FPWIN Pro Programming Manual or to the FPWIN Pro online help 211 Other Functions FPOR User s Manual 10 3 Input Time Constants You can specify input time constants in order to negate the effects of noise or bouncing e g for a switching device To set the time constants use the system registers or the instruction F182_FILTER Time constant settings are invalid if the input is used as a high speed counter pulse catch or interrupt input REFERENCE For details please refer to the FPWIN Pro Programming Manual or to the FPWIN Pro online help 212 Chapter 11 Troubleshooting Troubleshooting FPOR User s Manual 11 1 LED Display for Status Condition When an error occurs the status of the status indicator LEDs on the CPU changes as shown in the table below o o o D o D D o D D l o D o D o 1 2 3 4 5 6 7 8 9 A B c D E F Status indicator LEDs Status indicator LEDs on CPU LED status sid LED status sid ERROR Description Operation status ALARM Normal condition a e PROG mode occurred Abnormal A self diagnostic error has Varies Varies On System watchdog timer has Stop been activated 214 FPOR User s Manual 11 2
167. n order Transmits from bit 0 character by character MEWTOCOL COM Master Slave Modem initialization Communication mode Program controlled Modbus RTU Master Slave PLC Link Default settings 93 Communication FPOR User s Manual 7 4 Communication Parameters The communication parameters are set in the system registers of the PLC Make settings for the communication mode communication format baud rate station number and receive buffer if necessary During PROG mode Use the programming tool to enter settings for the communication port in the system registers During RUN mode Use the SYS1 instruction to change the communication parameters Please refer to the FPWIN Pro online help for detailed information The communication mode can be switched using F159_ MRTN see page 96 7 4 1 Setting System Registers in PROG Mode A ewe Procedure 3 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click COM Port To make settings for the TOOL port select TOOL Port under System Registers The following communication parameters are set in the system registers Communication mode Select a communication mode The factory setting for the communication mode is MEWTOCOL COM Master Slave No Item Name Data Di 412 COMport 1 communication mode COM Master Slave Computer Link n n seton number MEWTOCOL COM Master Slav
168. ned to TRUE or to FALSE can be specified with the instructions F166_HighSpeedCounter_Set and F167_HighSpeedCounter_Reset Outputs can be specified from YO to Y7 Using channel 0 with incremental input and reset input FPOR Count input XO j Reset input X2 TRUE FALSE output BO The output which is turned TRUE or FALSE when the target value is reached YO Y7 FPOR Phase A input X0 0 Phase B input X1 Reset input X2 TRUE FALSE output The output which is turned TRUE or FALSE when the target value is 0 reached YO Y7 gt 168 FPOR User s Manual 8 3 High Speed Counter Function 8 3 4 Instructions and System Variables The instruction F165_HighSpeedCounter_Cam performs Cam control according to the parameters in the specified DUT Use the instructions F166_HighSpeedCounter_Set or F167_HighSpeedCounter_Reset to turn the desired output to TRUE or to FALSE when the specified target value is reached To turn the output to TRUE use F166_HighSpeedCounter_Set To turn the output to FALSE use F167_HighSpeedCounter_Reset The instruction F178_HighSpeedCounter_Measure measures the number of input pulses in a specified counting period and the pulse period The high speed counter operating status counting values and control code are stored in special internal relays and special data registers The control code contains the counter settings To access special data registers and special internal relays use
169. ng Change to PROG mode and correct the error E5 see note Program area error An instruction was written to the wrong program area main program area or subprogram area Change to PROG mode and correct the error This error is also detected during online editing No changes will be downloaded and operation will continue E6 see note Compile memory full error The program stored in the PLC is too large to compile in the program memory Change to PROG mode and correct the error E7 see note High level instruction type error In the program high level F and P instructions are triggered by the same operation result While the execution condition is TRUE F instructions are executed in every scan P instructions are executed only once at the leading edge of the execution condition Correct the program so that the high level instructions executed in every scan and at the leading edge are triggered separately NOTE High level instruction operand combination error There is an incorrect operand in an instruction which requires a specific combination of operands for example the operands must all be of a certain type Change to PROG mode and correct the error In FPWIN Pro these errors are detected by the compiler Therefore they are not critical 249 Appendix FPOR User s Manual 12 5 2 Self Diagnostic Error Codes Operation Name of error status of
170. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnna 213 11 1 LED Display for Status Condition scoc cisccc sc crnccrseeesitin gba iemteene tinged 214 11 2 OPSratlon ON LEMON vice seve cise ibe adedecwede Medeode cae n a Aa er Arrana 215 11 3 ERROR ALARM LED is Flashing cccccecceecceeeeeeeeeeeeeeeeeeeeeeeeeeneees 216 11 4 ERROR ALARM LED is ON ccccceccecececeeeeeeeeeeeeeeeeeeeeeeeeeeeteeeneeeneeenes 217 11 5 All LEDS are OFF viiiwescanccrivecesreneruvtrs stati tavnstectoeceisinetciaeteiviwneantemacenadtarnes 218 11 6 Diagnosing Output Malfunction ec ceceeeeeee cette eeeeeeeeeeeeeeeeeeeeeeeeaaas 219 11 7 Password Protection Error Message cccceeeeeeeeeeeeereeeeeeeeeeeeeeeenaaaes 220 11 8 PROG Mode does not Change to RUN eee eeeeeeeeeeeeeeeeeeeeeeeeneaaes 221 12 Append aaa ree Bee nse ee ere eee eee Bee eee aat dapuan aaia meee 223 12 1 Specification S asunsa ama N al a 224 12 1 1 General Specifications 0 0 0 0 cccceceececeeceeeeeeeeeeeeeeceeeeeseseceueaeeeeeeeeeesnaeees 224 12 1 2 Performance Specifications cccccccceceeeceeeeeeeeeeseceueeeeeeeeeeeesnnaeees 225 12 1 3 Communication Specifications 0 cccccccesecceceeeeeeeeeecceeeeeeeeeeeeesenaees 227 1214 Current CONSUM ION area a a a ladies aae a a A da leche 228 12 1 5 1 O Allocation ninine e a e e 229 12 2 DIMENSIONS A A A S E A TNTE 231 12 2 1 C10 C14 CPU Terminal Block 0 ccccececeeecee cece eeeeeeeeeeeeeeeeeeeeeenaeees 231
171. nsmits from bit 0 character by character MEWTOCOL COM Master Slave Modem initialization Communication mode Program controlled Modbus RTU Master Slave PLC Link Default settings 227 Appendix FPOR User s Manual 12 1 4 Current Consumption Expansion Input Output Type of unit unit circuit circuit FPOR C10 lt 100mA lt 15 9mA FPOR C14 lt 120mA lt 21 1mA FPOR CPU FPOR C16 lt 70mA lt 21 1mA FPOR C32 FPOR T32 lt 90mA lt 42 2mA FPOR F32 FP0 E8X lt 10mA lt 34 4mA FP0 E8R lt 15mA lt 50mA lt 17 2mA FPO E8YR lt 10mA lt 100mA 7 FPO E8YT P lt 15mA FPO I O expansion FP0 E16X SOA lt 68 8mMA unit FP0 E16R j lt 100mA FPO E16T P lt 25mA FPO E16YT P FP0 E32T P lt 40mA FP0 E32RS lt 200mA FP0 A04V lt 100mA lt 20mA FPO0 A04I lt 130mA FPO analog unit FP0 A21 lt 100mA lt 20mA FP0 A80 lt 60mA FP0 TC4 TC8 RTD6 lt 25mA FPO IOL lt 30mA FP0 CCLS lt 40mA FPO DPS2 lt 10mA FPG COM1 Communication FPG COM2 cassette FPG COM3 FPG COM4 P AIGT0030B1 GT Series AIGT0030H1 programmable AIGT0230B1 display SV type AIGT0230H1 C NET adapter S2 AFP15402 lt 34 4mA FPO intelligent unit lt 20mA lt 25mA 1 The current consumed by the CPU power supply connector If expansion units or intelligent units are added the current is increased by the v
172. o the computer 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 the PLC each time a message is sent Computer Transmission program Reception processing program The station number of t z EEEREN the PLC that sent the response Command message Start Destina Text Check End iti Aer wal al code tion O code code p 9 carried out successfully The station number of The type of command the PLC to which the processed command is being sent The type of command If the command was used to read data the Any settings and data data that was read required in order to execute the command If an error occurred and the command could not be processed success Y fully the content of the error The command and data v are sent to the PLC with the specified station A response is returned and number processed by the computer e g the computer retrieves the data that was sent Response message Start Source Text Check End code OOD code code me MEWTOCOL COM communication between the FPOR and a computer 99 Communication FPOR User s Manual 7 5 2 Command and Res
173. oader is possible If you are using FP Memory Loader version 2 or higher you can enable or disable program upload to the FP Memory Loader or program transfer between two PLCs using the FP Memory Loader For details see FP Memory Loader on page 205 203 Security Functions FPOR User s Manual 9 2 2 PLC Protection Password Protection You can set a new password with up to 8 characters or change an existing one To access a PLC for which a password has been set a login is required whenever the power is turned on To set a password you can use e the programming tool e the SYS1 instruction e Be sure to memorize your password Without the password you will not be able to read programs on password protected PLCs e f you have forgotten your password our support team will not be able to reset it for you e If you are not logged in Clear Password will erase not only the password but also the program and parameters stored in the PLC s comment memory REFERENCE For details on the SYS1 instruction please refer to your Programming Manual or to the FPWIN Pro online help 204 FPOR User s Manual 9 3 FP Memory Loader 9 3 FP Memory Loader The FP Memory Loader V2 0 or higher AFP8670 AFP8671 can be used to transfer a program from one PLC to another To prevent unauthorized copying of user programs you must enable upload protection This function is recommended for users who manage original
174. ocumentation DANGER The warning triangle indicates especially important safety instructions If they are not adhered to the results could be fatal or critical injury AMAN LY CAUTION Indicates that you should proceed with caution Failure to do so may result in injury or significant damage to instruments or their contents e g data NOTE Contains important additional information y EXAMPLE Contains an illustrative example of the previous text section me Procedure 3 Indicates that a step by step procedure follows REFERENCE Indicates where you can find additional information on the subject at hand Scope of This Manual The FPOR User s Manual includes ja REFERENCE specifications for the CPU types and expansion units of the FPOR installation wiring and maintenance instructions general programming information troubleshooting information an appendix with technical specifications I O allocation tables memory area tables system registers unit dimensions Please refer to the FP Series Programming Manual or to the online help of FPWIN Pro or FPWIN GR for information on system instructions special internal relays data registers system variables FPWIN Pro only programming examples For documentation on a particular unit used with the FPOR please refer to the hardware manual for that unit All manuals can be do
175. ointing devices Monitors E9 Network adapters av Ports COM amp LPT Communications Port COM1 a Communications Port COM2 210x USB to UART Bridge Controller COM9 ov ECP Printer Port LPT1 Sound video and game controllers System devices Universal Serial Bus controllers NOTE If CP210x USB to UART Bridge Controller appears in Other devices or Unknown device is indicated the installation has failed Reinstall the USB driver see page 91 90 FPOR User s Manual 7 2 Ports Names and Principle Applications 7 2 3 2 Communication with the Programming Tool In FPWIN Pro follow these steps A eam Procedure 3 1 Online Communication Parameters 2 Make the following settings in the Communication Setting dialog Parameter Setting Network type C NET RS232C COM port COM port number allocated for the USB Baud rate 115200bit s Communicates with 115200bit s when the USB is connected Data length 8 bits Stop bit 1 bit Parity Odd REFERENCE Please refer to your programming tool s online help for information on the COM port settings 7 2 3 3 Reinstalling the USB Driver The USB driver must be installed again if the installation failed If CP210x USB to UART Bridge Controller appears in Other devices or Unknown device is indicated the installation has failed Device Manager DER
176. on earth through a high voltage capacitor Therefore there is no risk of a short circuit 24V DC ov PE Power supply line of FPOR with built in 39V varistor Example 2 Do not ground the function earth terminal of the FPOR when grounding a plus terminal of the power supply In some computers the SG terminal of the RS232C port is connected with the connector shielding Also the FPOR TOOL port shielding is connected with the function earth terminal 68 FPOR User s Manual 6 4 Wiring the Power Supply PE Therefore the GND and function earth terminals of the FPOR are connected if the computer is connected Especially when the FPOR is connected to a computer with a plus terminal grounded the minus terminal of an FPOR is connected with the function earth terminal A resulting short circuit may damage the FPOR and its neighboring parts Shielding Cable fou dO oa S 69 Installation and Wiring FPOR User s Manual 6 5 Input and Output Wiring NOTE e Separate the input output wires from the power and high voltage wires by at least 100mm e Be sure to select the thickness diameter of the input and output wires while taking into consideration the required current capacity e Arrange the wiring so that the input and output wiring are separated and so that these wirings are separated from the power wiring as much as possible Do not route them through the same duct or wrap them up
177. on has read and write access to a maximum number of 99 slave stations gt 5 Modbus RTU connection between the FPOR and an external device NOTE The Modbus protocol supports both ASCII mode and RTU binary mode However the PLCs of the FP Series only support the RTU binary mode Modbus RTU master function Write and read access to various slaves is possible using the F145 WRITE and F146 READ instructions Individual access to each slave as well as global transmission is possible 152 FPOR User s Manual 7 8 Modbus RTU Communication Modbus RTU slave function After having received a command message from the master station the slave stations send back the response message based on the instructions received Do not execute the F145 WRITE and F146 READ instructions on slave stations Wy ope o On Modbus RTU command message frame START ADDRESS FUNCTION DATA CRC CHECK END Transmission time for F Transmission time for 3 5 characters pals 8 bits n x 8 bits oe 3 5 characters ADDRESS 8 bits 0 99 decimal station no 0 broadcast address DATA Varies depending on the commands Transmission time for 3 5 characters differs depending on baud rate Please refer to Reception done judgment time FPWIN Pro does not support the address range from 0 247 of the Modbus RTU protocol Response in normal status T
178. on the operation of the reception done flag see page 121 4 Preparing the system for the reception of further data In order to receive the next data reset the receive buffer This is done automatically when sending the next data with F159_ MTRN e Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and moves the write pointer back to offset 1 Subsequent data will be stored in the receive buffer starting at offset 1 The receive buffer is not cleared e The reception done flag turns to FALSE To reset the receive buffer without sending further data execute F159 _MTRN with n_Number 0 EXAMPLE Receive a string of 8 bytes containing the characters ABCDEFGH via COM port 1 The characters are stored in ASCII HEX code without start and end codes Beginning of reception J Reception continued Data received U V TRUE Reception done flag FALSE TRUE Execution condition FALSE Reception Reception Reception possible not possible possible Execution of F159_MTRN Receive buffer layout Offset 1 16 42 B 16 41 A 2 16 44 D 16 43 C 3 16 46 F 116 45 E 4 16 48 H 16 47 G When reception begins the value in offset 0 is 8 At the end of reception the value in offset 0 is 0 The data in offset 1 to offset 4 is received in order from the low order byte 118 FPOR User s Manual 7 6 Program Controlled Communication System register settings
179. onth sys_wClockCalendarY earMonth sys_wClockCalendarSet 36 FPOR User s Manual 3 5 Backup and Clock Calendar Functions ST Body if DF bStartCompensation then Read the current time from the RTC dtbcdCurrent MinSec sys_ wClockCalendarMinSec dtbcdCurrent DayHour sys_wClockCalendarDayHour dtbcdCurrent YearMonth sys_ wClockCalendarYearMonth Decide whether to round up seconds gt 30 if dtbcdCurrent MinSec AND 16 00FF gt 30 then To round up 1 minute 16 100 is added to the current time F157 ADD DTBCD TIMEBCD sl1_ DTBCD dtbcdCurrent s2 TIMEBCD 16 100 7 d DTBCD gt dtbcdCurrent 7 end_if Set the seconds to zero dtbcedCurrent MinSec dtbcdCurrent MinSec AND 16 FF00 Write the current time into the RTC and set the RTC using sys_wClockCalendarSet sys_wClockCalendarMinSec dtbcdCurrent MinSec sys _wClockCalendarDayHour dtbcdCurrent DayHour sys_wClockCalendarYearMonth dtbcdCurrent YearMonth sys_wClockCalendarSet 16 8000 end_if 37 Chapter 4 Expansion Expansion FPOR User s Manual 4 1 Expansion Method You can expand the FPOR by adding FPO I O expansion units see page 9 FPO intelligent units see page 9 and FP Series link units see page 10 The expansion units are connected to the right side of the CPU Use the expansion connector and the expansion hooks on the side of the unit See Connecting FPO Expansion Units on page 6
180. peed counter and interrupt input Number of interrupt programs 8 external inputs C10 6 1 periodical interrupt 4 target value match interrupts Periodical interrupt 0 5ms 1 5s unit 0 5ms 10ms 30s unit 10ms Constant scan 0 5ms 600ms unit 0 5ms Using instructions F12 and P13 All areas 32765 words F ROM backup Automatically when power is cut off Counter relays 16 C1008 C1023 Internal relays 128 R2480 R255F Data registers 315 words DT12000 DT 12314 DT32450 DT32764 RAM backup T32 and F32 only T32 All areas built in backup battery F32 All areas Clock calendar function Available for T32 only Communication ports TOOL port USB port RS232C COM port product numbers AFPX10CX AFPX14CX AFPX16CX and AFPX32CX only Self diagnostic function E g watchdog timer program syntax check Watchdog timer approx 690ms 1 These are the specifications when the rated input voltage is 24V DC at 25 C The frequency will decrease depending on voltage temperature or usage condition A total of 4 channels is available for pulse output and PWM output 2 Pulse output can be specified up to 50kHz PWM output can be specified up to 4 8kHz A maximum error on the pulse width of 40us may occur for the setting value depending on voltage temperature or operating condition Writing is possible up to 10000 times 4 All memory ar
181. pending on the instruction Set the operation status using system register 23 to continue operation Operation error Selectable ree Stops The self diagnostic error specified by the F148_ERR g instruction occurred Take steps to clear the error condition T Continues according to the specification you chose 12 5 3 MEWTOCOL COM Error Codes Error SE Description pz NACK error Link system error 22 WACK error 23 Unit no overlap Transmission format error Link unit hardware error 26 Unit no setting error No support error 128 No response eror 250 FPOR User s Manual 12 5 Error Codes afee 129 Buffer closed eror Bo Time uteror pe impossible error 188 Communication siop _ 186 No destination eror Other communication error BCC eror BCC eror A transfer error occurred in the data received m peet ooo A formatting error in the command received was detected m2 No support error A non supported command was received Multiple frames n P A different command was received when processing multiple frames procedure error A non existing route number was specified Verify the route number by designating the transmission station Transmission time out Transmission to another device is not possible because the transmission error buffer is full Transmission processing to another device is not possible link unit runaway Transmit disable error etc
182. pendix FPOR User s Manual When mounting terminal block and power supply cable EXPANSION CONNECTOR 130 Maximum installation dimension 232 FPOR User s Manual 12 2 Dimensions 12 2 2 C16 CPU MIL Connector FPORC16CT P FPORC16T P The same dimensions apply to the following FPO expansion units e FPO E32T FP0 E32P e FPO E16X FPO E16YT FPO E16YP FPO E16T FPO E16P e FPO E8X FP0O E8YT FPO E8YP FPORC16CT P FPORC16T P Poors EXPANSION CONNECTOR mm 233 Appendix FPOR User s Manual When mounting MIL connector and power supply cable 130 Maximum installation dimension 234 FPOR User s Manual 12 2 Dimensions 12 2 3 C32 CPU MIL Connector FPORC32CT P FPORT32CT P FPORF32CT P FPORT32T P FPORC32CT P FPORC32T P FPORT32CT P FPORF32CT P 130 60 Maximum installation dimension 235 Appendix FPOR User s Manual 12 2 4 Power Supply Unit FP0 PSA4 35 0 19 2 60 0 12 2 5 I O Link Unit AFP0732 13 60 EXPANSION CONNECTOR 236 FPOR User s Manual 12 2 Dimensions 12 2 6 Using DIN Rails 45 45 237 Appendix FPOR User s Manual 12 3 Relays and Memory Areas for FPOR Relays bits Memory Available addres
183. ponse Format Command message All command related items should be noted in the text segment The station number must be specified before sending the command O Start code Commands must always have a ASCII code 16 25 or a lt ASCII code 16 3C at the beginning of a message The FPOR supports an expansion start code lt to send single frames of up to 2048 characters Using the start code a maximum of 118 characters can be sent in one frame Station number The station number of the slave to which you want to send the command must be specified The range is 01 to 99 decimal In 1 1 communication the station number 01 ASCII code 16 3031 should be specified Text The content differs depending on the command The content should be noted in all upper case characters following the fixed formula for the particular command The method for writing text segments in the message varies depending on the type of command Check code Hexadecimal block check code BCC for error detection using horizontal parity The BCC should be created so that it targets all of the text data from the header to the last text character The BCC starts from the header 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 enterin
184. power apparatus An insulated power supply with an internal protective circuit should be used FPO PSA2 or FP PS24 050 The power supply for the CPU is a non insulated circuit so if an incorrect voltage is directly applied the internal circuit may be damaged or destroyed 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 Be sure to supply power to a CPU and an expansion unit from the same power supply and turn the power on and off simultaneously for both Power supply sequence Make sure the power supply of the CPU turns off before the power supply for input FPOR User s Manual 1 1 Safety Measures and output If the power supply for input and output is turned off first the CPU will detect the input fluctuations and may begin an unexpected operation Before turning on the power When turning on the power for the first time be sure to take the precautions given below e During installation check that there are no scraps of wiring particularly conductive fragments adhering to the unit e Verify that the power supply wiring I O wiring and power supply voltage are all correct e Sufficiently tighten the installation and terminal screws e Set the mode selector to PROG mode Before entering a program Be sure to clear any existing program before entering a new program A Mg Procedure 3 1
185. programs on a PC In FPWIN Pro Online Security Settings opens the Security Settings dialog box which offers two security settings for the FP Memory Loader e Upload protection e Download protection 9 3 1 Upload Protection Upload protection prevents programs from being uploaded to an FP Memory Loader A A ewe Procedure 3 1 Online gt Security Settings The Security Settings dialog box opens 2 Select Enable upload protection 3 Enter the password 4 Choose Set Protection or Change Protection When defining security settings for the first time choose Set Protection To change existing security settings choose Change Protection 5 Download program from source PLC to FP Memory Loader 6 Transfer program to target PLC After program download from the FP Memory Loader to the target PLC this PLC is now upload protected 205 Security Functions FPOR User s Manual 01234567 01234567 01234567 Program upload can be disabled in the Security Settings dialog box see table below The FP Memory Loader contains a password and upload protected program Password 01234567 Upload protection enabled The security settings are transferred together with the program to the target PLC The target PLC is now doubly protected Program upload to a PC requires password entry Upload to an FP Memory Loader is not possible even if the source PLC and targe
186. put Methods and Position Control MOde S cceseeeeceeeeeeees 179 PWM Output Function 162 198 259 Index FPOR User s Manual R ETX ea aaea 124 Receiving Data from External Devices 117 System Registers 241 Record of Changes vvssssssssssssssessseseeeeee 262 System variables 169 Reducing Transmission Cycle Times 149 T Reinstalling the USB Driver 91 Table of System Registers 005 243 Relays and Memory Areas for FPOR 238 f Terminal Layout cceeeeee 27 46 Restrictions on Unit Combinations 12 Terminology in FPWIN Pro and FPWIN s GR a a aed ale 82 TOOL POr 18 82 86 93 Sale I ISH CHOnS FOMIN saes eA TOGQE Pol n EE E AA A TEE 86 SAE Meas URES a EREE 1 2 Troubleshooting 2 cccceeeeteeeeeees 213 Sample Program for 30 Second Compensation ceceeeteteeeeees 35 Types Of oy Sen REJ SLETS aitia aa Sample Program for Fixed Schedule and U Automatic Stari enseia 35 Sample Program for Master Unit Types KAAR EEREN AERA KERER EEOAE AEE RANR EEA aman s 8 Communication 11 1 11111 108 155 Upload Protection c scssseeceseeee 203 205 Sample Programs E ATT 175 E 2 E A AEA 6 18 82 86 93 Sampling Trace 211 System requirements 87 USB driver installation e 89 Seely EU choly i apa USB driver reinstallation 0 008 91 Security FUNCHONS 1 0 eee 201 USB PO acta t ht teeta 8
187. r Zener diode Operation mode indicator LEDs Limitations on the number of output points which are simultaneously TRUE Keep the number of output points per common which are simultaneously TRUE within the following range as determined by the ambient temperature T32 y 4 Ste ce nuina ii x 4243 55 x Ambient temperature C y Number of points per common which are simultaneously TRUE At 24v DC At 26 4v DC 24 FPOR User s Manual 3 3 Output Specifications CPU Internal circuit diagram NPN AA ial 4V DC N l 5 24V DC ee U M l Internal circuit Output circuit Output indicator LED External power supply Load power supply PNP M _ gt O O 3 D T DC Internal circuit Output circuit Output indicator LED External power supply Load power supply 25 CPU Types FPOR User s Manual Relay types C10 C14 ttem Description S O Output type 1a output Nominal switching capacity resistive load 2A 250V AC 2A 30V DC lt 4 5A common C10 2 1 1 C14 4 1 1 FALSE TRUE 10ms TRUE FALSE 8ms Mechanical lifetime gt 20 000 000 operations switching frequency 180 operations min Output points per common
188. r details on Modbus settings and communication using the F145_WRITE and F146 READ commands please refer to the online help of FPWIN Pro 154 FPOR User s Manual 7 8 Modbus RTU Communication 7 8 1 Setting Communication Parameters Make the following settings for the communication port e communication mode MEWTOCOL COM e station number e baud rate e communication format For details on setting the communication parameters see Setting System Registers in PROG Mode on page 94 NOTE e The end code setting must always be CR and the start code setting must be No STX e The station number can be set within a range of 1 to 99 e With a C NET adapter a maximum of 32 stations can be specified 7 8 2 Sample Program for Master Communication Use the F145_WRITE and F146_READ instructions for the Modbus master function Be sure to select Modbus RTU Master Slave for the COM port in system register 412 POU Header Class Identifier Type Initial am Slave2_g_diCounter DINT 0 1 YAR diCounter DINT O0 2 VAR diCounterFromSlave2 DINT 1 3 VAR bWriteToSlave2 BOOL TRUE 4 VAR bReadFromSlave2 BOOL FALSE In order to have consistent data in the master project and in the slave project the common data should be kept in the GVL of a common library 155 Communication FPOR User s Manual LD Body Ifthe counter read from the slave is equal to the counter written then the counter is incremented b
189. r s Manual With the above settings the following data will be output from the Micro lmagechecker 1012345 Cr ifr Terminator end code Judgment output No 2 0 NG Results of numerical calculation No 1 Judgment output No 1 1 OK A100 A200 COM port Please make the connection using a special RS232C cable available for the Micro Imagechecker order no ANM81303 gt mA d ama A100 A200 COM port 5 psR Bue e ono cren a 128 FPOR User s Manual 7 6 Program Controlled Communication Wiring diagrams e Using the COM port ANM81303 _ Shield housing Left FPOR right Micro lmagechecker e Using the TOOL port ANM81303 _ Shield housing Left FPOR right Micro lmagechecker 129 Communication FPOR User s Manual Procedure of communication In the following example the Micro Imagechecker is connected to COM port 1 A200 A100 _ aaa d U Zz Y lt 3 ne fe amp o 3 Data registers RS232C port Write start command S R in send buffer Send data with F159_MTRN Sending data Transmission done flag FALSE Reception done flag FALSE Receive buffer reset Send start command S Transmission done flag TRUE Receive scan result 1012345 Reception done flag TRUE Receiving data Read data 1012345 Send empty d
190. rsietieendandes 94 7 4 1 Setting System Registers in PROG Mode eceeeceeeeeeeeeeeeeneeeeeeeeaees 94 7 4 2 Changing Communication Mode in RUN Mode s es 96 MEWTOCOL COM ccccccceeccceeeeeeeeeeeaeeeaeeeaaeaaeeaaeeaaeeaaeasaeaaaeeeesseeees 97 7 5 1 Operation Outline for MEWTOCOL COM Slave cceeceecereeeeeeeees 99 7 5 2 Command and Response Format ccccccceeesecceeeeeeeeeeeeenaeeeeeeeeeees 100 Ee COMMANAS E E E T E A 102 7 5 4 Setting Communication Parameters ssseeeeeeeeeeeseeerresrerresrrrresrrrrssreena 103 7 5 4 1 FPO Compatibility Mode 0 ccccececceeececeeeeeeeeeeseeeeeseeeeeneeeeeneees 103 7 5 5 1 1 Slave COMMUNICATION 00 0 ete ear Eaa AE EREE REA 104 7 5 5 1 1 1 Communication with a Computer cccceeeeeeeeecteeeees 105 7 5 5 2 1 1 Communication with GT Series Programmable Displays 106 7 5 6 1 N Slave COMMUNICATION cece ee eeeee eee etteeeeeeteeeeeeaeeesettaeeeeeeeaaes 107 7 5 7 Sample Program for Master Communication c ceeeeeeeeeetteeeeeeee 108 Program Controlled COMMUNICATION eee eeetteeeeeeeeeeeeeteeneeeeeeeees 110 7 6 1 Setting Communication Parameters ceccceeeeeeeeeeeeeeteeeeeesteeeeeenaees 111 7 6 1 1 FPO Compatibility Mode iisisti isanne 112 7 6 2 Sending Data to External Devices 0 0 ee ceteeeeeneeeeeeteeeeeeeneeeeeeaas 113 7 6 3 Receiving Data from External DeVICES 0 ceeceeeeeeeeeeenteeeee
191. rt sending from this word address PLC link 0 Link relays Send area Number of words to send PLC link 0 Link registers Send receive area Number of words 0 128 words shared by all linked PLCs PLC link 0 Link registers Send area Start sending from this 0 127 word address PLC link 0 Link registers Send area Number of words to send soe 0 127 words PLC link 1 Highest station number in network 0 64 words PLC link 1 Link relays Send area Start sending from this word 64 64 127 address 53 PLC link 1 Link relays Send area Number of words to send 0 64 words E shared by all linked PLCs 0 128 words PLC link 1 Link relays Send receive area Number of words shared by all linked PLCs PLC link 1 Link registers Send receive area Number of words PLC link 1 Link registers Send area Start sending from this 128 128 255 word address PLC link 1 Link registers Send area Number of words to send fo 8s 0 127 words High Speed Counier Pulse Catch Input Interrupt Input Two phase input XO X1 Two phase input X0 X1 Reset input X2 Incremental input X0 Incremental input X0 Reset input X2 Decremental input X0 High speed counter U d Channel 0 nuse Decremental input X0 Reset input X2 Incremental input X0 Decremental input X1 Incremental input X0 Decremental input X1 Reset input X2 Counter input X0 Incremental decremental control input X1 Coun
192. s C10 106 C14 110 NOTE e Install the FPO thermocouple unit to the right of other expansion units If it is installed on the left side overall precision will deteriorate For details refer to the FPO thermocouple unit manual e Install the FPO RTD unit to the right of the other expansion units FPOR User s Manual 2 4 Programming Tools 2 4 Programming Tools Programming software You can use the following programming software to program the FPOR e FPWIN Pro Version 6 or later e FPWIN GR Version 2 or later FP Memory Loader AFP8670 AFP86 1 to transfer programs and system registers can also be used You can connect your PC to the FPOR with an RS232C programming cable or via the USB port PC connection cable RS232C programming cable 9 pin Sub D to 5 pin Mini DIN round Programming cable for FP and GT series AFC8513D USB cable Cable type Length 2m HE upogo A type male PC side 5 pin Mini B type male PLC side Instead of Panasonic s USB cable any commercial USB cable meeting the above specifications may be used The maximum permissible cable length is 5m 13 Overview FPOR User s Manual 2 5 FPO Program Compatibility For programs used on the existing FPO to be used on the FPOR they must either 1 conform to FPOR specifications or 2 be executed in FPO compatibility mode Using progra
193. s area fn eee External input relays 1760 X0 X109F 1 X0 0 IX109 15 Turn on or off based on external input QX0 0 Turn on or off external outputs External output relays 1780 ORE QX109 15 based on the operation result Internal relays 4096 RO R255F Link relays 2 3 TO T1007 Timer relays C1008 C1023 aa C1008 C1023 Counter relays T0 T1007 Special internal relays R9000 R913F Memory area words MX1 0 MX1 1007 MX2 1008 MX2 1023 MX2 1008 MX2 1023 MX1 0 MX1 1007 MX0 900 0 MX0 913 15 MX0 0 0 Used internally by the PLC MX0 255 15 program to store bit information MX7 0 0 Shared by multiple PLCs 2098 LOREIAIE MX7 127 15 connected using PLC link Turn on when the value set with a TM instruction for the timer with the same number has reached 0 Turn on when the value set with a CT instruction for the counter with the same number has reached 0 Turn on or off based on specific conditions Used internally as a flag WX0 WX109 Internal relays Link relays WLO WL127 C10 pea crass 12315 DT0 DT12312 registers g Ea T32 32763 DT0 DT32762 1024 SV0 SV1023 External input relays External output relays Link registers Timer counter set value area QWO0 QW109 MWO 0 MWO0 255 MW7 0O MW7 127 MWS5 0 MW5 12312 MW5 0 MW5 32762 MW8 0 MW8 255 MW3 0 MW3
194. set to TRUE counting is prohibited and the elapsed value keeps its current value Counting is continued when bit 1 is reset to FALSE Resetting the elapsed value software reset of the high speed counter to 0 bit 0 A High speed counter input Elapsed value Bit 0 of high speed counter control code software reset When bit 0 of the control code is set to TRUE a software reset is performed and the elapsed value is set to 0 The elapsed value keeps the value 0 until bit 0 is reset to FALSE 171 High Speed Counter and Pulse Output FPOR User s Manual Control code settings Bits 0 15 of the control code are allocated in groups of four The bit setting in each group is represented by a hex number e g 0002 0000 0000 1001 16 2009 Group IV Channel number channel n 16 n Group Ill fixed Clear high speed counter instruction bit 3 0 continue 1 clear Reset input bit 2 see note 0 enabled 1 disabled Group Count bit 0 coumte o 1 Reset elapsed value to 0 bit 0 Example 16 2009 2 erman i fo fes SSS wo fes SSS T Group II fixed Clear high speed counter instruction clear 1 bit 3 Reset input enabled bit 2 Jo Count permit bit 1 Jo Reset elapsed value to 0 yes bit 0 NOTE Use the reset input setting bit 2 to disable the reset input allocated
195. speed counter function is not allocated to the channel selected for pulse output ewe Procedure 3 1 Double click PLC in the navigator 2 Double click System Registers 3 Double click High Speed Counter Pulse Catch Input Interrupt Input 4 Set any high speed counter allocated to a pulse output channel to Unused No Item Name Data Dime Range 400 High speed counter Channel 0 re Unused 400 High speed counter Channel 1 Unused Unused 401 High speed counter Channel 2 Unused Unused 401 High speed counter Channel 3 Unused Unused 8 4 1 Pulse Output Methods and Position Control Modes The pulse output method and position control mode are specified by means of the variables used with the positioning command CW CCW GY m rA CW pulse output YO Y2 o JUUUUL CCW pulse output Y1 Y3 Incremental counting Decremental counting Control is carried out using two pulses a positive or clockwise rotation pulse CW and a negative or counterclockwise rotation pulse CCW pulse 179 High Speed Counter and Pulse Output FPOR User s Manual Pulse direction Forward FALSE e siU ALLELE Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with TRUE FALSE signals In this mode forward rotation is carried out when the rotation direction signal is FALSE Forward TRUE
196. t e Itis not possible to change to the Modbus RTU mode using F159_MTRN 96 FPOR User s Manual 7 5 MEWTOCOL COM 7 5 MEWTOCOL COM This communication mode uses the proprietary MEWTOCOL COM protocol to exchange data between a master and one or more slaves This is called 1 1 or 1 N communication A 1 N network is also known as a C NET a gt MEWTOCOL COM connection between a computer and the FPOR There is a MEWTOCOL COM master function and a MEWTOCOL COM slave function The side that issues commands is called master The slave receives the commands executes the process and sends back responses The slave answers automatically to the commands received from the master so no program is necessary on the slave MEWTOCOL COM master function The master can be a PLC or any external device supporting the master function To use the built in master functionality of the PLC select MEWTOCOL COM Master Slave in the system registers and implement a PLC program The applicable instructions are F145 WRITE_DATA and F146 READ_DATA MEWTOCOL COM Master Slave mode is recommended over program controlled mode since programming is easier The master function can be used for communication with all Panasonic devices equipped with a MEWTOCOL COM slave function for example PLCs Imagecheckers temperature controllers or eco power meters FPOR NOTE e The master
197. t PLC are protected by identical passwords 01234567 9 3 2 Download Protection Using download protection you can transfer a program from one PLC to another with the FP Memory Loader provided the passwords the two PLCs passwords are identical A ewe Procedure 3 1 Online Security Settings The Security Settings dialog box opens 2 Select Allow download to PLC only if password in the PLC is the same 3 Enter the password 4 Choose Set Protection or Change Protection When defining security settings for the first time choose Set Protection To change existing security settings choose Change Protection 5 Download program from source PLC to FP Memory Loader 206 FPOR User s Manual 9 3 FP Memory Loader 6 Transfer program to target PLC 01234567 ro 01234567 abcdefgh Programs can only be downloaded to PLCs that are protected by identical passwords see table below The FP Memory Loader contains a password protected program Password 01234567 Download is possible only if the target PLC is protected by the same password 01234587 Download to a target PLC that is protected by a different password abcdefgh is not possible Download to a target PLC that is not password protected is not possible WA LY CAUTION During program download from the FP Memory Loader to a target PLC the password set on the source
198. t Value Match OFF If the elapsed value of the high speed counter matches the target value an interrupt process immediately turns the specified output to FALSE Characteristics of target value match OFF conirol 200 Target value Elapsed value of high speed counter Execution condition High speed counter control flag PLC output The PLC output turns to FALSE when the elapsed value matches the target value In addition the high speed counter control flag turns to FALSE and the instruction is deactivated REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 174 FPOR User s Manual 8 3 High Speed Counter Function 8 3 4 5 F178 HighSpeedCounter_Measure Input Pulse Measurement This instruction measures the number of input pulses in a specified counting period and the pulse period Characteristics of input pulse measurement e For input pulse measurement the channel number the counting period 1ms 5s and the number of counting periods 1 5 must be specified These parameters are used to calculate the average number of input pulses per counting period e The unit of pulse period measurement us ms or both can be specified REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 8 3 5 Sample Programs The following programming examples demonstrate how to make control code settings and how to use the
199. t install the unit above devices which generate heat such as heaters transformers or large scale resistors Installation space e Leave at least 50mm of space between the wiring ducts of the unit and other devices to allow heat radiation and unit replacement gt 50mm gt 50mm e Maintain a minimum of 100mm between devices to avoid adverse affects from noise and heat when installing a device or panel door to the front of the unit gt 100mm Other device Panel door e Keep the first 100 mm from the unit s front surface clear of objects to allow wiring and 57 Installation and Wiring FPOR User s Manual the connection of the programming tool 6 1 2 Using DIN Rails The CPU can be easily attached to DIN rails AA me Procedure 3 1 Fit upper hook of unit onto DIN rail 2 Without moving upper hook press on lower hook to fit unit into position Removal is very simple too AA me Procedure 3 1 Insert slotted screwdriver into DIN rail attachment lever 2 Pull attachment lever downwards 3 Lift up unit and remove from rail 58 FPOR User s Manual 6 1 Installation 6 1 3 Using Optional Mounting Plates Use M4 size pan head screws for attaching the mounting plate to the mounting panel The diagrams below show the dimensions of the mounting plates 6 1 3 1 Slim Type Mountin
200. t relay X and output relay Y are expressed as a combination of decimal O and hexadecimal numbers xL T el 309 1 2 3 9 A B F 1 2 e On the FPOR and the FPO the same numbers are used for inputs and outputs e g X20 Y20 e The usable I O numbers depend on the unit type See FPO Expansion Units on page 52 50 FPOR User s Manual 5 2 CPU 5 2 CPU The I O allocation of the FPOR CPU is fixed CPU type Number of I O points I O addresses X0 X5 C10 YO Y3 X0 X7 YO Y5 X0 X7 YO Y7 X0 XF C16 C32 T32 F32 51 I O Allocation FPOR User s Manual 5 3 FPO Expansion Units I O allocation is performed automatically when an expansion unit is added and is determined by the installation location Expansion units from the FPO series are connected on the right side of the CPU The I O numbers are allocated from the unit nearest to the CPU in ascending order Number Unit number installation location Type of unit of I O Channel FPO E8X Pa T X20 X27 X40 X47 X60 X67 input 4 x20 x23 x4o x43 xe0 x63 Frege E8R mon aes Y20 Y23 ees es FPO E8YR ESYT ESYP Output Pale Y20 Y27 Y40 Y47 Y60 Y67 FPO E16X X20 X2F X40 X4F X60 X6F FPO E16R ee e x20 x27 x4o xa7 X60 X67 E16T E16P Output 8 Y20237 v4o va7 Yeo Ye7 FPO E16YT feels E32T input 16 x20 x2F X40 X4F X60 X6F E32P feels Output Y20 Y2F Y40 Y4F Y60 Y6F input
201. t terminals Power supply measured with a 500V DC terminal Function earth megger Min 1009 Min 1009 Min 1009 Output terminals Power supply terminal Function earth Min 1000 Min 1009 Function earth Power supply terminal Min 100Q Min 100Q 5 9Hz 1 cycle min single amplitude of 3 5mm Vibration resistance 9 150Hz 1 cycle min constant acceleration of 9 3m s 10min on 3 axes in X Y and Z direction Shock resistance 147m s 4 times on 3 axes in X Y and Z direction Noise immunity Power supply terminal Operation conditions Free from corrosive gases and excessive dust 1000Vp p with pulse widths 50ns and 1s based on in house measurements Overvoltage category Pollution level Weight C10 100g C14 105g C16 85g C32 115g T32 115g F32 120g 224 FPOR User s Manual 12 1 Specifications 12 1 2 Performance Specifications Programming method Control method Relay symbol cyclic operation Program capacity 46000 32000 Program memory steps Online edit mode Available entire program Security function Password protection 4 digit 8 digit upload protection Memory capacity 328kbyte Comment memory Online edit mode Available project information lt 0 2ms 1 0 refresh time With expansion units lt 0 2ms 1 x no of expansion units ms Basic instructions 0 08us timer instruction 2 2us lt 3000 steps i i High level instruc
202. ter input X0 Incremental decremental control input X1 Reset input X2 Incremental input X1 High speed counter Incremental input X1 Reset input X2 Unused Channel 1 Decremental input X1 Decremental input X1 Reset input X2 244 FPOR User s Manual 12 4 System Registers e Two phase input X3 X4 e Two phase input X3 X4 Reset input X5 e Incremental input X3 e Incremental input X3 Reset input X5 e Decremental input X3 High speed counter U d Channel 2 nused e Decremental input X3 Reset input X5 e Incremental input X3 Decremental input X4 e Incremental input X3 Decremental input X4 Reset input X5 e Counter input X3 Incremental decremental control input X4 e Counter input X3 Incremental decremental control input X4 Reset input X5 e Incremental input X4 High speed counter e Incremental input X4 Reset input X5 Unused Channel 3 e Decremental input X4 e Decremental input X4 Reset input X5 e Two phase input X6 X7 e Incremental input X6 High speed counter i Channel 4 Unused e Decremental input X6 e Incremental input X6 Decremental input X7 e Counter input X6 Incremental decremental control input X7 High speed counter e Incremental input X7 Unused Channel 5 e Decremental input X7 e Pulse output YO Y1 Pulse output e Pulse output YO Y1 Home input X4 Channel 0 transistor Unused Pulse output YO Y1
203. th the above settings for station number 1 the 28 words consisting of LD100 to LD127 can be used as internal registers 7 7 2 4 Precautions for Allocating Link Areas A mistake in the link area allocation will cause an error and communication will be disabled Avoid overlapping send areas When sending data from the send area to the receive area of another PLC send and receive areas must match In the example shown below there is an overlapping area between units no 2 and 3 and this will cause an error so that communication cannot be carried out 1 2 3 wO 19 20 63 System register settings Link relays Send receive area Number of words shared by all linked PLCs Link relays Send area Start sending from this word address Link relays Send area Number of words to send Invalid allocations The following allocations are not possible neither for link relays nor for link registers e Send area is split e Send and receive areas are split into multiple segments till L Send area O Receive area 143 Communication FPOR User s Manual 7 7 3 Setting the Highest Station Number for a PLC Link Station numbers should be set sequentially and consecutively starting from 1 with no breaks between them If there is a missing station number or if there is a station for which the power supply has not been turned on the response time for the PLC link the link transmission cycle t
204. the wire s insulation be careful not to scratch the core wire e Do not twist the wires to connect them e Do not solder the wires to connect them The solder may break due to vibration e After wiring make sure stress is not applied to the wire e Ifthe socket in the terminal block closes upon counter clockwise rotation the connection is wrong Disconnect the wire check the terminal hole and then re connect the wire 5 78 FPOR User s Manual 6 8 Wiring the COM Port Terminal block The communication connector manufactured by Phoenix Contact is used ttem Description Number of pins 3 Manufacturer Phoenix Contact Co Model MKDS1 3 3 5 Product no 1751400 Suitable wire Size Cross sectional area mm AWG28 16 0 08 1 25 Only use shielded twisted pair cables It is recommended to ground the shielded part When using a pole terminal please refer to Wiring the Terminal Block on page 76 Wiring method A ewe Procedure 3 1 Remove a portion of the wire s insulation 5mm 2 Insert the wire into the COM port RS232C port until it contacts the back of the socket 79 Installation and Wiring FPOR User s Manual 3 Turn the screw clockwise to fix the wire in place 80 Chapter 7 Communication Communication FPOR User s Manual 7 1 Communication Modes The FPOR offers four different communi
205. ting is prohibited and the elapsed value keeps its current value Counting is continued when bit 1 is reset to FALSE Resetting the elapsed value software reset of the high speed counter to 0 A Pulse output Elapsed value Bit 0 of pulse output control code software reset When bit 0 of the control code is set to TRUE a software reset is performed and the elapsed value is set to 0 The elapsed value keeps the value 0 until bit 0 is reset to FALSE 186 FPOR User s Manual 8 4 Pulse Output Function Clearing high speed counter and position control instructions To cancel execution of a pulse output instruction set bit 2 of the data register storing the pulse output control code sys_wHscOrPulseControlCode to TRUE The pulse output control flag will then change to FALSE To reenable execution of the instruction reset bit 2 to FALSE Control code settings Bits 0 15 of the control code are allocated in groups of four The bit setting in each group is represented by a hex number e g 0002 0001 0000 1001 16 2109 15 12 11 8 T 4 3 0 Oe II I IV Il Channel number channel n 16 n Position control start request 0 disabled 1 enabled Grap ii Decelerated stop request 1 enabled Near home input bit 4 see note Pulse output bit 3 0 continue 1 stop Clear pulse output control bit 2
206. tion 8 4 3 5 F171_PulseOutput_Trapezoidal Trapezoidal Control This instruction automatically performs trapezoidal control according to the parameters in the specified DUT Pulses are output from the specified channel when the control flag for this channel is FALSE and the execution condition is TRUE Pulse output characteristics Pulse output control flag Accelerationtime Execution condition Decelerated stop request Type 0 The difference between target speed and initial speed determines the slope of the acceleration ramp The difference between target speed and final speed determines the slope of the deceleration ramp Type 1 The difference between the maximum speed of 50kHz and the final speed determines the slope of the deceleration ramp The difference between the maximum speed of 50kHz and the initial speed determines the slope of the acceleration ramp Changing the target speed during pulse output L Type 1 The speed can be changed within the range of the maximum speed 50kHz Tavstspecd Decorator 4st change of target speed Deceleration time Pulse output control flag Acceleratontime Execution condition Accara d_ i 191 High Speed Counter and Pulse Output FPOR User s Manual REFERENCE Please refer to the FPWIN Pro online help for details and a programming example 8 4 3 6 F171_PulseOutput_Jog
207. tions 0 32us MV instruction Operation speed Basic instructions 0 58us timer instruction 3 66us gt 3000 steps High level instructions 1 62us MV instruction High level instructions Approx 210 External input 1 relays X 1760 External output 1 relays Y 1760 Internal relays R 4096 Special internal memory Relays 10242 Timer Factory setting timers 1008 points TO T1007 relays Counter Factory setting counters 16 points C1008 C1023 relays T C Timer 1 32767 in units of 1ms 10ms 100ms or 1s Counter 1 32767 Link relays L 2048 Data registers DT 12315 words 32765 words Operation Special data 440 words DT90000 DT90443 memory Memory _Fregisters DT areas Link registers LD 256 words Index registers I 14 words l0 ID Differential points Depending on program capacity Master control relay points MCR 256 Number of labels JP and LOOP 256 Number of SFC steps 1000 Number of subroutines 500 300 samples 1000 samples Sampling trace Per scan or per time interval Max 16 Boolean variables and 3 16 bit variables per sampling 225 Appendix FPOR User s Manual High speed counter 1 phase 6 channels max 50kHz 2 phase 3 channels max 15kHz Pulse output not available for C10 c14 4 channels max 50kHz PWM output not available for C10 c14 4 channels max 4 8kHz Pulse catch inputs 8 including high s
208. tions now ensure that programs can be corrected without stopping the system The online edit mode is no longer limited to 512 steps Instead entire programs can be downloaded to the program memory during RUN mode Project information is written to the comment memory Please refer to the FPWIN Pro online help for detailed information Enhanced security see page 201 The FPOR supports 8 digit passwords alphanumeric and offers an upload protection function as well as security functions for the FP Memory Loader FPO compatibility see page 14 The FPO compatibility mode enables programs that have been used on an existing FPO to be activated on the FPOR with no further modifications Also since both units have an identical shape and terminal layout there is no need to check the installation space or change the wiring Overview FPOR User s Manual 2 2 Unit Types The following units are available for the FPOR 2 2 1 CPU 16k types program capacity 16k steps gt int i Ompa conneevon Por points AFPORC10RS x AFPORC10CRS Relay 2A Terminal block Ox AFPORC14RS AFPORC14CRS 24V DC Transistor COM NPN 0 2A AFPORC16T terminal cee poner C16 16 8 8 MIL connector ener AFPORC16CT Gone ee Total number input points output points 2 RS232 C interface X Available 1 32k types program capacity 32k steps Number COM Type of I O i Connection port Product no points
209. tomatically 3 The number of bytes to be sent is set in offset 0 of the send buffer 4 The characters a and b are sent to the external device The end code is automatically added to the data sent While F159_ MTRN is being executed no data can be received The transmission done flag is FALSE 5 When the specified number of bytes has been sent the transmission done flag turns to TRUE 6 Now F159_MTRN can be executed again When F159_MTRN is executed Steps 1 to 5 are repeated This time the characters c d and e are sent 7 6 6 1 1 Communication System register settings By default the COM port is set to MEWTOCOL COM mode For 1 1 program controlled communication the system registers should be set as shown below e Settings for COM port 1 or TOOL port No Name Set value COM port 1 communication mode Program controlled Data length 7 bits 8 bits Parity None Odd Even COM port 1 communication format Stop bit 1 bit 2 bits End code CR CR LF None ETX Start code No STX STX COM port 1 baud rate 2400 115200bit s COM port 1 receive buffer starting address 0 32764 factory setting 0 see note COM port 1 receive buffer capacity 0 2048 words factory setting 2048 words NOTE When using C10 C14 or C16 the range is 0 12312 126 FPOR User s Manual 7 6 Program Controlled Communication 7 6 6 1 1 1 Communication with Micro Imagechecker The F
210. ultiple contacts WCC Specifies a range in word units Read data area RD Reads the contents of a data area Write data area WD Writes data to a data area Read timer counter set value area RS Reads the value set for a timer counter Write timer counter set value area WS Writes a timer counter setting value Read timer counter elapsed value area RK Reads the timer counter elapsed value Write timer counter elapsed value area WK Writes the timer counter elapsed value Register or Reset contacts monitored MC Registers the contact to be monitored Register or Reset data monitored MD Registers the data to be monitored Monitoring start MG Monitors a registered contact or data using MD and MC Preset contact area fill command SC Embeds the area of a specified range in a 16 point on and off pattern Preset data area fill command SD Writes the same contents to the data area of a specified range Read system register RR Reads the contents of a system register Write system register WR Specifies the contents of a system register Read the status of PLC RT Reads the specifications of the PLC and error codes if an error occurs 102 FPOR User s Manual 7 5 MEWTOCOL COM Remote control RM Switches the operation mode of the PLC Abort AB Aborts communication 7 5 4 Setting Communication Parameters Make the following settings for the communication port e communication mode MEWTOCOL COM e station number e baud rate e co
211. umber is not used for more than one of the PLCs connected through the PLC Link function 137 Communication FPOR User s Manual e Station numbers should be set sequentially and consecutively starting from 1 with no breaks between them If there are fewer than 16 stations linked set the highest station number to reduce the link transmission cycle time See Setting the Highest Station Number for a PLC Link on page 144 7 7 2 Link Area Allocation To use the PLC link function link areas need to be allocated Set the allocations for both the link relays and link registers using the system registers of the CPU Link areas consist of link relays and link registers and are divided into areas for PLC link 0 and PLC link 1 A maximum of 1024 link relays points and 128 link registers words can be used in the PLC link areas Link relays Link registers Unit words For PLC link 0 1024 points 1st half Ko For PLC link 0 128 words 1st half For PLC link 1 1024 points 2nd half Ko For PLC link 1 128 words 2nd half System registers Default value aa PLC Link 0 and 1 allocation setting 1 Set values Normal 1st half Reverse 2nd half 0 64 words l 4 Link relays Send receive area Number of words shared by all linked PLCs Link registers Send receive area Number of words shared by all linked PLCs 0 128 Words Link relays Send area Start sending from th
212. uring RUN When inputting with programming tool software editing of an instruction ED error SUB RET INT IRET SSTP and STPE that cannot perform a rewrite during RUN is being attempted Nothing is written to the CPU SIM over error Program area was exceeded during a program write process 171 Exclusive access A command that cannot be processed was executed at the same time as a g control error command being processed 251 Appendix FPOR User s Manual 12 6 MEWTOCOL COM Communication Commands Command name Read contact area Code Description 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 Register or Reset contacts monitored Registers the contact to be monitored Register or Reset data monitored Registers the data to be monitore
213. ut frequency is 50kHz for all CET Channel 0 Channel 1 Channel 2 Channel 3 P 4 yI X Channel is being used Using linear interpolation control Even if all channels are used for interpolation the maximum output frequency is 50kHz for all Linear interpolation control Maximum output frequency kHz Channel 0 Channel 2 X Channel is being used 165 High Speed Counter and Pulse Output FPOR User s Manual 8 3 High Speed Counter Function The high speed counter function counts the input signals and sets the desired output to TRUE or to FALSE when the target value is reached The high speed counter function can also be used for cam control and for input pulse measurement Setting the system registers In order to use the high speed counter function it is necessary to set the inputs in the system registers A A ewe Procedure 3 1 Double click PLC in the navigator Double click System Registers Double click High Speed Counter Pulse Caitch Input Interrupt Input gt YY BN Select the desired inputs for each channel 8 3 1 Count Input Modes Input mode Input signals put XO X1 X3 X4 X6 X7 Count TRUE FALSE Decremental 166 FPOR User s Manual 8 3 High Speed Counter Function Input mode Input signals Incremental input CW Inputs X0 X1 X3 X4 TUE or X4 X7 FA
214. uter 105 Communication with GT Series Programmable Displays 106 Communication with Micro IMAQECNECKET ce eeeeeeeeeeeeeees 127 1 N Slave Communication 000 104 Communication 133 Slave Communication 0 00 107 A ACCESSOS iner an aai 11 All LEDs are OFF 218 APP NGIX 2 0 tanec a nairat 223 ASCII Codes 2 0 0 0 cccceeeececeeeeeseeeneeeeeeeees 255 B Backup and Clock Calendar Functions 31 Backup Function 2 ccceceeseeeeeeeees 32 Battery aneriam a naaa asbeeestine 33 BEFORE BEGINNING i Cc ClOC RUSS secre tie iets a a 27 C10 C14 CPU Terminal Block 231 C14 CPU eset etee eA ein 28 CIG CPU aan iat ees 29 C16 CPU MIL Connector 0 0 233 G32 CPUs aeree tetas iets 30 C32 CPU MIL Connector ee 235 Calendar function 33 Changing Communication Mode in RUN MOG ite his heeled eee eee 96 Checking and Changing System Registers POES PRE ack E E E EE E ste 242 Clock function ssssesseesseeeneneeeeerrerreneseene 33 Clock Calendar Function ccceee 33 COM port eceeeetteee 18 82 86 93 COM Pott 2 565 cha A 87 Command and Response Format 100 Commands sehi aa aen naiiai 102 Comment MEMOS ossessi 6 Communication eeeceeceeeeeeeeees 81 Communication Modes ceee 82 Communication Parameters 05 94 Communication Specifications 93 227 Com
215. wnloaded from the Panasonic Web site http www panasonic electric works com Programming Conventions The programming examples in this manual are designed for FPWIN Pro For FPWIN GR examples please refer to FPOR User s Manual ARCT1F475E Most of the sample programs were written in Ladder Diagram In FPWIN Pro you can also program in Structured Text Function Block Diagram Instruction List and Sequential Function Chart For examples in other programming languages please refer to the FPWIN Pro Online Help and the Programming Manual The abbreviations used in the examples signify the following e POU Program Organization Unit e DUT Data Unit Type e GVL Global Variable List These and other terms are explained in the FPWIN Pro Online Help and Programming Manual To illustrate the use of positioning instructions the chapter on high speed counters and pulse output contains numerous examples Some of the sample programs can be opened directly in FPWIN Pro The FPWIN Pro projects in LD and ST code can be downloaded from the Panasonic Web site http Awww panasonic electric works com peweu en html 22164 php FPOR User s Manual Table of Contents Table of Contents Te Satety MCASUIGS cisccssccccedicdcceveseinscdscensscctsecveg chek tsedtueisnedixeenneies 1 Al Safety Measures nera a A tea E a e AAA ana 2 PE AY DATAT EEEE EEE E E AE E EE SEAE 5 Dali Y LE LE SS EE E T E E ETA 6 2 2 Upit TYPES ennnen rnin unie ree kares v
216. x4 X5 x6 X7 m e aad E YO Y1 Y0 7 HA e L vo Y H eo Y2 Y3 LL L Y4 Y5 L k Y6 Y7 L HA 1 The COM terminals of the input circuits are connected internally Connector front view 29 CPU Types FPOR User s Manual 3 4 4 C32 CPU C32T C32CT T32CT F32CT X0 7 XO X1 X2 X3 X4 X5 X6 X7 COM COM X8 F X8 X9 XA XB XC XD XE XF COM COM mt xo x1 X8 x9 e 5 o x0 Xt 5 3 e 5 o 1 xs xo 5 de eV oo X2 X3 o_o t o_o XA XB o_o ome X4 X5 o_o o_O XC XD o_O commer X6 X7 o_o e o Oo XE XF oo llr Com com e r COM COM HAHH YO X y8 Y9 Y8 F mE VY gt i Yo Piya Y9 eal ee Y2 YA YB sejles Y4 YC YD HPE Y6 YE YF H HIE A a The terminals as well as the terminals of the output circuits are connected internally Input Output Connector front view 30 FPOR User s Manual 3 5 Backup and Clock Calendar Functions 3 5 Backup and Clock Calendar Functions The FPO
217. y 1 A diCounter diCounterFromSlave2 diCounter The counter is written to the slave counter which is defined in the library Slave2 containing all exchange data of the slave bWriteToSlave2 bReadFrarmSlave2 s ue Xi bWriteToStave2 sys_blsComPort1F145F146NotActive k R Slave2_g_diCounter The slave counter which is defined in the library Slave2 containing all exchange data of the slave is read for verification 4 i orere andidan y ete bReadFromSlave2 bVriteToSlave2 S E diCounterFromSlave2 Slave2_g diCounter ST Body If the counter read from the slave is equal to the counter written then the counter is incremented by 1 if diCounter diCounterFromSlave2 then diCounter diCounter 1 end_if if bUriteToSlave2 AND sys_bIsComPortiFi45Fi46Notactive then The counter is written to the slave counter which is defined in the library Slave2 containing all exchange data of the slave F145 WRITE _DATA Port 1 Slavedddress 2 MasterData diCounter SlaveData gt Slave2_g diCounter bUriteToSlave2 FALSE bReadFromsS lave2 TRUE end_if if bReadFromSlave2 AND sys_bIsComPortiF1i45F146Notactive then The slave counter which is defined in the library Slave2 containing all exchange data of the slave is read for verification F146 READ DATA Port 1 SlaveAddress 2 SlaveData Slave2_g diCounter MasterData gt diCounterFromSlave2 b
218. zoidal Trapezoidal Control eeee 191 F172 PulseOutput_Jog JOG Operation E EE I EE NEET ARS 194 F174_PulseOutput_DataTable Data Table Controls Aoine enaa 195 F175_PulseOutput_Linear Linear Interpolation cccceceeeeeseeeeeeeees 196 F177_PulseOutput_Home Home Return Sys PEI E EIE E TA E EN 196 F178_HighSpeedCounter_Measure Input Pulse Measurement eee 175 TE A ETE EE 6 Flag Operation cceeeeeeeseeeeeeenaes 121 Flat Type Mounting Plate 60 FP Memory Loader n se 13 205 FP Series Link Units 0 eeeee 10 FPO Compatibility Mode 103 112 FPO Expansion Units ccceee 52 FPO I O Expansion Units 000 9 FPO Intelligent Units 9 FPO Program Compatibility 14 FPWIN PrO iv 6 13 14 82 F ROM pia ed ae ae 210 F ROM Backup P13_EPWT 210 Function Specifications and Restrictions TETEE SE A EEE VE EA E tes 160 G General errinitis 50 General Specifications 0 08 224 SHOU IAG eaoaai 68 H Hexadecimal Binary BCD n 254 High Speed Counter and Pulse Output 157 High speed counter control code 170 High Speed Counter Function 160 166 VO Allocation 05 49 168 182 229 VOLINK UNIG eraen ek 236 OE rrerrier terranes reer reer 6 Important Symbols ii Input and Output Wiring 2 e 70 INpUt Connector cccceeeeeeeeeeeteees 18 41 Input puls

Download Pdf Manuals

image

Related Search

Related Contents

Origin Storage External HD 320GB  RCA DH4VS User's Manual  unDX2IO User Manual    U7519 User Guide.book  EDW1001 DIVA 60CM  User manual for the EDS III basic embroidery design software  Amino Set Top Box Manual    All-Clad 99009 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file