background image

6. PROGRAMMING EXAMPLES

PROGRAMMING EXAMPLES

31

6 PROGRAMMING EXAMPLES

This chapter provides programming examples which control the inverter with sequence programs.

Item

Program Example

Refer to Page

6.1

Reply code definitions

List of codes checked after completion of instruction code execution

32

6.2

Reading the inverter status

Reading the inverter status from the buffer memory of the master
station

33

6.3

Setting the operation mode

Selecting the CC-Link operation mode

34

6.4

Setting the operation commands

Commanding the forward rotation and medium speed signals

35

6.5

Setting the monitoring function

Monitoring the output frequency

36

6.6

Reading a parameter value

Reading the value of Pr. 7 "acceleration time"

38

6.7

Writing a parameter value

Setting "3.0 seconds" in Pr. 7 "acceleration time"

39

6.8

Over of the Functions
"acceleration time"

Setting to 50.00Hz

40

6.9

Reading the alarm definitions

Reading the inverter alarms

42

6.10

Inverter reset

Resetting the inverter

44

System configuration for programming example

X0020

FR-E5NC

FR-E5NC

PLC

Power

supply

Master

station

(X/Y00 to 1F)

Input

module

(X20 to X2F)

Station 1

CPU

Station 2

Inverter

(1 station

occupied)

Inverter

(1 station

occupied)

Summary of Contents for FR-E5NC

Page 1: ...FR E5NC Control Communication Link TRANSISTORIZED INVERTER INSTRUCTION MANUAL ...

Page 2: ...nd appended documents carefully and can use the equipment correctly Do not use this product until you have a full knowledge of the equipment safety information and instructions In this manual the safety instruction levels are classified into WARNING and CAUTION WARNING Denotes that incorrect handling may cause hazardous conditions resulting in death or severe injury CAUTION Denotes that incorrect ...

Page 3: ...nspection of this equipment should be fully competent to do the work Always install the option unit before wiring Otherwise you may get an electric shock or be injured Operate the switches with dry hands to prevent an electric shock Do not subject the cables to scratches excessive stress heavy loads or pinching Otherwise you may get an electric shock While power is on do not move the station numbe...

Page 4: ...rts missing Do not stand or rest heavy objects on the product Check that the mounting orientation is correct Prevent screws metal fragments conductive bodies or oil other flammable substance from entering the inverter 2 Test operation and adjustment CAUTION Before starting operation confirm and adjust the parameters A failure to do so may cause some machines to make unexpected motions 3 Usage WARN...

Page 5: ...y 4 Maintenance inspection and parts replacement CAUTION Do not test the equipment with a megger measure insulation resistance 5 Disposal CAUTION Dispose of this product as general industrial waste 6 General instruction All illustrations given in this manual may have been drawn with covers or safety guards removed to provide in depth description Before starting operation of the product always retu...

Page 6: ... 2 3 Inverter Replacement 6 2 4 System Configuration Example 7 2 5 Wiring Method 8 2 6 Connection of Several Inverters 9 3 INVERTER SETTING 10 3 1 Pre Operation Setting 10 3 1 1 Inverter station number setting 10 3 1 2 Setting of the transmission baud rate setting switch 11 3 2 Operation Modes of the Inverter 12 3 2 1 Operation mode switching 12 3 3 Operation at Alarm Occurrence 15 3 4 Operation a...

Page 7: ...tput signals master unit inverter FR E5NC 23 5 1 2 Input signals inverter FR E5NC master unit 26 5 2 Remote Register Assignment 28 5 2 1 Remote registers master unit inverter FR E5NC 28 5 2 2 Remote registers inverter FR E5NC master unit 28 5 3 Instruction Codes 29 6 PROGRAMMING EXAMPLES 31 6 1 Replay Code Definitions 32 6 2 Program Example for Reading the Inverter Status 33 6 3 Program Example fo...

Page 8: ...39 6 8 Running Frequency Setting Program Example 40 6 9 Alarm Definition Reading Program Example 42 6 10 Program Example for Resetting the Inverter at Inverter Error 44 6 11 Instructions 45 7 HOW TO CHECK FOR ERROR USING THE LEDS 47 7 1 When One Inverter Is Connected 47 7 2 When Two or More Inverters Are Connected 49 7 3 Communication Stops During Operation 51 ...

Page 9: ...R E520S 0 4K to 2 2K EC CH 1 Packing Confirmation Make sure that the package includes the following accessories Instruction manual 1 Mounting screws M3 6 2 LED indication seal 1 2 Instruction Manual Note 1 Refer to the following manuals for full information on the CC Link master station AJ61BT11 A1SJ61BT11 Control Communication Link system master local module user s manual IB 66721 AJ61QBT11 A1SJ6...

Page 10: ...k in data for a given period of time SD Extinguished to indicate that send data is 0 RD Lit to indicate that the carrier of receive data is detected L ERR Lit to indicate the communication error of the station itself Flickers to indicate that the switch or other setting was changed while power is on Mounting hole Terminal block screw size M3 Station number setting switches Mounting hole Operating ...

Page 11: ...nverter Number of units connected 42 units max 1 station occupied by 1 unit May be used with other equipment Terminal block 8 pin terminal block M3 6 screws Cable size 0 75mm2 to 2 00mm2 Station type Remote device station Number of stations occupied One inverter occupies one station Communication cable CC Link dedicated cable Note When the CC Link unit FR E5NC is plugged in the protective structur...

Page 12: ...nput power on do not install or remove the option unit Otherwise the inverter and option unit may be damaged 2 2 Installation Procedure Accessory screw 2pcs CC Link unit FR E5NC Wiring port cover for option FR E5NC plugged in status Connector for connection of inboad option Inboad option mounting position Terminal block Apply the LED indication seal ...

Page 13: ...to the inverter with the accessory mounting screws If the screw holes do not match check for insecure connector insertion The connector may not have been inserted securely 4 Reinstall the front cover to the inverter Refer to the inverter manual Note 1 While the inboard option is plugged in store the option wiring port cover carefully 2 When this option is plugged in the protective structure of the...

Page 14: ...INSTALLATION 6 2 3 Inverter Replacement You can replace the inverter without removing the terminal block wiring Before replacement New inverter Terminal block Note The mounting screws will not come off ...

Page 15: ...edicated cable the performance of the CC Link system is not guaranteed For the specifications and availability of the CC Link dedicated cable refer to the CC Link catalog L NA 74108143E Power supply module CPU AJ61 BT11 CC Link dedicated cable Inverter Power supply Motor Motor Inverter Master station Masters for CC Link master station AJ61BT11 A1SJ61BT11 Control Communication Link system master lo...

Page 16: ...en the CPU does not have automatic refresh function example AnA series CPU Data is transferred to the refresh buffer of the master station directly by sequence ladder logic to perform communication with the remote devices 2 5 Wiring Method The following diagram shows how to wire the inverter and PLC CC Link master unit U V W R S T DA DB DG SLD FG DA DB DG SLD PLC CC Link master unit Power supply I...

Page 17: ...se the termination resistors supplied with the PLC 1 Maximum number of units connected to one master station 42 units when only inverters are connected If any other units are included the number of stations occupied depends on the unit and therefore the following conditions must be satisfied 1 a 2 b 3 c 4 d 64 a Number of units occupying 1 station b Number of units occupying 2 stations c Number of...

Page 18: ... of the corresponding switch to the required numeral Example y For station number 1 Set of 10 to 0 and of 1 to 1 y For station number 26 Set 10 to 2 and 1 to 6 Station number setting switches 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 10 1 z Set station numbers consecutively in a connection sequence The station numbers may also be set independently of the connection sequence z Note that the same stat...

Page 19: ...on 03 Station 04 Number of units connected is 4 Station 00 Note One inverter occupies one station one remote device station 3 1 2 Setting of the transmission baud rate setting switch Set the transmission speed For details refer to the CC Link master unit manual Setting Switch Transmission Speed 0 156kbps 1 625kbps 2 2 5Mbps 3 5Mbps 4 10Mbps 5 or later should not be used If the switch is set to pos...

Page 20: ...onditions Before switching the operation mode check that 1 The inverter is at a stop 2 Both the forward and reverse rotation signals are off and 3 The Pr 79 operation mode setting is correct For setting use the inverter s operation panel or optional parameter unit Pr 79 Setting Operation Mode Selection Switching to CC Link Operation Mode 0 PU or external operation Disallowed when the PU mode is se...

Page 21: ... CC Link operation External operation By the user program of the PLC E PU operation CC Link operation Switching disallowed Allowed if external operation is selected in A and CC Link operation is then selected in C Note 2 F CC Link operation PU operation Switching disallowed Allowed if external operation is selected in D and PU operation is then selected in B Note 2 When 1 is set in Pr 340 link sta...

Page 22: ...l operation mode 3 External PU combined operation mode Running frequency is set in the PU operation mode and the start signal is set in the external operation mode 4 External PU combined operation mode Running frequency is set in the external operation mode and the start signal is set in the PU operation mode 6 Switch over mode Operation mode is switched while running 7 External operation mode MRS...

Page 23: ...es of the FR E5NC and remove the cause of the alarm Refer to page 47 Check the CC Link master station 3 Communication error during CC Link operation When a communication error occurs the error message E OPT is displayed 4 Inverter reset Note Refer to page 44 for an inverter reset program example Operation Mode Resetting Method CC Link operation External operation PU operation Inverter reset 1 Inst...

Page 24: ...the PLC 2 The inverter is set to the external operation mode if it has been reset in the CC Link operation mode To resume the CC Link operation the inverter must be switched to the CC Link operation again When 1 is set in Pr 340 link start mode selection switching is not needed Refer to page 14 ...

Page 25: ...unctions Functions equivalent to terminals 4 External External 0 Low speed operation command RL PLC External PLC External Pr 59 0 1 Middle speed operation command RM PLC External PLC External Pr 59 0 2 High speed operation command RH PLC External PLC External Pr 59 0 3 Second function selection RT PLC PLC External External 4 Current input selection AU Both Both 5 Start self holding selection STOP ...

Page 26: ...nly valid Both Control from both external terminal and PLC is valid Control from both external terminal and PLC is invalid Note When 7 PU operation interlock function is set in Pr 79 operation mode selection only the external terminal is made valid independently of the Pr 338 and Pr 339 settings since this function is also used by terminal MRS ...

Page 27: ... CC Link system master local unit These signals are used for communication between the PLC CPU and CC Link system master local unit For further details of the signals refer to page 23 2 Allows input data to be read output data to be written and a CC Link faulty station to be read etc The FROM TO instruction is not needed when the automatic refresh function is used Buffer memory is accessed by the ...

Page 28: ...d 1 Allowed 1 User program Stop command 2 Disallowed Disallowed Allowed Inverter reset terminal Allowed Allowed Allowed Operation command Disallowed Allowed Allowed 4 Control circuit terminal Frequency setting Disallowed Allowed Allowed 4 1 At occurrence of a communication error the inverter cannot be reset from the computer For inverter reset refer to the inverter manual 2 As set in Pr 75 3 As se...

Page 29: ...definition 5 Special monitoring Monitored data selected by instruction code F3H 6 Inverter status Forward running Reverse running Running RUN Up to frequency SU Overload OL Frequency detection FU Alarm The output signals marked can be changed using Pr 190 to Pr 192 output terminal function selection Note Items 1 to 4 are read from the buffer memory by setting the corresponding code numbers when ne...

Page 30: ...C For details refer to page 17 4 2 3 Running frequency Refer to page 40 The running frequency is written from the PLC to the inverter when it is changed Binary in 0 01Hz increments The running frequency may either be written to E2PROM or to RAM When changing the frequency continuously always write the data to the inverter RAM 4 2 4 Parameter write Refer to page 39 Functions can be written from the...

Page 31: ...n start Note 1 RY1 Reserve rotation command OFF Stop command ON Reserve rotation start Note 1 RY2 RH terminal function high speed RY3 RM terminal function middle speed RY4 RL terminal function low speed Functions assigned to RH RM RL are selected In the factory setting multi speed selection can be made by the combination of RH RM and RL Note 2 RY5 RY6 RY7 RY8 Reserved Note 5 Reserved for the syste...

Page 32: ...r Note 3 On completion of write frequency setting completion RXD switches on RYE Note 4 Frequency setting command E2PROM When the frequency setting command RYE is switched on the set frequency RWW1 is written to the inverter On completion of write frequency setting completion RXE switches on RYF Note 4 Instruction code execution request When the instruction code execution request RYF is switched o...

Page 33: ...f the error reset request flag RY1A is switched on only when an inverter fault occurs the inverter is reset and the error status flag RX1A switches off Note 3 While the set frequency designation RYD is on the set frequency RWW1 value is always returned 4 If these commands are switched on simultaneously only one of these is executed 5 The reserved input signal should be off Enter 0 ...

Page 34: ... on when the inverter s protective function is activated to stop the output Note RX8 RX9 RXA RXB Reserved Reserved for the system RXC Monitoring Switched on when the monitored value is set to RWr0 by the monitor command RYC switching on Switched off when the monitor command RYC is switched off RXD Frequency setting command RAM Switched on when the set frequency is written to the inverter by the fr...

Page 35: ...mote station ready Switched on when the inverter goes into the ready status on completion of initial setting after power on or hardware reset Used as an interlock for read write from to the master station Switched off when an inverter error occurs protective function is activated Note With Pr 190 to Pr 192 output terminal function selection you can set the output signals of device No s RX2 RX6 RX7...

Page 36: ...on mode rewrite Pr read write error reference error clear etc refer to page 29 The corresponding instruction is executed by switching on RYF after completion of register setting RXF switches on on completion of instruction execution RWW3 Write data Set the data specified by the above instruction code When required Switch RYF on after setting the above instruction code and this register Set zero wh...

Page 37: ... RAM read 006DH Reads the set frequency RAM Note Set frequency E2PROM read 006EH Reads the set frequency E2PROM Note Set frequency RAM write 00EDH Writes the set frequency to RAM Note Set frequency E2PROM write 00EEH Writes the set frequency to E2PROM Note Parameter read 0000H to 006CH Parameter write 0080H to 00ECH Refer to the data code list in the inverter manual and perform read write as requi...

Page 38: ... the 0000H to 006CH and 0080H to 00ECH parameter values 0000H Pr 0 to Pr 96 0001H Pr 100 to Pr 156 Pr 900 to Pr 905 0002H Pr 160 to Pr 192 Pr 232 to Pr 250 0003H Pr 338 to Pr 340 0009H Pr 990 Pr 991 Read 006CH Second parameter changing Write 00ECH Pr 902 to Pr 905 0000H Offset gain 0001H Analog 0002H Analog value of terminal ...

Page 39: ...eration commands Commanding the forward rotation and medium speed signals 35 6 5 Setting the monitoring function Monitoring the output frequency 36 6 6 Reading a parameter value Reading the value of Pr 7 acceleration time 38 6 7 Writing a parameter value Setting 3 0 seconds in Pr 7 acceleration time 39 6 8 Over of the Functions acceleration time Setting to 50 00Hz 40 6 9 Reading the alarm definiti...

Page 40: ...ote register after execution Date Item Alarm Definition 0000H Normal Normal completion of instruction code execution 0001H Write error Parameter write was attempted during operation other than a stop in the CC Link operation mode 0002H Parameter selection error Unregistered code number was set 0003H Setting range error Set data is outside the permissible data range ...

Page 41: ...b8 b7 b6 b5 b4 b3 b2 b1 b0 D0 0 0 0 1 1 0 1 M7 M6 M5 M4 M3 M2 M1 M0 RX1F to RX10 E1H 15EH RX2F to RX20 RX3F to RX30 RX7EF to RX7E0 RX7FF to RX7F0 15FH E2H E3H Address of master unit buffer memory Station 1 Station 2 Station 64 Remote Input Note Indicates addresses of one inverter FROM instruction RXF to RX8 Inverter status Up to frequency Running Forward running MOV instruction Inverter status Exa...

Page 42: ...0 2 K PLS M302 M303 FROM 0000 H 02E6 H D2 1 K MOV 00FB H D100 TO 0000 H 01E6 H D100 2 K 26 46 X0000 X000F X0001 X0020 M302 K4 SET M115 M215 67 RST M115 RST M303 TO 0000 H 0162 H M100 K4 2 K M9036 88 36 44 M202 MOV 0000 H D101 Write setting Inverter running Switches on the instruction code execution request RY2F Switches off the instruction code execution request RY2F Reads the remote input RX20 to...

Page 43: ...eed command RY23 Writes the operation commands to buffer memory and outputs to the inverter 0 1 0 0 1 M115 M110 M105 M100 1 ON 0 OFF RY0F to RY00 160H RY1F to RY10 161H 1DEH RY2F to RY20 RY3F to RY30 RY7EF to RY7E0 RY7FF to RY7F0 1DFH 162H 163H RY2F to RY2A Operation commands Note Enter 0 since they are reserved bits TO instruction Address Station 1 Station 2 Station 64 M100 Forward rotation comma...

Page 44: ...M 0000 H 00E2 H M200 K4 2 K X0000 X000F X0001 X0020 MOV 0001 H D100 TO 0000 H 01E4 H D100 1 K FROM 0000 H 02E4 H D1 1 K M9036 TO 0000 H 0162 H M100 K4 2 K X0000 X000F X0001 X0020 26 36 65 75 SET M112 RST M112 M212 Read setting Sets the monitor code 01H of the output frequency to RWw4 Switches on the monitor command RY2C Monitoring stop Reads the remote input RX20 to RX3F data of buffer memory to M...

Page 45: ...ored value fixed to 0 0001H Output frequency Note 0 01Hz 0002H Output current 0 01A 0003H Output voltage 0 1V Note About the speed display When Pr 37 0 output frequency monitoring changes to speed monitoring Unit for speed display 1rpm Note that the speed display of higher than 65535 FFFFH is 65535 FFFFH ...

Page 46: ...X000F X0001 X0020 M302 M215 FROM 0000 H 02E6 H 61 TO 0000 H 0162 H SET M303 M200 2 K PLS M302 D1 1 K 0007 H D100 D100 1 K K4 SET M115 D2 1 K RST M115 RST M303 M100 K4 2 K M9036 82 36 43 Read setting Writes Pr 7 reading code 07H to RWw6 Switches off the instruction code execution request RY2F Reads the remote input RX20 to RX3F data of buffer memory to M200 M231 Writes M100 M131 data to the remote ...

Page 47: ... M302 M303 FROM 0000 H 02E6 H D2 1 K MOV 0087 H D100 TO 0000 H 01E6 H D100 2 K 26 45 X0000 X000F X0001 X0020 M302 K4 SET M115 M215 RST M115 RST M303 TO 0000 H 0162 H M100 K4 2 K M9036 87 36 43 Write setting Writes Pr 7 write 87H to RWw6 and acceleration time setting data K30 to RWw7 Switches on the instruction code execution request RY2F Switches off the instruction code execution request RY2F Rea...

Page 48: ... K PLS M302 M303 FROM 0000 H 02E6 H D2 1 K MOV 5000 K D100 TO 0000 H 01E5 H D100 1 K 26 45 X0000 X000F X0001 X0020 M302 K4 SET M113 M213 66 RST M113 RST M303 TO 0000 H 0162 H M100 K4 2 K M9036 82 36 43 Write setting Switches on the frequency setting command RAM RY2D Switches off the frequency setting command RY2D Reads the remote input RX20 to RX3F data of buffer memory to M200 M231 Reads reply co...

Page 49: ...o E2 PROM Modify the above program as follows Change the frequency setting command from RY2D to RY2E RY2D RWW5 RY2E Note 2 Note1 Frequency setting completion Timing chart for write to RAM Timing chart for write to E PROM Reflected on inverter at the point when RY2E switches on Inverter running frequency Inverter running frequency RX2D RX2E RWw5 2 Note 1 For E2 PROM write is made only once when RY2...

Page 50: ...F switches on 00E2 SET M303 M9036 FROM 0000 H H M200 2 K PLS M302 M303 FROM 0000 H 02E7 H D1 1 K MOV 0074 H D100 TO 0000 H 01E6 H D100 1 K 26 45 X0000 X000F X0001 X0020 M302 K4 SET M115 M215 FROM 0000 H 02E6 H D2 1 K 61 RST M115 RST M303 TO 0000 H 0162 H M100 K4 2 K M9036 82 36 43 Read setting Writes alarm history No 1 No 2 reading code 74H to RWw6 Switches on the instruction code execution reques...

Page 51: ... 0 1 0 0 0 0 0 Previous alarm 30H Current alarm A0H 3 Alarm data For full information on alarm definition refer to the inverter manual Data Definition Data Definition 00H No alarm 60H E OLT 10H E OC1 70H E BE 11H E OC2 80H E GF 12H E OC3 81H E LF 20H E OV1 90H E OHT 21H E OV2 A0H E OPT 22H E OV3 B0H E PE 30H E THT B1H E PUE 31H E THM B2H E RET 40H E FIN ...

Page 52: ...e outputs RY20 to RY3F of buffer memory M226 Switches on the error reset request flag RY1A Switches off the error reset request flag RY1A if the error status flag RX1A is off RST M126 Note 1 The above inverter reset using RY1A may be made only when an inverter error occurs Also inverter reset can be made independently of the operation mode 2 When using the instruction code execution request RYF wi...

Page 53: ...uction Write completion Correct 2 Operating and handling instructions 1 During CC Link operation the inverter only accepts commands from the PLC and ignores any external operation command and any operation command from the parameter unit 2 If the same station number is set to different inverters wrong data will be transferred and normal communication cannot be made 3 The inverter is brought to any...

Page 54: ...ault open cable etc Check that the station number setting switches are set to the correct positions Check that the station number matches the program the station numbers are not repeated and the station number is not outside the range Check that the inverter is in the external operation mode Check that the operation mode switching program is running Check that the operation mode switching program ...

Page 55: ...d The following example indicates the causes of faults which may be judged from the LED states of the CC Link unit FR E5NC of the inverter under the condition that the SW M S and PRM LEDs of the master unit are off the master unit setting is correct in a system configuration where one inverter is connected CPU Power supply Master unit Station 1 Inverter ...

Page 56: ...ult Hardware fault Polling response is made but refresh receive is in CRC error Hardware fault Hardware fault Hardware fault Data sent to the host station is in CRC error There is no data sent to the host station or data sent to the host station cannot be received due to noise Hardware fault Cannot receive data due to open cable etc Invalid baud rate or station number setting Baud rate or station ...

Page 57: ...aster unit are off the master unit setting is proper in the system configuration shown below CPU Power supply Master unit Station 1 Inverter A Station 2 Inverter B Station 3 Inverter C LED States Inverters FR E5NC Master unit Station 1 Station 2 Station 3 Cause Corrective Action L RUN SD RD L ERR L RUN SD RD L ERR L RUN SD RD L ERR Normal TIME LINE or TIME LINE L RUN SD RD L ERR L RUN SD RD L ERR ...

Page 58: ...r disconnected from the terminal block Referring to the LED on condition search for an open point and repair L RUN SD RD L ERR L RUN SD RD L ERR L RUN SD RD L ERR The transmission cable is shorted Among the three wires of the transmission cable search for the shorted wire and repair TIME LINE or TIME LINE L RUN SD RD L ERR L RUN SD RD L ERR L RUN SD RD L ERR The transmission cable is wired imprope...

Page 59: ...h power on again L RUN SD RD L ERR L RUN SD RD L ERR L RUN SD RD L ERR Since the L RUN and SD LEDs of the FR E5NC on station 2 are off the transmission speed setting of the FR E5NC on station 2 is wrong within the setting range 0 to 4 After correcting the transmission speed setting switch power on again L RUN SD RD L ERR L RUN SD RD L ERR L RUN SD RD L ERR Since the L ERR LED of the FR E5NC on sta...

Page 60: ...und L RUN SD RD L ERR L RUN SD RD L ERR L RUN SD RD L ERR Since the L ERR LEDs of the FR E5NCs on station 2 and later are on the transmission cable between the inverters of stations 2 and 3 is affected by noise L RUN may go off Check that the transmission cable is connected to SLD Also run it as far away as possible from the power lines 100mm or more TIME LINE or TIME LINE L RUN SD RD L ERR L RUN ...

Page 61: ...REVISIONS The manual number is given on the bottom left of the back cover Print Date Manual Number Revision Jul 1999 IB NA 0600003 A First edition ...

Reviews: